xref: /linux/arch/arm/boot/dts/marvell/armada-385-db-88f6820-amc.dts (revision cdd5b5a9761fd66d17586e4f4ba6588c70e640ea)
1*724ba675SRob Herring// SPDX-License-Identifier: (GPL-2.0 OR MIT)
2*724ba675SRob Herring/*
3*724ba675SRob Herring * Device Tree file for Marvell Armada 385 AMC board
4*724ba675SRob Herring * (DB-88F6820-AMC)
5*724ba675SRob Herring *
6*724ba675SRob Herring * Copyright (C) 2017 Allied Telesis Labs
7*724ba675SRob Herring */
8*724ba675SRob Herring
9*724ba675SRob Herring/dts-v1/;
10*724ba675SRob Herring#include "armada-385.dtsi"
11*724ba675SRob Herring
12*724ba675SRob Herring#include <dt-bindings/gpio/gpio.h>
13*724ba675SRob Herring
14*724ba675SRob Herring/ {
15*724ba675SRob Herring	model = "Marvell Armada 385 AMC";
16*724ba675SRob Herring	compatible = "marvell,a385-db-amc", "marvell,armada385", "marvell,armada380";
17*724ba675SRob Herring
18*724ba675SRob Herring	chosen {
19*724ba675SRob Herring		stdout-path = "serial0:115200n8";
20*724ba675SRob Herring	};
21*724ba675SRob Herring
22*724ba675SRob Herring	aliases {
23*724ba675SRob Herring		ethernet0 = &eth0;
24*724ba675SRob Herring		ethernet1 = &eth1;
25*724ba675SRob Herring		spi1 = &spi1;
26*724ba675SRob Herring	};
27*724ba675SRob Herring
28*724ba675SRob Herring	memory {
29*724ba675SRob Herring		device_type = "memory";
30*724ba675SRob Herring		reg = <0x00000000 0x80000000>; /* 2GB */
31*724ba675SRob Herring	};
32*724ba675SRob Herring
33*724ba675SRob Herring	soc {
34*724ba675SRob Herring		ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000
35*724ba675SRob Herring			  MBUS_ID(0x01, 0x1d) 0 0xfff00000 0x100000>;
36*724ba675SRob Herring	};
37*724ba675SRob Herring};
38*724ba675SRob Herring
39*724ba675SRob Herring&i2c0 {
40*724ba675SRob Herring	pinctrl-names = "default";
41*724ba675SRob Herring	pinctrl-0 = <&i2c0_pins>;
42*724ba675SRob Herring	status = "okay";
43*724ba675SRob Herring};
44*724ba675SRob Herring
45*724ba675SRob Herring&uart0 {
46*724ba675SRob Herring	/*
47*724ba675SRob Herring	 * Exported on the micro USB connector CON3
48*724ba675SRob Herring	 * through an FTDI
49*724ba675SRob Herring	 */
50*724ba675SRob Herring
51*724ba675SRob Herring	pinctrl-names = "default";
52*724ba675SRob Herring	pinctrl-0 = <&uart0_pins>;
53*724ba675SRob Herring	status = "okay";
54*724ba675SRob Herring};
55*724ba675SRob Herring
56*724ba675SRob Herring
57*724ba675SRob Herring&eth0 {
58*724ba675SRob Herring	pinctrl-names = "default";
59*724ba675SRob Herring	/*
60*724ba675SRob Herring	 * The Reference Clock 0 is used to provide a
61*724ba675SRob Herring	 * clock to the PHY
62*724ba675SRob Herring	 */
63*724ba675SRob Herring	pinctrl-0 = <&ge0_rgmii_pins>, <&ref_clk0_pins>;
64*724ba675SRob Herring	status = "okay";
65*724ba675SRob Herring	phy = <&phy0>;
66*724ba675SRob Herring	phy-mode = "rgmii-id";
67*724ba675SRob Herring};
68*724ba675SRob Herring
69*724ba675SRob Herring&eth2 {
70*724ba675SRob Herring	status = "okay";
71*724ba675SRob Herring	phy = <&phy1>;
72*724ba675SRob Herring	phy-mode = "sgmii";
73*724ba675SRob Herring};
74*724ba675SRob Herring
75*724ba675SRob Herring&usb0 {
76*724ba675SRob Herring	status = "okay";
77*724ba675SRob Herring};
78*724ba675SRob Herring
79*724ba675SRob Herring
80*724ba675SRob Herring
81*724ba675SRob Herring&mdio {
82*724ba675SRob Herring	pinctrl-names = "default";
83*724ba675SRob Herring	pinctrl-0 = <&mdio_pins>;
84*724ba675SRob Herring
85*724ba675SRob Herring	phy0: ethernet-phy@1 {
86*724ba675SRob Herring		reg = <1>;
87*724ba675SRob Herring	};
88*724ba675SRob Herring
89*724ba675SRob Herring	phy1: ethernet-phy@0 {
90*724ba675SRob Herring		reg = <0>;
91*724ba675SRob Herring	};
92*724ba675SRob Herring};
93*724ba675SRob Herring
94*724ba675SRob Herring&nand_controller {
95*724ba675SRob Herring	status = "okay";
96*724ba675SRob Herring
97*724ba675SRob Herring	nand@0 {
98*724ba675SRob Herring		reg = <0>;
99*724ba675SRob Herring		label = "pxa3xx_nand-0";
100*724ba675SRob Herring		nand-rb = <0>;
101*724ba675SRob Herring		nand-on-flash-bbt;
102*724ba675SRob Herring
103*724ba675SRob Herring		partitions {
104*724ba675SRob Herring			compatible = "fixed-partitions";
105*724ba675SRob Herring			#address-cells = <1>;
106*724ba675SRob Herring			#size-cells = <1>;
107*724ba675SRob Herring			partition@0 {
108*724ba675SRob Herring				reg = <0x00000000 0x40000000>;
109*724ba675SRob Herring				label = "user";
110*724ba675SRob Herring			};
111*724ba675SRob Herring		};
112*724ba675SRob Herring	};
113*724ba675SRob Herring};
114*724ba675SRob Herring
115*724ba675SRob Herring&pciec {
116*724ba675SRob Herring	status = "okay";
117*724ba675SRob Herring};
118*724ba675SRob Herring
119*724ba675SRob Herring&pcie1 {
120*724ba675SRob Herring	/* Port 0, Lane 0 */
121*724ba675SRob Herring	status = "okay";
122*724ba675SRob Herring};
123*724ba675SRob Herring
124*724ba675SRob Herring&spi1 {
125*724ba675SRob Herring	pinctrl-names = "default";
126*724ba675SRob Herring	pinctrl-0 = <&spi1_pins>;
127*724ba675SRob Herring	status = "okay";
128*724ba675SRob Herring
129*724ba675SRob Herring	flash@0 {
130*724ba675SRob Herring		#address-cells = <1>;
131*724ba675SRob Herring		#size-cells = <1>;
132*724ba675SRob Herring		compatible = "jedec,spi-nor";
133*724ba675SRob Herring		reg = <0>; /* Chip select 0 */
134*724ba675SRob Herring		spi-max-frequency = <50000000>;
135*724ba675SRob Herring		m25p,fast-read;
136*724ba675SRob Herring
137*724ba675SRob Herring		partitions {
138*724ba675SRob Herring			compatible = "fixed-partitions";
139*724ba675SRob Herring			#address-cells = <1>;
140*724ba675SRob Herring			#size-cells = <1>;
141*724ba675SRob Herring			partition@0 {
142*724ba675SRob Herring				reg = <0x00000000 0x00100000>;
143*724ba675SRob Herring				label = "u-boot";
144*724ba675SRob Herring			};
145*724ba675SRob Herring			partition@100000 {
146*724ba675SRob Herring				reg = <0x00100000 0x00040000>;
147*724ba675SRob Herring				label = "u-boot-env";
148*724ba675SRob Herring			};
149*724ba675SRob Herring		};
150*724ba675SRob Herring	};
151*724ba675SRob Herring};
152*724ba675SRob Herring
153*724ba675SRob Herring&refclk {
154*724ba675SRob Herring	clock-frequency = <20000000>;
155*724ba675SRob Herring};
156