Skip to content

Commit

Permalink
arm64: dts: qcom: msm8939-wingtech-wt82918: Add display
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Słaboń <asaillen@protonmail.com>
  • Loading branch information
archeYR authored and TravMurav committed Jun 21, 2024
1 parent 290e3e7 commit c3483d1
Showing 1 changed file with 82 additions and 0 deletions.
82 changes: 82 additions & 0 deletions arch/arm64/boot/dts/qcom/msm8939-wingtech-wt82918.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,26 @@
&blsp_i2c2 {
status = "okay";

regulator@3e {
compatible = "ti,tps65132";
reg = <0x3e>;

pinctrl-0 = <&reg_lcd_en_default>;
pinctrl-names = "default";

reg_lcd_pos: outp {
regulator-name = "outp";
enable-gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
regulator-active-discharge = <1>;
};

reg_lcd_neg: outn {
regulator-name = "outn";
enable-gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
regulator-active-discharge = <1>;
};
};

accelerometer@68 {
compatible = "invensense,icm20608";
reg = <0x68>;
Expand Down Expand Up @@ -152,6 +172,47 @@
status = "okay";
};

&gpu {
status = "okay";
};

&mdss {
status = "okay";
};

&mdss_dsi0 {
pinctrl-0 = <&mdss_default>;
pinctrl-1 = <&mdss_sleep>;
pinctrl-names = "default", "sleep";
status = "okay";

panel@0 {
compatible = "wingtech,wt82918-panel";
reg = <0>;

backlight = <&backlight>;
vsp-supply = <&reg_lcd_pos>;
vsn-supply = <&reg_lcd_neg>;
reset-gpios = <&tlmm 25 GPIO_ACTIVE_LOW>;

port {
panel_in: endpoint {
remote-endpoint = <&mdss_dsi0_out>;
};
};
};
};

&mdss_dsi0_out {
data-lanes = <0 1 2 3>;
remote-endpoint = <&panel_in>;
};

&mdss_dsi0_phy {
qcom,dsi-phy-regulator-ldo-mode;
status = "okay";
};

&mpss_mem {
reg = <0x0 0x86800000 0x0 0x5500000>;
};
Expand Down Expand Up @@ -245,6 +306,27 @@
bias-disable;
};

mdss_default: mdss-default-state {
pins = "gpio25";
function = "gpio";
drive-strength = <8>;
bias-disable;
};

mdss_sleep: mdss-sleep-state {
pins = "gpio25";
function = "gpio";
drive-strength = <2>;
bias-pull-down;
};

reg_lcd_en_default: reg-lcd-en-default-state {
pins = "gpio0", "gpio1";
function = "gpio";
drive-strength = <2>;
bias-disable;
};

touchscreen_default: touchscreen-default-state {
reset-pins {
pins = "gpio12";
Expand Down

0 comments on commit c3483d1

Please sign in to comment.