Skip to content

Commit 83bc280

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 6556f43 commit 83bc280

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

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

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

30+
i2c-bl {
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+
status = "okay";
44+
compatible = "richtek,rt8555-backlight";
45+
gpio = <&msmgpio 69 GPIO_ACTIVE_HIGH>;
46+
reg = <0x31>;
47+
48+
change-duty = <0>;
49+
current-limit = <0xB6>;
50+
driver-headroom = <1>;
51+
};
52+
};
53+
3054
gpio-keys {
3155
compatible = "gpio-keys";
3256

@@ -151,6 +175,7 @@
151175
compatible = "samsung,nt51017-b4p096wx5vp09";
152176
reg = <0>;
153177

178+
backlight = <&rt8555_backlight>;
154179
lcd-supply = <&reg_lcd>;
155180

156181
port {
@@ -373,6 +398,22 @@
373398
bias-disable;
374399
};
375400

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

0 commit comments

Comments
 (0)