Commit 6d91e201 authored by Vinod Koul's avatar Vinod Koul Committed by Bjorn Andersson

arm64: dts: qcom: sm8350: Use enums for GCC

Now that we have GCC define, use the enums instead of numbers in the DTS
Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
Link: https://lore.kernel.org/r/20210212115532.1339942-8-vkoul@kernel.orgSigned-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
parent da97c882
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
*/ */
#include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/qcom,gcc-sm8350.h>
#include <dt-bindings/clock/qcom,rpmh.h> #include <dt-bindings/clock/qcom,rpmh.h>
#include <dt-bindings/mailbox/qcom-ipcc.h> #include <dt-bindings/mailbox/qcom-ipcc.h>
#include <dt-bindings/power/qcom-aoss-qmp.h> #include <dt-bindings/power/qcom-aoss-qmp.h>
...@@ -429,8 +430,8 @@ qupv3_id_1: geniqup@9c0000 { ...@@ -429,8 +430,8 @@ qupv3_id_1: geniqup@9c0000 {
compatible = "qcom,geni-se-qup"; compatible = "qcom,geni-se-qup";
reg = <0x0 0x009c0000 0x0 0x6000>; reg = <0x0 0x009c0000 0x0 0x6000>;
clock-names = "m-ahb", "s-ahb"; clock-names = "m-ahb", "s-ahb";
clocks = <&gcc 121>, clocks = <&gcc GCC_QUPV3_WRAP_0_M_AHB_CLK>,
<&gcc 122>; <&gcc GCC_QUPV3_WRAP_0_S_AHB_CLK>;
#address-cells = <2>; #address-cells = <2>;
#size-cells = <2>; #size-cells = <2>;
ranges; ranges;
...@@ -440,7 +441,7 @@ uart2: serial@98c000 { ...@@ -440,7 +441,7 @@ uart2: serial@98c000 {
compatible = "qcom,geni-debug-uart"; compatible = "qcom,geni-debug-uart";
reg = <0 0x0098c000 0 0x4000>; reg = <0 0x0098c000 0 0x4000>;
clock-names = "se"; clock-names = "se";
clocks = <&gcc 83>; clocks = <&gcc GCC_QUPV3_WRAP0_S3_CLK>;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&qup_uart3_default_state>; pinctrl-0 = <&qup_uart3_default_state>;
interrupts = <GIC_SPI 604 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 604 IRQ_TYPE_LEVEL_HIGH>;
...@@ -796,10 +797,10 @@ ufs_mem_hc: ufshc@1d84000 { ...@@ -796,10 +797,10 @@ ufs_mem_hc: ufshc@1d84000 {
phy-names = "ufsphy"; phy-names = "ufsphy";
lanes-per-direction = <2>; lanes-per-direction = <2>;
#reset-cells = <1>; #reset-cells = <1>;
resets = <&gcc 25>; resets = <&gcc GCC_UFS_PHY_BCR>;
reset-names = "rst"; reset-names = "rst";
power-domains = <&gcc 3>; power-domains = <&gcc UFS_PHY_GDSC>;
iommus = <&apps_smmu 0xe0 0x0>; iommus = <&apps_smmu 0xe0 0x0>;
...@@ -815,14 +816,14 @@ ufs_mem_hc: ufshc@1d84000 { ...@@ -815,14 +816,14 @@ ufs_mem_hc: ufshc@1d84000 {
"rx_lane1_sync_clk"; "rx_lane1_sync_clk";
clocks = clocks =
<&rpmhcc RPMH_CXO_CLK>, <&rpmhcc RPMH_CXO_CLK>,
<&gcc 155>, <&gcc GCC_UFS_PHY_AXI_CLK>,
<&gcc 16>, <&gcc GCC_AGGRE_UFS_PHY_AXI_CLK>,
<&gcc 154>, <&gcc GCC_UFS_PHY_AHB_CLK>,
<&gcc 170>, <&gcc GCC_UFS_PHY_UNIPRO_CORE_CLK>,
<&rpmhcc RPMH_CXO_CLK>, <&rpmhcc RPMH_CXO_CLK>,
<&gcc 168>, <&gcc GCC_UFS_PHY_TX_SYMBOL_0_CLK>,
<&gcc 164>, <&gcc GCC_UFS_PHY_RX_SYMBOL_0_CLK>,
<&gcc 166>; <&gcc GCC_UFS_PHY_RX_SYMBOL_1_CLK>;
freq-table-hz = freq-table-hz =
<75000000 300000000>, <75000000 300000000>,
<75000000 300000000>, <75000000 300000000>,
...@@ -846,7 +847,7 @@ ufs_mem_phy: phy@1d87000 { ...@@ -846,7 +847,7 @@ ufs_mem_phy: phy@1d87000 {
clock-names = "ref", clock-names = "ref",
"ref_aux"; "ref_aux";
clocks = <&rpmhcc RPMH_CXO_CLK>, clocks = <&rpmhcc RPMH_CXO_CLK>,
<&gcc 161>; <&gcc GCC_UFS_PHY_PHY_AUX_CLK>;
resets = <&ufs_mem_hc 0>; resets = <&ufs_mem_hc 0>;
reset-names = "ufsphy"; reset-names = "ufsphy";
...@@ -952,7 +953,7 @@ usb_1_hsphy: phy@88e3000 { ...@@ -952,7 +953,7 @@ usb_1_hsphy: phy@88e3000 {
clocks = <&rpmhcc RPMH_CXO_CLK>; clocks = <&rpmhcc RPMH_CXO_CLK>;
clock-names = "ref"; clock-names = "ref";
resets = <&gcc 20>; resets = <&gcc GCC_QUSB2PHY_PRIM_BCR>;
}; };
usb_2_hsphy: phy@88e4000 { usb_2_hsphy: phy@88e4000 {
...@@ -965,7 +966,7 @@ usb_2_hsphy: phy@88e4000 { ...@@ -965,7 +966,7 @@ usb_2_hsphy: phy@88e4000 {
clocks = <&rpmhcc RPMH_CXO_CLK>; clocks = <&rpmhcc RPMH_CXO_CLK>;
clock-names = "ref"; clock-names = "ref";
resets = <&gcc 21>; resets = <&gcc GCC_QUSB2PHY_SEC_BCR>;
}; };
usb_1_qmpphy: phy-wrapper@88e9000 { usb_1_qmpphy: phy-wrapper@88e9000 {
...@@ -979,13 +980,13 @@ usb_1_qmpphy: phy-wrapper@88e9000 { ...@@ -979,13 +980,13 @@ usb_1_qmpphy: phy-wrapper@88e9000 {
#size-cells = <2>; #size-cells = <2>;
ranges; ranges;
clocks = <&gcc 187>, clocks = <&gcc GCC_USB3_PRIM_PHY_AUX_CLK>,
<&rpmhcc RPMH_CXO_CLK>, <&rpmhcc RPMH_CXO_CLK>,
<&gcc 189>; <&gcc GCC_USB3_PRIM_PHY_COM_AUX_CLK>;
clock-names = "aux", "ref_clk_src", "com_aux"; clock-names = "aux", "ref_clk_src", "com_aux";
resets = <&gcc 28>, resets = <&gcc GCC_USB3_DP_PHY_PRIM_BCR>,
<&gcc 30>; <&gcc GCC_USB3_PHY_PRIM_BCR>;
reset-names = "phy", "common"; reset-names = "phy", "common";
usb_1_ssphy: phy@88e9200 { usb_1_ssphy: phy@88e9200 {
...@@ -997,7 +998,7 @@ usb_1_ssphy: phy@88e9200 { ...@@ -997,7 +998,7 @@ usb_1_ssphy: phy@88e9200 {
<0 0x088e9a00 0 0x100>; <0 0x088e9a00 0 0x100>;
#phy-cells = <0>; #phy-cells = <0>;
#clock-cells = <1>; #clock-cells = <1>;
clocks = <&gcc 190>; clocks = <&gcc GCC_USB3_PRIM_PHY_PIPE_CLK>;
clock-names = "pipe0"; clock-names = "pipe0";
clock-output-names = "usb3_phy_pipe_clk_src"; clock-output-names = "usb3_phy_pipe_clk_src";
}; };
...@@ -1012,14 +1013,14 @@ usb_2_qmpphy: phy-wrapper@88eb000 { ...@@ -1012,14 +1013,14 @@ usb_2_qmpphy: phy-wrapper@88eb000 {
#size-cells = <2>; #size-cells = <2>;
ranges; ranges;
clocks = <&gcc 193>, clocks = <&gcc GCC_USB3_SEC_PHY_AUX_CLK>,
<&rpmhcc RPMH_CXO_CLK>, <&rpmhcc RPMH_CXO_CLK>,
<&gcc 192>, <&gcc GCC_USB3_SEC_CLKREF_EN>,
<&gcc 195>; <&gcc GCC_USB3_SEC_PHY_COM_AUX_CLK>;
clock-names = "aux", "ref_clk_src", "ref", "com_aux"; clock-names = "aux", "ref_clk_src", "ref", "com_aux";
resets = <&gcc 33>, resets = <&gcc GCC_USB3PHY_PHY_SEC_BCR>,
<&gcc 31>; <&gcc GCC_USB3_PHY_SEC_BCR>;
reset-names = "phy", "common"; reset-names = "phy", "common";
usb_2_ssphy: phy@88ebe00 { usb_2_ssphy: phy@88ebe00 {
...@@ -1028,7 +1029,7 @@ usb_2_ssphy: phy@88ebe00 { ...@@ -1028,7 +1029,7 @@ usb_2_ssphy: phy@88ebe00 {
<0 0x088eb200 0 0x1100>; <0 0x088eb200 0 0x1100>;
#phy-cells = <0>; #phy-cells = <0>;
#clock-cells = <1>; #clock-cells = <1>;
clocks = <&gcc 196>; clocks = <&gcc GCC_USB3_SEC_PHY_PIPE_CLK>;
clock-names = "pipe0"; clock-names = "pipe0";
clock-output-names = "usb3_uni_phy_pipe_clk_src"; clock-output-names = "usb3_uni_phy_pipe_clk_src";
}; };
...@@ -1042,16 +1043,16 @@ usb_1: usb@a6f8800 { ...@@ -1042,16 +1043,16 @@ usb_1: usb@a6f8800 {
#size-cells = <2>; #size-cells = <2>;
ranges; ranges;
clocks = <&gcc 23>, clocks = <&gcc GCC_CFG_NOC_USB3_PRIM_AXI_CLK>,
<&gcc 173>, <&gcc GCC_USB30_PRIM_MASTER_CLK>,
<&gcc 18>, <&gcc GCC_AGGRE_USB3_PRIM_AXI_CLK>,
<&gcc 176>, <&gcc GCC_USB30_PRIM_MOCK_UTMI_CLK>,
<&gcc 179>; <&gcc GCC_USB30_PRIM_SLEEP_CLK>;
clock-names = "cfg_noc", "core", "iface", "mock_utmi", clock-names = "cfg_noc", "core", "iface", "mock_utmi",
"sleep"; "sleep";
assigned-clocks = <&gcc 176>, assigned-clocks = <&gcc GCC_USB30_PRIM_MOCK_UTMI_CLK>,
<&gcc 173>; <&gcc GCC_USB30_PRIM_MASTER_CLK>;
assigned-clock-rates = <19200000>, <200000000>; assigned-clock-rates = <19200000>, <200000000>;
interrupts-extended = <&intc GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH>, interrupts-extended = <&intc GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH>,
...@@ -1061,9 +1062,9 @@ usb_1: usb@a6f8800 { ...@@ -1061,9 +1062,9 @@ usb_1: usb@a6f8800 {
interrupt-names = "hs_phy_irq", "dp_hs_phy_irq", interrupt-names = "hs_phy_irq", "dp_hs_phy_irq",
"dm_hs_phy_irq", "ss_phy_irq"; "dm_hs_phy_irq", "ss_phy_irq";
power-domains = <&gcc 4>; power-domains = <&gcc USB30_PRIM_GDSC>;
resets = <&gcc 26>; resets = <&gcc GCC_USB30_PRIM_BCR>;
usb_1_dwc3: dwc3@a600000 { usb_1_dwc3: dwc3@a600000 {
compatible = "snps,dwc3"; compatible = "snps,dwc3";
...@@ -1085,17 +1086,17 @@ usb_2: usb@a8f8800 { ...@@ -1085,17 +1086,17 @@ usb_2: usb@a8f8800 {
#size-cells = <2>; #size-cells = <2>;
ranges; ranges;
clocks = <&gcc 24>, clocks = <&gcc GCC_CFG_NOC_USB3_SEC_AXI_CLK>,
<&gcc 180>, <&gcc GCC_USB30_SEC_MASTER_CLK>,
<&gcc 19>, <&gcc GCC_AGGRE_USB3_SEC_AXI_CLK>,
<&gcc 183>, <&gcc GCC_USB30_SEC_MOCK_UTMI_CLK>,
<&gcc 186>, <&gcc GCC_USB30_SEC_SLEEP_CLK>,
<&gcc 192>; <&gcc GCC_USB3_SEC_CLKREF_EN>;
clock-names = "cfg_noc", "core", "iface", "mock_utmi", clock-names = "cfg_noc", "core", "iface", "mock_utmi",
"sleep", "xo"; "sleep", "xo";
assigned-clocks = <&gcc 183>, assigned-clocks = <&gcc GCC_USB30_SEC_MOCK_UTMI_CLK>,
<&gcc 180>; <&gcc GCC_USB30_SEC_MASTER_CLK>;
assigned-clock-rates = <19200000>, <200000000>; assigned-clock-rates = <19200000>, <200000000>;
interrupts-extended = <&intc GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>, interrupts-extended = <&intc GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>,
...@@ -1105,9 +1106,9 @@ usb_2: usb@a8f8800 { ...@@ -1105,9 +1106,9 @@ usb_2: usb@a8f8800 {
interrupt-names = "hs_phy_irq", "dp_hs_phy_irq", interrupt-names = "hs_phy_irq", "dp_hs_phy_irq",
"dm_hs_phy_irq", "ss_phy_irq"; "dm_hs_phy_irq", "ss_phy_irq";
power-domains = <&gcc 5>; power-domains = <&gcc USB30_SEC_GDSC>;
resets = <&gcc 27>; resets = <&gcc GCC_USB30_SEC_BCR>;
usb_2_dwc3: dwc3@a800000 { usb_2_dwc3: dwc3@a800000 {
compatible = "snps,dwc3"; compatible = "snps,dwc3";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment