* [PATCH 1/6] arm64: dts: qcom: sm8350: add ports subnodes in usb1 qmpphy node
2023-05-03 13:10 [PATCH 0/6] arm64: qcom: sm84[34]50: enable DP altmode on USB-C Connector Neil Armstrong
@ 2023-05-03 13:10 ` Neil Armstrong
2023-05-04 7:38 ` Konrad Dybcio
2023-05-03 13:10 ` [PATCH 2/6] arm64: dts: qcom: sm8450: " Neil Armstrong
` (4 subsequent siblings)
5 siblings, 1 reply; 15+ messages in thread
From: Neil Armstrong @ 2023-05-03 13:10 UTC (permalink / raw)
To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Catalin Marinas, Will Deacon
Cc: linux-arm-msm, devicetree, linux-kernel, linux-arm-kernel,
Neil Armstrong
Add the USB3+DP Combo QMP PHY port subnodes in the SM8350 SoC DTSI
to avoid duplication in the devices DTs.
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
---
arch/arm64/boot/dts/qcom/sm8350.dtsi | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi
index ebcb481571c2..d048f4d35c89 100644
--- a/arch/arm64/boot/dts/qcom/sm8350.dtsi
+++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi
@@ -2149,6 +2149,32 @@ usb_1_qmpphy: phy@88e9000 {
#phy-cells = <1>;
status = "disabled";
+
+ ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ port@0 {
+ reg = <0>;
+
+ usb_1_qmpphy_out: endpoint {
+ };
+ };
+
+ port@1 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ reg = <1>;
+
+ usb_1_qmpphy_usb_ss_in: endpoint@0 {
+ reg = <0>;
+ };
+
+ usb_1_qmpphy_dp_in: endpoint@1 {
+ reg = <1>;
+ };
+ };
+ };
};
usb_2_qmpphy: phy-wrapper@88eb000 {
--
2.34.1
^ permalink raw reply [flat|nested] 15+ messages in thread* Re: [PATCH 1/6] arm64: dts: qcom: sm8350: add ports subnodes in usb1 qmpphy node
2023-05-03 13:10 ` [PATCH 1/6] arm64: dts: qcom: sm8350: add ports subnodes in usb1 qmpphy node Neil Armstrong
@ 2023-05-04 7:38 ` Konrad Dybcio
2023-05-04 12:57 ` Neil Armstrong
0 siblings, 1 reply; 15+ messages in thread
From: Konrad Dybcio @ 2023-05-04 7:38 UTC (permalink / raw)
To: Neil Armstrong, Andy Gross, Bjorn Andersson, Rob Herring,
Krzysztof Kozlowski, Catalin Marinas, Will Deacon
Cc: linux-arm-msm, devicetree, linux-kernel, linux-arm-kernel
On 3.05.2023 15:10, Neil Armstrong wrote:
> Add the USB3+DP Combo QMP PHY port subnodes in the SM8350 SoC DTSI
> to avoid duplication in the devices DTs.
>
> Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
> ---
> arch/arm64/boot/dts/qcom/sm8350.dtsi | 26 ++++++++++++++++++++++++++
> 1 file changed, 26 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi
> index ebcb481571c2..d048f4d35c89 100644
> --- a/arch/arm64/boot/dts/qcom/sm8350.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi
> @@ -2149,6 +2149,32 @@ usb_1_qmpphy: phy@88e9000 {
> #phy-cells = <1>;
>
> status = "disabled";
> +
> + ports {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + port@0 {
> + reg = <0>;
> +
> + usb_1_qmpphy_out: endpoint {
> + };
> + };
> +
> + port@1 {
> + #address-cells = <1>;
> + #size-cells = <0>;
> + reg = <1>;
> +
> + usb_1_qmpphy_usb_ss_in: endpoint@0 {
> + reg = <0>;
> + };
> +
> + usb_1_qmpphy_dp_in: endpoint@1 {
> + reg = <1>;
> + };
Shouldn't dp be a separate port@2?
Konrad
> + };
> + };
> };
>
> usb_2_qmpphy: phy-wrapper@88eb000 {
>
^ permalink raw reply [flat|nested] 15+ messages in thread* Re: [PATCH 1/6] arm64: dts: qcom: sm8350: add ports subnodes in usb1 qmpphy node
2023-05-04 7:38 ` Konrad Dybcio
@ 2023-05-04 12:57 ` Neil Armstrong
2023-05-04 15:39 ` Neil Armstrong
0 siblings, 1 reply; 15+ messages in thread
From: Neil Armstrong @ 2023-05-04 12:57 UTC (permalink / raw)
To: Konrad Dybcio, Andy Gross, Bjorn Andersson, Rob Herring,
Krzysztof Kozlowski, Catalin Marinas, Will Deacon
Cc: linux-arm-msm, devicetree, linux-kernel, linux-arm-kernel
On 04/05/2023 09:38, Konrad Dybcio wrote:
>
>
> On 3.05.2023 15:10, Neil Armstrong wrote:
>> Add the USB3+DP Combo QMP PHY port subnodes in the SM8350 SoC DTSI
>> to avoid duplication in the devices DTs.
>>
>> Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
>> ---
>> arch/arm64/boot/dts/qcom/sm8350.dtsi | 26 ++++++++++++++++++++++++++
>> 1 file changed, 26 insertions(+)
>>
>> diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi
>> index ebcb481571c2..d048f4d35c89 100644
>> --- a/arch/arm64/boot/dts/qcom/sm8350.dtsi
>> +++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi
>> @@ -2149,6 +2149,32 @@ usb_1_qmpphy: phy@88e9000 {
>> #phy-cells = <1>;
>>
>> status = "disabled";
>> +
>> + ports {
>> + #address-cells = <1>;
>> + #size-cells = <0>;
>> +
>> + port@0 {
>> + reg = <0>;
>> +
>> + usb_1_qmpphy_out: endpoint {
>> + };
>> + };
>> +
>> + port@1 {
>> + #address-cells = <1>;
>> + #size-cells = <0>;
>> + reg = <1>;
>> +
>> + usb_1_qmpphy_usb_ss_in: endpoint@0 {
>> + reg = <0>;
>> + };
>> +
>> + usb_1_qmpphy_dp_in: endpoint@1 {
>> + reg = <1>;
>> + };
> Shouldn't dp be a separate port@2?
Probably yes, but it should be the same issue for makena, but on makena
we do not describe the USB SS and HS links separately, but only a single
port for QMP input has been defined in the bindings.
Neil
>
> Konrad
>> + };
>> + };
>> };
>>
>> usb_2_qmpphy: phy-wrapper@88eb000 {
>>
^ permalink raw reply [flat|nested] 15+ messages in thread* Re: [PATCH 1/6] arm64: dts: qcom: sm8350: add ports subnodes in usb1 qmpphy node
2023-05-04 12:57 ` Neil Armstrong
@ 2023-05-04 15:39 ` Neil Armstrong
0 siblings, 0 replies; 15+ messages in thread
From: Neil Armstrong @ 2023-05-04 15:39 UTC (permalink / raw)
To: Konrad Dybcio, Andy Gross, Bjorn Andersson, Rob Herring,
Krzysztof Kozlowski, Catalin Marinas, Will Deacon
Cc: linux-arm-msm, devicetree, linux-kernel, linux-arm-kernel
On 04/05/2023 14:57, Neil Armstrong wrote:
> On 04/05/2023 09:38, Konrad Dybcio wrote:
>>
>>
>> On 3.05.2023 15:10, Neil Armstrong wrote:
>>> Add the USB3+DP Combo QMP PHY port subnodes in the SM8350 SoC DTSI
>>> to avoid duplication in the devices DTs.
>>>
>>> Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
>>> ---
>>> arch/arm64/boot/dts/qcom/sm8350.dtsi | 26 ++++++++++++++++++++++++++
>>> 1 file changed, 26 insertions(+)
>>>
>>> diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi
>>> index ebcb481571c2..d048f4d35c89 100644
>>> --- a/arch/arm64/boot/dts/qcom/sm8350.dtsi
>>> +++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi
>>> @@ -2149,6 +2149,32 @@ usb_1_qmpphy: phy@88e9000 {
>>> #phy-cells = <1>;
>>> status = "disabled";
>>> +
>>> + ports {
>>> + #address-cells = <1>;
>>> + #size-cells = <0>;
>>> +
>>> + port@0 {
>>> + reg = <0>;
>>> +
>>> + usb_1_qmpphy_out: endpoint {
>>> + };
>>> + };
>>> +
>>> + port@1 {
>>> + #address-cells = <1>;
>>> + #size-cells = <0>;
>>> + reg = <1>;
>>> +
>>> + usb_1_qmpphy_usb_ss_in: endpoint@0 {
>>> + reg = <0>;
>>> + };
>>> +
>>> + usb_1_qmpphy_dp_in: endpoint@1 {
>>> + reg = <1>;
>>> + };
>> Shouldn't dp be a separate port@2?
>
> Probably yes, but it should be the same issue for makena, but on makena
> we do not describe the USB SS and HS links separately, but only a single
> port for QMP input has been defined in the bindings.
Forget my comment, there's the 2 ports in the bindings, I was confused
after the bindings reviews...
Neil
>
> Neil
>
>>
>> Konrad
>>> + };
>>> + };
>>> };
>>> usb_2_qmpphy: phy-wrapper@88eb000 {
>>>
>
^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCH 2/6] arm64: dts: qcom: sm8450: add ports subnodes in usb1 qmpphy node
2023-05-03 13:10 [PATCH 0/6] arm64: qcom: sm84[34]50: enable DP altmode on USB-C Connector Neil Armstrong
2023-05-03 13:10 ` [PATCH 1/6] arm64: dts: qcom: sm8350: add ports subnodes in usb1 qmpphy node Neil Armstrong
@ 2023-05-03 13:10 ` Neil Armstrong
2023-05-03 13:10 ` [PATCH 3/6] arm64: dts: qcom: sm8350-hdk: Add QMP & DP to SuperSpeed graph Neil Armstrong
` (3 subsequent siblings)
5 siblings, 0 replies; 15+ messages in thread
From: Neil Armstrong @ 2023-05-03 13:10 UTC (permalink / raw)
To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Catalin Marinas, Will Deacon
Cc: linux-arm-msm, devicetree, linux-kernel, linux-arm-kernel,
Neil Armstrong
Add the USB3+DP Combo QMP PHY port subnodes in the SM8450 SoC DTSI
to avoid duplication in the devices DTs.
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
---
arch/arm64/boot/dts/qcom/sm8450.dtsi | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sm8450.dtsi b/arch/arm64/boot/dts/qcom/sm8450.dtsi
index 595533aeafc4..207afd48788f 100644
--- a/arch/arm64/boot/dts/qcom/sm8450.dtsi
+++ b/arch/arm64/boot/dts/qcom/sm8450.dtsi
@@ -2044,6 +2044,32 @@ usb_1_qmpphy: phy@88e8000 {
#phy-cells = <1>;
status = "disabled";
+
+ ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ port@0 {
+ reg = <0>;
+
+ usb_1_qmpphy_out: endpoint {
+ };
+ };
+
+ port@1 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ reg = <1>;
+
+ usb_1_qmpphy_usb_ss_in: endpoint@0 {
+ reg = <0>;
+ };
+
+ usb_1_qmpphy_dp_in: endpoint@1 {
+ reg = <1>;
+ };
+ };
+ };
};
remoteproc_slpi: remoteproc@2400000 {
--
2.34.1
^ permalink raw reply [flat|nested] 15+ messages in thread* [PATCH 3/6] arm64: dts: qcom: sm8350-hdk: Add QMP & DP to SuperSpeed graph
2023-05-03 13:10 [PATCH 0/6] arm64: qcom: sm84[34]50: enable DP altmode on USB-C Connector Neil Armstrong
2023-05-03 13:10 ` [PATCH 1/6] arm64: dts: qcom: sm8350: add ports subnodes in usb1 qmpphy node Neil Armstrong
2023-05-03 13:10 ` [PATCH 2/6] arm64: dts: qcom: sm8450: " Neil Armstrong
@ 2023-05-03 13:10 ` Neil Armstrong
2023-05-03 16:28 ` Krzysztof Kozlowski
2023-05-04 6:53 ` Konrad Dybcio
2023-05-03 13:10 ` [PATCH 4/6] arm64: dts: qcom: sm8450-hdk: " Neil Armstrong
` (2 subsequent siblings)
5 siblings, 2 replies; 15+ messages in thread
From: Neil Armstrong @ 2023-05-03 13:10 UTC (permalink / raw)
To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Catalin Marinas, Will Deacon
Cc: linux-arm-msm, devicetree, linux-kernel, linux-arm-kernel,
Neil Armstrong
With support for the QMP combo phy to react to USB Type-C switch events,
introduce it as the next hop for the SuperSpeed lanes of the Type-C
connector, and connect the output of the DisplayPort controller
to the QMP combo phy.
This allows the TCPM to perform orientation switching of both USB and
DisplayPort signals.
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
---
arch/arm64/boot/dts/qcom/sm8350-hdk.dts | 74 ++++++++++++++++++++++++++++++++-
1 file changed, 72 insertions(+), 2 deletions(-)
diff --git a/arch/arm64/boot/dts/qcom/sm8350-hdk.dts b/arch/arm64/boot/dts/qcom/sm8350-hdk.dts
index 2ee1b121686a..fa835bdb7408 100644
--- a/arch/arm64/boot/dts/qcom/sm8350-hdk.dts
+++ b/arch/arm64/boot/dts/qcom/sm8350-hdk.dts
@@ -58,7 +58,15 @@ port@1 {
reg = <1>;
pmic_glink_ss_in: endpoint {
- remote-endpoint = <&usb_1_dwc3_ss>;
+ remote-endpoint = <&usb_1_qmpphy_out>;
+ };
+ };
+
+ port@2 {
+ reg = <2>;
+
+ pmic_glink_sbu: endpoint {
+ remote-endpoint = <&fsa4480_sbu_mux>;
};
};
};
@@ -326,6 +334,36 @@ zap-shader {
};
};
+&i2c13 {
+ status = "okay";
+ clock-frequency = <100000>;
+
+ fsa4480@42 {
+ compatible = "fcs,fsa4480";
+ reg = <0x42>;
+
+ interrupts-extended = <&tlmm 2 IRQ_TYPE_LEVEL_LOW>;
+
+ vcc-supply = <&vreg_bob>;
+ mode-switch;
+ orientation-switch;
+ svid = /bits/ 16 <0xff01>;
+
+ ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ port@0 {
+ reg = <0>;
+
+ fsa4480_sbu_mux: endpoint {
+ remote-endpoint = <&pmic_glink_sbu>;
+ };
+ };
+ };
+ };
+};
+
&i2c15 {
clock-frequency = <400000>;
status = "okay";
@@ -370,6 +408,20 @@ &mdss {
status = "okay";
};
+&mdss_dp {
+ status = "okay";
+
+ ports {
+ port@1 {
+ reg = <1>;
+ mdss_dp0_out: endpoint {
+ data-lanes = <0 1>;
+ remote-endpoint = <&usb_1_qmpphy_dp_in>;
+ };
+ };
+ };
+};
+
&mdss_mdp {
status = "okay";
};
@@ -416,6 +468,10 @@ &qupv3_id_0 {
status = "okay";
};
+&qupv3_id_1 {
+ status = "okay";
+};
+
&qupv3_id_2 {
status = "okay";
};
@@ -716,7 +772,7 @@ &usb_1_dwc3_hs {
};
&usb_1_dwc3_ss {
- remote-endpoint = <&pmic_glink_ss_in>;
+ remote-endpoint = <&usb_1_qmpphy_usb_ss_in>;
};
&usb_1_hsphy {
@@ -732,6 +788,20 @@ &usb_1_qmpphy {
vdda-phy-supply = <&vreg_l6b_1p2>;
vdda-pll-supply = <&vreg_l1b_0p88>;
+
+ orientation-switch;
+};
+
+&usb_1_qmpphy_out {
+ remote-endpoint = <&pmic_glink_ss_in>;
+};
+
+&usb_1_qmpphy_usb_ss_in {
+ remote-endpoint = <&usb_1_dwc3_ss>;
+};
+
+&usb_1_qmpphy_dp_in {
+ remote-endpoint = <&mdss_dp0_out>;
};
&usb_2 {
--
2.34.1
^ permalink raw reply [flat|nested] 15+ messages in thread* Re: [PATCH 3/6] arm64: dts: qcom: sm8350-hdk: Add QMP & DP to SuperSpeed graph
2023-05-03 13:10 ` [PATCH 3/6] arm64: dts: qcom: sm8350-hdk: Add QMP & DP to SuperSpeed graph Neil Armstrong
@ 2023-05-03 16:28 ` Krzysztof Kozlowski
2023-05-04 6:53 ` Konrad Dybcio
1 sibling, 0 replies; 15+ messages in thread
From: Krzysztof Kozlowski @ 2023-05-03 16:28 UTC (permalink / raw)
To: Neil Armstrong, Andy Gross, Bjorn Andersson, Konrad Dybcio,
Rob Herring, Krzysztof Kozlowski, Catalin Marinas, Will Deacon
Cc: linux-arm-msm, devicetree, linux-kernel, linux-arm-kernel
On 03/05/2023 15:10, Neil Armstrong wrote:
> With support for the QMP combo phy to react to USB Type-C switch events,
> introduce it as the next hop for the SuperSpeed lanes of the Type-C
> connector, and connect the output of the DisplayPort controller
> to the QMP combo phy.
>
> This allows the TCPM to perform orientation switching of both USB and
> DisplayPort signals.
>
> Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
> ---
> arch/arm64/boot/dts/qcom/sm8350-hdk.dts | 74 ++++++++++++++++++++++++++++++++-
> 1 file changed, 72 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm64/boot/dts/qcom/sm8350-hdk.dts b/arch/arm64/boot/dts/qcom/sm8350-hdk.dts
> index 2ee1b121686a..fa835bdb7408 100644
> --- a/arch/arm64/boot/dts/qcom/sm8350-hdk.dts
> +++ b/arch/arm64/boot/dts/qcom/sm8350-hdk.dts
> @@ -58,7 +58,15 @@ port@1 {
> reg = <1>;
>
> pmic_glink_ss_in: endpoint {
> - remote-endpoint = <&usb_1_dwc3_ss>;
> + remote-endpoint = <&usb_1_qmpphy_out>;
> + };
> + };
> +
> + port@2 {
> + reg = <2>;
> +
> + pmic_glink_sbu: endpoint {
> + remote-endpoint = <&fsa4480_sbu_mux>;
> };
> };
> };
> @@ -326,6 +334,36 @@ zap-shader {
> };
> };
>
> +&i2c13 {
> + status = "okay";
> + clock-frequency = <100000>;
> +
> + fsa4480@42 {
Node names should be generic, so e.g. typec-mux
https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation
> + compatible = "fcs,fsa4480";
> + reg = <0x42>;
> +
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 15+ messages in thread* Re: [PATCH 3/6] arm64: dts: qcom: sm8350-hdk: Add QMP & DP to SuperSpeed graph
2023-05-03 13:10 ` [PATCH 3/6] arm64: dts: qcom: sm8350-hdk: Add QMP & DP to SuperSpeed graph Neil Armstrong
2023-05-03 16:28 ` Krzysztof Kozlowski
@ 2023-05-04 6:53 ` Konrad Dybcio
2023-05-04 12:55 ` Neil Armstrong
1 sibling, 1 reply; 15+ messages in thread
From: Konrad Dybcio @ 2023-05-04 6:53 UTC (permalink / raw)
To: Neil Armstrong, Andy Gross, Bjorn Andersson, Rob Herring,
Krzysztof Kozlowski, Catalin Marinas, Will Deacon
Cc: linux-arm-msm, devicetree, linux-kernel, linux-arm-kernel
On 3.05.2023 15:10, Neil Armstrong wrote:
> With support for the QMP combo phy to react to USB Type-C switch events,
> introduce it as the next hop for the SuperSpeed lanes of the Type-C
> connector, and connect the output of the DisplayPort controller
> to the QMP combo phy.
>
> This allows the TCPM to perform orientation switching of both USB and
> DisplayPort signals.
>
> Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
> ---
> arch/arm64/boot/dts/qcom/sm8350-hdk.dts | 74 ++++++++++++++++++++++++++++++++-
> 1 file changed, 72 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm64/boot/dts/qcom/sm8350-hdk.dts b/arch/arm64/boot/dts/qcom/sm8350-hdk.dts
> index 2ee1b121686a..fa835bdb7408 100644
> --- a/arch/arm64/boot/dts/qcom/sm8350-hdk.dts
> +++ b/arch/arm64/boot/dts/qcom/sm8350-hdk.dts
> @@ -58,7 +58,15 @@ port@1 {
> reg = <1>;
>
> pmic_glink_ss_in: endpoint {
> - remote-endpoint = <&usb_1_dwc3_ss>;
> + remote-endpoint = <&usb_1_qmpphy_out>;
> + };
> + };
> +
> + port@2 {
> + reg = <2>;
> +
> + pmic_glink_sbu: endpoint {
> + remote-endpoint = <&fsa4480_sbu_mux>;
> };
> };
> };
> @@ -326,6 +334,36 @@ zap-shader {
> };
> };
>
> +&i2c13 {
> + status = "okay";
> + clock-frequency = <100000>;
Status last
> +
> + fsa4480@42 {
> + compatible = "fcs,fsa4480";
> + reg = <0x42>;
> +
> + interrupts-extended = <&tlmm 2 IRQ_TYPE_LEVEL_LOW>;
> +
> + vcc-supply = <&vreg_bob>;
> + mode-switch;
> + orientation-switch;
> + svid = /bits/ 16 <0xff01>;
> +
> + ports {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + port@0 {
> + reg = <0>;
> +
> + fsa4480_sbu_mux: endpoint {
> + remote-endpoint = <&pmic_glink_sbu>;
> + };
> + };
> + };
> + };
> +};
> +
> &i2c15 {
> clock-frequency = <400000>;
> status = "okay";
> @@ -370,6 +408,20 @@ &mdss {
> status = "okay";
> };
>
> +&mdss_dp {
> + status = "okay";
> +
> + ports {
> + port@1 {
> + reg = <1>;
missing newline
> + mdss_dp0_out: endpoint {
> + data-lanes = <0 1>;
> + remote-endpoint = <&usb_1_qmpphy_dp_in>;
> + };
> + };
> + };
> +};
> +
> &mdss_mdp {
> status = "okay";
> };
> @@ -416,6 +468,10 @@ &qupv3_id_0 {
> status = "okay";
> };
>
> +&qupv3_id_1 {
> + status = "okay";
> +};
> +
> &qupv3_id_2 {
> status = "okay";
> };
> @@ -716,7 +772,7 @@ &usb_1_dwc3_hs {
> };
>
> &usb_1_dwc3_ss {
> - remote-endpoint = <&pmic_glink_ss_in>;
> + remote-endpoint = <&usb_1_qmpphy_usb_ss_in>;
> };
>
> &usb_1_hsphy {
> @@ -732,6 +788,20 @@ &usb_1_qmpphy {
>
> vdda-phy-supply = <&vreg_l6b_1p2>;
> vdda-pll-supply = <&vreg_l1b_0p88>;
> +
> + orientation-switch;
this is a common property which will/should be ignored if no
usbc is present
> +};
> +
> +&usb_1_qmpphy_out {
> + remote-endpoint = <&pmic_glink_ss_in>;
> +};
> +
> +&usb_1_qmpphy_usb_ss_in {
> + remote-endpoint = <&usb_1_dwc3_ss>;
> +};
> +
> +&usb_1_qmpphy_dp_in {
> + remote-endpoint = <&mdss_dp0_out>;
'd' < 'o' < 'u'
with that fixed
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Konrad
> };
>
> &usb_2 {
>
^ permalink raw reply [flat|nested] 15+ messages in thread* Re: [PATCH 3/6] arm64: dts: qcom: sm8350-hdk: Add QMP & DP to SuperSpeed graph
2023-05-04 6:53 ` Konrad Dybcio
@ 2023-05-04 12:55 ` Neil Armstrong
0 siblings, 0 replies; 15+ messages in thread
From: Neil Armstrong @ 2023-05-04 12:55 UTC (permalink / raw)
To: Konrad Dybcio, Andy Gross, Bjorn Andersson, Rob Herring,
Krzysztof Kozlowski, Catalin Marinas, Will Deacon
Cc: linux-arm-msm, devicetree, linux-kernel, linux-arm-kernel
On 04/05/2023 08:53, Konrad Dybcio wrote:
>
>
> On 3.05.2023 15:10, Neil Armstrong wrote:
>> With support for the QMP combo phy to react to USB Type-C switch events,
>> introduce it as the next hop for the SuperSpeed lanes of the Type-C
>> connector, and connect the output of the DisplayPort controller
>> to the QMP combo phy.
>>
>> This allows the TCPM to perform orientation switching of both USB and
>> DisplayPort signals.
>>
>> Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
>> ---
>> arch/arm64/boot/dts/qcom/sm8350-hdk.dts | 74 ++++++++++++++++++++++++++++++++-
>> 1 file changed, 72 insertions(+), 2 deletions(-)
>>
>> diff --git a/arch/arm64/boot/dts/qcom/sm8350-hdk.dts b/arch/arm64/boot/dts/qcom/sm8350-hdk.dts
>> index 2ee1b121686a..fa835bdb7408 100644
>> --- a/arch/arm64/boot/dts/qcom/sm8350-hdk.dts
>> +++ b/arch/arm64/boot/dts/qcom/sm8350-hdk.dts
>> @@ -58,7 +58,15 @@ port@1 {
>> reg = <1>;
>>
>> pmic_glink_ss_in: endpoint {
>> - remote-endpoint = <&usb_1_dwc3_ss>;
>> + remote-endpoint = <&usb_1_qmpphy_out>;
>> + };
>> + };
>> +
>> + port@2 {
>> + reg = <2>;
>> +
>> + pmic_glink_sbu: endpoint {
>> + remote-endpoint = <&fsa4480_sbu_mux>;
>> };
>> };
>> };
>> @@ -326,6 +334,36 @@ zap-shader {
>> };
>> };
>>
>> +&i2c13 {
>> + status = "okay";
>> + clock-frequency = <100000>;
> Status last
Ack
>
>> +
>> + fsa4480@42 {
>> + compatible = "fcs,fsa4480";
>> + reg = <0x42>;
>> +
>> + interrupts-extended = <&tlmm 2 IRQ_TYPE_LEVEL_LOW>;
>> +
>> + vcc-supply = <&vreg_bob>;
>> + mode-switch;
>> + orientation-switch;
>> + svid = /bits/ 16 <0xff01>;
>> +
>> + ports {
>> + #address-cells = <1>;
>> + #size-cells = <0>;
>> +
>> + port@0 {
>> + reg = <0>;
>> +
>> + fsa4480_sbu_mux: endpoint {
>> + remote-endpoint = <&pmic_glink_sbu>;
>> + };
>> + };
>> + };
>> + };
>> +};
>> +
>> &i2c15 {
>> clock-frequency = <400000>;
>> status = "okay";
>> @@ -370,6 +408,20 @@ &mdss {
>> status = "okay";
>> };
>>
>> +&mdss_dp {
>> + status = "okay";
>> +
>> + ports {
>> + port@1 {
>> + reg = <1>;
> missing newline
>
>> + mdss_dp0_out: endpoint {
>> + data-lanes = <0 1>;
>> + remote-endpoint = <&usb_1_qmpphy_dp_in>;
>> + };
>> + };
>> + };
>> +};
>> +
>> &mdss_mdp {
>> status = "okay";
>> };
>> @@ -416,6 +468,10 @@ &qupv3_id_0 {
>> status = "okay";
>> };
>>
>> +&qupv3_id_1 {
>> + status = "okay";
>> +};
>> +
>> &qupv3_id_2 {
>> status = "okay";
>> };
>> @@ -716,7 +772,7 @@ &usb_1_dwc3_hs {
>> };
>>
>> &usb_1_dwc3_ss {
>> - remote-endpoint = <&pmic_glink_ss_in>;
>> + remote-endpoint = <&usb_1_qmpphy_usb_ss_in>;
>> };
>>
>> &usb_1_hsphy {
>> @@ -732,6 +788,20 @@ &usb_1_qmpphy {
>>
>> vdda-phy-supply = <&vreg_l6b_1p2>;
>> vdda-pll-supply = <&vreg_l1b_0p88>;
>> +
>> + orientation-switch;
> this is a common property which will/should be ignored if no
> usbc is present
So, do you mean it should be in the common dtsi ? I don't see why since
it's only true if there's an USB-C connector
>
>> +};
>> +
>> +&usb_1_qmpphy_out {
>> + remote-endpoint = <&pmic_glink_ss_in>;
>> +};
>> +
>> +&usb_1_qmpphy_usb_ss_in {
>> + remote-endpoint = <&usb_1_dwc3_ss>;
>> +};
>> +
>> +&usb_1_qmpphy_dp_in {
>> + remote-endpoint = <&mdss_dp0_out>;
> 'd' < 'o' < 'u'
Exact...
>
> with that fixed
>
> Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
>
> Konrad
>> };
>>
>> &usb_2 {
>>
^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCH 4/6] arm64: dts: qcom: sm8450-hdk: Add QMP & DP to SuperSpeed graph
2023-05-03 13:10 [PATCH 0/6] arm64: qcom: sm84[34]50: enable DP altmode on USB-C Connector Neil Armstrong
` (2 preceding siblings ...)
2023-05-03 13:10 ` [PATCH 3/6] arm64: dts: qcom: sm8350-hdk: Add QMP & DP to SuperSpeed graph Neil Armstrong
@ 2023-05-03 13:10 ` Neil Armstrong
2023-05-04 6:54 ` Konrad Dybcio
2023-05-03 13:10 ` [PATCH 5/6] arm64: defconfig: enable FSA4480 driver as module Neil Armstrong
2023-05-03 13:10 ` [PATCH 6/6] qcom: pmic_glink: enable altmode for SM8450 Neil Armstrong
5 siblings, 1 reply; 15+ messages in thread
From: Neil Armstrong @ 2023-05-03 13:10 UTC (permalink / raw)
To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Catalin Marinas, Will Deacon
Cc: linux-arm-msm, devicetree, linux-kernel, linux-arm-kernel,
Neil Armstrong
With support for the QMP combo phy to react to USB Type-C switch events,
introduce it as the next hop for the SuperSpeed lanes of the Type-C
connector, and connect the output of the DisplayPort controller
to the QMP combo phy.
This allows the TCPM to perform orientation switching of both USB and
DisplayPort signals.
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
---
arch/arm64/boot/dts/qcom/sm8450-hdk.dts | 71 ++++++++++++++++++++++++++++++++-
1 file changed, 69 insertions(+), 2 deletions(-)
diff --git a/arch/arm64/boot/dts/qcom/sm8450-hdk.dts b/arch/arm64/boot/dts/qcom/sm8450-hdk.dts
index e931545a2cac..52a14ae0321b 100644
--- a/arch/arm64/boot/dts/qcom/sm8450-hdk.dts
+++ b/arch/arm64/boot/dts/qcom/sm8450-hdk.dts
@@ -114,9 +114,18 @@ port@1 {
reg = <1>;
pmic_glink_ss_in: endpoint {
- remote-endpoint = <&usb_1_dwc3_ss>;
+ remote-endpoint = <&usb_1_qmpphy_out>;
};
};
+
+ port@2 {
+ reg = <2>;
+
+ pmic_glink_sbu: endpoint {
+ remote-endpoint = <&fsa4480_sbu_mux>;
+ };
+ };
+
};
};
};
@@ -494,6 +503,36 @@ lt9611_out: endpoint {
};
};
+&i2c5 {
+ status = "okay";
+ clock-frequency = <100000>;
+
+ fsa4480@42 {
+ compatible = "fcs,fsa4480";
+ reg = <0x42>;
+
+ interrupts-extended = <&tlmm 2 IRQ_TYPE_LEVEL_LOW>;
+
+ vcc-supply = <&vreg_bob>;
+ mode-switch;
+ orientation-switch;
+ svid = /bits/ 16 <0xff01>;
+
+ ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ port@0 {
+ reg = <0>;
+
+ fsa4480_sbu_mux: endpoint {
+ remote-endpoint = <&pmic_glink_sbu>;
+ };
+ };
+ };
+ };
+};
+
&mdss {
status = "okay";
};
@@ -513,6 +552,20 @@ &mdss_dsi0_phy {
status = "okay";
};
+&mdss_dp0 {
+ status = "okay";
+
+ ports {
+ port@1 {
+ reg = <1>;
+ mdss_dp0_out: endpoint {
+ data-lanes = <0 1>;
+ remote-endpoint = <&usb_1_qmpphy_dp_in>;
+ };
+ };
+ };
+};
+
&mdss_mdp {
status = "okay";
};
@@ -766,7 +819,7 @@ &usb_1_dwc3_hs {
};
&usb_1_dwc3_ss {
- remote-endpoint = <&pmic_glink_ss_in>;
+ remote-endpoint = <&usb_1_qmpphy_usb_ss_in>;
};
&usb_1_hsphy {
@@ -782,6 +835,20 @@ &usb_1_qmpphy {
vdda-phy-supply = <&vreg_l6b_1p2>;
vdda-pll-supply = <&vreg_l1b_0p91>;
+
+ orientation-switch;
+};
+
+&usb_1_qmpphy_out {
+ remote-endpoint = <&pmic_glink_ss_in>;
+};
+
+&usb_1_qmpphy_usb_ss_in {
+ remote-endpoint = <&usb_1_dwc3_ss>;
+};
+
+&usb_1_qmpphy_dp_in {
+ remote-endpoint = <&mdss_dp0_out>;
};
&vamacro {
--
2.34.1
^ permalink raw reply [flat|nested] 15+ messages in thread* Re: [PATCH 4/6] arm64: dts: qcom: sm8450-hdk: Add QMP & DP to SuperSpeed graph
2023-05-03 13:10 ` [PATCH 4/6] arm64: dts: qcom: sm8450-hdk: " Neil Armstrong
@ 2023-05-04 6:54 ` Konrad Dybcio
0 siblings, 0 replies; 15+ messages in thread
From: Konrad Dybcio @ 2023-05-04 6:54 UTC (permalink / raw)
To: Neil Armstrong, Andy Gross, Bjorn Andersson, Rob Herring,
Krzysztof Kozlowski, Catalin Marinas, Will Deacon
Cc: linux-arm-msm, devicetree, linux-kernel, linux-arm-kernel
On 3.05.2023 15:10, Neil Armstrong wrote:
> With support for the QMP combo phy to react to USB Type-C switch events,
> introduce it as the next hop for the SuperSpeed lanes of the Type-C
> connector, and connect the output of the DisplayPort controller
> to the QMP combo phy.
>
> This allows the TCPM to perform orientation switching of both USB and
> DisplayPort signals.
>
> Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
> ---
same comments as p3
Konrad
> arch/arm64/boot/dts/qcom/sm8450-hdk.dts | 71 ++++++++++++++++++++++++++++++++-
> 1 file changed, 69 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm64/boot/dts/qcom/sm8450-hdk.dts b/arch/arm64/boot/dts/qcom/sm8450-hdk.dts
> index e931545a2cac..52a14ae0321b 100644
> --- a/arch/arm64/boot/dts/qcom/sm8450-hdk.dts
> +++ b/arch/arm64/boot/dts/qcom/sm8450-hdk.dts
> @@ -114,9 +114,18 @@ port@1 {
> reg = <1>;
>
> pmic_glink_ss_in: endpoint {
> - remote-endpoint = <&usb_1_dwc3_ss>;
> + remote-endpoint = <&usb_1_qmpphy_out>;
> };
> };
> +
> + port@2 {
> + reg = <2>;
> +
> + pmic_glink_sbu: endpoint {
> + remote-endpoint = <&fsa4480_sbu_mux>;
> + };
> + };
> +
> };
> };
> };
> @@ -494,6 +503,36 @@ lt9611_out: endpoint {
> };
> };
>
> +&i2c5 {
> + status = "okay";
> + clock-frequency = <100000>;
> +
> + fsa4480@42 {
> + compatible = "fcs,fsa4480";
> + reg = <0x42>;
> +
> + interrupts-extended = <&tlmm 2 IRQ_TYPE_LEVEL_LOW>;
> +
> + vcc-supply = <&vreg_bob>;
> + mode-switch;
> + orientation-switch;
> + svid = /bits/ 16 <0xff01>;
> +
> + ports {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + port@0 {
> + reg = <0>;
> +
> + fsa4480_sbu_mux: endpoint {
> + remote-endpoint = <&pmic_glink_sbu>;
> + };
> + };
> + };
> + };
> +};
> +
> &mdss {
> status = "okay";
> };
> @@ -513,6 +552,20 @@ &mdss_dsi0_phy {
> status = "okay";
> };
>
> +&mdss_dp0 {
> + status = "okay";
> +
> + ports {
> + port@1 {
> + reg = <1>;
> + mdss_dp0_out: endpoint {
> + data-lanes = <0 1>;
> + remote-endpoint = <&usb_1_qmpphy_dp_in>;
> + };
> + };
> + };
> +};
> +
> &mdss_mdp {
> status = "okay";
> };
> @@ -766,7 +819,7 @@ &usb_1_dwc3_hs {
> };
>
> &usb_1_dwc3_ss {
> - remote-endpoint = <&pmic_glink_ss_in>;
> + remote-endpoint = <&usb_1_qmpphy_usb_ss_in>;
> };
>
> &usb_1_hsphy {
> @@ -782,6 +835,20 @@ &usb_1_qmpphy {
>
> vdda-phy-supply = <&vreg_l6b_1p2>;
> vdda-pll-supply = <&vreg_l1b_0p91>;
> +
> + orientation-switch;
> +};
> +
> +&usb_1_qmpphy_out {
> + remote-endpoint = <&pmic_glink_ss_in>;
> +};
> +
> +&usb_1_qmpphy_usb_ss_in {
> + remote-endpoint = <&usb_1_dwc3_ss>;
> +};
> +
> +&usb_1_qmpphy_dp_in {
> + remote-endpoint = <&mdss_dp0_out>;
> };
>
> &vamacro {
>
^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCH 5/6] arm64: defconfig: enable FSA4480 driver as module
2023-05-03 13:10 [PATCH 0/6] arm64: qcom: sm84[34]50: enable DP altmode on USB-C Connector Neil Armstrong
` (3 preceding siblings ...)
2023-05-03 13:10 ` [PATCH 4/6] arm64: dts: qcom: sm8450-hdk: " Neil Armstrong
@ 2023-05-03 13:10 ` Neil Armstrong
2023-05-03 16:29 ` Krzysztof Kozlowski
2023-05-03 13:10 ` [PATCH 6/6] qcom: pmic_glink: enable altmode for SM8450 Neil Armstrong
5 siblings, 1 reply; 15+ messages in thread
From: Neil Armstrong @ 2023-05-03 13:10 UTC (permalink / raw)
To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Catalin Marinas, Will Deacon
Cc: linux-arm-msm, devicetree, linux-kernel, linux-arm-kernel,
Neil Armstrong
Enable the FSA4480 driver as module for HDK8350 and HDK8450
platforms to permit USB-C Altmode support.
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
---
arch/arm64/configs/defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index a24609e14d50..e548bb52260e 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -992,6 +992,7 @@ CONFIG_TYPEC_FUSB302=m
CONFIG_TYPEC_TPS6598X=m
CONFIG_TYPEC_HD3SS3220=m
CONFIG_TYPEC_UCSI=m
+CONFIG_TYPEC_MUX_FSA4480=m
CONFIG_UCSI_CCG=m
CONFIG_TYPEC_MUX_GPIO_SBU=m
CONFIG_MMC=y
--
2.34.1
^ permalink raw reply [flat|nested] 15+ messages in thread* Re: [PATCH 5/6] arm64: defconfig: enable FSA4480 driver as module
2023-05-03 13:10 ` [PATCH 5/6] arm64: defconfig: enable FSA4480 driver as module Neil Armstrong
@ 2023-05-03 16:29 ` Krzysztof Kozlowski
0 siblings, 0 replies; 15+ messages in thread
From: Krzysztof Kozlowski @ 2023-05-03 16:29 UTC (permalink / raw)
To: Neil Armstrong, Andy Gross, Bjorn Andersson, Konrad Dybcio,
Rob Herring, Krzysztof Kozlowski, Catalin Marinas, Will Deacon
Cc: linux-arm-msm, devicetree, linux-kernel, linux-arm-kernel
On 03/05/2023 15:10, Neil Armstrong wrote:
> Enable the FSA4480 driver as module for HDK8350 and HDK8450
"for Qualcomm HDK8350 and HDK8450"
> platforms to permit USB-C Altmode support.
>
> Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
> ---
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCH 6/6] qcom: pmic_glink: enable altmode for SM8450
2023-05-03 13:10 [PATCH 0/6] arm64: qcom: sm84[34]50: enable DP altmode on USB-C Connector Neil Armstrong
` (4 preceding siblings ...)
2023-05-03 13:10 ` [PATCH 5/6] arm64: defconfig: enable FSA4480 driver as module Neil Armstrong
@ 2023-05-03 13:10 ` Neil Armstrong
5 siblings, 0 replies; 15+ messages in thread
From: Neil Armstrong @ 2023-05-03 13:10 UTC (permalink / raw)
To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Catalin Marinas, Will Deacon
Cc: linux-arm-msm, devicetree, linux-kernel, linux-arm-kernel,
Neil Armstrong
Create a separate bitmask for sm8550 and enable altmode aux driver
for sm8450 platform to enable pmic-glink altmode events.
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
---
drivers/soc/qcom/pmic_glink.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/drivers/soc/qcom/pmic_glink.c b/drivers/soc/qcom/pmic_glink.c
index 8bf95df0a56a..c87056769ebd 100644
--- a/drivers/soc/qcom/pmic_glink.c
+++ b/drivers/soc/qcom/pmic_glink.c
@@ -338,13 +338,17 @@ static int pmic_glink_remove(struct platform_device *pdev)
return 0;
}
-/* Do not handle altmode for now on those platforms */
static const unsigned long pmic_glink_sm8450_client_mask = BIT(PMIC_GLINK_CLIENT_BATT) |
+ BIT(PMIC_GLINK_CLIENT_ALTMODE) |
+ BIT(PMIC_GLINK_CLIENT_UCSI);
+
+/* Do not handle altmode for now on those platforms */
+static const unsigned long pmic_glink_sm8550_client_mask = BIT(PMIC_GLINK_CLIENT_BATT) |
BIT(PMIC_GLINK_CLIENT_UCSI);
static const struct of_device_id pmic_glink_of_match[] = {
{ .compatible = "qcom,sm8450-pmic-glink", .data = &pmic_glink_sm8450_client_mask },
- { .compatible = "qcom,sm8550-pmic-glink", .data = &pmic_glink_sm8450_client_mask },
+ { .compatible = "qcom,sm8550-pmic-glink", .data = &pmic_glink_sm8550_client_mask },
{ .compatible = "qcom,pmic-glink" },
{}
};
--
2.34.1
^ permalink raw reply [flat|nested] 15+ messages in thread