* [PATCH 0/2] Add SC9863A emmc and sd card support in devicetree @ 2019-10-27 9:09 Chunyan Zhang 2019-10-27 9:09 ` [PATCH 1/2] arm64: dts: Add SC9863A clock nodes Chunyan Zhang 2019-10-27 9:09 ` [PATCH 2/2] arm64: dts: Add SC9863A emmc and sd card nodes Chunyan Zhang 0 siblings, 2 replies; 4+ messages in thread From: Chunyan Zhang @ 2019-10-27 9:09 UTC (permalink / raw) To: Rob Herring, Mark Rutland Cc: devicetree, linux-kernel, Orson Zhai, Baolin Wang, Chunyan Zhang, Chunyan Zhang This patchset added all sc9863a clock nodes, and also added emmc and sd card which would use the clocks added in the patch 1/2. Chunyan Zhang (2): arm64: dts: Add SC9863A clock nodes arm64: dts: Add SC9863A emmc and sd card nodes arch/arm64/boot/dts/sprd/sc9863a.dtsi | 125 ++++++++++++++++++++++ arch/arm64/boot/dts/sprd/sharkl3.dtsi | 21 ++++ arch/arm64/boot/dts/sprd/sp9863a-1h10.dts | 16 +++ 3 files changed, 162 insertions(+) -- 2.20.1 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] arm64: dts: Add SC9863A clock nodes 2019-10-27 9:09 [PATCH 0/2] Add SC9863A emmc and sd card support in devicetree Chunyan Zhang @ 2019-10-27 9:09 ` Chunyan Zhang 2019-10-27 9:09 ` [PATCH 2/2] arm64: dts: Add SC9863A emmc and sd card nodes Chunyan Zhang 1 sibling, 0 replies; 4+ messages in thread From: Chunyan Zhang @ 2019-10-27 9:09 UTC (permalink / raw) To: Rob Herring, Mark Rutland Cc: devicetree, linux-kernel, Orson Zhai, Baolin Wang, Chunyan Zhang, Chunyan Zhang Add clock devicetree nodes for SC9863A. Signed-off-by: Chunyan Zhang <chunyan.zhang@unisoc.com> --- arch/arm64/boot/dts/sprd/sc9863a.dtsi | 94 +++++++++++++++++++++++++++ arch/arm64/boot/dts/sprd/sharkl3.dtsi | 21 ++++++ 2 files changed, 115 insertions(+) diff --git a/arch/arm64/boot/dts/sprd/sc9863a.dtsi b/arch/arm64/boot/dts/sprd/sc9863a.dtsi index 578d71a932d9..ceecf551fd01 100644 --- a/arch/arm64/boot/dts/sprd/sc9863a.dtsi +++ b/arch/arm64/boot/dts/sprd/sc9863a.dtsi @@ -6,6 +6,7 @@ */ #include <dt-bindings/interrupt-controller/arm-gic.h> +#include <dt-bindings/clock/sprd,sc9863a-clk.h> #include "sharkl3.dtsi" / { @@ -168,6 +169,99 @@ }; soc { + apahb_gate: apahb-gate { + compatible = "sprd,sc9863a-apahb-gate"; + sprd,syscon = <&ap_ahb_regs>; /* 0x20e00000 */ + clocks = <&aon_clk CLK_AP_AXI>; + #clock-cells = <1>; + }; + + ap_clk: clock-controller@21500000 { + compatible = "sprd,sc9863a-ap-clk"; + reg = <0 0x21500000 0 0x1000>; + clocks = <&ext_32k>, <&ext_26m>, + <&pll 0>, <&rpll 0>; + #clock-cells = <1>; + }; + + pmu_gate: pmu-gate { + compatible = "sprd,sc9863a-pmu-gate"; + sprd,syscon = <&pmu_regs>; /* 0x402b0000 */ + clocks = <&ext_26m>; + #clock-cells = <1>; + }; + + aon_clk: clock-controller@402d0000 { + compatible = "sprd,sc9863a-aon-clk"; + reg = <0 0x402d0000 0 0x1000>; + clocks = <&ext_26m>, <&pll 0>, + <&rpll 0>, <&dpll 0>; + #clock-cells = <1>; + }; + + aonapb_gate: aonapb-gate { + compatible = "sprd,sc9863a-aonapb-gate"; + sprd,syscon = <&aon_apb_regs>; /* 0x402e0000 */ + clocks = <&aon_clk CLK_AON_APB>; + #clock-cells = <1>; + }; + + pll: pll { + compatible = "sprd,sc9863a-pll"; + sprd,syscon = <&anlg_phy_g2_regs>; /* 0x40353000 */ + clocks = <&pmu_gate 0>; + #clock-cells = <1>; + }; + + mpll: mpll { + compatible = "sprd,sc9863a-mpll"; + sprd,syscon = <&anlg_phy_g4_regs>; /* 0x40359000 */ + clocks = <&pmu_gate 0>; + #clock-cells = <1>; + }; + + rpll: rpll { + compatible = "sprd,sc9863a-rpll"; + sprd,syscon = <&anlg_phy_g5_regs>; /* 0x4035c000 */ + clocks = <&pmu_gate 0>; + #clock-cells = <1>; + }; + + dpll: dpll { + compatible = "sprd,sc9863a-dpll"; + sprd,syscon = <&anlg_phy_g7_regs>; /* 0x40363000 */ + clocks = <&pmu_gate 0>; + #clock-cells = <1>; + }; + + mm_gate: mm-gate { + compatible = "sprd,sc9863a-mm-gate"; + sprd,syscon = <&mm_ahb_regs>; /* 0x60800000 */ + clocks = <&aon_clk CLK_MM_AHB>; + #clock-cells = <1>; + }; + + mm_clk: clock-controller@60900000 { + compatible = "sprd,sc9863a-mm-clk"; + reg = <0 0x60900000 0 0x1000>; /* 0x60900000 */ + clocks = <&aon_clk CLK_MM_AHB>; + #clock-cells = <1>; + }; + + vspahb_gate: vspahb-gate { + compatible = "sprd,sc9863a-vspahb-gate"; + sprd,syscon = <&mm_vsp_ahb_regs>; /* 0x62000000 */ + clocks = <&aon_clk CLK_MM_AHB>; + #clock-cells = <1>; + }; + + apapb_gate: apapb-gate { + compatible = "sprd,sc9863a-apapb-gate"; + sprd,syscon = <&ap_apb_regs>; /* 0x71300000 */ + clocks = <&ext_26m>; + #clock-cells = <1>; + }; + funnel@10001000 { compatible = "arm,coresight-dynamic-funnel", "arm,primecell"; reg = <0 0x10001000 0 0x1000>; diff --git a/arch/arm64/boot/dts/sprd/sharkl3.dtsi b/arch/arm64/boot/dts/sprd/sharkl3.dtsi index 3ef233f70dc4..938cd62e6636 100644 --- a/arch/arm64/boot/dts/sprd/sharkl3.dtsi +++ b/arch/arm64/boot/dts/sprd/sharkl3.dtsi @@ -185,4 +185,25 @@ clock-frequency = <26000000>; clock-output-names = "ext-26m"; }; + + ext_32k: ext-32k { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <32768>; + clock-output-names = "ext_32k"; + }; + + ext_4m: ext-4m { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <4000000>; + clock-output-names = "ext-4m"; + }; + + rco_100m: rco-100m { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <100000000>; + clock-output-names = "rco-100m"; + }; }; -- 2.20.1 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] arm64: dts: Add SC9863A emmc and sd card nodes 2019-10-27 9:09 [PATCH 0/2] Add SC9863A emmc and sd card support in devicetree Chunyan Zhang 2019-10-27 9:09 ` [PATCH 1/2] arm64: dts: Add SC9863A clock nodes Chunyan Zhang @ 2019-10-27 9:09 ` Chunyan Zhang 1 sibling, 0 replies; 4+ messages in thread From: Chunyan Zhang @ 2019-10-27 9:09 UTC (permalink / raw) To: Rob Herring, Mark Rutland Cc: devicetree, linux-kernel, Orson Zhai, Baolin Wang, Chunyan Zhang, Chunyan Zhang Add emmc and sd card devicetree nodes for SC9863A. Signed-off-by: Chunyan Zhang <chunyan.zhang@unisoc.com> --- arch/arm64/boot/dts/sprd/sc9863a.dtsi | 31 +++++++++++++++++++++++ arch/arm64/boot/dts/sprd/sp9863a-1h10.dts | 16 ++++++++++++ 2 files changed, 47 insertions(+) diff --git a/arch/arm64/boot/dts/sprd/sc9863a.dtsi b/arch/arm64/boot/dts/sprd/sc9863a.dtsi index ceecf551fd01..e3ae64cc214a 100644 --- a/arch/arm64/boot/dts/sprd/sc9863a.dtsi +++ b/arch/arm64/boot/dts/sprd/sc9863a.dtsi @@ -626,5 +626,36 @@ }; }; }; + + ap-ahb { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + + sdio0: sdio@20300000 { + compatible = "sprd,sdhci-r11"; + reg = <0 0x20300000 0 0x1000>; + interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>; + + clock-names = "sdio", "enable"; + clocks = <&aon_clk CLK_SDIO0_2X>, + <&apahb_gate CLK_SDIO0_EB>; + assigned-clocks = <&aon_clk CLK_SDIO0_2X>; + assigned-clock-parents = <&rpll CLK_RPLL_390M>; + }; + + sdio3: sdio@20600000 { + compatible = "sprd,sdhci-r11"; + reg = <0 0x20600000 0 0x1000>; + interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>; + + clock-names = "sdio", "enable"; + clocks = <&aon_clk CLK_EMMC_2X>, + <&apahb_gate CLK_EMMC_EB>; + assigned-clocks = <&aon_clk CLK_EMMC_2X>; + assigned-clock-parents = <&rpll CLK_RPLL_390M>; + }; + }; }; }; diff --git a/arch/arm64/boot/dts/sprd/sp9863a-1h10.dts b/arch/arm64/boot/dts/sprd/sp9863a-1h10.dts index b6fbb5ca37e1..14673a1e52cb 100644 --- a/arch/arm64/boot/dts/sprd/sp9863a-1h10.dts +++ b/arch/arm64/boot/dts/sprd/sp9863a-1h10.dts @@ -38,3 +38,19 @@ &uart1 { status = "okay"; }; + +&sdio0 { + bus-width = <4>; + no-sdio; + no-mmc; + status = "okay"; +}; + +&sdio3 { + bus-width = <8>; + non-removable; + no-sdio; + no-sd; + cap-mmc-hw-reset; + status = "okay"; +}; -- 2.20.1 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 0/2] add clock and emmc/sd nodes for SC9863A @ 2020-04-01 7:11 Chunyan Zhang 2020-04-01 7:11 ` [PATCH 1/2] arm64: dts: Add SC9863A clock nodes Chunyan Zhang 0 siblings, 1 reply; 4+ messages in thread From: Chunyan Zhang @ 2020-04-01 7:11 UTC (permalink / raw) To: Rob Herring, Mark Rutland Cc: devicetree, linux-kernel, Orson Zhai, Baolin Wang, Chunyan Zhang, Chunyan Zhang From: Chunyan Zhang <chunyan.zhang@unisoc.com> SC9863A clock driver got merged, this patch-set adds clock nodes, emmc and sd card nodes, so that we can startup debian on SC9863A. Chunyan Zhang (2): arm64: dts: Add SC9863A clock nodes arm64: dts: Add SC9863A emmc and sd card nodes arch/arm64/boot/dts/sprd/sc9863a.dtsi | 66 +++++++++++ arch/arm64/boot/dts/sprd/sharkl3.dtsi | 164 ++++++++++++++++++++++++++ 2 files changed, 230 insertions(+) -- 2.20.1 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] arm64: dts: Add SC9863A clock nodes 2020-04-01 7:11 [PATCH 0/2] add clock and emmc/sd nodes for SC9863A Chunyan Zhang @ 2020-04-01 7:11 ` Chunyan Zhang 0 siblings, 0 replies; 4+ messages in thread From: Chunyan Zhang @ 2020-04-01 7:11 UTC (permalink / raw) To: Rob Herring, Mark Rutland Cc: devicetree, linux-kernel, Orson Zhai, Baolin Wang, Chunyan Zhang, Chunyan Zhang From: Chunyan Zhang <chunyan.zhang@unisoc.com> add clock devicetree nodes for SC9863A. Signed-off-by: Chunyan Zhang <chunyan.zhang@unisoc.com> --- arch/arm64/boot/dts/sprd/sc9863a.dtsi | 24 ++++ arch/arm64/boot/dts/sprd/sharkl3.dtsi | 164 ++++++++++++++++++++++++++ 2 files changed, 188 insertions(+) diff --git a/arch/arm64/boot/dts/sprd/sc9863a.dtsi b/arch/arm64/boot/dts/sprd/sc9863a.dtsi index cd80756c888d..586c7488c12b 100644 --- a/arch/arm64/boot/dts/sprd/sc9863a.dtsi +++ b/arch/arm64/boot/dts/sprd/sc9863a.dtsi @@ -159,6 +159,30 @@ interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>; }; + ap_clk: clock-controller@21500000 { + compatible = "sprd,sc9863a-ap-clk"; + reg = <0 0x21500000 0 0x1000>; + clocks = <&ext_32k>, <&ext_26m>; + clock-names = "ext-32k", "ext-26m"; + #clock-cells = <1>; + }; + + aon_clk: clock-controller@402d0000 { + compatible = "sprd,sc9863a-aon-clk"; + reg = <0 0x402d0000 0 0x1000>; + clocks = <&ext_26m>, <&rco_100m>, + <&ext_32k>, <&ext_4m>; + clock-names = "ext-26m", "rco-100m", + "ext-32k", "ext-4m"; + #clock-cells = <1>; + }; + + mm_clk: clock-controller@60900000 { + compatible = "sprd,sc9863a-mm-clk"; + reg = <0 0x60900000 0 0x1000>; + #clock-cells = <1>; + }; + funnel@10001000 { compatible = "arm,coresight-dynamic-funnel", "arm,primecell"; reg = <0 0x10001000 0 0x1000>; diff --git a/arch/arm64/boot/dts/sprd/sharkl3.dtsi b/arch/arm64/boot/dts/sprd/sharkl3.dtsi index 0222128b10f7..206a4afdab1c 100644 --- a/arch/arm64/boot/dts/sprd/sharkl3.dtsi +++ b/arch/arm64/boot/dts/sprd/sharkl3.dtsi @@ -16,6 +16,149 @@ #size-cells = <2>; ranges; + ap_ahb_regs: syscon@20e00000 { + compatible = "sprd,sc9863a-glbregs", "syscon", + "simple-mfd"; + reg = <0 0x20e00000 0 0x4000>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0 0 0x20e00000 0x4000>; + + apahb_gate: apahb-gate { + compatible = "sprd,sc9863a-apahb-gate"; + reg = <0x0 0x1020>; + #clock-cells = <1>; + }; + }; + + pmu_regs: syscon@402b0000 { + compatible = "sprd,sc9863a-glbregs", "syscon", + "simple-mfd"; + reg = <0 0x402b0000 0 0x4000>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0 0 0x402b0000 0x4000>; + + pmu_gate: pmu-gate { + compatible = "sprd,sc9863a-pmu-gate"; + reg = <0 0x1200>; + clocks = <&ext_26m>; + clock-names = "ext-26m"; + #clock-cells = <1>; + }; + }; + + aon_apb_regs: syscon@402e0000 { + compatible = "sprd,sc9863a-glbregs", "syscon", + "simple-mfd"; + reg = <0 0x402e0000 0 0x4000>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0 0 0x402e0000 0x4000>; + + aonapb_gate: aonapb-gate { + compatible = "sprd,sc9863a-aonapb-gate"; + reg = <0 0x1100>; + #clock-cells = <1>; + }; + }; + + anlg_phy_g2_regs: syscon@40353000 { + compatible = "sprd,sc9863a-glbregs", "syscon", + "simple-mfd"; + reg = <0 0x40353000 0 0x3000>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0 0 0x40353000 0x3000>; + + pll: pll { + compatible = "sprd,sc9863a-pll"; + reg = <0 0x100>; + clocks = <&ext_26m>; + clock-names = "ext-26m"; + #clock-cells = <1>; + }; + }; + + anlg_phy_g4_regs: syscon@40359000 { + compatible = "sprd,sc9863a-glbregs", "syscon", + "simple-mfd"; + reg = <0 0x40359000 0 0x3000>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0 0 0x40359000 0x3000>; + + mpll: mpll { + compatible = "sprd,sc9863a-mpll"; + reg = <0 0x100>; + #clock-cells = <1>; + }; + }; + + anlg_phy_g5_regs: syscon@4035c000 { + compatible = "sprd,sc9863a-glbregs", "syscon", + "simple-mfd"; + reg = <0 0x4035c000 0 0x3000>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0 0 0x4035c000 0x3000>; + + rpll: rpll { + compatible = "sprd,sc9863a-rpll"; + reg = <0 0x100>; + clocks = <&ext_26m>; + clock-names = "ext-26m"; + #clock-cells = <1>; + }; + }; + + anlg_phy_g7_regs: syscon@40363000 { + compatible = "sprd,sc9863a-glbregs", "syscon", + "simple-mfd"; + reg = <0 0x40363000 0 0x3000>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0 0 0x40363000 0x3000>; + + dpll: dpll { + compatible = "sprd,sc9863a-dpll"; + reg = <0 0x100>; + #clock-cells = <1>; + }; + }; + + mm_ahb_regs: syscon@60800000 { + compatible = "sprd,sc9863a-glbregs", "syscon", + "simple-mfd"; + reg = <0 0x60800000 0 0x1000>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0 0 0x60800000 0x3000>; + + mm_gate: mm-gate { + compatible = "sprd,sc9863a-mm-gate"; + reg = <0 0x1100>; + #clock-cells = <1>; + }; + }; + + ap_apb_regs: syscon@71300000 { + compatible = "sprd,sc9863a-glbregs", "syscon", + "simple-mfd"; + reg = <0 0x71300000 0 0x4000>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0 0 0x71300000 0x4000>; + + apapb_gate: apapb-gate { + compatible = "sprd,sc9863a-apapb-gate"; + reg = <0 0x1000>; + clocks = <&ext_26m>; + clock-names = "ext-26m"; + #clock-cells = <1>; + }; + }; + apb@70000000 { compatible = "simple-bus"; #address-cells = <1>; @@ -75,4 +218,25 @@ clock-frequency = <26000000>; clock-output-names = "ext-26m"; }; + + ext_32k: ext-32k { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <32768>; + clock-output-names = "ext-32k"; + }; + + ext_4m: ext-4m { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <4000000>; + clock-output-names = "ext-4m"; + }; + + rco_100m: rco-100m { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <100000000>; + clock-output-names = "rco-100m"; + }; }; -- 2.20.1 ^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-04-01 7:12 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2019-10-27 9:09 [PATCH 0/2] Add SC9863A emmc and sd card support in devicetree Chunyan Zhang 2019-10-27 9:09 ` [PATCH 1/2] arm64: dts: Add SC9863A clock nodes Chunyan Zhang 2019-10-27 9:09 ` [PATCH 2/2] arm64: dts: Add SC9863A emmc and sd card nodes Chunyan Zhang 2020-04-01 7:11 [PATCH 0/2] add clock and emmc/sd nodes for SC9863A Chunyan Zhang 2020-04-01 7:11 ` [PATCH 1/2] arm64: dts: Add SC9863A clock nodes Chunyan Zhang
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).