arm64: dts: qcom: switch UFS QMP PHY to new style of bindings
v3 cover arm64: dts: qcom: switch UFS QMP PHY to new style of bindings
This is an unmerged excerpt of the previous series that converted UFS QMP PHY to newer style of bindings (single registers region instead of listing each resource separately and having child node for the PHYs).
Changes since v2:
- Rebased on linux-next
- Dropped merged patches
Changes since v1:
- Split large patchset into smaller parts
- Rebased on phy/next
Dmitry Baryshkov (9):
arm64: dts: qcom: msm8996: switch UFS QMP PHY to new style of bindings
arm64: dts: qcom: msm8998: switch UFS QMP PHY to new style of bindings
arm64: dts: qcom: sdm845: switch UFS QMP PHY to new style of bindings
arm64: dts: qcom: sm6115: switch UFS QMP PHY to new style of bindings
arm64: dts: qcom: sm6350: switch UFS QMP PHY to new style of bindings
arm64: dts: qcom: sm8150: switch UFS QMP PHY to new style of bindings
arm64: dts: qcom: sm8250: switch UFS QMP PHY to new style of bindings
arm64: dts: qcom: sm8350: switch UFS QMP PHY to new style of bindings
arm64: dts: qcom: sm8450: switch UFS QMP PHY to new style of bindings
arch/arm64/boot/dts/qcom/msm8996.dtsi | 25 +++++++++--------------- arch/arm64/boot/dts/qcom/msm8998.dtsi | 18 ++++------------- arch/arm64/boot/dts/qcom/sdm845.dtsi | 19 +++++------------- arch/arm64/boot/dts/qcom/sm6115.dtsi | 17 +++++----------- arch/arm64/boot/dts/qcom/sm6350.dtsi | 18 ++++------------- arch/arm64/boot/dts/qcom/sm8150.dtsi | 20 ++++++------------- arch/arm64/boot/dts/qcom/sm8250.dtsi | 20 ++++++------------- arch/arm64/boot/dts/qcom/sm8350.dtsi | 28 ++++++++++----------------- arch/arm64/boot/dts/qcom/sm8450.dtsi | 28 ++++++++++----------------- 9 files changed, 59 insertions(+), 134 deletions(-)
Signature · 1 line
2.39.2
PATCH v3 1/9 arm64: dts: qcom: msm8996: switch UFS QMP PHY to new style of bindings
Change the UFS QMP PHY to use newer style of QMP PHY bindings (single resource region, no per-PHY subnodes).
--- arch/arm64/boot/dts/qcom/msm8996.dtsi | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-)
arch/arm64/boot/dts/qcom/msm8996.dtsi +9 -16
@@ -780,9 +780,9 @@ gcc: clock-controller@300000 { <&pciephy_1>, <&pciephy_2>, <&usb3phy>, - <&ufsphy_lane 0>, - <&ufsphy_lane 1>, - <&ufsphy_lane 2>; + <&ufsphy 0>, + <&ufsphy 1>, + <&ufsphy 2>; clock-names = "cxo", "cxo2", "sleep_clk",
@@ -2047,7 +2047,7 @@ ufshc: ufshc@624000 { reg = <0x00624000 0x2500>; interrupts = <GIC_SPI 265 IRQ_TYPE_LEVEL_HIGH>; - phys = <&ufsphy_lane>; + phys = <&ufsphy>; phy-names = "ufsphy"; power-domains = <&gcc UFS_GDSC>;
@@ -2100,25 +2100,18 @@ ufshc: ufshc@624000 { ufsphy: phy@627000 { compatible = "qcom,msm8996-qmp-ufs-phy"; - reg = <0x00627000 0x1c4>; - #address-cells = <1>; - #size-cells = <1>; - ranges; + reg = <0x00627000 0x1000>; clocks = <&gcc GCC_UFS_CLKREF_CLK>; clock-names = "ref"; resets = <&ufshc 0>; reset-names = "ufsphy"; - status = "disabled"; - ufsphy_lane: phy@627400 { - reg = <0x627400 0x12c>, - <0x627600 0x200>, - <0x627c00 0x1b4>; - #clock-cells = <1>; - #phy-cells = <0>; - }; + #clock-cells = <1>; + #phy-cells = <0>; + + status = "disabled"; }; camss: camss@a34000 {
Signature · 1 line
2.39.2
PATCH v3 2/9 arm64: dts: qcom: msm8998: switch UFS QMP PHY to new style of bindings
In reply to Dmitry BaryshkovChange the UFS QMP PHY to use newer style of QMP PHY bindings (single resource region, no per-PHY subnodes).
--- arch/arm64/boot/dts/qcom/msm8998.dtsi | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-)
arch/arm64/boot/dts/qcom/msm8998.dtsi +4 -14
@@ -1004,7 +1004,7 @@ ufshc: ufshc@1da4000 { compatible = "qcom,msm8998-ufshc", "qcom,ufshc", "jedec,ufs-2.0"; reg = <0x01da4000 0x2500>; interrupts = <GIC_SPI 265 IRQ_TYPE_LEVEL_HIGH>; - phys = <&ufsphy_lanes>; + phys = <&ufsphy>; phy-names = "ufsphy"; lanes-per-direction = <2>; power-domains = <&gcc UFS_GDSC>;
@@ -1045,11 +1045,7 @@ ufshc: ufshc@1da4000 { ufsphy: phy@1da7000 { compatible = "qcom,msm8998-qmp-ufs-phy"; - reg = <0x01da7000 0x18c>; - #address-cells = <1>; - #size-cells = <1>; - status = "disabled"; - ranges; + reg = <0x01da7000 0x1000>; clock-names = "ref",
@@ -1061,14 +1057,8 @@ ufsphy: phy@1da7000 { reset-names = "ufsphy"; resets = <&ufshc 0>; - ufsphy_lanes: phy@1da7400 { - reg = <0x01da7400 0x128>, - <0x01da7600 0x1fc>, - <0x01da7c00 0x1dc>, - <0x01da7800 0x128>, - <0x01da7a00 0x1fc>; - #phy-cells = <0>; - }; + #phy-cells = <0>; + status = "disabled"; }; tcsr_mutex: hwlock@1f40000 {
Signature · 1 line
2.39.2
PATCH v3 3/9 arm64: dts: qcom: sdm845: switch UFS QMP PHY to new style of bindings
In reply to Dmitry BaryshkovChange the UFS QMP PHY to use newer style of QMP PHY bindings (single resource region, no per-PHY subnodes).
--- arch/arm64/boot/dts/qcom/sdm845.dtsi | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-)
arch/arm64/boot/dts/qcom/sdm845.dtsi +5 -14
@@ -2565,7 +2565,7 @@ ufs_mem_hc: ufshc@1d84000 { <0 0x01d90000 0 0x8000>; reg-names = "std", "ice"; interrupts = <GIC_SPI 265 IRQ_TYPE_LEVEL_HIGH>; - phys = <&ufs_mem_phy_lanes>; + phys = <&ufs_mem_phy>; phy-names = "ufsphy"; lanes-per-direction = <2>; power-domains = <&gcc UFS_PHY_GDSC>;
@@ -2637,10 +2637,8 @@ opp-200000000 { ufs_mem_phy: phy@1d87000 { compatible = "qcom,sdm845-qmp-ufs-phy"; - reg = <0 0x01d87000 0 0x18c>; - #address-cells = <2>; - #size-cells = <2>; - ranges; + reg = <0 0x01d87000 0 0x1000>; + clock-names = "ref", "ref_aux"; clocks = <&gcc GCC_UFS_MEM_CLKREF_CLK>,
@@ -2648,16 +2646,9 @@ ufs_mem_phy: phy@1d87000 { resets = <&ufs_mem_hc 0>; reset-names = "ufsphy"; - status = "disabled"; - ufs_mem_phy_lanes: phy@1d87400 { - reg = <0 0x01d87400 0 0x108>, - <0 0x01d87600 0 0x1e0>, - <0 0x01d87c00 0 0x1dc>, - <0 0x01d87800 0 0x108>, - <0 0x01d87a00 0 0x1e0>; - #phy-cells = <0>; - }; + #phy-cells = <0>; + status = "disabled"; }; cryptobam: dma-controller@1dc4000 {
Signature · 1 line
2.39.2
PATCH v3 4/9 arm64: dts: qcom: sm6115: switch UFS QMP PHY to new style of bindings
In reply to Dmitry BaryshkovChange the UFS QMP PHY to use newer style of QMP PHY bindings (single resource region, no per-PHY subnodes).
--- arch/arm64/boot/dts/qcom/sm6115.dtsi | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-)
arch/arm64/boot/dts/qcom/sm6115.dtsi +5 -12
@@ -1006,7 +1006,7 @@ ufs_mem_hc: ufs@4804000 { reg = <0x0 0x04804000 0x0 0x3000>, <0x0 0x04810000 0x0 0x8000>; reg-names = "std", "ice"; interrupts = <GIC_SPI 356 IRQ_TYPE_LEVEL_HIGH>; - phys = <&ufs_mem_phy_lanes>; + phys = <&ufs_mem_phy>; phy-names = "ufsphy"; lanes-per-direction = <1>; #reset-cells = <1>;
@@ -1047,24 +1047,17 @@ ufs_mem_hc: ufs@4804000 { ufs_mem_phy: phy@4807000 { compatible = "qcom,sm6115-qmp-ufs-phy"; - reg = <0x0 0x04807000 0x0 0x1c4>; - #address-cells = <2>; - #size-cells = <2>; - ranges; + reg = <0x0 0x04807000 0x0 0x1000>; clocks = <&gcc GCC_UFS_CLKREF_CLK>, <&gcc GCC_UFS_PHY_PHY_AUX_CLK>; clock-names = "ref", "ref_aux"; resets = <&ufs_mem_hc 0>; reset-names = "ufsphy"; - status = "disabled"; - ufs_mem_phy_lanes: phy@4807400 { - reg = <0x0 0x04807400 0x0 0x098>, - <0x0 0x04807600 0x0 0x130>, - <0x0 0x04807c00 0x0 0x16c>; - #phy-cells = <0>; - }; + #phy-cells = <0>; + + status = "disabled"; }; gpi_dma0: dma-controller@4a00000 {
Signature · 1 line
2.39.2
PATCH v3 5/9 arm64: dts: qcom: sm6350: switch UFS QMP PHY to new style of bindings
In reply to Dmitry BaryshkovChange the UFS QMP PHY to use newer style of QMP PHY bindings (single resource region, no per-PHY subnodes).
--- arch/arm64/boot/dts/qcom/sm6350.dtsi | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-)
arch/arm64/boot/dts/qcom/sm6350.dtsi +4 -14
@@ -1142,7 +1142,7 @@ ufs_mem_hc: ufs@1d84000 { <0 0x01d90000 0 0x8000>; reg-names = "std", "ice"; interrupts = <GIC_SPI 265 IRQ_TYPE_LEVEL_HIGH>; - phys = <&ufs_mem_phy_lanes>; + phys = <&ufs_mem_phy>; phy-names = "ufsphy"; lanes-per-direction = <2>; #reset-cells = <1>;
@@ -1187,10 +1187,7 @@ ufs_mem_hc: ufs@1d84000 { ufs_mem_phy: phy@1d87000 { compatible = "qcom,sm6350-qmp-ufs-phy"; - reg = <0 0x01d87000 0 0x18c>; - #address-cells = <2>; - #size-cells = <2>; - ranges; + reg = <0 0x01d87000 0 0x1000>; clock-names = "ref", "ref_aux";
@@ -1200,16 +1197,9 @@ ufs_mem_phy: phy@1d87000 { resets = <&ufs_mem_hc 0>; reset-names = "ufsphy"; - status = "disabled"; + #phy-cells = <0>; - ufs_mem_phy_lanes: phy@1d87400 { - reg = <0 0x01d87400 0 0x128>, - <0 0x01d87600 0 0x1fc>, - <0 0x01d87c00 0 0x1dc>, - <0 0x01d87800 0 0x128>, - <0 0x01d87a00 0 0x1fc>; - #phy-cells = <0>; - }; + status = "disabled"; }; ipa: ipa@1e40000 {
Signature · 1 line
2.39.2
PATCH v3 6/9 arm64: dts: qcom: sm8150: switch UFS QMP PHY to new style of bindings
In reply to Dmitry BaryshkovChange the UFS QMP PHY to use newer style of QMP PHY bindings (single resource region, no per-PHY subnodes).
--- arch/arm64/boot/dts/qcom/sm8150.dtsi | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-)
arch/arm64/boot/dts/qcom/sm8150.dtsi +6 -14
@@ -2016,7 +2016,7 @@ ufs_mem_hc: ufshc@1d84000 { <0 0x01d90000 0 0x8000>; reg-names = "std", "ice"; interrupts = <GIC_SPI 265 IRQ_TYPE_LEVEL_HIGH>; - phys = <&ufs_mem_phy_lanes>; + phys = <&ufs_mem_phy>; phy-names = "ufsphy"; lanes-per-direction = <2>; #reset-cells = <1>;
@@ -2061,10 +2061,8 @@ ufs_mem_hc: ufshc@1d84000 { ufs_mem_phy: phy@1d87000 { compatible = "qcom,sm8150-qmp-ufs-phy"; - reg = <0 0x01d87000 0 0x1c0>; - #address-cells = <2>; - #size-cells = <2>; - ranges; + reg = <0 0x01d87000 0 0x1000>; + clock-names = "ref", "ref_aux"; clocks = <&gcc GCC_UFS_MEM_CLKREF_CLK>,
@@ -2074,16 +2072,10 @@ ufs_mem_phy: phy@1d87000 { resets = <&ufs_mem_hc 0>; reset-names = "ufsphy"; - status = "disabled"; - ufs_mem_phy_lanes: phy@1d87400 { - reg = <0 0x01d87400 0 0x16c>, - <0 0x01d87600 0 0x200>, - <0 0x01d87c00 0 0x200>, - <0 0x01d87800 0 0x16c>, - <0 0x01d87a00 0 0x200>; - #phy-cells = <0>; - }; + #phy-cells = <0>; + + status = "disabled"; }; cryptobam: dma-controller@1dc4000 {
Signature · 1 line
2.39.2
PATCH v3 7/9 arm64: dts: qcom: sm8250: switch UFS QMP PHY to new style of bindings
In reply to Dmitry BaryshkovChange the UFS QMP PHY to use newer style of QMP PHY bindings (single resource region, no per-PHY subnodes).
--- arch/arm64/boot/dts/qcom/sm8250.dtsi | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-)
arch/arm64/boot/dts/qcom/sm8250.dtsi +6 -14
@@ -2434,7 +2434,7 @@ ufs_mem_hc: ufshc@1d84000 { "jedec,ufs-2.0"; reg = <0 0x01d84000 0 0x3000>; interrupts = <GIC_SPI 265 IRQ_TYPE_LEVEL_HIGH>; - phys = <&ufs_mem_phy_lanes>; + phys = <&ufs_mem_phy>; phy-names = "ufsphy"; lanes-per-direction = <2>; #reset-cells = <1>;
@@ -2503,10 +2503,8 @@ opp-300000000 { ufs_mem_phy: phy@1d87000 { compatible = "qcom,sm8250-qmp-ufs-phy"; - reg = <0 0x01d87000 0 0x1c0>; - #address-cells = <2>; - #size-cells = <2>; - ranges; + reg = <0 0x01d87000 0 0x1000>; + clock-names = "ref", "ref_aux"; clocks = <&rpmhcc RPMH_CXO_CLK>,
@@ -2514,16 +2512,10 @@ ufs_mem_phy: phy@1d87000 { resets = <&ufs_mem_hc 0>; reset-names = "ufsphy"; - status = "disabled"; - ufs_mem_phy_lanes: phy@1d87400 { - reg = <0 0x01d87400 0 0x16c>, - <0 0x01d87600 0 0x200>, - <0 0x01d87c00 0 0x200>, - <0 0x01d87800 0 0x16c>, - <0 0x01d87a00 0 0x200>; - #phy-cells = <0>; - }; + #phy-cells = <0>; + + status = "disabled"; }; cryptobam: dma-controller@1dc4000 {
Signature · 1 line
2.39.2
PATCH v3 8/9 arm64: dts: qcom: sm8350: switch UFS QMP PHY to new style of bindings
In reply to Dmitry BaryshkovChange the UFS QMP PHY to use newer style of QMP PHY bindings (single resource region, no per-PHY subnodes).
--- arch/arm64/boot/dts/qcom/sm8350.dtsi | 28 ++++++++++------------------ 1 file changed, 10 insertions(+), 18 deletions(-)
arch/arm64/boot/dts/qcom/sm8350.dtsi +10 -18
@@ -677,9 +677,9 @@ gcc: clock-controller@100000 { <0>, <0>, <0>, - <&ufs_mem_phy_lanes 0>, - <&ufs_mem_phy_lanes 1>, - <&ufs_mem_phy_lanes 2>, + <&ufs_mem_phy 0>, + <&ufs_mem_phy 1>, + <&ufs_mem_phy 2>, <&usb_1_qmpphy QMP_USB43DP_USB3_PIPE_CLK>, <0>; };
@@ -1679,7 +1679,7 @@ ufs_mem_hc: ufshc@1d84000 { "jedec,ufs-2.0"; reg = <0 0x01d84000 0 0x3000>; interrupts = <GIC_SPI 265 IRQ_TYPE_LEVEL_HIGH>; - phys = <&ufs_mem_phy_lanes>; + phys = <&ufs_mem_phy>; phy-names = "ufsphy"; lanes-per-direction = <2>; #reset-cells = <1>;
@@ -1723,10 +1723,8 @@ ufs_mem_hc: ufshc@1d84000 { ufs_mem_phy: phy@1d87000 { compatible = "qcom,sm8350-qmp-ufs-phy"; - reg = <0 0x01d87000 0 0x1c4>; - #address-cells = <2>; - #size-cells = <2>; - ranges; + reg = <0 0x01d87000 0 0x1000>; + clock-names = "ref", "ref_aux"; clocks = <&rpmhcc RPMH_CXO_CLK>,
@@ -1734,17 +1732,11 @@ ufs_mem_phy: phy@1d87000 { resets = <&ufs_mem_hc 0>; reset-names = "ufsphy"; - status = "disabled"; - ufs_mem_phy_lanes: phy@1d87400 { - reg = <0 0x01d87400 0 0x188>, - <0 0x01d87600 0 0x200>, - <0 0x01d87c00 0 0x200>, - <0 0x01d87800 0 0x188>, - <0 0x01d87a00 0 0x200>; - #clock-cells = <1>; - #phy-cells = <0>; - }; + #clock-cells = <1>; + #phy-cells = <0>; + + status = "disabled"; }; cryptobam: dma-controller@1dc4000 {
Signature · 1 line
2.39.2
PATCH v3 9/9 arm64: dts: qcom: sm8450: switch UFS QMP PHY to new style of bindings
In reply to Dmitry BaryshkovChange the UFS QMP PHY to use newer style of QMP PHY bindings (single resource region, no per-PHY subnodes).
--- arch/arm64/boot/dts/qcom/sm8450.dtsi | 28 ++++++++++------------------ 1 file changed, 10 insertions(+), 18 deletions(-)
arch/arm64/boot/dts/qcom/sm8450.dtsi +10 -18
@@ -754,9 +754,9 @@ gcc: clock-controller@100000 { <&pcie0_phy>, <&pcie1_phy>, <0>, - <&ufs_mem_phy_lanes 0>, - <&ufs_mem_phy_lanes 1>, - <&ufs_mem_phy_lanes 2>, + <&ufs_mem_phy 0>, + <&ufs_mem_phy 1>, + <&ufs_mem_phy 2>, <&usb_1_qmpphy QMP_USB43DP_USB3_PIPE_CLK>; clock-names = "bi_tcxo", "sleep_clk",
@@ -4127,7 +4127,7 @@ ufs_mem_hc: ufshc@1d84000 { "jedec,ufs-2.0"; reg = <0 0x01d84000 0 0x3000>; interrupts = <GIC_SPI 265 IRQ_TYPE_LEVEL_HIGH>; - phys = <&ufs_mem_phy_lanes>; + phys = <&ufs_mem_phy>; phy-names = "ufsphy"; lanes-per-direction = <2>; #reset-cells = <1>;
@@ -4176,10 +4176,8 @@ ufs_mem_hc: ufshc@1d84000 { ufs_mem_phy: phy@1d87000 { compatible = "qcom,sm8450-qmp-ufs-phy"; - reg = <0 0x01d87000 0 0x1c4>; - #address-cells = <2>; - #size-cells = <2>; - ranges; + reg = <0 0x01d87000 0 0x1000>; + clock-names = "ref", "ref_aux", "qref"; clocks = <&rpmhcc RPMH_CXO_CLK>, <&gcc GCC_UFS_PHY_PHY_AUX_CLK>,
@@ -4187,17 +4185,11 @@ ufs_mem_phy: phy@1d87000 { resets = <&ufs_mem_hc 0>; reset-names = "ufsphy"; - status = "disabled"; - ufs_mem_phy_lanes: phy@1d87400 { - reg = <0 0x01d87400 0 0x188>, - <0 0x01d87600 0 0x200>, - <0 0x01d87c00 0 0x200>, - <0 0x01d87800 0 0x188>, - <0 0x01d87a00 0 0x200>; - #clock-cells = <1>; - #phy-cells = <0>; - }; + #clock-cells = <1>; + #phy-cells = <0>; + + status = "disabled"; }; ice: crypto@1d88000 {
Signature · 1 line
2.39.2
Quoted 9 lines · Dmitry Baryshkov
This is an unmerged excerpt of the previous series that converted UFS QMP PHY to newer style of bindings (single registers region instead of listing each resource separately and having child node for the PHYs).
Changes since v2:
- Rebased on linux-next
- Dropped merged patches[...]
Applied, thanks!
[1/9] arm64: dts: qcom: msm8996: switch UFS QMP PHY to new style of bindings
commit: f63ba6aa80f520678f35640b347e75c46bd49612
[2/9] arm64: dts: qcom: msm8998: switch UFS QMP PHY to new style of bindings
commit: 963ff488afe100c8ee9fb80933e342719c6fa63d
[3/9] arm64: dts: qcom: sdm845: switch UFS QMP PHY to new style of bindings
commit: 760baba5e79bae651c59df89d441fad2bd0be4a5
[4/9] arm64: dts: qcom: sm6115: switch UFS QMP PHY to new style of bindings
commit: f6874706e311a8743b678613b083e9bf0e1fd112
[5/9] arm64: dts: qcom: sm6350: switch UFS QMP PHY to new style of bindings
commit: 8e89beb32e1f81807c17af8eb07bd681b9ae229b
[6/9] arm64: dts: qcom: sm8150: switch UFS QMP PHY to new style of bindings
commit: 935c76f7f85912962d72eceabdfa2c38c4c07f02
[7/9] arm64: dts: qcom: sm8250: switch UFS QMP PHY to new style of bindings
commit: ba865bdcc688932980b8e5ec2154eaa33cd4a981
[8/9] arm64: dts: qcom: sm8350: switch UFS QMP PHY to new style of bindings
commit: 002a13ed10136e4f59013adbf097b31d608caf67
[9/9] arm64: dts: qcom: sm8450: switch UFS QMP PHY to new style of bindings
commit: 75390b69d5df49d828d0af278c7f27ed74e33064Best regards,
Signature · 1 line
Bjorn Andersson <[email protected]>