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