Skip to content

Commit 8678ba7

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 70c5702 commit 8678ba7

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

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

+36
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,26 @@
4747
};
4848
};
4949

50+
i2c-bl {
51+
status = "okay";
52+
compatible = "i2c-gpio";
53+
sda-gpios = <&msmgpio 24 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
54+
scl-gpios = <&msmgpio 25 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
55+
56+
pinctrl-names = "default";
57+
pinctrl-0 = <&bl_i2c_default>;
58+
59+
#address-cells = <1>;
60+
#size-cells = <0>;
61+
62+
backlight@31 {
63+
status = "okay";
64+
compatible = "richtek,rt8555-backlight";
65+
gpio = <&msmgpio 69 GPIO_ACTIVE_HIGH>;
66+
reg = <0x31>;
67+
};
68+
};
69+
5070
reg_vdd_tsp: regulator-vdd-tsp {
5171
compatible = "regulator-fixed";
5272
regulator-name = "vdd_tsp";
@@ -315,6 +335,22 @@
315335
bias-disable;
316336
};
317337

338+
bl_en_default: reg-lcd-en-default {
339+
pins = "gpio69";
340+
function = "gpio";
341+
342+
drive-strength = <2>;
343+
bias-disable;
344+
};
345+
346+
bl_i2c_default: muic-i2c-default {
347+
pins = "gpio24", "gpio25";
348+
function = "gpio";
349+
350+
drive-strength = <2>;
351+
bias-disable;
352+
};
353+
318354
gpio_keys_default: gpio-keys-default {
319355
pins = "gpio107", "gpio109";
320356
function = "gpio";

0 commit comments

Comments
 (0)