From d0985c5c833ed3674c7de5b4c290058c8c2c7cbc Mon Sep 17 00:00:00 2001 From: Jasper Korten Date: Thu, 10 Mar 2022 14:35:22 +0100 Subject: [PATCH] Xarm64: dts: qcom: msm8916-samsung-on7: Add backlight --- .../boot/dts/qcom/msm8916-samsung-on7.dts | 55 ++++++++++++++++++- arch/arm64/configs/msm8916_defconfig | 1 + 2 files changed, 55 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-on7.dts b/arch/arm64/boot/dts/qcom/msm8916-samsung-on7.dts index 1fcea2c25db265..946b0b4dbda954 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-samsung-on7.dts +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-on7.dts @@ -50,6 +50,51 @@ }; }; + i2c-bl { + compatible = "i2c-gpio"; + sda-gpios = <&msmgpio 101 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; + scl-gpios = <&msmgpio 102 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; + + pinctrl-names = "default"; + pinctrl-0 = <&bl_i2c_default>; + + #address-cells = <1>; + #size-cells = <0>; + + lm3632@11 { + compatible = "ti,lm3632"; + reg = <0x11>; + + enable-gpios = <&msmgpio 98 GPIO_ACTIVE_HIGH>; + + regulators { + compatible = "ti,lm363x-regulator"; + + enable-gpios = <&msmgpio 97 GPIO_ACTIVE_HIGH>, + <&msmgpio 120 GPIO_ACTIVE_HIGH>; + + vboost { + regulator-name = "lcd_boost"; + regulator-min-microvolt = <6000000>; + regulator-max-microvolt = <6000000>; + regulator-always-on; + }; + + vpos { + regulator-name = "lcd_vpos"; + regulator-min-microvolt = <5500000>; + regulator-max-microvolt = <5500000>; + }; + + vneg { + regulator-name = "lcd_vneg"; + regulator-min-microvolt = <5500000>; + regulator-max-microvolt = <5500000>; + }; + }; + }; + }; + i2c-muic { compatible = "i2c-gpio"; sda-gpios = <&tlmm 105 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; @@ -184,6 +229,14 @@ bias-disable; }; + bl_i2c_default: bl-i2c-default { + pins = "gpio101", "gpio102"; + function = "gpio"; + + drive-strength = <2>; + bias-disable; + }; + mdss { mdss_default: mdss-default { pins = "gpio25"; @@ -201,7 +254,7 @@ }; }; - muic_i2c_default: muic-i2c-default { + muic_i2c_default: muic-i2c-default-state { pins = "gpio105", "gpio106"; function = "gpio"; drive-strength = <2>; diff --git a/arch/arm64/configs/msm8916_defconfig b/arch/arm64/configs/msm8916_defconfig index c98d8e6dfcf72a..97a136a8a17310 100644 --- a/arch/arm64/configs/msm8916_defconfig +++ b/arch/arm64/configs/msm8916_defconfig @@ -254,6 +254,7 @@ CONFIG_QCOM_WDT=y CONFIG_PM8916_WATCHDOG=y CONFIG_MFD_SPMI_PMIC=y CONFIG_MFD_RT5033=m +CONFIG_MFD_TI_LMU=m CONFIG_REGULATOR_FIXED_VOLTAGE=y CONFIG_REGULATOR_QCOM_SMD_RPM=y CONFIG_REGULATOR_QCOM_SPMI=y