Skip to content

Commit

Permalink
Xarm64: dts: qcom: msm8916-samsung-on7: Add backlight
Browse files Browse the repository at this point in the history
  • Loading branch information
jja2000 committed Jul 11, 2024
1 parent 5f9e1ef commit d0985c5
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 1 deletion.
55 changes: 54 additions & 1 deletion arch/arm64/boot/dts/qcom/msm8916-samsung-on7.dts
Original file line number Diff line number Diff line change
Expand Up @@ -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)>;
Expand Down Expand Up @@ -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";
Expand All @@ -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>;
Expand Down
1 change: 1 addition & 0 deletions arch/arm64/configs/msm8916_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d0985c5

Please sign in to comment.