* [PATCH V3 0/4] Add UFS host controller and Phy nodes for sc7280 @ 2023-09-27 8:18 Nitin Rawat 2023-09-27 8:18 ` [PATCH V3 1/4] scsi: ufs: qcom: dt-bindings: Add SC7280 compatible string Nitin Rawat ` (3 more replies) 0 siblings, 4 replies; 15+ messages in thread From: Nitin Rawat @ 2023-09-27 8:18 UTC (permalink / raw) To: agross, andersson, konrad.dybcio, mani, alim.akhtar, bvanassche, avri.altman, robh+dt, krzysztof.kozlowski+dt, conor+dt, cros-qcom-dts-watchers Cc: linux-arm-msm, linux-scsi, linux-kernel, devicetree, Nitin Rawat This patch adds UFS host controller and Phy nodes for Qualcomm sc7280 SOC and sc7280 Board. Changes from v2: - Addressed Konrad comment to update binding qcom,ufs.yaml - Addresses mani/konrad comment to align ufs clock entry in devicetree. Changes from v1: - Addressed mani comment to separate soc and board change. - Addressed mani comment to sort ufs node in ascending order. Nitin Rawat (4): scsi: ufs: qcom: dt-bindings: Add SC7280 compatible string arm64: dts: qcom: sc7280: Add UFS nodes for sc7280 soc arm64: dts: qcom: sc7280: Add UFS nodes for sc7280 IDP board dt-bindings: ufs: qcom: Align clk binding property for Qualcomm UFS .../devicetree/bindings/ufs/qcom,ufs.yaml | 18 +++--- arch/arm64/boot/dts/qcom/sc7280-idp.dtsi | 19 ++++++ arch/arm64/boot/dts/qcom/sc7280.dtsi | 63 +++++++++++++++++++ 3 files changed, 92 insertions(+), 8 deletions(-) -- 2.17.1 ^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCH V3 1/4] scsi: ufs: qcom: dt-bindings: Add SC7280 compatible string 2023-09-27 8:18 [PATCH V3 0/4] Add UFS host controller and Phy nodes for sc7280 Nitin Rawat @ 2023-09-27 8:18 ` Nitin Rawat 2023-09-27 8:18 ` [PATCH V3 2/4] arm64: dts: qcom: sc7280: Add UFS nodes for sc7280 soc Nitin Rawat ` (2 subsequent siblings) 3 siblings, 0 replies; 15+ messages in thread From: Nitin Rawat @ 2023-09-27 8:18 UTC (permalink / raw) To: agross, andersson, konrad.dybcio, mani, alim.akhtar, bvanassche, avri.altman, robh+dt, krzysztof.kozlowski+dt, conor+dt, cros-qcom-dts-watchers Cc: linux-arm-msm, linux-scsi, linux-kernel, devicetree, Nitin Rawat Document the compatible string for the UFS found on SC7280. Signed-off-by: Nitin Rawat <quic_nitirawa@quicinc.com> Acked-by: Manivannan Sadhasivam <mani@kernel.org> --- Documentation/devicetree/bindings/ufs/qcom,ufs.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml b/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml index 462ead5a1cec..802640efa956 100644 --- a/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml +++ b/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml @@ -27,6 +27,7 @@ properties: - qcom,msm8996-ufshc - qcom,msm8998-ufshc - qcom,sa8775p-ufshc + - qcom,sc7280-ufshc - qcom,sc8280xp-ufshc - qcom,sdm845-ufshc - qcom,sm6115-ufshc @@ -117,6 +118,7 @@ allOf: enum: - qcom,msm8998-ufshc - qcom,sa8775p-ufshc + - qcom,sc7280-ufshc - qcom,sc8280xp-ufshc - qcom,sm8250-ufshc - qcom,sm8350-ufshc -- 2.17.1 ^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH V3 2/4] arm64: dts: qcom: sc7280: Add UFS nodes for sc7280 soc 2023-09-27 8:18 [PATCH V3 0/4] Add UFS host controller and Phy nodes for sc7280 Nitin Rawat 2023-09-27 8:18 ` [PATCH V3 1/4] scsi: ufs: qcom: dt-bindings: Add SC7280 compatible string Nitin Rawat @ 2023-09-27 8:18 ` Nitin Rawat 2023-09-27 11:40 ` Konrad Dybcio ` (2 more replies) 2023-09-27 8:18 ` [PATCH V3 3/4] arm64: dts: qcom: sc7280: Add UFS nodes for sc7280 IDP board Nitin Rawat 2023-09-27 8:18 ` [PATCH V3 4/4] dt-bindings: ufs: qcom: Align clk binding property for Qualcomm UFS Nitin Rawat 3 siblings, 3 replies; 15+ messages in thread From: Nitin Rawat @ 2023-09-27 8:18 UTC (permalink / raw) To: agross, andersson, konrad.dybcio, mani, alim.akhtar, bvanassche, avri.altman, robh+dt, krzysztof.kozlowski+dt, conor+dt, cros-qcom-dts-watchers Cc: linux-arm-msm, linux-scsi, linux-kernel, devicetree, Nitin Rawat Add UFS host controller and PHY nodes for sc7280 soc. Signed-off-by: Nitin Rawat <quic_nitirawa@quicinc.com> --- arch/arm64/boot/dts/qcom/sc7280.dtsi | 63 ++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi index 66f1eb83cca7..0b50b8557311 100644 --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi @@ -3353,6 +3353,69 @@ }; }; + ufs_mem_hc: ufs@1d84000 { + compatible = "qcom,sc7280-ufshc", "qcom,ufshc", + "jedec,ufs-2.0"; + reg = <0x0 0x01d84000 0x0 0x3000>; + interrupts = <GIC_SPI 265 IRQ_TYPE_LEVEL_HIGH>; + phys = <&ufs_mem_phy>; + phy-names = "ufsphy"; + lanes-per-direction = <2>; + #reset-cells = <1>; + resets = <&gcc GCC_UFS_PHY_BCR>; + reset-names = "rst"; + + power-domains = <&gcc GCC_UFS_PHY_GDSC>; + required-opps = <&rpmhpd_opp_nom>; + + iommus = <&apps_smmu 0x80 0x0>; + dma-coherent; + + clocks = <&gcc GCC_UFS_PHY_AXI_CLK>, + <&gcc GCC_AGGRE_UFS_PHY_AXI_CLK>, + <&gcc GCC_UFS_PHY_AHB_CLK>, + <&gcc GCC_UFS_PHY_UNIPRO_CORE_CLK>, + <&rpmhcc RPMH_CXO_CLK>, + <&gcc GCC_UFS_PHY_TX_SYMBOL_0_CLK>, + <&gcc GCC_UFS_PHY_RX_SYMBOL_0_CLK>, + <&gcc GCC_UFS_PHY_RX_SYMBOL_1_CLK>; + clock-names = "core_clk", + "bus_aggr_clk", + "iface_clk", + "core_clk_unipro", + "ref_clk", + "tx_lane0_sync_clk", + "rx_lane0_sync_clk", + "rx_lane1_sync_clk"; + freq-table-hz = + <75000000 300000000>, + <0 0>, + <0 0>, + <75000000 300000000>, + <0 0>, + <0 0>, + <0 0>, + <0 0>; + status = "disabled"; + }; + + ufs_mem_phy: phy@1d87000 { + compatible = "qcom,sc7280-qmp-ufs-phy"; + reg = <0x0 0x01d87000 0x0 0xe00>; + clocks = <&rpmhcc RPMH_CXO_CLK>, + <&gcc GCC_UFS_PHY_PHY_AUX_CLK>, + <&gcc GCC_UFS_1_CLKREF_EN>; + clock-names = "ref", "ref_aux", "qref"; + + resets = <&ufs_mem_hc 0>; + reset-names = "ufsphy"; + + #clock-cells = <1>; + #phy-cells = <0>; + + status = "disabled"; + }; + usb_1_hsphy: phy@88e3000 { compatible = "qcom,sc7280-usb-hs-phy", "qcom,usb-snps-hs-7nm-phy"; -- 2.17.1 ^ permalink raw reply related [flat|nested] 15+ messages in thread
* Re: [PATCH V3 2/4] arm64: dts: qcom: sc7280: Add UFS nodes for sc7280 soc 2023-09-27 8:18 ` [PATCH V3 2/4] arm64: dts: qcom: sc7280: Add UFS nodes for sc7280 soc Nitin Rawat @ 2023-09-27 11:40 ` Konrad Dybcio 2023-09-27 12:41 ` Manivannan Sadhasivam 2023-09-29 9:01 ` Luca Weiss 2 siblings, 0 replies; 15+ messages in thread From: Konrad Dybcio @ 2023-09-27 11:40 UTC (permalink / raw) To: Nitin Rawat, agross, andersson, mani, alim.akhtar, bvanassche, avri.altman, robh+dt, krzysztof.kozlowski+dt, conor+dt, cros-qcom-dts-watchers Cc: linux-arm-msm, linux-scsi, linux-kernel, devicetree On 27.09.2023 10:18, Nitin Rawat wrote: > Add UFS host controller and PHY nodes for sc7280 soc. > > Signed-off-by: Nitin Rawat <quic_nitirawa@quicinc.com> > --- Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Tested-by: Konrad Dybcio <konrad.dybcio@linaro.org> # QCM6490 FP5 Konrad ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH V3 2/4] arm64: dts: qcom: sc7280: Add UFS nodes for sc7280 soc 2023-09-27 8:18 ` [PATCH V3 2/4] arm64: dts: qcom: sc7280: Add UFS nodes for sc7280 soc Nitin Rawat 2023-09-27 11:40 ` Konrad Dybcio @ 2023-09-27 12:41 ` Manivannan Sadhasivam 2023-09-29 9:01 ` Luca Weiss 2 siblings, 0 replies; 15+ messages in thread From: Manivannan Sadhasivam @ 2023-09-27 12:41 UTC (permalink / raw) To: Nitin Rawat Cc: agross, andersson, konrad.dybcio, mani, alim.akhtar, bvanassche, avri.altman, robh+dt, krzysztof.kozlowski+dt, conor+dt, cros-qcom-dts-watchers, linux-arm-msm, linux-scsi, linux-kernel, devicetree On Wed, Sep 27, 2023 at 01:48:56PM +0530, Nitin Rawat wrote: > Add UFS host controller and PHY nodes for sc7280 soc. > > Signed-off-by: Nitin Rawat <quic_nitirawa@quicinc.com> > --- > arch/arm64/boot/dts/qcom/sc7280.dtsi | 63 ++++++++++++++++++++++++++++ > 1 file changed, 63 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi > index 66f1eb83cca7..0b50b8557311 100644 > --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi > +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi > @@ -3353,6 +3353,69 @@ > }; > }; > > + ufs_mem_hc: ufs@1d84000 { > + compatible = "qcom,sc7280-ufshc", "qcom,ufshc", > + "jedec,ufs-2.0"; > + reg = <0x0 0x01d84000 0x0 0x3000>; > + interrupts = <GIC_SPI 265 IRQ_TYPE_LEVEL_HIGH>; > + phys = <&ufs_mem_phy>; > + phy-names = "ufsphy"; > + lanes-per-direction = <2>; > + #reset-cells = <1>; > + resets = <&gcc GCC_UFS_PHY_BCR>; > + reset-names = "rst"; > + > + power-domains = <&gcc GCC_UFS_PHY_GDSC>; > + required-opps = <&rpmhpd_opp_nom>; > + > + iommus = <&apps_smmu 0x80 0x0>; > + dma-coherent; > + > + clocks = <&gcc GCC_UFS_PHY_AXI_CLK>, > + <&gcc GCC_AGGRE_UFS_PHY_AXI_CLK>, > + <&gcc GCC_UFS_PHY_AHB_CLK>, > + <&gcc GCC_UFS_PHY_UNIPRO_CORE_CLK>, > + <&rpmhcc RPMH_CXO_CLK>, > + <&gcc GCC_UFS_PHY_TX_SYMBOL_0_CLK>, > + <&gcc GCC_UFS_PHY_RX_SYMBOL_0_CLK>, > + <&gcc GCC_UFS_PHY_RX_SYMBOL_1_CLK>; > + clock-names = "core_clk", > + "bus_aggr_clk", > + "iface_clk", > + "core_clk_unipro", > + "ref_clk", > + "tx_lane0_sync_clk", > + "rx_lane0_sync_clk", > + "rx_lane1_sync_clk"; Please add the interconnect properties since mainline has the support. - Mani -- மணிவண்ணன் சதாசிவம் ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH V3 2/4] arm64: dts: qcom: sc7280: Add UFS nodes for sc7280 soc 2023-09-27 8:18 ` [PATCH V3 2/4] arm64: dts: qcom: sc7280: Add UFS nodes for sc7280 soc Nitin Rawat 2023-09-27 11:40 ` Konrad Dybcio 2023-09-27 12:41 ` Manivannan Sadhasivam @ 2023-09-29 9:01 ` Luca Weiss 2 siblings, 0 replies; 15+ messages in thread From: Luca Weiss @ 2023-09-29 9:01 UTC (permalink / raw) To: Nitin Rawat, agross, andersson, konrad.dybcio, mani, alim.akhtar, bvanassche, avri.altman, robh+dt, krzysztof.kozlowski+dt, conor+dt, cros-qcom-dts-watchers Cc: linux-arm-msm, linux-scsi, linux-kernel, devicetree Hi Nitin, On Wed Sep 27, 2023 at 10:18 AM CEST, Nitin Rawat wrote: > Add UFS host controller and PHY nodes for sc7280 soc. > > Signed-off-by: Nitin Rawat <quic_nitirawa@quicinc.com> > --- > arch/arm64/boot/dts/qcom/sc7280.dtsi | 63 ++++++++++++++++++++++++++++ > 1 file changed, 63 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi > index 66f1eb83cca7..0b50b8557311 100644 > --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi > +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi > @@ -3353,6 +3353,69 @@ > }; > }; I think above you should also have this diff: --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi @@ -868,11 +868,11 @@ gcc: clock-controller@100000 { compatible = "qcom,gcc-sc7280"; reg = <0 0x00100000 0 0x1f0000>; clocks = <&rpmhcc RPMH_CXO_CLK>, <&rpmhcc RPMH_CXO_CLK_A>, <&sleep_clk>, <0>, <&pcie1_lane>, - <0>, <0>, <0>, <0>; + <&ufs_mem_phy 0>, <&ufs_mem_phy 1>, <&ufs_mem_phy 2>, <0>; clock-names = "bi_tcxo", "bi_tcxo_ao", "sleep_clk", "pcie_0_pipe_clk", "pcie_1_pipe_clk", "ufs_phy_rx_symbol_0_clk", "ufs_phy_rx_symbol_1_clk", "ufs_phy_tx_symbol_0_clk", "usb3_phy_wrapper_gcc_usb30_pipe_clk"; > > + ufs_mem_hc: ufs@1d84000 { > + compatible = "qcom,sc7280-ufshc", "qcom,ufshc", > + "jedec,ufs-2.0"; > + reg = <0x0 0x01d84000 0x0 0x3000>; > + interrupts = <GIC_SPI 265 IRQ_TYPE_LEVEL_HIGH>; > + phys = <&ufs_mem_phy>; > + phy-names = "ufsphy"; > + lanes-per-direction = <2>; > + #reset-cells = <1>; > + resets = <&gcc GCC_UFS_PHY_BCR>; > + reset-names = "rst"; > + > + power-domains = <&gcc GCC_UFS_PHY_GDSC>; > + required-opps = <&rpmhpd_opp_nom>; > + > + iommus = <&apps_smmu 0x80 0x0>; > + dma-coherent; > + > + clocks = <&gcc GCC_UFS_PHY_AXI_CLK>, > + <&gcc GCC_AGGRE_UFS_PHY_AXI_CLK>, > + <&gcc GCC_UFS_PHY_AHB_CLK>, > + <&gcc GCC_UFS_PHY_UNIPRO_CORE_CLK>, > + <&rpmhcc RPMH_CXO_CLK>, > + <&gcc GCC_UFS_PHY_TX_SYMBOL_0_CLK>, > + <&gcc GCC_UFS_PHY_RX_SYMBOL_0_CLK>, > + <&gcc GCC_UFS_PHY_RX_SYMBOL_1_CLK>; > + clock-names = "core_clk", > + "bus_aggr_clk", > + "iface_clk", > + "core_clk_unipro", > + "ref_clk", > + "tx_lane0_sync_clk", > + "rx_lane0_sync_clk", > + "rx_lane1_sync_clk"; > + freq-table-hz = > + <75000000 300000000>, > + <0 0>, > + <0 0>, > + <75000000 300000000>, > + <0 0>, > + <0 0>, > + <0 0>, > + <0 0>; > + status = "disabled"; > + }; > + > + ufs_mem_phy: phy@1d87000 { > + compatible = "qcom,sc7280-qmp-ufs-phy"; > + reg = <0x0 0x01d87000 0x0 0xe00>; > + clocks = <&rpmhcc RPMH_CXO_CLK>, > + <&gcc GCC_UFS_PHY_PHY_AUX_CLK>, > + <&gcc GCC_UFS_1_CLKREF_EN>; > + clock-names = "ref", "ref_aux", "qref"; > + > + resets = <&ufs_mem_hc 0>; > + reset-names = "ufsphy"; > + > + #clock-cells = <1>; > + #phy-cells = <0>; > + > + status = "disabled"; > + }; Would you mind adding something like the following at the same time? + ice: crypto@1d88000 { + compatible = "qcom,sc7280-inline-crypto-engine", + "qcom,inline-crypto-engine"; + reg = <0 0x01d88000 0 0x8000>; + clocks = <&gcc GCC_UFS_PHY_ICE_CORE_CLK>; + }; And then link it to the ufs_mem_hc node with qcom,ice = <&ice>; ? Or add it in a followup patch, also fine with me. Other than that, looks pretty similar to the nodes that I have in my own tree which work fine for the most part. Regards Luca > + > usb_1_hsphy: phy@88e3000 { > compatible = "qcom,sc7280-usb-hs-phy", > "qcom,usb-snps-hs-7nm-phy"; > -- > 2.17.1 ^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCH V3 3/4] arm64: dts: qcom: sc7280: Add UFS nodes for sc7280 IDP board 2023-09-27 8:18 [PATCH V3 0/4] Add UFS host controller and Phy nodes for sc7280 Nitin Rawat 2023-09-27 8:18 ` [PATCH V3 1/4] scsi: ufs: qcom: dt-bindings: Add SC7280 compatible string Nitin Rawat 2023-09-27 8:18 ` [PATCH V3 2/4] arm64: dts: qcom: sc7280: Add UFS nodes for sc7280 soc Nitin Rawat @ 2023-09-27 8:18 ` Nitin Rawat 2023-09-27 9:25 ` Konrad Dybcio 2023-09-27 12:43 ` Manivannan Sadhasivam 2023-09-27 8:18 ` [PATCH V3 4/4] dt-bindings: ufs: qcom: Align clk binding property for Qualcomm UFS Nitin Rawat 3 siblings, 2 replies; 15+ messages in thread From: Nitin Rawat @ 2023-09-27 8:18 UTC (permalink / raw) To: agross, andersson, konrad.dybcio, mani, alim.akhtar, bvanassche, avri.altman, robh+dt, krzysztof.kozlowski+dt, conor+dt, cros-qcom-dts-watchers Cc: linux-arm-msm, linux-scsi, linux-kernel, devicetree, Nitin Rawat Add UFS host controller and PHY nodes for sc7280 IDP board. Signed-off-by: Nitin Rawat <quic_nitirawa@quicinc.com> --- arch/arm64/boot/dts/qcom/sc7280-idp.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi b/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi index 2ff549f4dc7a..a0059527d9e4 100644 --- a/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi @@ -499,6 +499,25 @@ status = "okay"; }; +&ufs_mem_hc { + reset-gpios = <&tlmm 175 GPIO_ACTIVE_LOW>; + vcc-supply = <&vreg_l7b_2p9>; + vcc-max-microamp = <800000>; + vccq-supply = <&vreg_l9b_1p2>; + vccq-max-microamp = <900000>; + vccq2-supply = <&vreg_l9b_1p2>; + vccq2-max-microamp = <900000>; + + status = "okay"; +}; + +&ufs_mem_phy { + vdda-phy-supply = <&vreg_l10c_0p8>; + vdda-pll-supply = <&vreg_l6b_1p2>; + + status = "okay"; +}; + &usb_1 { status = "okay"; }; -- 2.17.1 ^ permalink raw reply related [flat|nested] 15+ messages in thread
* Re: [PATCH V3 3/4] arm64: dts: qcom: sc7280: Add UFS nodes for sc7280 IDP board 2023-09-27 8:18 ` [PATCH V3 3/4] arm64: dts: qcom: sc7280: Add UFS nodes for sc7280 IDP board Nitin Rawat @ 2023-09-27 9:25 ` Konrad Dybcio 2023-09-27 10:08 ` Nitin Rawat 2023-09-27 12:43 ` Manivannan Sadhasivam 1 sibling, 1 reply; 15+ messages in thread From: Konrad Dybcio @ 2023-09-27 9:25 UTC (permalink / raw) To: Nitin Rawat, agross, andersson, mani, alim.akhtar, bvanassche, avri.altman, robh+dt, krzysztof.kozlowski+dt, conor+dt, cros-qcom-dts-watchers Cc: linux-arm-msm, linux-scsi, linux-kernel, devicetree On 27.09.2023 10:18, Nitin Rawat wrote: > Add UFS host controller and PHY nodes for sc7280 IDP board. > > Signed-off-by: Nitin Rawat <quic_nitirawa@quicinc.com> > --- > arch/arm64/boot/dts/qcom/sc7280-idp.dtsi | 19 +++++++++++++++++++ > 1 file changed, 19 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi b/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi > index 2ff549f4dc7a..a0059527d9e4 100644 > --- a/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi > +++ b/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi > @@ -499,6 +499,25 @@ > status = "okay"; > }; > > +&ufs_mem_hc { > + reset-gpios = <&tlmm 175 GPIO_ACTIVE_LOW>; > + vcc-supply = <&vreg_l7b_2p9>; > + vcc-max-microamp = <800000>; > + vccq-supply = <&vreg_l9b_1p2>; > + vccq-max-microamp = <900000>; > + vccq2-supply = <&vreg_l9b_1p2>; > + vccq2-max-microamp = <900000>; Were you able to confirm it's correct (see the q in [1]) Konrad [1] https://lore.kernel.org/linux-arm-msm/20230926162042.14180-1-quic_nitirawa@quicinc.com/T/#m72ca82a9145af380ffd37415455d6ef3d4195795 ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH V3 3/4] arm64: dts: qcom: sc7280: Add UFS nodes for sc7280 IDP board 2023-09-27 9:25 ` Konrad Dybcio @ 2023-09-27 10:08 ` Nitin Rawat 0 siblings, 0 replies; 15+ messages in thread From: Nitin Rawat @ 2023-09-27 10:08 UTC (permalink / raw) To: Konrad Dybcio, agross, andersson, mani, alim.akhtar, bvanassche, avri.altman, robh+dt, krzysztof.kozlowski+dt, conor+dt, cros-qcom-dts-watchers Cc: linux-arm-msm, linux-scsi, linux-kernel, devicetree On 9/27/2023 2:55 PM, Konrad Dybcio wrote: > On 27.09.2023 10:18, Nitin Rawat wrote: >> Add UFS host controller and PHY nodes for sc7280 IDP board. >> >> Signed-off-by: Nitin Rawat <quic_nitirawa@quicinc.com> >> --- >> arch/arm64/boot/dts/qcom/sc7280-idp.dtsi | 19 +++++++++++++++++++ >> 1 file changed, 19 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi b/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi >> index 2ff549f4dc7a..a0059527d9e4 100644 >> --- a/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi >> +++ b/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi >> @@ -499,6 +499,25 @@ >> status = "okay"; >> }; >> >> +&ufs_mem_hc { >> + reset-gpios = <&tlmm 175 GPIO_ACTIVE_LOW>; >> + vcc-supply = <&vreg_l7b_2p9>; >> + vcc-max-microamp = <800000>; >> + vccq-supply = <&vreg_l9b_1p2>; >> + vccq-max-microamp = <900000>; >> + vccq2-supply = <&vreg_l9b_1p2>; >> + vccq2-max-microamp = <900000>; > Were you able to confirm it's correct (see the q in [1]) Sorry I missed to reply to your query in my last reply . Yes Kodiak support both UFS2.x and UFS3.x and UFS2.x needs vccq2 . Hence we need that node. > > Konrad > > [1] https://lore.kernel.org/linux-arm-msm/20230926162042.14180-1-quic_nitirawa@quicinc.com/T/#m72ca82a9145af380ffd37415455d6ef3d4195795 ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH V3 3/4] arm64: dts: qcom: sc7280: Add UFS nodes for sc7280 IDP board 2023-09-27 8:18 ` [PATCH V3 3/4] arm64: dts: qcom: sc7280: Add UFS nodes for sc7280 IDP board Nitin Rawat 2023-09-27 9:25 ` Konrad Dybcio @ 2023-09-27 12:43 ` Manivannan Sadhasivam 1 sibling, 0 replies; 15+ messages in thread From: Manivannan Sadhasivam @ 2023-09-27 12:43 UTC (permalink / raw) To: Nitin Rawat Cc: agross, andersson, konrad.dybcio, alim.akhtar, bvanassche, avri.altman, robh+dt, krzysztof.kozlowski+dt, conor+dt, cros-qcom-dts-watchers, linux-arm-msm, linux-scsi, linux-kernel, devicetree On Wed, Sep 27, 2023 at 01:48:57PM +0530, Nitin Rawat wrote: > Add UFS host controller and PHY nodes for sc7280 IDP board. > > Signed-off-by: Nitin Rawat <quic_nitirawa@quicinc.com> Acked-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> - Mani > --- > arch/arm64/boot/dts/qcom/sc7280-idp.dtsi | 19 +++++++++++++++++++ > 1 file changed, 19 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi b/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi > index 2ff549f4dc7a..a0059527d9e4 100644 > --- a/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi > +++ b/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi > @@ -499,6 +499,25 @@ > status = "okay"; > }; > > +&ufs_mem_hc { > + reset-gpios = <&tlmm 175 GPIO_ACTIVE_LOW>; > + vcc-supply = <&vreg_l7b_2p9>; > + vcc-max-microamp = <800000>; > + vccq-supply = <&vreg_l9b_1p2>; > + vccq-max-microamp = <900000>; > + vccq2-supply = <&vreg_l9b_1p2>; > + vccq2-max-microamp = <900000>; > + > + status = "okay"; > +}; > + > +&ufs_mem_phy { > + vdda-phy-supply = <&vreg_l10c_0p8>; > + vdda-pll-supply = <&vreg_l6b_1p2>; > + > + status = "okay"; > +}; > + > &usb_1 { > status = "okay"; > }; > -- > 2.17.1 > -- மணிவண்ணன் சதாசிவம் ^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCH V3 4/4] dt-bindings: ufs: qcom: Align clk binding property for Qualcomm UFS 2023-09-27 8:18 [PATCH V3 0/4] Add UFS host controller and Phy nodes for sc7280 Nitin Rawat ` (2 preceding siblings ...) 2023-09-27 8:18 ` [PATCH V3 3/4] arm64: dts: qcom: sc7280: Add UFS nodes for sc7280 IDP board Nitin Rawat @ 2023-09-27 8:18 ` Nitin Rawat 2023-09-27 8:29 ` Nitin Rawat 3 siblings, 1 reply; 15+ messages in thread From: Nitin Rawat @ 2023-09-27 8:18 UTC (permalink / raw) To: agross, andersson, konrad.dybcio, mani, alim.akhtar, bvanassche, avri.altman, robh+dt, krzysztof.kozlowski+dt, conor+dt, cros-qcom-dts-watchers Cc: linux-arm-msm, linux-scsi, linux-kernel, devicetree, Nitin Rawat Align the binding property for clock such that "clocks" property comes first followed by "clock-names" property. Change-Id: I53282da8eee8ec349d315de7ada56c99bb12b00d Signed-off-by: Nitin Rawat <quic_nitirawa@quicinc.com> --- .../devicetree/bindings/ufs/qcom,ufs.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml b/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml index 802640efa956..d17bdc4e934f 100644 --- a/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml +++ b/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml @@ -295,14 +295,6 @@ examples: <&gem_noc MASTER_APPSS_PROC &config_noc SLAVE_UFS_MEM_CFG>; interconnect-names = "ufs-ddr", "cpu-ufs"; - clock-names = "core_clk", - "bus_aggr_clk", - "iface_clk", - "core_clk_unipro", - "ref_clk", - "tx_lane0_sync_clk", - "rx_lane0_sync_clk", - "rx_lane1_sync_clk"; clocks = <&gcc GCC_UFS_PHY_AXI_CLK>, <&gcc GCC_AGGRE_UFS_PHY_AXI_CLK>, <&gcc GCC_UFS_PHY_AHB_CLK>, @@ -311,6 +303,14 @@ examples: <&gcc GCC_UFS_PHY_TX_SYMBOL_0_CLK>, <&gcc GCC_UFS_PHY_RX_SYMBOL_0_CLK>, <&gcc GCC_UFS_PHY_RX_SYMBOL_1_CLK>; + clock-names = "core_clk", + "bus_aggr_clk", + "iface_clk", + "core_clk_unipro", + "ref_clk", + "tx_lane0_sync_clk", + "rx_lane0_sync_clk", + "rx_lane1_sync_clk"; freq-table-hz = <75000000 300000000>, <0 0>, <0 0>, -- 2.17.1 ^ permalink raw reply related [flat|nested] 15+ messages in thread
* Re: [PATCH V3 4/4] dt-bindings: ufs: qcom: Align clk binding property for Qualcomm UFS 2023-09-27 8:18 ` [PATCH V3 4/4] dt-bindings: ufs: qcom: Align clk binding property for Qualcomm UFS Nitin Rawat @ 2023-09-27 8:29 ` Nitin Rawat 2023-09-27 9:27 ` Konrad Dybcio 0 siblings, 1 reply; 15+ messages in thread From: Nitin Rawat @ 2023-09-27 8:29 UTC (permalink / raw) To: agross, andersson, konrad.dybcio, mani, alim.akhtar, bvanassche, avri.altman, robh+dt, krzysztof.kozlowski+dt, conor+dt, cros-qcom-dts-watchers Cc: linux-arm-msm, linux-scsi, linux-kernel, devicetree Hi , I have reposted this patch by removing the change id. Please ignore this. Regards, Nitin On 9/27/2023 1:48 PM, Nitin Rawat wrote: > Align the binding property for clock such that "clocks" property > comes first followed by "clock-names" property. > > Change-Id: I53282da8eee8ec349d315de7ada56c99bb12b00d > Signed-off-by: Nitin Rawat <quic_nitirawa@quicinc.com> > --- > .../devicetree/bindings/ufs/qcom,ufs.yaml | 16 ++++++++-------- > 1 file changed, 8 insertions(+), 8 deletions(-) > > diff --git a/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml b/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml > index 802640efa956..d17bdc4e934f 100644 > --- a/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml > +++ b/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml > @@ -295,14 +295,6 @@ examples: > <&gem_noc MASTER_APPSS_PROC &config_noc SLAVE_UFS_MEM_CFG>; > interconnect-names = "ufs-ddr", "cpu-ufs"; > > - clock-names = "core_clk", > - "bus_aggr_clk", > - "iface_clk", > - "core_clk_unipro", > - "ref_clk", > - "tx_lane0_sync_clk", > - "rx_lane0_sync_clk", > - "rx_lane1_sync_clk"; > clocks = <&gcc GCC_UFS_PHY_AXI_CLK>, > <&gcc GCC_AGGRE_UFS_PHY_AXI_CLK>, > <&gcc GCC_UFS_PHY_AHB_CLK>, > @@ -311,6 +303,14 @@ examples: > <&gcc GCC_UFS_PHY_TX_SYMBOL_0_CLK>, > <&gcc GCC_UFS_PHY_RX_SYMBOL_0_CLK>, > <&gcc GCC_UFS_PHY_RX_SYMBOL_1_CLK>; > + clock-names = "core_clk", > + "bus_aggr_clk", > + "iface_clk", > + "core_clk_unipro", > + "ref_clk", > + "tx_lane0_sync_clk", > + "rx_lane0_sync_clk", > + "rx_lane1_sync_clk"; > freq-table-hz = <75000000 300000000>, > <0 0>, > <0 0>, ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH V3 4/4] dt-bindings: ufs: qcom: Align clk binding property for Qualcomm UFS 2023-09-27 8:29 ` Nitin Rawat @ 2023-09-27 9:27 ` Konrad Dybcio 0 siblings, 0 replies; 15+ messages in thread From: Konrad Dybcio @ 2023-09-27 9:27 UTC (permalink / raw) To: Nitin Rawat, agross, andersson, mani, alim.akhtar, bvanassche, avri.altman, robh+dt, krzysztof.kozlowski+dt, conor+dt, cros-qcom-dts-watchers Cc: linux-arm-msm, linux-scsi, linux-kernel, devicetree On 27.09.2023 10:29, Nitin Rawat wrote: > Hi , > I have reposted this patch by removing the change id. Please ignore this. > > Regards, > Nitin You resent this in a way that totally breaks threading: * cover letter v3 * patch 1 v3 * patch 2 v3 * patch 3 v3 * patch 4 v3 * patch 4 v3 For such minor changes, you can usually ask the maintainer to fix it up while applying - worst case scenario they'll ask you to resend the entire series. For the contents: Acked-by: Konrad Dybcio <konrad.dybcio@linaro.org> Konrad ^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCH V3 4/4] dt-bindings: ufs: qcom: Align clk binding property for Qualcomm UFS @ 2023-09-27 8:27 Nitin Rawat 2023-09-28 17:04 ` Rob Herring 0 siblings, 1 reply; 15+ messages in thread From: Nitin Rawat @ 2023-09-27 8:27 UTC (permalink / raw) To: agross, andersson, konrad.dybcio, mani, alim.akhtar, bvanassche, avri.altman, robh+dt, krzysztof.kozlowski+dt, conor+dt, cros-qcom-dts-watchers Cc: linux-arm-msm, linux-scsi, linux-kernel, devicetree, Nitin Rawat Align the binding property for clock such that "clocks" property comes first followed by "clock-names" property. Signed-off-by: Nitin Rawat <quic_nitirawa@quicinc.com> --- .../devicetree/bindings/ufs/qcom,ufs.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml b/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml index 802640efa956..d17bdc4e934f 100644 --- a/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml +++ b/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml @@ -295,14 +295,6 @@ examples: <&gem_noc MASTER_APPSS_PROC &config_noc SLAVE_UFS_MEM_CFG>; interconnect-names = "ufs-ddr", "cpu-ufs"; - clock-names = "core_clk", - "bus_aggr_clk", - "iface_clk", - "core_clk_unipro", - "ref_clk", - "tx_lane0_sync_clk", - "rx_lane0_sync_clk", - "rx_lane1_sync_clk"; clocks = <&gcc GCC_UFS_PHY_AXI_CLK>, <&gcc GCC_AGGRE_UFS_PHY_AXI_CLK>, <&gcc GCC_UFS_PHY_AHB_CLK>, @@ -311,6 +303,14 @@ examples: <&gcc GCC_UFS_PHY_TX_SYMBOL_0_CLK>, <&gcc GCC_UFS_PHY_RX_SYMBOL_0_CLK>, <&gcc GCC_UFS_PHY_RX_SYMBOL_1_CLK>; + clock-names = "core_clk", + "bus_aggr_clk", + "iface_clk", + "core_clk_unipro", + "ref_clk", + "tx_lane0_sync_clk", + "rx_lane0_sync_clk", + "rx_lane1_sync_clk"; freq-table-hz = <75000000 300000000>, <0 0>, <0 0>, -- 2.17.1 ^ permalink raw reply related [flat|nested] 15+ messages in thread
* Re: [PATCH V3 4/4] dt-bindings: ufs: qcom: Align clk binding property for Qualcomm UFS 2023-09-27 8:27 Nitin Rawat @ 2023-09-28 17:04 ` Rob Herring 0 siblings, 0 replies; 15+ messages in thread From: Rob Herring @ 2023-09-28 17:04 UTC (permalink / raw) To: Nitin Rawat Cc: agross, andersson, konrad.dybcio, mani, alim.akhtar, bvanassche, avri.altman, krzysztof.kozlowski+dt, conor+dt, cros-qcom-dts-watchers, linux-arm-msm, linux-scsi, linux-kernel, devicetree On Wed, Sep 27, 2023 at 01:57:00PM +0530, Nitin Rawat wrote: > Align the binding property for clock such that "clocks" property > comes first followed by "clock-names" property. Why do we care? > > Signed-off-by: Nitin Rawat <quic_nitirawa@quicinc.com> > --- > .../devicetree/bindings/ufs/qcom,ufs.yaml | 16 ++++++++-------- > 1 file changed, 8 insertions(+), 8 deletions(-) > > diff --git a/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml b/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml > index 802640efa956..d17bdc4e934f 100644 > --- a/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml > +++ b/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml > @@ -295,14 +295,6 @@ examples: > <&gem_noc MASTER_APPSS_PROC &config_noc SLAVE_UFS_MEM_CFG>; > interconnect-names = "ufs-ddr", "cpu-ufs"; > > - clock-names = "core_clk", > - "bus_aggr_clk", > - "iface_clk", > - "core_clk_unipro", > - "ref_clk", > - "tx_lane0_sync_clk", > - "rx_lane0_sync_clk", > - "rx_lane1_sync_clk"; > clocks = <&gcc GCC_UFS_PHY_AXI_CLK>, > <&gcc GCC_AGGRE_UFS_PHY_AXI_CLK>, > <&gcc GCC_UFS_PHY_AHB_CLK>, > @@ -311,6 +303,14 @@ examples: > <&gcc GCC_UFS_PHY_TX_SYMBOL_0_CLK>, > <&gcc GCC_UFS_PHY_RX_SYMBOL_0_CLK>, > <&gcc GCC_UFS_PHY_RX_SYMBOL_1_CLK>; > + clock-names = "core_clk", > + "bus_aggr_clk", > + "iface_clk", > + "core_clk_unipro", > + "ref_clk", > + "tx_lane0_sync_clk", > + "rx_lane0_sync_clk", > + "rx_lane1_sync_clk"; > freq-table-hz = <75000000 300000000>, > <0 0>, > <0 0>, > -- > 2.17.1 > ^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2023-09-29 9:01 UTC | newest] Thread overview: 15+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2023-09-27 8:18 [PATCH V3 0/4] Add UFS host controller and Phy nodes for sc7280 Nitin Rawat 2023-09-27 8:18 ` [PATCH V3 1/4] scsi: ufs: qcom: dt-bindings: Add SC7280 compatible string Nitin Rawat 2023-09-27 8:18 ` [PATCH V3 2/4] arm64: dts: qcom: sc7280: Add UFS nodes for sc7280 soc Nitin Rawat 2023-09-27 11:40 ` Konrad Dybcio 2023-09-27 12:41 ` Manivannan Sadhasivam 2023-09-29 9:01 ` Luca Weiss 2023-09-27 8:18 ` [PATCH V3 3/4] arm64: dts: qcom: sc7280: Add UFS nodes for sc7280 IDP board Nitin Rawat 2023-09-27 9:25 ` Konrad Dybcio 2023-09-27 10:08 ` Nitin Rawat 2023-09-27 12:43 ` Manivannan Sadhasivam 2023-09-27 8:18 ` [PATCH V3 4/4] dt-bindings: ufs: qcom: Align clk binding property for Qualcomm UFS Nitin Rawat 2023-09-27 8:29 ` Nitin Rawat 2023-09-27 9:27 ` Konrad Dybcio -- strict thread matches above, loose matches on Subject: below -- 2023-09-27 8:27 Nitin Rawat 2023-09-28 17:04 ` Rob Herring
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).