aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Packham <chris.packham@alliedtelesis.co.nz>2018-07-26 00:02:57 -0400
committerGregory CLEMENT <gregory.clement@bootlin.com>2018-09-20 11:53:44 -0400
commit354c97a9042fd2588f47283910f2e487ab17593f (patch)
treefc10dc42ee7062d39aa2ad4ce1ad5346500437c1
parent9c10611959a3bbe659d7435d8220078fa161f02c (diff)
ARM: dts: mvebu: Add device tree for db-88f6820-amc board
This board is a plugin card for some of Marvell's switch development kits. It's similar to the non-amc board except that it has no SATA support. [gregory: fix DTC warning and use the new partition binding] Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz> Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
-rw-r--r--arch/arm/boot/dts/Makefile1
-rw-r--r--arch/arm/boot/dts/armada-385-db-88f6820-amc.dts157
2 files changed, 158 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index b5bd3de87c33..5575ab02c01b 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -1149,6 +1149,7 @@ dtb-$(CONFIG_MACH_ARMADA_370) += \
1149dtb-$(CONFIG_MACH_ARMADA_375) += \ 1149dtb-$(CONFIG_MACH_ARMADA_375) += \
1150 armada-375-db.dtb 1150 armada-375-db.dtb
1151dtb-$(CONFIG_MACH_ARMADA_38X) += \ 1151dtb-$(CONFIG_MACH_ARMADA_38X) += \
1152 armada-385-db-88f6820-amc.dtb \
1152 armada-385-db-ap.dtb \ 1153 armada-385-db-ap.dtb \
1153 armada-385-linksys-caiman.dtb \ 1154 armada-385-linksys-caiman.dtb \
1154 armada-385-linksys-cobra.dtb \ 1155 armada-385-linksys-cobra.dtb \
diff --git a/arch/arm/boot/dts/armada-385-db-88f6820-amc.dts b/arch/arm/boot/dts/armada-385-db-88f6820-amc.dts
new file mode 100644
index 000000000000..dc9ccce1d4a1
--- /dev/null
+++ b/arch/arm/boot/dts/armada-385-db-88f6820-amc.dts
@@ -0,0 +1,157 @@
1// SPDX-License-Identifier: (GPL-2.0 OR MIT)
2/*
3 * Device Tree file for Marvell Armada 385 AMC board
4 * (DB-88F6820-AMC)
5 *
6 * Copyright (C) 2017 Allied Telesis Labs
7 */
8
9/dts-v1/;
10#include "armada-385.dtsi"
11
12#include <dt-bindings/gpio/gpio.h>
13
14/ {
15 model = "Marvell Armada 385 AMC";
16 compatible = "marvell,a385-db-amc", "marvell,armada385", "marvell,armada380";
17
18 chosen {
19 stdout-path = "serial0:115200n8";
20 };
21
22 aliases {
23 ethernet0 = &eth0;
24 ethernet1 = &eth1;
25 spi1 = &spi1;
26 };
27
28 memory {
29 device_type = "memory";
30 reg = <0x00000000 0x80000000>; /* 2GB */
31 };
32
33 soc {
34 ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000
35 MBUS_ID(0x01, 0x1d) 0 0xfff00000 0x100000>;
36 };
37};
38
39&i2c0 {
40 pinctrl-names = "default";
41 pinctrl-0 = <&i2c0_pins>;
42 status = "okay";
43};
44
45&uart0 {
46 /*
47 * Exported on the micro USB connector CON3
48 * through an FTDI
49 */
50
51 pinctrl-names = "default";
52 pinctrl-0 = <&uart0_pins>;
53 status = "okay";
54};
55
56
57&eth0 {
58 pinctrl-names = "default";
59 /*
60 * The Reference Clock 0 is used to provide a
61 * clock to the PHY
62 */
63 pinctrl-0 = <&ge0_rgmii_pins>, <&ref_clk0_pins>;
64 status = "okay";
65 phy = <&phy0>;
66 phy-mode = "rgmii-id";
67};
68
69&eth2 {
70 status = "okay";
71 phy = <&phy1>;
72 phy-mode = "sgmii";
73};
74
75&usb0 {
76 status = "okay";
77};
78
79
80
81&mdio {
82 pinctrl-names = "default";
83 pinctrl-0 = <&mdio_pins>;
84
85 phy0: ethernet-phy@1 {
86 reg = <1>;
87 };
88
89 phy1: ethernet-phy@0 {
90 reg = <0>;
91 };
92};
93
94&nand_controller {
95 status = "okay";
96
97 nand@0 {
98 reg = <0>;
99 label = "pxa3xx_nand-0";
100 nand-rb = <0>;
101 nand-on-flash-bbt;
102 nand-ecc-strength = <4>;
103 nand-ecc-step-size = <512>;
104
105 partitions {
106 compatible = "fixed-partitions";
107 #address-cells = <1>;
108 #size-cells = <1>;
109 partition@0 {
110 reg = <0x00000000 0x40000000>;
111 label = "user";
112 };
113 };
114 };
115};
116
117&pciec {
118 status = "okay";
119};
120
121&pcie1 {
122 /* Port 0, Lane 0 */
123 status = "okay";
124};
125
126&spi1 {
127 pinctrl-names = "default";
128 pinctrl-0 = <&spi1_pins>;
129 status = "okay";
130
131 spi-flash@0 {
132 #address-cells = <1>;
133 #size-cells = <1>;
134 compatible = "jedec,spi-nor";
135 reg = <0>; /* Chip select 0 */
136 spi-max-frequency = <50000000>;
137 m25p,fast-read;
138
139 partitions {
140 compatible = "fixed-partitions";
141 #address-cells = <1>;
142 #size-cells = <1>;
143 partition@0 {
144 reg = <0x00000000 0x00100000>;
145 label = "u-boot";
146 };
147 partition@100000 {
148 reg = <0x00100000 0x00040000>;
149 label = "u-boot-env";
150 };
151 };
152 };
153};
154
155&refclk {
156 clock-frequency = <20000000>;
157};