diff --git a/arch/arm64/boot/dts/exynos/google/gs101-raven.dts b/arch/arm64/boot/dts/exynos/google/gs101-raven.dts index 1f4f957799..d48e0ae97e 100644 --- a/arch/arm64/boot/dts/exynos/google/gs101-raven.dts +++ b/arch/arm64/boot/dts/exynos/google/gs101-raven.dts @@ -8,6 +8,7 @@ /dts-v1/; +#include #include "gs101-pixel-common.dtsi" / { @@ -297,3 +298,32 @@ /* for the charger cell */ monitored-battery = <&battery>; }; + +/* + * Rear flash LED: TI LM3644 at 0x63 on PERIC0 USI7 (Google's I2C bus 7, also + * the cameras' bus), HWEN on gpp23-6, as stock's raven device tree + * describes it. Stock drives it from the camera HAL through LWIS; torch only + * here, with cheetah's bring-up cap (not a stock value). + */ +&usi7 { + samsung,mode = ; + status = "okay"; +}; + +&hsi2c_7 { + clock-frequency = <370000>; + status = "okay"; + + led-controller@63 { + compatible = "ti,lm3644"; + reg = <0x63>; + enable-gpios = <&gpp23 6 GPIO_ACTIVE_HIGH>; + + led { + function = LED_FUNCTION_TORCH; + color = ; + led-sources = <1 2>; + led-max-microamp = <50000>; + }; + }; +}; diff --git a/drivers/leds/flash/Kconfig b/drivers/leds/flash/Kconfig index 875109b96c..da3c972ca3 100644 --- a/drivers/leds/flash/Kconfig +++ b/drivers/leds/flash/Kconfig @@ -39,7 +39,7 @@ config LEDS_LM3644 help This option enables torch mode of the TI LM3644 and LM3644TT dual-channel flash LED drivers as an LED class device, as used - for the rear flash LED of Google Pixel 7 phones. + for the rear flash LED of Google Pixel 6 and 7 phones. To compile this driver as a module, choose M here: the module will be called leds-lm3644.