From: Konrad Dybcio <konrad.dybcio@linaro.org>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Bjorn Andersson <andersson@kernel.org>,
Andy Gross <agross@kernel.org>
Cc: Marijn Suijten <marijn.suijten@somainline.org>,
linux-usb@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org,
Konrad Dybcio <konrad.dybcio@linaro.org>
Subject: [PATCH 3/4] arm64: dts: qcom: sm8350-sagami: Hook up USB-C Display Port
Date: Tue, 21 Mar 2023 23:12:30 +0100 [thread overview]
Message-ID: <20230321-topic-sagami_dp-v1-3-340c8bce4276@linaro.org> (raw)
In-Reply-To: <20230321-topic-sagami_dp-v1-0-340c8bce4276@linaro.org>
Sagami devices feature Display Port on their USB-C port. Add the
necessary nodes to support it.
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
.../boot/dts/qcom/sm8350-sony-xperia-sagami.dtsi | 72 ++++++++++++++++++++++
1 file changed, 72 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sm8350-sony-xperia-sagami.dtsi b/arch/arm64/boot/dts/qcom/sm8350-sony-xperia-sagami.dtsi
index 21462b6de686..b2baa81baf5e 100644
--- a/arch/arm64/boot/dts/qcom/sm8350-sony-xperia-sagami.dtsi
+++ b/arch/arm64/boot/dts/qcom/sm8350-sony-xperia-sagami.dtsi
@@ -120,6 +120,23 @@ pmic_glink_dwc3_ss_in: endpoint {
remote-endpoint = <&usb_1_dwc3_ss>;
};
};
+
+ port@2 {
+ reg = <2>;
+
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ pmic_glink_dp_in: endpoint@0 {
+ reg = <0>;
+ remote-endpoint = <&mdss_dp_altmode>;
+ };
+
+ pmic_glink_sbu_mux_out: endpoint@1 {
+ reg = <1>;
+ remote-endpoint = <&sbu_mux_in>;
+ };
+ };
};
};
};
@@ -140,6 +157,26 @@ ramoops@ffc00000 {
};
};
+ sbu-mux {
+ /* TODO: switch to a proper driver when one gets upstreamed */
+ compatible = "onnn,nb7vpq904m-mux", "gpio-sbu-mux";
+
+ enable-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
+ select-gpios = <&tlmm 55 GPIO_ACTIVE_HIGH>;
+ svid = /bits/ 16 <0xff01>;
+
+ mode-switch;
+ orientation-switch;
+
+ pinctrl-0 = <&sbu_sw_oe &sbu_sw_sel>;
+
+ port {
+ sbu_mux_in: endpoint {
+ remote-endpoint = <&pmic_glink_sbu_mux_out>;
+ };
+ };
+ };
+
vph_pwr: vph-pwr-regulator {
compatible = "regulator-fixed";
regulator-name = "vph_pwr";
@@ -595,6 +632,25 @@ &ipa {
status = "okay";
};
+&mdss {
+ status = "okay";
+};
+
+&mdss_dp {
+ data-lanes = <0 1 2 3>;
+ status = "okay";
+
+ ports {
+ port@1 {
+ reg = <1>;
+
+ mdss_dp_altmode: endpoint {
+ remote-endpoint = <&pmic_glink_dp_in>;
+ };
+ };
+ };
+};
+
&mpss {
status = "okay";
firmware-name = "qcom/sm8350/Sony/sagami/modem.mbn";
@@ -916,6 +972,22 @@ ts_int_default: ts-int-default-state {
input-enable;
};
+ sbu_sw_oe: sbu-sw-oe-state {
+ pins = "gpio54";
+ function = "gpio";
+ drive-strength = <2>;
+ bias-disable;
+ output-low;
+ };
+
+ sbu_sw_sel: sbu-sw-sel-state {
+ pins = "gpio55";
+ function = "gpio";
+ drive-strength = <2>;
+ bias-disable;
+ output-low;
+ };
+
sdc2_card_det_active: sd-card-det-active-state {
pins = "gpio92";
function = "gpio";
--
2.40.0
next prev parent reply other threads:[~2023-03-21 22:12 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-21 22:12 [PATCH 0/4] Enable DisplayPort over USB-C on SONY Sagami Konrad Dybcio
2023-03-21 22:12 ` [PATCH 1/4] dt-bindings: usb: gpio-sbu-mux: Add OnSemi NB7VPQ904M mux Konrad Dybcio
2023-03-30 15:31 ` Rob Herring
2023-03-30 23:00 ` Konrad Dybcio
2023-03-21 22:12 ` [PATCH 2/4] arm64: dts: qcom: sm8350-sagami: Add PMIC GLINK Konrad Dybcio
2023-03-30 16:33 ` Neil Armstrong
2023-03-21 22:12 ` Konrad Dybcio [this message]
2023-03-21 22:12 ` [PATCH 4/4] arm64: dts: qcom: sm8350-nagara: Unify status property placement Konrad Dybcio
2023-03-30 16:32 ` Neil Armstrong
2023-04-02 15:19 ` Marijn Suijten
2023-04-03 10:17 ` Konrad Dybcio
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230321-topic-sagami_dp-v1-3-340c8bce4276@linaro.org \
--to=konrad.dybcio@linaro.org \
--cc=agross@kernel.org \
--cc=andersson@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=marijn.suijten@somainline.org \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).