From 8678ba7027b763c108dafccbd43b0bf7a4d17b45 Mon Sep 17 00:00:00 2001 From: Michael Abood Date: Mon, 17 Jan 2022 04:23:03 -0500 Subject: [PATCH] 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 --- .../dts/qcom/apq8016-samsung-gtelwifiue.dts | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/apq8016-samsung-gtelwifiue.dts b/arch/arm64/boot/dts/qcom/apq8016-samsung-gtelwifiue.dts index bba56a9eb6ecc3..544587d7be42ac 100644 --- a/arch/arm64/boot/dts/qcom/apq8016-samsung-gtelwifiue.dts +++ b/arch/arm64/boot/dts/qcom/apq8016-samsung-gtelwifiue.dts @@ -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"; @@ -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";