]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
arm64: dts: qcom: msm8998: add HDMI GPIOs
authorMarc Gonzalez <mgonzalez@freebox.fr>
Wed, 24 Jul 2024 15:01:38 +0000 (17:01 +0200)
committerBjorn Andersson <andersson@kernel.org>
Thu, 3 Oct 2024 02:45:47 +0000 (21:45 -0500)
MSM8998 GPIO pin controller reference design defines:

- CEC: pin 31
- DDC: pin 32,33
- HPD: pin 34

Downstream vendor code for reference:

https://git.codelinaro.org/clo/la/kernel/msm-4.4/-/blob/caf_migration/kernel.lnx.4.4.r38-rel/arch/arm/boot/dts/qcom/msm8998-pinctrl.dtsi#L2324-2400

mdss_hdmi_{cec,ddc,hpd}_{active,suspend}

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Marc Gonzalez <mgonzalez@freebox.fr>
Link: https://lore.kernel.org/r/20240724-hdmi-tx-v7-5-e44a20553464@freebox.fr
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/msm8998.dtsi

index 9aa9c5cee355b2818e31b867cf335637600b3dd5..80da334e9982df27edfe1f960807179580d1e02d 100644 (file)
                                drive-strength = <6>;
                                bias-disable;
                        };
+
+                       hdmi_cec_default: hdmi-cec-default-state {
+                               pins = "gpio31";
+                               function = "hdmi_cec";
+                               drive-strength = <2>;
+                               bias-pull-up;
+                       };
+
+                       hdmi_ddc_default: hdmi-ddc-default-state {
+                               pins = "gpio32", "gpio33";
+                               function = "hdmi_ddc";
+                               drive-strength = <2>;
+                               bias-pull-up;
+                       };
+
+                       hdmi_hpd_default: hdmi-hpd-default-state {
+                               pins = "gpio34";
+                               function = "hdmi_hot";
+                               drive-strength = <16>;
+                               bias-pull-down;
+                       };
+
+                       hdmi_hpd_sleep: hdmi-hpd-sleep-state {
+                               pins = "gpio34";
+                               function = "hdmi_hot";
+                               drive-strength = <2>;
+                               bias-pull-down;
+                       };
                };
 
                remoteproc_mss: remoteproc@4080000 {