From 4d95eec98910608613bab0b77de68869fde42c78 Mon Sep 17 00:00:00 2001 From: Michael Abood Date: Fri, 1 Jul 2022 14:01:05 -0400 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 | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/apq8016-samsung-gtelwifiue.dts b/arch/arm64/boot/dts/qcom/apq8016-samsung-gtelwifiue.dts index 1a4d28f95a5a1e..30576242a35add 100644 --- a/arch/arm64/boot/dts/qcom/apq8016-samsung-gtelwifiue.dts +++ b/arch/arm64/boot/dts/qcom/apq8016-samsung-gtelwifiue.dts @@ -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"; @@ -151,6 +175,7 @@ compatible = "samsung,nt51017-b4p096wx5vp09"; reg = <0>; + backlight = <&rt8555_backlight>; lcd-supply = <®_lcd>; port { @@ -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";