Skip to content

Commit

Permalink
arm64: dts: qcom: msm8916-samsung-j3: Add display panel
Browse files Browse the repository at this point in the history
Add regulators for the panel on J3. Note that l17 is required.

Signed-off-by: "Lin, Meng-Bo" <[email protected]>
  • Loading branch information
bolilingmeng89006 committed Aug 27, 2024
1 parent 273e4f6 commit 78fc2a4
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions arch/arm64/boot/dts/qcom/msm8916-samsung-j3-common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,20 @@
};
};

reg_vdd_lcd_3p0: regulator-vdd-lcd-3p0 {
compatible = "regulator-fixed";
regulator-name = "vdd_lcd_3p0";
regulator-min-microvolt = <3000000>;
regulator-max-microvolt = <3000000>;
vin-supply = <&pm8916_l17>;

gpio = <&tlmm 102 GPIO_ACTIVE_HIGH>;
enable-active-high;

pinctrl-0 = <&lcd_3p0_ldo_en_default>;
pinctrl-names = "default";
};

reg_vdd_tsp_a: regulator-vdd-tsp-a {
compatible = "regulator-fixed";
regulator-name = "vdd_tsp_a";
Expand Down Expand Up @@ -52,11 +66,32 @@
/* GPIO pins vary depending on model variant */
};

&panel {
vdd3-supply = <&pm8916_l6>;
vci-supply = <&reg_vdd_lcd_3p0>;
};

&reg_vdd_lcd_1p8 {
status = "disabled";
};

&reg_vdd_lcd_3p0 {
vin-supply = <&pm8916_l17>;
gpio = <&tlmm 102 GPIO_ACTIVE_HIGH>;
};

&touchscreen {
vdd-supply = <&reg_vdd_tsp_a>;
};

&tlmm {
lcd_3p0_ldo_en_default: lcd-3p0-ldo-en-default-state {
pins = "gpio102";
function = "gpio";
drive-strength = <2>;
bias-disable;
};

tsp_ldo_en_default: tsp-ldo-en-default-state {
pins = "gpio16";
function = "gpio";
Expand Down

0 comments on commit 78fc2a4

Please sign in to comment.