* [PATCH v2 0/2] Add ufs power-domain entries for SM8150
@ 2022-02-28 14:46 Bhupesh Sharma
2022-02-28 14:46 ` [PATCH v2 1/2] clk: qcom: gcc: Add UFS_CARD_GDSC and UFS_PHY_GDSC " Bhupesh Sharma
2022-02-28 14:46 ` [PATCH v2 2/2] arm64: dts: qcom: sm8150: Add ufs power-domain entries Bhupesh Sharma
0 siblings, 2 replies; 3+ messages in thread
From: Bhupesh Sharma @ 2022-02-28 14:46 UTC (permalink / raw)
To: linux-arm-msm
Cc: bhupesh.sharma, bhupesh.linux, agross, linux-kernel, devicetree,
sboyd, tdas, mturquette, linux-clk, robh+dt, Bjorn Andersson
Changes since v1:
----------------
- v1 can be found here: https://lore.kernel.org/lkml/202201220442.bMRI74m1-lkp@intel.com/T/
- Broke down another separately sent out PATCH (see [1]), into a 3 patches (one each for emac, pci
and ufs gdsc defines) - one of which is carried as [PATCH 1/2]
in this series, which fixes a compilation error reported by 'kernel test robot'.
The rest would be sent out as separate patch(es).
[1]. https://patchwork.kernel.org/project/netdevbpf/patch/20220126221725.710167-4-bhupesh.sharma@linaro.org/
Cc: Stephen Boyd <sboyd@kernel.org>
Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Bhupesh Sharma (2):
clk: qcom: gcc: Add UFS_CARD_GDSC and UFS_PHY_GDSC for SM8150
arm64: dts: qcom: sm8150: Add ufs power-domain entries
arch/arm64/boot/dts/qcom/sm8150.dtsi | 5 +++++
include/dt-bindings/clock/qcom,gcc-sm8150.h | 2 ++
2 files changed, 7 insertions(+)
--
2.35.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH v2 1/2] clk: qcom: gcc: Add UFS_CARD_GDSC and UFS_PHY_GDSC for SM8150
2022-02-28 14:46 [PATCH v2 0/2] Add ufs power-domain entries for SM8150 Bhupesh Sharma
@ 2022-02-28 14:46 ` Bhupesh Sharma
2022-02-28 14:46 ` [PATCH v2 2/2] arm64: dts: qcom: sm8150: Add ufs power-domain entries Bhupesh Sharma
1 sibling, 0 replies; 3+ messages in thread
From: Bhupesh Sharma @ 2022-02-28 14:46 UTC (permalink / raw)
To: linux-arm-msm
Cc: bhupesh.sharma, bhupesh.linux, agross, linux-kernel, devicetree,
sboyd, tdas, mturquette, linux-clk, robh+dt, Bjorn Andersson,
kernel test robot
Add the UFS_CARD_GDSC and UFS_PHY_GDSC defines for SM8150,
so that dts files can use the same.
Cc: Stephen Boyd <sboyd@kernel.org>
Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org>
---
include/dt-bindings/clock/qcom,gcc-sm8150.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/dt-bindings/clock/qcom,gcc-sm8150.h b/include/dt-bindings/clock/qcom,gcc-sm8150.h
index 3e1a91876610..1bd65cc581c3 100644
--- a/include/dt-bindings/clock/qcom,gcc-sm8150.h
+++ b/include/dt-bindings/clock/qcom,gcc-sm8150.h
@@ -241,6 +241,8 @@
#define GCC_USB_PHY_CFG_AHB2PHY_BCR 28
/* GCC GDSCRs */
+#define UFS_CARD_GDSC 2
+#define UFS_PHY_GDSC 3
#define USB30_PRIM_GDSC 4
#define USB30_SEC_GDSC 5
--
2.35.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH v2 2/2] arm64: dts: qcom: sm8150: Add ufs power-domain entries
2022-02-28 14:46 [PATCH v2 0/2] Add ufs power-domain entries for SM8150 Bhupesh Sharma
2022-02-28 14:46 ` [PATCH v2 1/2] clk: qcom: gcc: Add UFS_CARD_GDSC and UFS_PHY_GDSC " Bhupesh Sharma
@ 2022-02-28 14:46 ` Bhupesh Sharma
1 sibling, 0 replies; 3+ messages in thread
From: Bhupesh Sharma @ 2022-02-28 14:46 UTC (permalink / raw)
To: linux-arm-msm
Cc: bhupesh.sharma, bhupesh.linux, agross, linux-kernel, devicetree,
sboyd, tdas, mturquette, linux-clk, robh+dt, Bjorn Andersson,
Rob Herring
Add power-domain entries for UFS controller & phy nodes
in sm8150 dts.
Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Cc: Rob Herring <robh@kernel.org>
Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org>
---
arch/arm64/boot/dts/qcom/sm8150.dtsi | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi
index 6012322a5984..7aa879eb24d7 100644
--- a/arch/arm64/boot/dts/qcom/sm8150.dtsi
+++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi
@@ -1637,6 +1637,8 @@ ufs_mem_hc: ufshc@1d84000 {
phy-names = "ufsphy";
lanes-per-direction = <2>;
#reset-cells = <1>;
+
+ power-domains = <&gcc UFS_PHY_GDSC>;
resets = <&gcc GCC_UFS_PHY_BCR>;
reset-names = "rst";
@@ -1687,6 +1689,9 @@ ufs_mem_phy: phy@1d87000 {
clocks = <&gcc GCC_UFS_MEM_CLKREF_CLK>,
<&gcc GCC_UFS_PHY_PHY_AUX_CLK>;
+ power-domains = <&gcc UFS_CARD_GDSC>,
+ <&gcc UFS_PHY_GDSC>;
+ power-domain-names = "ufs_card_gdsc", "ufs_phy_gdsc";
resets = <&ufs_mem_hc 0>;
reset-names = "ufsphy";
status = "disabled";
--
2.35.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-02-28 14:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-28 14:46 [PATCH v2 0/2] Add ufs power-domain entries for SM8150 Bhupesh Sharma
2022-02-28 14:46 ` [PATCH v2 1/2] clk: qcom: gcc: Add UFS_CARD_GDSC and UFS_PHY_GDSC " Bhupesh Sharma
2022-02-28 14:46 ` [PATCH v2 2/2] arm64: dts: qcom: sm8150: Add ufs power-domain entries Bhupesh Sharma
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).