Skip to content

Commit

Permalink
arm64: dts: qcom: msm8916-samsung-grandmax: Add display panel
Browse files Browse the repository at this point in the history
Signed-off-by: Lin, Meng-Bo <linmengbo0689@protonmail.com>
  • Loading branch information
bolilingmeng89006 committed May 29, 2022
1 parent c2c5007 commit 22ce6a4
Showing 1 changed file with 84 additions and 0 deletions.
84 changes: 84 additions & 0 deletions arch/arm64/boot/dts/qcom/msm8916-samsung-grandmax.dts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,45 @@
/delete-node/ gpio-hall-sensor;
/delete-node/ i2c-tkey;

reg_vlcd_vcc: regulator-vlcd-vcc {
compatible = "regulator-fixed";
regulator-name = "vlcd_vcc";
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;

gpio = <&msmgpio 16 GPIO_ACTIVE_HIGH>;
enable-active-high;

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

reg_vsp: reg-vsp {
compatible = "regulator-fixed";
regulator-name = "reg-vsp";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;

gpio = <&msmgpio 97 GPIO_ACTIVE_HIGH>;
enable-active-high;

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

reg_vsn: reg-vsn {
compatible = "regulator-fixed";
regulator-name = "reg-vsn";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;

gpio = <&msmgpio 120 GPIO_ACTIVE_HIGH>;
enable-active-high;

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

vibrator {
compatible = "gpio-vibrator";
enable-gpios = <&msmgpio 72 GPIO_ACTIVE_HIGH>;
Expand All @@ -34,7 +73,52 @@
};
};

&panel {
compatible = "samsung,s6d2aa0x62-lpm053a250a";

vcc-supply = <&reg_vlcd_vcc>;
vsp-supply = <&reg_vsp>;
vsn-supply = <&reg_vsn>;

backlight-gpios = <&msmgpio 98 GPIO_ACTIVE_HIGH>;

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

&msmgpio {
lcd_bl_en_default: lcd-bl-en-default {
pins = "gpio98";
function = "gpio";

drive-strength = <2>;
bias-disable;
};

lcd_enp_default: lcd-enp-default {
pins = "gpio97";
function = "gpio";

drive-strength = <2>;
bias-disable;
};

lcd_enn_default: lcd-enn-default {
pins = "gpio120";
function = "gpio";

drive-strength = <2>;
bias-disable;
};

lcd_on_default: lcd-on-default {
pins = "gpio16";
function = "gpio";

drive-strength = <2>;
bias-disable;
};

motor_en_default: motor-en-default {
pins = "gpio72";
function = "gpio";
Expand Down

0 comments on commit 22ce6a4

Please sign in to comment.