]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: qcom: msm8916-samsung-serranove: Add display panel
authorStephan Gerhold <stephan@gerhold.net>
Thu, 14 Nov 2024 22:07:18 +0000 (23:07 +0100)
committerBjorn Andersson <andersson@kernel.org>
Wed, 8 Jan 2025 23:04:29 +0000 (17:04 -0600)
Add the Samsung S6E88A0-AMS427AP24 panel to the device tree for the
Samsung Galaxy S4 Mini Value Edition. By default the panel displays
everything horizontally flipped, so add "flip-horizontal" to the panel
node to correct that.

Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Co-developed-by: Jakob Hauser <jahau@rocketmail.com>
Signed-off-by: Jakob Hauser <jahau@rocketmail.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20241114220718.12248-1-jahau@rocketmail.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/msm8916-samsung-serranove.dts

index 5ce8f1350abcfaa186c88cae9ca23ef07a87314a..caad1dead2e03c30dd6eb09b457439a9b0446126 100644 (file)
        status = "okay";
 };
 
+&gpu {
+       status = "okay";
+};
+
+&mdss {
+       status = "okay";
+};
+
+&mdss_dsi0 {
+       pinctrl-names = "default", "sleep";
+       pinctrl-0 = <&mdss_default>;
+       pinctrl-1 = <&mdss_sleep>;
+
+       panel@0 {
+               compatible = "samsung,s6e88a0-ams427ap24";
+               reg = <0>;
+
+               vdd3-supply = <&pm8916_l17>;
+               vci-supply = <&pm8916_l6>;
+               reset-gpios = <&tlmm 25 GPIO_ACTIVE_LOW>;
+               flip-horizontal;
+
+               port {
+                       panel_in: endpoint {
+                               remote-endpoint = <&mdss_dsi0_out>;
+                       };
+               };
+       };
+};
+
+&mdss_dsi0_out {
+       data-lanes = <0 1>;
+       remote-endpoint = <&panel_in>;
+};
+
 &mpss_mem {
        reg = <0x0 0x86800000 0x0 0x5a00000>;
 };
        linux,code = <KEY_VOLUMEDOWN>;
 };
 
+&pm8916_rpm_regulators {
+       pm8916_l17: l17 {
+               regulator-min-microvolt = <2850000>;
+               regulator-max-microvolt = <2850000>;
+       };
+};
+
 &pm8916_vib {
        status = "okay";
 };
                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;
+       };
+
        muic_i2c_default: muic-i2c-default-state {
                pins = "gpio105", "gpio106";
                function = "gpio";