blob: 59a425f6b15518acc59dfe8ec7a36ee26d1e5ebd [file] [log] [blame]
Chris Packham574e3aa2019-04-12 08:47:05 +12001// SPDX-License-Identifier: (GPL-2.0 OR MIT)
Chris Packhama90dd4c2016-09-22 12:56:14 +12002/*
Chris Packham574e3aa2019-04-12 08:47:05 +12003 * Device Tree file for Marvell Armada 385 AMC board
Chris Packhama90dd4c2016-09-22 12:56:14 +12004 * (DB-88F6820-AMC)
5 *
Chris Packham574e3aa2019-04-12 08:47:05 +12006 * Copyright (C) 2017 Allied Telesis Labs
Chris Packhama90dd4c2016-09-22 12:56:14 +12007 */
8
9/dts-v1/;
10#include "armada-385.dtsi"
Chris Packham574e3aa2019-04-12 08:47:05 +120011
Chris Packhama90dd4c2016-09-22 12:56:14 +120012#include <dt-bindings/gpio/gpio.h>
13
14/ {
15 model = "Marvell Armada 385 AMC";
Chris Packham574e3aa2019-04-12 08:47:05 +120016 compatible = "marvell,a385-db-amc", "marvell,armada385", "marvell,armada380";
Chris Packhama90dd4c2016-09-22 12:56:14 +120017
18 chosen {
19 stdout-path = "serial0:115200n8";
20 };
21
22 aliases {
23 ethernet0 = &eth0;
Chris Packhamc0f45722018-01-08 16:17:12 +130024 ethernet1 = &eth2;
Chris Packham5bb30bc2017-05-02 20:35:25 +120025 i2c0 = &i2c0;
Chris Packhama90dd4c2016-09-22 12:56:14 +120026 spi1 = &spi1;
27 };
28
29 memory {
30 device_type = "memory";
Chris Packham574e3aa2019-04-12 08:47:05 +120031 reg = <0x00000000 0x80000000>; /* 2GB */
Chris Packhama90dd4c2016-09-22 12:56:14 +120032 };
33
34 soc {
35 ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000
36 MBUS_ID(0x01, 0x1d) 0 0xfff00000 0x100000>;
Chris Packham574e3aa2019-04-12 08:47:05 +120037 };
38};
Chris Packhama90dd4c2016-09-22 12:56:14 +120039
Chris Packham574e3aa2019-04-12 08:47:05 +120040&i2c0 {
41 u-boot,i2c-slave-addr = <0x0>;
42 pinctrl-names = "default";
43 pinctrl-0 = <&i2c0_pins>;
44 status = "okay";
45};
Chris Packhama90dd4c2016-09-22 12:56:14 +120046
Chris Packham574e3aa2019-04-12 08:47:05 +120047&uart0 {
48 /*
49 * Exported on the micro USB connector CON3
50 * through an FTDI
51 */
Chris Packhama90dd4c2016-09-22 12:56:14 +120052
Chris Packham574e3aa2019-04-12 08:47:05 +120053 pinctrl-names = "default";
54 pinctrl-0 = <&uart0_pins>;
55 status = "okay";
56 u-boot,dm-pre-reloc;
57};
Chris Packhama90dd4c2016-09-22 12:56:14 +120058
Chris Packhama90dd4c2016-09-22 12:56:14 +120059
Chris Packham574e3aa2019-04-12 08:47:05 +120060&eth0 {
61 pinctrl-names = "default";
62 /*
63 * The Reference Clock 0 is used to provide a
64 * clock to the PHY
65 */
66 pinctrl-0 = <&ge0_rgmii_pins>, <&ref_clk0_pins>;
67 status = "okay";
68 phy = <&phy0>;
69 phy-mode = "rgmii-id";
70};
Chris Packhama90dd4c2016-09-22 12:56:14 +120071
Chris Packham574e3aa2019-04-12 08:47:05 +120072&eth2 {
73 status = "okay";
74 phy = <&phy1>;
75 phy-mode = "sgmii";
76};
Chris Packhama90dd4c2016-09-22 12:56:14 +120077
Chris Packham574e3aa2019-04-12 08:47:05 +120078&usb0 {
79 status = "okay";
80};
Chris Packhama90dd4c2016-09-22 12:56:14 +120081
Chris Packhama90dd4c2016-09-22 12:56:14 +120082
Chris Packham228efd02016-09-22 12:56:15 +120083
Chris Packham574e3aa2019-04-12 08:47:05 +120084&mdio {
85 pinctrl-names = "default";
86 pinctrl-0 = <&mdio_pins>;
Chris Packhama90dd4c2016-09-22 12:56:14 +120087
Chris Packham574e3aa2019-04-12 08:47:05 +120088 phy0: ethernet-phy@1 {
89 reg = <1>;
90 };
Chris Packhama90dd4c2016-09-22 12:56:14 +120091
Chris Packham574e3aa2019-04-12 08:47:05 +120092 phy1: ethernet-phy@0 {
93 reg = <0>;
Chris Packhama90dd4c2016-09-22 12:56:14 +120094 };
95};
96
Chris Packham574e3aa2019-04-12 08:47:05 +120097&nand_controller {
98 status = "okay";
99 marvell,nand-keep-config;
100 marvell,nand-enable-arbiter;
101 nand-on-flash-bbt;
102};
103
104&pciec {
105 status = "okay";
106};
107
108&pcie1 {
109 /* Port 0, Lane 0 */
110 status = "okay";
111};
112
Chris Packhama90dd4c2016-09-22 12:56:14 +1200113&spi1 {
114 pinctrl-names = "default";
115 pinctrl-0 = <&spi1_pins>;
116 status = "okay";
117 u-boot,dm-pre-reloc;
118
119 spi-flash@0 {
120 u-boot,dm-pre-reloc;
121 #address-cells = <1>;
122 #size-cells = <1>;
Chris Packham574e3aa2019-04-12 08:47:05 +1200123 compatible = "jedec,spi-nor";
Chris Packhama90dd4c2016-09-22 12:56:14 +1200124 reg = <0>; /* Chip select 0 */
125 spi-max-frequency = <50000000>;
126 m25p,fast-read;
Chris Packham574e3aa2019-04-12 08:47:05 +1200127
128 partitions {
129 compatible = "fixed-partitions";
130 #address-cells = <1>;
131 #size-cells = <1>;
132 partition@0 {
133 reg = <0x00000000 0x00100000>;
134 label = "u-boot";
135 };
136 partition@100000 {
137 reg = <0x00100000 0x00040000>;
138 label = "u-boot-env";
139 };
140 };
Chris Packhama90dd4c2016-09-22 12:56:14 +1200141 };
142};
143
144&refclk {
145 clock-frequency = <20000000>;
146};