From fe238b85e68822a901ea341e1cf9c3d2b134354f Mon Sep 17 00:00:00 2001 From: saiththerobo Date: Thu, 15 Oct 2026 20:54:58 +0100 Subject: [PATCH 1/2] leds: flash: lm3644: the Pixel 6 uses it too The Pixel 6 Pro's rear flash LED is an LM3644TT on I2C 7, driven by the same torch-only driver as the Pixel 7's. Say so in the help text. Co-Authored-By: Claude Opus 5.5 Signed-off-by: saiththerobo --- drivers/leds/flash/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. From f5e6ff77ecc22efefae5e06590e0c98b774fb819 Mon Sep 17 00:00:00 2001 From: saiththerobo Date: Thu, 15 Oct 2026 20:54:59 +0100 Subject: [PATCH 2/2] arm64: dts: exynos: google: gs101-raven: add the rear flash LED The Pixel 6 Pro's rear flash LED driver is a TI LM3644 at 0x63 on I2C 7 (USI7), with its HWEN on gpp23-6, as stock's raven device tree describes it. Torch only, capped at 50 mA per channel (a bring-up limit). Tested on raven (7.3.0-rc6): the driver reads the LM3644TT (device ID 0x04) and offers 17 torch steps, 2550-49110 uA per channel; the LED turns on and off by hand and from the shell's torch tile (brightnessctl through logind, no udev rule needed). Co-Authored-By: Claude Opus 5.5 Signed-off-by: saiththerobo --- .../boot/dts/exynos/google/gs101-raven.dts | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) 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>; + }; + }; +};