Skip to content

Commit ad295e9

Browse files
committed
arm64: dts: qcom: samsung-gtelwifiue: Add RT8555 backlight driver
This adds the RT8555 backlight driver to the device tree. Using i2c-gpio here is necessary, as the backlight ic is not on any i2c pins. Signed-off-by: Michael Abood <[email protected]>
1 parent 8bb274f commit ad295e9

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

arch/arm64/boot/dts/qcom/apq8016-samsung-gtelwifiue.dts

+40
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,29 @@
2727
};
2828
};
2929

30+
i2c-backlight {
31+
status = "okay";
32+
compatible = "i2c-gpio";
33+
sda-gpios = <&msmgpio 24 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
34+
scl-gpios = <&msmgpio 25 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
35+
36+
pinctrl-names = "default";
37+
pinctrl-0 = <&bl_i2c_default>;
38+
39+
#address-cells = <1>;
40+
#size-cells = <0>;
41+
42+
rt8555_backlight: backlight@31 {
43+
compatible = "richtek,rt8555-backlight";
44+
enable-gpios = <&msmgpio 69 GPIO_ACTIVE_HIGH>;
45+
reg = <0x31>;
46+
47+
change-duty = <0>;
48+
current-limit = <0xB6>;
49+
driver-headroom = <1>;
50+
};
51+
};
52+
3053
gpio-keys {
3154
compatible = "gpio-keys";
3255

@@ -151,6 +174,7 @@
151174
compatible = "samsung,nt51017-b4p096wx5vp09";
152175
reg = <0>;
153176

177+
backlight = <&rt8555_backlight>;
154178
lcd-supply = <&reg_lcd>;
155179

156180
port {
@@ -373,6 +397,22 @@
373397
bias-disable;
374398
};
375399

400+
bl_en_default: bl-en-default {
401+
pins = "gpio69";
402+
function = "gpio";
403+
404+
drive-strength = <2>;
405+
bias-disable;
406+
};
407+
408+
bl_i2c_default: bl-i2c-default {
409+
pins = "gpio24", "gpio25";
410+
function = "gpio";
411+
412+
drive-strength = <2>;
413+
bias-disable;
414+
};
415+
376416
jack_default: jack-default {
377417
pins = "gpio110";
378418
function = "gpio";

0 commit comments

Comments
 (0)