Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions arch/arm64/boot/dts/exynos/google/gs101-raven.dts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

/dts-v1/;

#include <dt-bindings/leds/common.h>
#include "gs101-pixel-common.dtsi"

/ {
Expand Down Expand Up @@ -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 = <USI_MODE_I2C>;
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_COLOR_ID_WHITE>;
led-sources = <1 2>;
led-max-microamp = <50000>;
};
};
};
2 changes: 1 addition & 1 deletion drivers/leds/flash/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down