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 Jan 17, 2022
1 parent 70c5702 commit 8678ba7
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions arch/arm64/boot/dts/qcom/apq8016-samsung-gtelwifiue.dts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,26 @@
};
};

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>;

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

reg_vdd_tsp: regulator-vdd-tsp {
compatible = "regulator-fixed";
regulator-name = "vdd_tsp";
Expand Down Expand Up @@ -315,6 +335,22 @@
bias-disable;
};

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

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

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

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

gpio_keys_default: gpio-keys-default {
pins = "gpio107", "gpio109";
function = "gpio";
Expand Down

0 comments on commit 8678ba7

Please sign in to comment.