Skip to content

Commit

Permalink
arm64: dts: qcom: samsung-gtelwifiue: Add RT8555 backlight driver
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
person4268 committed Jul 3, 2022
1 parent 6556f43 commit 4d95eec
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions arch/arm64/boot/dts/qcom/apq8016-samsung-gtelwifiue.dts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,30 @@
};
};

i2c-bl {
status = "okay";
compatible = "i2c-gpio";
sda-gpios = <&msmgpio 24 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
scl-gpios = <&msmgpio 25 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;

pinctrl-names = "default";
pinctrl-0 = <&bl_i2c_default>;

#address-cells = <1>;
#size-cells = <0>;

rt8555_backlight: backlight@31 {
status = "okay";
compatible = "richtek,rt8555-backlight";
gpio = <&msmgpio 69 GPIO_ACTIVE_HIGH>;
reg = <0x31>;

change-duty = <0>;
current-limit = <0xB6>;
driver-headroom = <1>;
};
};

gpio-keys {
compatible = "gpio-keys";

Expand Down Expand Up @@ -151,6 +175,7 @@
compatible = "samsung,nt51017-b4p096wx5vp09";
reg = <0>;

backlight = <&rt8555_backlight>;
lcd-supply = <&reg_lcd>;

port {
Expand Down Expand Up @@ -373,6 +398,22 @@
bias-disable;
};

bl_en_default: bl-en-default {
pins = "gpio69";
function = "gpio";

drive-strength = <2>;
bias-disable;
};

bl_i2c_default: bl-i2c-default {
pins = "gpio24", "gpio25";
function = "gpio";

drive-strength = <2>;
bias-disable;
};

jack_default: jack-default {
pins = "gpio110";
function = "gpio";
Expand Down

0 comments on commit 4d95eec

Please sign in to comment.