arm64: dts: qcom: sm6125-seine: Configure MDSS, DSI and panel
authorMarijn Suijten <marijn.suijten@somainline.org>
Sun, 23 Jul 2023 16:08:55 +0000 (18:08 +0200)
committerBjorn Andersson <andersson@kernel.org>
Tue, 19 Sep 2023 21:38:14 +0000 (14:38 -0700)
Enable MDSS and DSI, and configure the Samsung SOFEF01-M ams597ut01
6.0" 1080x2520 panel.

Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org>
Link: https://lore.kernel.org/r/20230723-sm6125-dpu-v4-17-a3f287dd6c07@somainline.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/sm6125-sony-xperia-seine-pdx201.dts

index fb4cba004367f16dd414e750d751349fb65894d9..08046f866f60f0bff88d2e7044f80d76a7068555 100644 (file)
        /* Cirrus Logic CS35L41 boosted audio amplifier @ 40 */
 };
 
+&mdss {
+       status = "okay";
+};
+
+&mdss_dsi0 {
+       vdda-supply = <&pm6125_l18>;
+       status = "okay";
+
+       panel@0 {
+               compatible = "samsung,sofef01-m-ams597ut01";
+               reg = <0>;
+
+               reset-gpios = <&tlmm 90 GPIO_ACTIVE_LOW>;
+
+               vddio-supply = <&pm6125_l12>;
+
+               pinctrl-0 = <&mdss_dsi_active &mdss_te_active_sleep>;
+               pinctrl-1 = <&mdss_dsi_sleep &mdss_te_active_sleep>;
+               pinctrl-names = "default", "sleep";
+
+               port {
+                       panel_in: endpoint {
+                               remote-endpoint = <&mdss_dsi0_out>;
+                       };
+               };
+       };
+};
+
+&mdss_dsi0_out {
+       remote-endpoint = <&panel_in>;
+       data-lanes = <0 1 2 3>;
+};
+
+&mdss_dsi0_phy {
+       status = "okay";
+};
+
 &pm6125_adc {
        pinctrl-names = "default";
        pinctrl-0 = <&camera_flash_therm &emmc_ufs_therm &rf_pa1_therm>;
                drive-strength = <2>;
                bias-disable;
        };
+
+       mdss_te_active_sleep: mdss-te-active-sleep-state {
+               pins = "gpio89";
+               function = "mdp_vsync";
+               drive-strength = <2>;
+               bias-pull-down;
+       };
+
+       mdss_dsi_active: mdss-dsi-active-state {
+               pins = "gpio90";
+               function = "gpio";
+               drive-strength = <8>;
+               bias-disable;
+       };
+
+       mdss_dsi_sleep: mdss-dsi-sleep-state {
+               pins = "gpio90";
+               function = "gpio";
+               drive-strength = <2>;
+               bias-pull-down;
+       };
+
 };
 
 &usb3 {