xref: /freebsd-src/sys/contrib/device-tree/src/arm/marvell/kirkwood-openblocks_a7.dts (revision 0e8011faf58b743cc652e3b2ad0f7671227610df)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * Device Tree file for OpenBlocks A7 board
4*f126890aSEmmanuel Vadot *
5*f126890aSEmmanuel Vadot * Copyright (C) 2013 Free Electrons
6*f126890aSEmmanuel Vadot *
7*f126890aSEmmanuel Vadot * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8*f126890aSEmmanuel Vadot *
9*f126890aSEmmanuel Vadot */
10*f126890aSEmmanuel Vadot
11*f126890aSEmmanuel Vadot/dts-v1/;
12*f126890aSEmmanuel Vadot
13*f126890aSEmmanuel Vadot#include "kirkwood.dtsi"
14*f126890aSEmmanuel Vadot#include "kirkwood-6282.dtsi"
15*f126890aSEmmanuel Vadot
16*f126890aSEmmanuel Vadot/ {
17*f126890aSEmmanuel Vadot	model = "Plat'Home OpenBlocksA7";
18*f126890aSEmmanuel Vadot	compatible = "plathome,openblocks-a7", "marvell,kirkwood-88f6283", "marvell,kirkwood";
19*f126890aSEmmanuel Vadot
20*f126890aSEmmanuel Vadot	memory {
21*f126890aSEmmanuel Vadot		device_type = "memory";
22*f126890aSEmmanuel Vadot		reg = <0x00000000 0x40000000>; /* 1 GB */
23*f126890aSEmmanuel Vadot	};
24*f126890aSEmmanuel Vadot
25*f126890aSEmmanuel Vadot	chosen {
26*f126890aSEmmanuel Vadot		bootargs = "console=ttyS0,115200n8 earlyprintk";
27*f126890aSEmmanuel Vadot		stdout-path = &uart0;
28*f126890aSEmmanuel Vadot	};
29*f126890aSEmmanuel Vadot
30*f126890aSEmmanuel Vadot	ocp@f1000000 {
31*f126890aSEmmanuel Vadot		serial@12000 {
32*f126890aSEmmanuel Vadot			status = "okay";
33*f126890aSEmmanuel Vadot		};
34*f126890aSEmmanuel Vadot
35*f126890aSEmmanuel Vadot		serial@12100 {
36*f126890aSEmmanuel Vadot			status = "okay";
37*f126890aSEmmanuel Vadot		};
38*f126890aSEmmanuel Vadot
39*f126890aSEmmanuel Vadot		sata@80000 {
40*f126890aSEmmanuel Vadot			nr-ports = <1>;
41*f126890aSEmmanuel Vadot			status = "okay";
42*f126890aSEmmanuel Vadot		};
43*f126890aSEmmanuel Vadot
44*f126890aSEmmanuel Vadot		i2c@11100 {
45*f126890aSEmmanuel Vadot			status = "okay";
46*f126890aSEmmanuel Vadot
47*f126890aSEmmanuel Vadot			s24c02: s24c02@50 {
48*f126890aSEmmanuel Vadot				compatible = "atmel,24c02";
49*f126890aSEmmanuel Vadot				reg = <0x50>;
50*f126890aSEmmanuel Vadot			};
51*f126890aSEmmanuel Vadot		};
52*f126890aSEmmanuel Vadot
53*f126890aSEmmanuel Vadot		pinctrl: pin-controller@10000 {
54*f126890aSEmmanuel Vadot			pinctrl-0 = <&pmx_dip_switches &pmx_gpio_header
55*f126890aSEmmanuel Vadot				     &pmx_gpio_header_gpo>;
56*f126890aSEmmanuel Vadot			pinctrl-names = "default";
57*f126890aSEmmanuel Vadot
58*f126890aSEmmanuel Vadot			pmx_uart0: pmx-uart0 {
59*f126890aSEmmanuel Vadot				marvell,pins = "mpp10", "mpp11", "mpp15",
60*f126890aSEmmanuel Vadot					"mpp16";
61*f126890aSEmmanuel Vadot				marvell,function = "uart0";
62*f126890aSEmmanuel Vadot			};
63*f126890aSEmmanuel Vadot
64*f126890aSEmmanuel Vadot			pmx_uart1: pmx-uart1 {
65*f126890aSEmmanuel Vadot				marvell,pins = "mpp13", "mpp14", "mpp8",
66*f126890aSEmmanuel Vadot					"mpp9";
67*f126890aSEmmanuel Vadot				marvell,function = "uart1";
68*f126890aSEmmanuel Vadot			};
69*f126890aSEmmanuel Vadot
70*f126890aSEmmanuel Vadot			pmx_sysrst: pmx-sysrst {
71*f126890aSEmmanuel Vadot				marvell,pins = "mpp6";
72*f126890aSEmmanuel Vadot				marvell,function = "sysrst";
73*f126890aSEmmanuel Vadot			};
74*f126890aSEmmanuel Vadot
75*f126890aSEmmanuel Vadot			pmx_dip_switches: pmx-dip-switches {
76*f126890aSEmmanuel Vadot				marvell,pins = "mpp44", "mpp45", "mpp46", "mpp47";
77*f126890aSEmmanuel Vadot				marvell,function = "gpio";
78*f126890aSEmmanuel Vadot			};
79*f126890aSEmmanuel Vadot
80*f126890aSEmmanuel Vadot			/*
81*f126890aSEmmanuel Vadot			 * Accessible on connector J202. The MPP
82*f126890aSEmmanuel Vadot			 * listed below are pin 1-7, pin 8 is unused,
83*f126890aSEmmanuel Vadot			 * pin 9 is external reset input and pin 10 is
84*f126890aSEmmanuel Vadot			 * ground.
85*f126890aSEmmanuel Vadot			 */
86*f126890aSEmmanuel Vadot			pmx_gpio_header: pmx-gpio-header {
87*f126890aSEmmanuel Vadot				marvell,pins = "mpp17", "mpp29", "mpp28",
88*f126890aSEmmanuel Vadot					       "mpp35", "mpp34", "mpp40";
89*f126890aSEmmanuel Vadot				marvell,function = "gpio";
90*f126890aSEmmanuel Vadot			};
91*f126890aSEmmanuel Vadot
92*f126890aSEmmanuel Vadot			pmx_gpio_header_gpo: pxm-gpio-header-gpo {
93*f126890aSEmmanuel Vadot				marvell,pins = "mpp7";
94*f126890aSEmmanuel Vadot				marvell,function = "gpo";
95*f126890aSEmmanuel Vadot			};
96*f126890aSEmmanuel Vadot
97*f126890aSEmmanuel Vadot			pmx_gpio_init: pmx-init {
98*f126890aSEmmanuel Vadot				marvell,pins = "mpp38";
99*f126890aSEmmanuel Vadot				marvell,function = "gpio";
100*f126890aSEmmanuel Vadot			};
101*f126890aSEmmanuel Vadot
102*f126890aSEmmanuel Vadot			pmx_usb_oc: pmx-usb-oc {
103*f126890aSEmmanuel Vadot				marvell,pins = "mpp39";
104*f126890aSEmmanuel Vadot				marvell,function = "gpio";
105*f126890aSEmmanuel Vadot			};
106*f126890aSEmmanuel Vadot
107*f126890aSEmmanuel Vadot			pmx_leds: pmx-leds {
108*f126890aSEmmanuel Vadot				marvell,pins = "mpp41", "mpp42", "mpp43";
109*f126890aSEmmanuel Vadot				marvell,function = "gpio";
110*f126890aSEmmanuel Vadot			};
111*f126890aSEmmanuel Vadot		};
112*f126890aSEmmanuel Vadot	};
113*f126890aSEmmanuel Vadot
114*f126890aSEmmanuel Vadot	gpio-leds {
115*f126890aSEmmanuel Vadot		compatible = "gpio-leds";
116*f126890aSEmmanuel Vadot		pinctrl-0 = <&pmx_leds>;
117*f126890aSEmmanuel Vadot		pinctrl-names = "default";
118*f126890aSEmmanuel Vadot
119*f126890aSEmmanuel Vadot		led-red {
120*f126890aSEmmanuel Vadot			label = "obsa7:red:stat";
121*f126890aSEmmanuel Vadot			gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
122*f126890aSEmmanuel Vadot		};
123*f126890aSEmmanuel Vadot
124*f126890aSEmmanuel Vadot		led-green {
125*f126890aSEmmanuel Vadot			label = "obsa7:green:stat";
126*f126890aSEmmanuel Vadot			gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
127*f126890aSEmmanuel Vadot		};
128*f126890aSEmmanuel Vadot
129*f126890aSEmmanuel Vadot		led-yellow {
130*f126890aSEmmanuel Vadot			label = "obsa7:yellow:stat";
131*f126890aSEmmanuel Vadot			gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
132*f126890aSEmmanuel Vadot		};
133*f126890aSEmmanuel Vadot        };
134*f126890aSEmmanuel Vadot
135*f126890aSEmmanuel Vadot	gpio_keys {
136*f126890aSEmmanuel Vadot		compatible = "gpio-keys";
137*f126890aSEmmanuel Vadot		pinctrl-0 = <&pmx_gpio_init>;
138*f126890aSEmmanuel Vadot		pinctrl-names = "default";
139*f126890aSEmmanuel Vadot
140*f126890aSEmmanuel Vadot		button {
141*f126890aSEmmanuel Vadot			label = "Init Button";
142*f126890aSEmmanuel Vadot			linux,code = <KEY_POWER>;
143*f126890aSEmmanuel Vadot			gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
144*f126890aSEmmanuel Vadot		};
145*f126890aSEmmanuel Vadot	};
146*f126890aSEmmanuel Vadot};
147*f126890aSEmmanuel Vadot
148*f126890aSEmmanuel Vadot&nand {
149*f126890aSEmmanuel Vadot	chip-delay = <25>;
150*f126890aSEmmanuel Vadot	status = "okay";
151*f126890aSEmmanuel Vadot
152*f126890aSEmmanuel Vadot	partition@0 {
153*f126890aSEmmanuel Vadot		label = "uboot";
154*f126890aSEmmanuel Vadot		reg = <0x0 0x1c0000>;
155*f126890aSEmmanuel Vadot	};
156*f126890aSEmmanuel Vadot
157*f126890aSEmmanuel Vadot	partition@1c0000 {
158*f126890aSEmmanuel Vadot		label = "env";
159*f126890aSEmmanuel Vadot		reg = <0x1c0000 0x2c0000>;
160*f126890aSEmmanuel Vadot	};
161*f126890aSEmmanuel Vadot
162*f126890aSEmmanuel Vadot	partition@480000 {
163*f126890aSEmmanuel Vadot		label = "test";
164*f126890aSEmmanuel Vadot		reg = <0x480000 0x160000>;
165*f126890aSEmmanuel Vadot	};
166*f126890aSEmmanuel Vadot
167*f126890aSEmmanuel Vadot	partition@5e0000 {
168*f126890aSEmmanuel Vadot		label = "conf";
169*f126890aSEmmanuel Vadot		reg = <0x5e0000 0x540000>;
170*f126890aSEmmanuel Vadot	};
171*f126890aSEmmanuel Vadot
172*f126890aSEmmanuel Vadot	partition@b20000 {
173*f126890aSEmmanuel Vadot		label = "linux";
174*f126890aSEmmanuel Vadot		reg = <0xb20000 0x3d40000>;
175*f126890aSEmmanuel Vadot	};
176*f126890aSEmmanuel Vadot
177*f126890aSEmmanuel Vadot	partition@4860000 {
178*f126890aSEmmanuel Vadot		label = "user";
179*f126890aSEmmanuel Vadot		reg = <0x4860000 0xb7a0000>;
180*f126890aSEmmanuel Vadot	};
181*f126890aSEmmanuel Vadot};
182*f126890aSEmmanuel Vadot
183*f126890aSEmmanuel Vadot&mdio {
184*f126890aSEmmanuel Vadot	status = "okay";
185*f126890aSEmmanuel Vadot
186*f126890aSEmmanuel Vadot	ethphy0: ethernet-phy@0 {
187*f126890aSEmmanuel Vadot		reg = <0>;
188*f126890aSEmmanuel Vadot	};
189*f126890aSEmmanuel Vadot
190*f126890aSEmmanuel Vadot	ethphy1: ethernet-phy@1 {
191*f126890aSEmmanuel Vadot		reg = <1>;
192*f126890aSEmmanuel Vadot	};
193*f126890aSEmmanuel Vadot};
194*f126890aSEmmanuel Vadot
195*f126890aSEmmanuel Vadot&eth0 {
196*f126890aSEmmanuel Vadot	status = "okay";
197*f126890aSEmmanuel Vadot	ethernet0-port@0 {
198*f126890aSEmmanuel Vadot		phy-handle = <&ethphy0>;
199*f126890aSEmmanuel Vadot	};
200*f126890aSEmmanuel Vadot};
201*f126890aSEmmanuel Vadot
202*f126890aSEmmanuel Vadot&eth1 {
203*f126890aSEmmanuel Vadot	status = "okay";
204*f126890aSEmmanuel Vadot	ethernet1-port@0 {
205*f126890aSEmmanuel Vadot		phy-handle = <&ethphy1>;
206*f126890aSEmmanuel Vadot	};
207*f126890aSEmmanuel Vadot};
208