aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2018-05-14 12:25:14 -0400
committerOlof Johansson <olof@lixom.net>2018-05-14 12:25:14 -0400
commit99ffa8b0e7ee13410dd60498129ba1b52ce26f80 (patch)
tree50f704faf8cf47dff2a617d3bfc97e53bef42690
parent9954b80b8c0e8abc98e17bba0fccd9876211ceaa (diff)
parentf43194c1447c9536efb0859c2f3f46f6bf2b9154 (diff)
Merge tag 'mvebu-fixes-4.17-1' of git://git.infradead.org/linux-mvebu into fixes
mvebu fixes for 4.17 (part 1) Declare missing clocks needed for network on Armada 8040 base boards (such as the McBin) * tag 'mvebu-fixes-4.17-1' of git://git.infradead.org/linux-mvebu: ARM64: dts: marvell: armada-cp110: Add mg_core_clk for ethernet node ARM64: dts: marvell: armada-cp110: Add clocks for the xmdio node Signed-off-by: Olof Johansson <olof@lixom.net>
-rw-r--r--Documentation/devicetree/bindings/net/marvell-pp2.txt9
-rw-r--r--arch/arm64/boot/dts/marvell/armada-cp110.dtsi7
2 files changed, 10 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
28The ethernet ports are represented by subnodes. At least one port is 29The ethernet ports are represented by subnodes. At least one port is
29required. 30required.
@@ -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 48cad7919efa..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;
@@ -141,6 +142,8 @@
141 #size-cells = <0>; 142 #size-cells = <0>;
142 compatible = "marvell,xmdio"; 143 compatible = "marvell,xmdio";
143 reg = <0x12a600 0x10>; 144 reg = <0x12a600 0x10>;
145 clocks = <&CP110_LABEL(clk) 1 5>,
146 <&CP110_LABEL(clk) 1 6>, <&CP110_LABEL(clk) 1 18>;
144 status = "disabled"; 147 status = "disabled";
145 }; 148 };
146 149