xref: /linux/scripts/dtc/include-prefixes/arm/marvell/kirkwood-openblocks_a7.dts (revision 4f4749dfc01cb4ff261609acdc067b7268468a6d)
1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0
2724ba675SRob Herring/*
3724ba675SRob Herring * Device Tree file for OpenBlocks A7 board
4724ba675SRob Herring *
5724ba675SRob Herring * Copyright (C) 2013 Free Electrons
6724ba675SRob Herring *
7724ba675SRob Herring * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8724ba675SRob Herring *
9724ba675SRob Herring */
10724ba675SRob Herring
11724ba675SRob Herring/dts-v1/;
12724ba675SRob Herring
13724ba675SRob Herring#include "kirkwood.dtsi"
14724ba675SRob Herring#include "kirkwood-6282.dtsi"
15724ba675SRob Herring
16724ba675SRob Herring/ {
17724ba675SRob Herring	model = "Plat'Home OpenBlocksA7";
18724ba675SRob Herring	compatible = "plathome,openblocks-a7", "marvell,kirkwood-88f6283", "marvell,kirkwood";
19724ba675SRob Herring
20724ba675SRob Herring	memory {
21724ba675SRob Herring		device_type = "memory";
22724ba675SRob Herring		reg = <0x00000000 0x40000000>; /* 1 GB */
23724ba675SRob Herring	};
24724ba675SRob Herring
25724ba675SRob Herring	chosen {
26724ba675SRob Herring		bootargs = "console=ttyS0,115200n8 earlyprintk";
27724ba675SRob Herring		stdout-path = &uart0;
28724ba675SRob Herring	};
29724ba675SRob Herring
30724ba675SRob Herring	ocp@f1000000 {
31724ba675SRob Herring		serial@12000 {
32724ba675SRob Herring			status = "okay";
33724ba675SRob Herring		};
34724ba675SRob Herring
35724ba675SRob Herring		serial@12100 {
36724ba675SRob Herring			status = "okay";
37724ba675SRob Herring		};
38724ba675SRob Herring
39724ba675SRob Herring		sata@80000 {
40724ba675SRob Herring			nr-ports = <1>;
41724ba675SRob Herring			status = "okay";
42724ba675SRob Herring		};
43724ba675SRob Herring
44724ba675SRob Herring		i2c@11100 {
45724ba675SRob Herring			status = "okay";
46724ba675SRob Herring
47*4f4749dfSRob Herring (Arm)			s24c02: eeprom@50 {
48724ba675SRob Herring				compatible = "atmel,24c02";
49724ba675SRob Herring				reg = <0x50>;
50724ba675SRob Herring			};
51724ba675SRob Herring		};
52724ba675SRob Herring
53724ba675SRob Herring		pinctrl: pin-controller@10000 {
54724ba675SRob Herring			pinctrl-0 = <&pmx_dip_switches &pmx_gpio_header
55724ba675SRob Herring				     &pmx_gpio_header_gpo>;
56724ba675SRob Herring			pinctrl-names = "default";
57724ba675SRob Herring
58724ba675SRob Herring			pmx_uart0: pmx-uart0 {
59724ba675SRob Herring				marvell,pins = "mpp10", "mpp11", "mpp15",
60724ba675SRob Herring					"mpp16";
61724ba675SRob Herring				marvell,function = "uart0";
62724ba675SRob Herring			};
63724ba675SRob Herring
64724ba675SRob Herring			pmx_uart1: pmx-uart1 {
65724ba675SRob Herring				marvell,pins = "mpp13", "mpp14", "mpp8",
66724ba675SRob Herring					"mpp9";
67724ba675SRob Herring				marvell,function = "uart1";
68724ba675SRob Herring			};
69724ba675SRob Herring
70724ba675SRob Herring			pmx_sysrst: pmx-sysrst {
71724ba675SRob Herring				marvell,pins = "mpp6";
72724ba675SRob Herring				marvell,function = "sysrst";
73724ba675SRob Herring			};
74724ba675SRob Herring
75724ba675SRob Herring			pmx_dip_switches: pmx-dip-switches {
76724ba675SRob Herring				marvell,pins = "mpp44", "mpp45", "mpp46", "mpp47";
77724ba675SRob Herring				marvell,function = "gpio";
78724ba675SRob Herring			};
79724ba675SRob Herring
80724ba675SRob Herring			/*
81724ba675SRob Herring			 * Accessible on connector J202. The MPP
82724ba675SRob Herring			 * listed below are pin 1-7, pin 8 is unused,
83724ba675SRob Herring			 * pin 9 is external reset input and pin 10 is
84724ba675SRob Herring			 * ground.
85724ba675SRob Herring			 */
86724ba675SRob Herring			pmx_gpio_header: pmx-gpio-header {
87724ba675SRob Herring				marvell,pins = "mpp17", "mpp29", "mpp28",
88724ba675SRob Herring					       "mpp35", "mpp34", "mpp40";
89724ba675SRob Herring				marvell,function = "gpio";
90724ba675SRob Herring			};
91724ba675SRob Herring
92724ba675SRob Herring			pmx_gpio_header_gpo: pxm-gpio-header-gpo {
93724ba675SRob Herring				marvell,pins = "mpp7";
94724ba675SRob Herring				marvell,function = "gpo";
95724ba675SRob Herring			};
96724ba675SRob Herring
97724ba675SRob Herring			pmx_gpio_init: pmx-init {
98724ba675SRob Herring				marvell,pins = "mpp38";
99724ba675SRob Herring				marvell,function = "gpio";
100724ba675SRob Herring			};
101724ba675SRob Herring
102724ba675SRob Herring			pmx_usb_oc: pmx-usb-oc {
103724ba675SRob Herring				marvell,pins = "mpp39";
104724ba675SRob Herring				marvell,function = "gpio";
105724ba675SRob Herring			};
106724ba675SRob Herring
107724ba675SRob Herring			pmx_leds: pmx-leds {
108724ba675SRob Herring				marvell,pins = "mpp41", "mpp42", "mpp43";
109724ba675SRob Herring				marvell,function = "gpio";
110724ba675SRob Herring			};
111724ba675SRob Herring		};
112724ba675SRob Herring	};
113724ba675SRob Herring
114724ba675SRob Herring	gpio-leds {
115724ba675SRob Herring		compatible = "gpio-leds";
116724ba675SRob Herring		pinctrl-0 = <&pmx_leds>;
117724ba675SRob Herring		pinctrl-names = "default";
118724ba675SRob Herring
119724ba675SRob Herring		led-red {
120724ba675SRob Herring			label = "obsa7:red:stat";
121724ba675SRob Herring			gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
122724ba675SRob Herring		};
123724ba675SRob Herring
124724ba675SRob Herring		led-green {
125724ba675SRob Herring			label = "obsa7:green:stat";
126724ba675SRob Herring			gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
127724ba675SRob Herring		};
128724ba675SRob Herring
129724ba675SRob Herring		led-yellow {
130724ba675SRob Herring			label = "obsa7:yellow:stat";
131724ba675SRob Herring			gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
132724ba675SRob Herring		};
133724ba675SRob Herring        };
134724ba675SRob Herring
135724ba675SRob Herring	gpio_keys {
136724ba675SRob Herring		compatible = "gpio-keys";
137724ba675SRob Herring		pinctrl-0 = <&pmx_gpio_init>;
138724ba675SRob Herring		pinctrl-names = "default";
139724ba675SRob Herring
140724ba675SRob Herring		button {
141724ba675SRob Herring			label = "Init Button";
142724ba675SRob Herring			linux,code = <KEY_POWER>;
143724ba675SRob Herring			gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
144724ba675SRob Herring		};
145724ba675SRob Herring	};
146724ba675SRob Herring};
147724ba675SRob Herring
148724ba675SRob Herring&nand {
149724ba675SRob Herring	chip-delay = <25>;
150724ba675SRob Herring	status = "okay";
151724ba675SRob Herring
152724ba675SRob Herring	partition@0 {
153724ba675SRob Herring		label = "uboot";
154724ba675SRob Herring		reg = <0x0 0x1c0000>;
155724ba675SRob Herring	};
156724ba675SRob Herring
157724ba675SRob Herring	partition@1c0000 {
158724ba675SRob Herring		label = "env";
159724ba675SRob Herring		reg = <0x1c0000 0x2c0000>;
160724ba675SRob Herring	};
161724ba675SRob Herring
162724ba675SRob Herring	partition@480000 {
163724ba675SRob Herring		label = "test";
164724ba675SRob Herring		reg = <0x480000 0x160000>;
165724ba675SRob Herring	};
166724ba675SRob Herring
167724ba675SRob Herring	partition@5e0000 {
168724ba675SRob Herring		label = "conf";
169724ba675SRob Herring		reg = <0x5e0000 0x540000>;
170724ba675SRob Herring	};
171724ba675SRob Herring
172724ba675SRob Herring	partition@b20000 {
173724ba675SRob Herring		label = "linux";
174724ba675SRob Herring		reg = <0xb20000 0x3d40000>;
175724ba675SRob Herring	};
176724ba675SRob Herring
177724ba675SRob Herring	partition@4860000 {
178724ba675SRob Herring		label = "user";
179724ba675SRob Herring		reg = <0x4860000 0xb7a0000>;
180724ba675SRob Herring	};
181724ba675SRob Herring};
182724ba675SRob Herring
183724ba675SRob Herring&mdio {
184724ba675SRob Herring	status = "okay";
185724ba675SRob Herring
186724ba675SRob Herring	ethphy0: ethernet-phy@0 {
187724ba675SRob Herring		reg = <0>;
188724ba675SRob Herring	};
189724ba675SRob Herring
190724ba675SRob Herring	ethphy1: ethernet-phy@1 {
191724ba675SRob Herring		reg = <1>;
192724ba675SRob Herring	};
193724ba675SRob Herring};
194724ba675SRob Herring
195724ba675SRob Herring&eth0 {
196724ba675SRob Herring	status = "okay";
197724ba675SRob Herring	ethernet0-port@0 {
198724ba675SRob Herring		phy-handle = <&ethphy0>;
199724ba675SRob Herring	};
200724ba675SRob Herring};
201724ba675SRob Herring
202724ba675SRob Herring&eth1 {
203724ba675SRob Herring	status = "okay";
204724ba675SRob Herring	ethernet1-port@0 {
205724ba675SRob Herring		phy-handle = <&ethphy1>;
206724ba675SRob Herring	};
207724ba675SRob Herring};
208