diff options
author | Maxime Chevallier <maxime.chevallier@bootlin.com> | 2018-04-25 14:19:47 -0400 |
---|---|---|
committer | Gregory CLEMENT <gregory.clement@bootlin.com> | 2018-04-27 11:47:24 -0400 |
commit | f43194c1447c9536efb0859c2f3f46f6bf2b9154 (patch) | |
tree | e45d809490fea7da11105c33f6a9267638af8d94 | |
parent | a057344806d035cb9ac991619fa07854e807562d (diff) |
ARM64: dts: marvell: armada-cp110: Add mg_core_clk for ethernet node
Marvell PPv2.2 controller present on CP-110 need the extra "mg_core_clk"
clock to avoid system hangs when powering some network interfaces up.
This issue appeared after a recent clock rework on Armada 7K/8K platforms.
This commit adds the new clock and updates the documentation accordingly.
[gregory.clement: use the real first commit to fix and add the cc:stable
flag]
Fixes: e3af9f7c6ece ("RM64: dts: marvell: armada-cp110: Fix clock resources for various node")
Cc: <stable@vger.kernel.org>
Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
-rw-r--r-- | Documentation/devicetree/bindings/net/marvell-pp2.txt | 9 | ||||
-rw-r--r-- | arch/arm64/boot/dts/marvell/armada-cp110.dtsi | 5 |
2 files changed, 8 insertions, 6 deletions
diff --git a/Documentation/devicetree/bindings/net/marvell-pp2.txt b/Documentation/devicetree/bindings/net/marvell-pp2.txt index 1814fa13f6ab..fc019df0d863 100644 --- a/Documentation/devicetree/bindings/net/marvell-pp2.txt +++ b/Documentation/devicetree/bindings/net/marvell-pp2.txt | |||
@@ -21,9 +21,10 @@ Required properties: | |||
21 | - main controller clock (for both armada-375-pp2 and armada-7k-pp2) | 21 | - main controller clock (for both armada-375-pp2 and armada-7k-pp2) |
22 | - GOP clock (for both armada-375-pp2 and armada-7k-pp2) | 22 | - GOP clock (for both armada-375-pp2 and armada-7k-pp2) |
23 | - MG clock (only for armada-7k-pp2) | 23 | - MG clock (only for armada-7k-pp2) |
24 | - MG Core clock (only for armada-7k-pp2) | ||
24 | - AXI clock (only for armada-7k-pp2) | 25 | - AXI clock (only for armada-7k-pp2) |
25 | - clock-names: names of used clocks, must be "pp_clk", "gop_clk", "mg_clk" | 26 | - clock-names: names of used clocks, must be "pp_clk", "gop_clk", "mg_clk", |
26 | and "axi_clk" (the 2 latter only for armada-7k-pp2). | 27 | "mg_core_clk" and "axi_clk" (the 3 latter only for armada-7k-pp2). |
27 | 28 | ||
28 | The ethernet ports are represented by subnodes. At least one port is | 29 | The ethernet ports are represented by subnodes. At least one port is |
29 | required. | 30 | required. |
@@ -80,8 +81,8 @@ cpm_ethernet: ethernet@0 { | |||
80 | compatible = "marvell,armada-7k-pp22"; | 81 | compatible = "marvell,armada-7k-pp22"; |
81 | reg = <0x0 0x100000>, <0x129000 0xb000>; | 82 | reg = <0x0 0x100000>, <0x129000 0xb000>; |
82 | clocks = <&cpm_syscon0 1 3>, <&cpm_syscon0 1 9>, | 83 | clocks = <&cpm_syscon0 1 3>, <&cpm_syscon0 1 9>, |
83 | <&cpm_syscon0 1 5>, <&cpm_syscon0 1 18>; | 84 | <&cpm_syscon0 1 5>, <&cpm_syscon0 1 6>, <&cpm_syscon0 1 18>; |
84 | clock-names = "pp_clk", "gop_clk", "gp_clk", "axi_clk"; | 85 | clock-names = "pp_clk", "gop_clk", "mg_clk", "mg_core_clk", "axi_clk"; |
85 | 86 | ||
86 | eth0: eth0 { | 87 | eth0: eth0 { |
87 | interrupts = <ICU_GRP_NSR 39 IRQ_TYPE_LEVEL_HIGH>, | 88 | interrupts = <ICU_GRP_NSR 39 IRQ_TYPE_LEVEL_HIGH>, |
diff --git a/arch/arm64/boot/dts/marvell/armada-cp110.dtsi b/arch/arm64/boot/dts/marvell/armada-cp110.dtsi index ca22f9d100f5..ed2f1237ea1e 100644 --- a/arch/arm64/boot/dts/marvell/armada-cp110.dtsi +++ b/arch/arm64/boot/dts/marvell/armada-cp110.dtsi | |||
@@ -38,9 +38,10 @@ | |||
38 | compatible = "marvell,armada-7k-pp22"; | 38 | compatible = "marvell,armada-7k-pp22"; |
39 | reg = <0x0 0x100000>, <0x129000 0xb000>; | 39 | reg = <0x0 0x100000>, <0x129000 0xb000>; |
40 | clocks = <&CP110_LABEL(clk) 1 3>, <&CP110_LABEL(clk) 1 9>, | 40 | clocks = <&CP110_LABEL(clk) 1 3>, <&CP110_LABEL(clk) 1 9>, |
41 | <&CP110_LABEL(clk) 1 5>, <&CP110_LABEL(clk) 1 18>; | 41 | <&CP110_LABEL(clk) 1 5>, <&CP110_LABEL(clk) 1 6>, |
42 | <&CP110_LABEL(clk) 1 18>; | ||
42 | clock-names = "pp_clk", "gop_clk", | 43 | clock-names = "pp_clk", "gop_clk", |
43 | "mg_clk", "axi_clk"; | 44 | "mg_clk", "mg_core_clk", "axi_clk"; |
44 | marvell,system-controller = <&CP110_LABEL(syscon0)>; | 45 | marvell,system-controller = <&CP110_LABEL(syscon0)>; |
45 | status = "disabled"; | 46 | status = "disabled"; |
46 | dma-coherent; | 47 | dma-coherent; |