xref: /freebsd-src/sys/contrib/device-tree/src/arm/marvell/armada-xp-openblocks-ax3-4.dts (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * Device Tree file for OpenBlocks AX3-4 board
4*f126890aSEmmanuel Vadot *
5*f126890aSEmmanuel Vadot * Copyright (C) 2012 Marvell
6*f126890aSEmmanuel Vadot *
7*f126890aSEmmanuel Vadot * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8*f126890aSEmmanuel Vadot */
9*f126890aSEmmanuel Vadot
10*f126890aSEmmanuel Vadot/dts-v1/;
11*f126890aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
12*f126890aSEmmanuel Vadot#include <dt-bindings/input/input.h>
13*f126890aSEmmanuel Vadot#include "armada-xp-mv78260.dtsi"
14*f126890aSEmmanuel Vadot
15*f126890aSEmmanuel Vadot/ {
16*f126890aSEmmanuel Vadot	model = "PlatHome OpenBlocks AX3-4 board";
17*f126890aSEmmanuel Vadot	compatible = "plathome,openblocks-ax3-4", "marvell,armadaxp-mv78260", "marvell,armadaxp", "marvell,armada-370-xp";
18*f126890aSEmmanuel Vadot
19*f126890aSEmmanuel Vadot	chosen {
20*f126890aSEmmanuel Vadot		stdout-path = "serial0:115200n8";
21*f126890aSEmmanuel Vadot	};
22*f126890aSEmmanuel Vadot
23*f126890aSEmmanuel Vadot	memory@0 {
24*f126890aSEmmanuel Vadot		device_type = "memory";
25*f126890aSEmmanuel Vadot		reg = <0 0x00000000 0 0x40000000>; /* 1 GB soldered on */
26*f126890aSEmmanuel Vadot	};
27*f126890aSEmmanuel Vadot
28*f126890aSEmmanuel Vadot	soc {
29*f126890aSEmmanuel Vadot		ranges = <MBUS_ID(0xf0, 0x01) 0 0 0xd0000000 0x100000
30*f126890aSEmmanuel Vadot			  MBUS_ID(0x01, 0x1d) 0 0 0xfff00000 0x100000
31*f126890aSEmmanuel Vadot			  MBUS_ID(0x01, 0x2f) 0 0 0xe8000000 0x8000000
32*f126890aSEmmanuel Vadot			  MBUS_ID(0x09, 0x09) 0 0 0xf1100000 0x10000
33*f126890aSEmmanuel Vadot			  MBUS_ID(0x09, 0x05) 0 0 0xf1110000 0x10000
34*f126890aSEmmanuel Vadot			  MBUS_ID(0x0c, 0x04) 0 0 0xd1200000 0x100000>;
35*f126890aSEmmanuel Vadot
36*f126890aSEmmanuel Vadot		devbus-bootcs {
37*f126890aSEmmanuel Vadot			status = "okay";
38*f126890aSEmmanuel Vadot
39*f126890aSEmmanuel Vadot			/* Device Bus parameters are required */
40*f126890aSEmmanuel Vadot
41*f126890aSEmmanuel Vadot			/* Read parameters */
42*f126890aSEmmanuel Vadot			devbus,bus-width    = <16>;
43*f126890aSEmmanuel Vadot			devbus,turn-off-ps  = <60000>;
44*f126890aSEmmanuel Vadot			devbus,badr-skew-ps = <0>;
45*f126890aSEmmanuel Vadot			devbus,acc-first-ps = <124000>;
46*f126890aSEmmanuel Vadot			devbus,acc-next-ps  = <248000>;
47*f126890aSEmmanuel Vadot			devbus,rd-setup-ps  = <0>;
48*f126890aSEmmanuel Vadot			devbus,rd-hold-ps   = <0>;
49*f126890aSEmmanuel Vadot
50*f126890aSEmmanuel Vadot			/* Write parameters */
51*f126890aSEmmanuel Vadot			devbus,sync-enable = <0>;
52*f126890aSEmmanuel Vadot			devbus,wr-high-ps  = <60000>;
53*f126890aSEmmanuel Vadot			devbus,wr-low-ps   = <60000>;
54*f126890aSEmmanuel Vadot			devbus,ale-wr-ps   = <60000>;
55*f126890aSEmmanuel Vadot
56*f126890aSEmmanuel Vadot			/* NOR 128 MiB */
57*f126890aSEmmanuel Vadot			nor@0 {
58*f126890aSEmmanuel Vadot				compatible = "cfi-flash";
59*f126890aSEmmanuel Vadot				reg = <0 0x8000000>;
60*f126890aSEmmanuel Vadot				bank-width = <2>;
61*f126890aSEmmanuel Vadot			};
62*f126890aSEmmanuel Vadot		};
63*f126890aSEmmanuel Vadot
64*f126890aSEmmanuel Vadot		internal-regs {
65*f126890aSEmmanuel Vadot			rtc@10300 {
66*f126890aSEmmanuel Vadot				/* No crystal connected to the internal RTC */
67*f126890aSEmmanuel Vadot				status = "disabled";
68*f126890aSEmmanuel Vadot			};
69*f126890aSEmmanuel Vadot			serial@12000 {
70*f126890aSEmmanuel Vadot				status = "okay";
71*f126890aSEmmanuel Vadot			};
72*f126890aSEmmanuel Vadot			serial@12100 {
73*f126890aSEmmanuel Vadot				status = "okay";
74*f126890aSEmmanuel Vadot			};
75*f126890aSEmmanuel Vadot
76*f126890aSEmmanuel Vadot			leds {
77*f126890aSEmmanuel Vadot				compatible = "gpio-leds";
78*f126890aSEmmanuel Vadot				pinctrl-names = "default";
79*f126890aSEmmanuel Vadot				pinctrl-0 = <&led_pins>;
80*f126890aSEmmanuel Vadot
81*f126890aSEmmanuel Vadot				red_led {
82*f126890aSEmmanuel Vadot					label = "red_led";
83*f126890aSEmmanuel Vadot					gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
84*f126890aSEmmanuel Vadot					default-state = "off";
85*f126890aSEmmanuel Vadot				};
86*f126890aSEmmanuel Vadot
87*f126890aSEmmanuel Vadot				yellow_led {
88*f126890aSEmmanuel Vadot					label = "yellow_led";
89*f126890aSEmmanuel Vadot					gpios = <&gpio1 19 GPIO_ACTIVE_LOW>;
90*f126890aSEmmanuel Vadot					default-state = "off";
91*f126890aSEmmanuel Vadot				};
92*f126890aSEmmanuel Vadot
93*f126890aSEmmanuel Vadot				green_led {
94*f126890aSEmmanuel Vadot					label = "green_led";
95*f126890aSEmmanuel Vadot					gpios = <&gpio1 21 GPIO_ACTIVE_LOW>;
96*f126890aSEmmanuel Vadot					default-state = "keep";
97*f126890aSEmmanuel Vadot				};
98*f126890aSEmmanuel Vadot			};
99*f126890aSEmmanuel Vadot
100*f126890aSEmmanuel Vadot			gpio-keys {
101*f126890aSEmmanuel Vadot				compatible = "gpio-keys";
102*f126890aSEmmanuel Vadot
103*f126890aSEmmanuel Vadot				button-init {
104*f126890aSEmmanuel Vadot					label = "Init Button";
105*f126890aSEmmanuel Vadot					linux,code = <KEY_POWER>;
106*f126890aSEmmanuel Vadot					gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>;
107*f126890aSEmmanuel Vadot				};
108*f126890aSEmmanuel Vadot			};
109*f126890aSEmmanuel Vadot
110*f126890aSEmmanuel Vadot			ethernet@70000 {
111*f126890aSEmmanuel Vadot				status = "okay";
112*f126890aSEmmanuel Vadot				phy = <&phy0>;
113*f126890aSEmmanuel Vadot				phy-mode = "sgmii";
114*f126890aSEmmanuel Vadot				buffer-manager = <&bm>;
115*f126890aSEmmanuel Vadot				bm,pool-long = <0>;
116*f126890aSEmmanuel Vadot			};
117*f126890aSEmmanuel Vadot			ethernet@74000 {
118*f126890aSEmmanuel Vadot				status = "okay";
119*f126890aSEmmanuel Vadot				phy = <&phy1>;
120*f126890aSEmmanuel Vadot				phy-mode = "sgmii";
121*f126890aSEmmanuel Vadot				buffer-manager = <&bm>;
122*f126890aSEmmanuel Vadot				bm,pool-long = <1>;
123*f126890aSEmmanuel Vadot			};
124*f126890aSEmmanuel Vadot			ethernet@30000 {
125*f126890aSEmmanuel Vadot				status = "okay";
126*f126890aSEmmanuel Vadot				phy = <&phy2>;
127*f126890aSEmmanuel Vadot				phy-mode = "sgmii";
128*f126890aSEmmanuel Vadot				buffer-manager = <&bm>;
129*f126890aSEmmanuel Vadot				bm,pool-long = <2>;
130*f126890aSEmmanuel Vadot			};
131*f126890aSEmmanuel Vadot			ethernet@34000 {
132*f126890aSEmmanuel Vadot				status = "okay";
133*f126890aSEmmanuel Vadot				phy = <&phy3>;
134*f126890aSEmmanuel Vadot				phy-mode = "sgmii";
135*f126890aSEmmanuel Vadot				buffer-manager = <&bm>;
136*f126890aSEmmanuel Vadot				bm,pool-long = <3>;
137*f126890aSEmmanuel Vadot			};
138*f126890aSEmmanuel Vadot			i2c@11000 {
139*f126890aSEmmanuel Vadot				status = "okay";
140*f126890aSEmmanuel Vadot				clock-frequency = <400000>;
141*f126890aSEmmanuel Vadot			};
142*f126890aSEmmanuel Vadot			i2c@11100 {
143*f126890aSEmmanuel Vadot				status = "okay";
144*f126890aSEmmanuel Vadot				clock-frequency = <400000>;
145*f126890aSEmmanuel Vadot
146*f126890aSEmmanuel Vadot				s35390a: s35390a@30 {
147*f126890aSEmmanuel Vadot					compatible = "s35390a";
148*f126890aSEmmanuel Vadot					reg = <0x30>;
149*f126890aSEmmanuel Vadot				};
150*f126890aSEmmanuel Vadot			};
151*f126890aSEmmanuel Vadot			sata@a0000 {
152*f126890aSEmmanuel Vadot				nr-ports = <2>;
153*f126890aSEmmanuel Vadot				status = "okay";
154*f126890aSEmmanuel Vadot			};
155*f126890aSEmmanuel Vadot
156*f126890aSEmmanuel Vadot			/* Front side USB 0 */
157*f126890aSEmmanuel Vadot			usb@50000 {
158*f126890aSEmmanuel Vadot				status = "okay";
159*f126890aSEmmanuel Vadot			};
160*f126890aSEmmanuel Vadot
161*f126890aSEmmanuel Vadot			/* Front side USB 1 */
162*f126890aSEmmanuel Vadot			usb@51000 {
163*f126890aSEmmanuel Vadot				status = "okay";
164*f126890aSEmmanuel Vadot			};
165*f126890aSEmmanuel Vadot
166*f126890aSEmmanuel Vadot			bm@c0000 {
167*f126890aSEmmanuel Vadot				status = "okay";
168*f126890aSEmmanuel Vadot			};
169*f126890aSEmmanuel Vadot		};
170*f126890aSEmmanuel Vadot
171*f126890aSEmmanuel Vadot		bm-bppi {
172*f126890aSEmmanuel Vadot			status = "okay";
173*f126890aSEmmanuel Vadot		};
174*f126890aSEmmanuel Vadot	};
175*f126890aSEmmanuel Vadot};
176*f126890aSEmmanuel Vadot
177*f126890aSEmmanuel Vadot&pciec {
178*f126890aSEmmanuel Vadot	status = "okay";
179*f126890aSEmmanuel Vadot	/* Internal mini-PCIe connector */
180*f126890aSEmmanuel Vadot	pcie@1,0 {
181*f126890aSEmmanuel Vadot		/* Port 0, Lane 0 */
182*f126890aSEmmanuel Vadot		status = "okay";
183*f126890aSEmmanuel Vadot	};
184*f126890aSEmmanuel Vadot};
185*f126890aSEmmanuel Vadot
186*f126890aSEmmanuel Vadot&mdio {
187*f126890aSEmmanuel Vadot	phy0: ethernet-phy@0 {
188*f126890aSEmmanuel Vadot		reg = <0>;
189*f126890aSEmmanuel Vadot	};
190*f126890aSEmmanuel Vadot
191*f126890aSEmmanuel Vadot	phy1: ethernet-phy@1 {
192*f126890aSEmmanuel Vadot		reg = <1>;
193*f126890aSEmmanuel Vadot	};
194*f126890aSEmmanuel Vadot
195*f126890aSEmmanuel Vadot	phy2: ethernet-phy@2 {
196*f126890aSEmmanuel Vadot		reg = <2>;
197*f126890aSEmmanuel Vadot	};
198*f126890aSEmmanuel Vadot
199*f126890aSEmmanuel Vadot	phy3: ethernet-phy@3 {
200*f126890aSEmmanuel Vadot		reg = <3>;
201*f126890aSEmmanuel Vadot	};
202*f126890aSEmmanuel Vadot};
203*f126890aSEmmanuel Vadot
204*f126890aSEmmanuel Vadot&pinctrl {
205*f126890aSEmmanuel Vadot	led_pins: led-pins-0 {
206*f126890aSEmmanuel Vadot		marvell,pins = "mpp49", "mpp51", "mpp53";
207*f126890aSEmmanuel Vadot		marvell,function = "gpio";
208*f126890aSEmmanuel Vadot	};
209*f126890aSEmmanuel Vadot};
210