2022-11-07 08:47:19

by Johan Hovold

[permalink] [raw]
Subject: [PATCH] arm64: dts: qcom: sc8280xp: fix USB MP QMP PHY nodes

Update the USB MP QMP PHY nodes to match the new binding which
specifically includes the missing register regions (e.g. PCS_USB).

Signed-off-by: Johan Hovold <[email protected]>
---

The corresponding binding and driver fixes are now in linux-next so that
the devicetree can be updated. [1]

Note that there's yet no support for the multiport controller in
mainline.

Johan

[1] https://lore.kernel.org/lkml/[email protected]/


arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 62 ++++++++++----------------
1 file changed, 24 insertions(+), 38 deletions(-)

diff --git a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi
index 1b309fa93484..506172206b8a 100644
--- a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi
+++ b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi
@@ -1090,70 +1090,56 @@ usb_2_hsphy3: phy@88ea000 {
status = "disabled";
};

- usb_2_qmpphy0: phy-wrapper@88ef000 {
+ usb_2_qmpphy0: phy@88ef000 {
compatible = "qcom,sc8280xp-qmp-usb3-uni-phy";
- reg = <0 0x088ef000 0 0x1c8>;
- #address-cells = <2>;
- #size-cells = <2>;
- ranges;
+ reg = <0 0x088ef000 0 0x2000>;

clocks = <&gcc GCC_USB3_MP_PHY_AUX_CLK>,
<&rpmhcc RPMH_CXO_CLK>,
<&gcc GCC_USB3_MP0_CLKREF_CLK>,
- <&gcc GCC_USB3_MP_PHY_COM_AUX_CLK>;
- clock-names = "aux", "ref_clk_src", "ref", "com_aux";
+ <&gcc GCC_USB3_MP_PHY_COM_AUX_CLK>,
+ <&gcc GCC_USB3_MP_PHY_PIPE_0_CLK>;
+ clock-names = "aux", "ref_clk_src", "ref", "com_aux",
+ "pipe";

resets = <&gcc GCC_USB3_UNIPHY_MP0_BCR>,
<&gcc GCC_USB3UNIPHY_PHY_MP0_BCR>;
- reset-names = "phy", "common";
+ reset-names = "phy", "phy_phy";

power-domains = <&gcc USB30_MP_GDSC>;

- status = "disabled";
+ #clock-cells = <0>;
+ clock-output-names = "usb2_phy0_pipe_clk";

- usb_2_ssphy0: phy@88efe00 {
- reg = <0 0x088efe00 0 0x160>,
- <0 0x088f0000 0 0x1ec>,
- <0 0x088ef200 0 0x1f0>;
- #phy-cells = <0>;
- #clock-cells = <0>;
- clocks = <&gcc GCC_USB3_MP_PHY_PIPE_0_CLK>;
- clock-names = "pipe0";
- clock-output-names = "usb2_phy0_pipe_clk";
- };
+ #phy-cells = <0>;
+
+ status = "disabled";
};

- usb_2_qmpphy1: phy-wrapper@88f1000 {
+ usb_2_qmpphy1: phy@88f1000 {
compatible = "qcom,sc8280xp-qmp-usb3-uni-phy";
- reg = <0 0x088f1000 0 0x1c8>;
- #address-cells = <2>;
- #size-cells = <2>;
- ranges;
+ reg = <0 0x088f1000 0 0x2000>;

clocks = <&gcc GCC_USB3_MP_PHY_AUX_CLK>,
<&rpmhcc RPMH_CXO_CLK>,
<&gcc GCC_USB3_MP1_CLKREF_CLK>,
- <&gcc GCC_USB3_MP_PHY_COM_AUX_CLK>;
- clock-names = "aux", "ref_clk_src", "ref", "com_aux";
+ <&gcc GCC_USB3_MP_PHY_COM_AUX_CLK>,
+ <&gcc GCC_USB3_MP_PHY_PIPE_1_CLK>;
+ clock-names = "aux", "ref_clk_src", "ref", "com_aux",
+ "pipe";

resets = <&gcc GCC_USB3_UNIPHY_MP1_BCR>,
<&gcc GCC_USB3UNIPHY_PHY_MP1_BCR>;
- reset-names = "phy", "common";
+ reset-names = "phy", "phy_phy";

power-domains = <&gcc USB30_MP_GDSC>;

- status = "disabled";
+ #clock-cells = <0>;
+ clock-output-names = "usb2_phy1_pipe_clk";

- usb_2_ssphy1: phy@88f1e00 {
- reg = <0 0x088f1e00 0 0x160>,
- <0 0x088f2000 0 0x1ec>,
- <0 0x088f1200 0 0x1f0>;
- #phy-cells = <0>;
- #clock-cells = <0>;
- clocks = <&gcc GCC_USB3_MP_PHY_PIPE_1_CLK>;
- clock-names = "pipe0";
- clock-output-names = "usb2_phy1_pipe_clk";
- };
+ #phy-cells = <0>;
+
+ status = "disabled";
};

remoteproc_adsp: remoteproc@3000000 {
--
2.37.4



2022-11-07 16:20:46

by Andrew Halaney

[permalink] [raw]
Subject: Re: [PATCH] arm64: dts: qcom: sc8280xp: fix USB MP QMP PHY nodes

On Mon, Nov 07, 2022 at 09:17:05AM +0100, Johan Hovold wrote:
> Update the USB MP QMP PHY nodes to match the new binding which
> specifically includes the missing register regions (e.g. PCS_USB).
>
> Signed-off-by: Johan Hovold <[email protected]>

Reviewed-by: Andrew Halaney <[email protected]>

Address region matches downstream, and with this change in place
make CHECK_DTBS=y qcom/sa8295p-adp.dtb no longer complains about
the node failing to follow the dt-bindings.

Thanks,
Andrew

> ---
>
> The corresponding binding and driver fixes are now in linux-next so that
> the devicetree can be updated. [1]
>
> Note that there's yet no support for the multiport controller in
> mainline.
>
> Johan
>
> [1] https://lore.kernel.org/lkml/[email protected]/
>
>
> arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 62 ++++++++++----------------
> 1 file changed, 24 insertions(+), 38 deletions(-)
>
> diff --git a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi
> index 1b309fa93484..506172206b8a 100644
> --- a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi
> @@ -1090,70 +1090,56 @@ usb_2_hsphy3: phy@88ea000 {
> status = "disabled";
> };
>
> - usb_2_qmpphy0: phy-wrapper@88ef000 {
> + usb_2_qmpphy0: phy@88ef000 {
> compatible = "qcom,sc8280xp-qmp-usb3-uni-phy";
> - reg = <0 0x088ef000 0 0x1c8>;
> - #address-cells = <2>;
> - #size-cells = <2>;
> - ranges;
> + reg = <0 0x088ef000 0 0x2000>;
>
> clocks = <&gcc GCC_USB3_MP_PHY_AUX_CLK>,
> <&rpmhcc RPMH_CXO_CLK>,
> <&gcc GCC_USB3_MP0_CLKREF_CLK>,
> - <&gcc GCC_USB3_MP_PHY_COM_AUX_CLK>;
> - clock-names = "aux", "ref_clk_src", "ref", "com_aux";
> + <&gcc GCC_USB3_MP_PHY_COM_AUX_CLK>,
> + <&gcc GCC_USB3_MP_PHY_PIPE_0_CLK>;
> + clock-names = "aux", "ref_clk_src", "ref", "com_aux",
> + "pipe";
>
> resets = <&gcc GCC_USB3_UNIPHY_MP0_BCR>,
> <&gcc GCC_USB3UNIPHY_PHY_MP0_BCR>;
> - reset-names = "phy", "common";
> + reset-names = "phy", "phy_phy";
>
> power-domains = <&gcc USB30_MP_GDSC>;
>
> - status = "disabled";
> + #clock-cells = <0>;
> + clock-output-names = "usb2_phy0_pipe_clk";
>
> - usb_2_ssphy0: phy@88efe00 {
> - reg = <0 0x088efe00 0 0x160>,
> - <0 0x088f0000 0 0x1ec>,
> - <0 0x088ef200 0 0x1f0>;
> - #phy-cells = <0>;
> - #clock-cells = <0>;
> - clocks = <&gcc GCC_USB3_MP_PHY_PIPE_0_CLK>;
> - clock-names = "pipe0";
> - clock-output-names = "usb2_phy0_pipe_clk";
> - };
> + #phy-cells = <0>;
> +
> + status = "disabled";
> };
>
> - usb_2_qmpphy1: phy-wrapper@88f1000 {
> + usb_2_qmpphy1: phy@88f1000 {
> compatible = "qcom,sc8280xp-qmp-usb3-uni-phy";
> - reg = <0 0x088f1000 0 0x1c8>;
> - #address-cells = <2>;
> - #size-cells = <2>;
> - ranges;
> + reg = <0 0x088f1000 0 0x2000>;
>
> clocks = <&gcc GCC_USB3_MP_PHY_AUX_CLK>,
> <&rpmhcc RPMH_CXO_CLK>,
> <&gcc GCC_USB3_MP1_CLKREF_CLK>,
> - <&gcc GCC_USB3_MP_PHY_COM_AUX_CLK>;
> - clock-names = "aux", "ref_clk_src", "ref", "com_aux";
> + <&gcc GCC_USB3_MP_PHY_COM_AUX_CLK>,
> + <&gcc GCC_USB3_MP_PHY_PIPE_1_CLK>;
> + clock-names = "aux", "ref_clk_src", "ref", "com_aux",
> + "pipe";
>
> resets = <&gcc GCC_USB3_UNIPHY_MP1_BCR>,
> <&gcc GCC_USB3UNIPHY_PHY_MP1_BCR>;
> - reset-names = "phy", "common";
> + reset-names = "phy", "phy_phy";
>
> power-domains = <&gcc USB30_MP_GDSC>;
>
> - status = "disabled";
> + #clock-cells = <0>;
> + clock-output-names = "usb2_phy1_pipe_clk";
>
> - usb_2_ssphy1: phy@88f1e00 {
> - reg = <0 0x088f1e00 0 0x160>,
> - <0 0x088f2000 0 0x1ec>,
> - <0 0x088f1200 0 0x1f0>;
> - #phy-cells = <0>;
> - #clock-cells = <0>;
> - clocks = <&gcc GCC_USB3_MP_PHY_PIPE_1_CLK>;
> - clock-names = "pipe0";
> - clock-output-names = "usb2_phy1_pipe_clk";
> - };
> + #phy-cells = <0>;
> +
> + status = "disabled";
> };
>
> remoteproc_adsp: remoteproc@3000000 {
> --
> 2.37.4
>


2022-11-08 01:54:34

by Bjorn Andersson

[permalink] [raw]
Subject: Re: [PATCH] arm64: dts: qcom: sc8280xp: fix USB MP QMP PHY nodes

On Mon, 7 Nov 2022 09:17:05 +0100, Johan Hovold wrote:
> Update the USB MP QMP PHY nodes to match the new binding which
> specifically includes the missing register regions (e.g. PCS_USB).
>
>

Applied, thanks!

[1/1] arm64: dts: qcom: sc8280xp: fix USB MP QMP PHY nodes
commit: 0d0be9d88bf2b1c36146712761ab04623a855647

Best regards,
--
Bjorn Andersson <[email protected]>