xref: /linux/scripts/dtc/include-prefixes/arm/marvell/kirkwood-openblocks_a6.dts (revision a1ff5a7d78a036d6c2178ee5acd6ba4946243800)
1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0
2724ba675SRob Herring/dts-v1/;
3724ba675SRob Herring
4724ba675SRob Herring#include "kirkwood.dtsi"
5724ba675SRob Herring#include "kirkwood-6282.dtsi"
6724ba675SRob Herring
7724ba675SRob Herring/ {
8724ba675SRob Herring	model = "Plat'Home OpenBlocksA6";
9724ba675SRob Herring	compatible = "plathome,openblocks-a6", "marvell,kirkwood-88f6283", "marvell,kirkwood";
10724ba675SRob Herring
11724ba675SRob Herring	memory {
12724ba675SRob Herring		device_type = "memory";
13724ba675SRob Herring		reg = <0x00000000 0x20000000>;
14724ba675SRob Herring	};
15724ba675SRob Herring
16724ba675SRob Herring	chosen {
17724ba675SRob Herring		bootargs = "console=ttyS0,115200n8 earlyprintk";
18724ba675SRob Herring		stdout-path = &uart0;
19724ba675SRob Herring	};
20724ba675SRob Herring
21724ba675SRob Herring	ocp@f1000000 {
22724ba675SRob Herring		serial@12000 {
23724ba675SRob Herring			status = "okay";
24724ba675SRob Herring		};
25724ba675SRob Herring
26724ba675SRob Herring		serial@12100 {
27724ba675SRob Herring			status = "okay";
28724ba675SRob Herring		};
29724ba675SRob Herring
30724ba675SRob Herring		sata@80000 {
31724ba675SRob Herring			nr-ports = <1>;
32724ba675SRob Herring			status = "okay";
33724ba675SRob Herring		};
34724ba675SRob Herring
35724ba675SRob Herring		i2c@11100 {
36724ba675SRob Herring			status = "okay";
37724ba675SRob Herring
38724ba675SRob Herring			s35390a: s35390a@30 {
39724ba675SRob Herring				compatible = "sii,s35390a";
40724ba675SRob Herring				reg = <0x30>;
41724ba675SRob Herring			};
42724ba675SRob Herring		};
43724ba675SRob Herring
44724ba675SRob Herring		pinctrl: pin-controller@10000 {
45724ba675SRob Herring			pinctrl-0 = <&pmx_dip_switches>;
46724ba675SRob Herring			pinctrl-names = "default";
47724ba675SRob Herring
48724ba675SRob Herring			pmx_uart0: pmx-uart0 {
49724ba675SRob Herring				marvell,pins = "mpp10", "mpp11", "mpp15",
50724ba675SRob Herring					"mpp16";
51724ba675SRob Herring				marvell,function = "uart0";
52724ba675SRob Herring			};
53724ba675SRob Herring
54724ba675SRob Herring			pmx_uart1: pmx-uart1 {
55724ba675SRob Herring				marvell,pins = "mpp13", "mpp14", "mpp8",
56724ba675SRob Herring					"mpp9";
57724ba675SRob Herring				marvell,function = "uart1";
58724ba675SRob Herring			};
59724ba675SRob Herring
60724ba675SRob Herring			pmx_sysrst: pmx-sysrst {
61724ba675SRob Herring				marvell,pins = "mpp6";
62724ba675SRob Herring				marvell,function = "sysrst";
63724ba675SRob Herring			};
64724ba675SRob Herring
65724ba675SRob Herring			pmx_dip_switches: pmx-dip-switches {
66724ba675SRob Herring				marvell,pins = "mpp20", "mpp21", "mpp22", "mpp23";
67724ba675SRob Herring				marvell,function = "gpio";
68724ba675SRob Herring			};
69724ba675SRob Herring
70724ba675SRob Herring			pmx_gpio_header: pmx-gpio-header {
71724ba675SRob Herring				marvell,pins = "mpp24", "mpp25", "mpp26", "mpp27",
72724ba675SRob Herring					       "mpp28", "mpp29", "mpp30", "mpp31";
73724ba675SRob Herring				marvell,function = "gpio";
74724ba675SRob Herring			};
75724ba675SRob Herring
76724ba675SRob Herring			pmx_gpio_init: pmx-init {
77724ba675SRob Herring				marvell,pins = "mpp38";
78724ba675SRob Herring				marvell,function = "gpio";
79724ba675SRob Herring			};
80724ba675SRob Herring
81724ba675SRob Herring			pmx_usb_oc: pmx-usb-oc {
82724ba675SRob Herring				marvell,pins = "mpp39";
83724ba675SRob Herring				marvell,function = "gpio";
84724ba675SRob Herring			};
85724ba675SRob Herring
86724ba675SRob Herring			pmx_leds: pmx-leds {
87724ba675SRob Herring				marvell,pins = "mpp41", "mpp42", "mpp43";
88724ba675SRob Herring				marvell,function = "gpio";
89724ba675SRob Herring			};
90724ba675SRob Herring		};
91724ba675SRob Herring	};
92724ba675SRob Herring
93724ba675SRob Herring	gpio-leds {
94724ba675SRob Herring		compatible = "gpio-leds";
95724ba675SRob Herring		pinctrl-0 = <&pmx_leds>;
96724ba675SRob Herring		pinctrl-names = "default";
97724ba675SRob Herring
98724ba675SRob Herring		led-red {
99724ba675SRob Herring			label = "obsa6:red:stat";
100724ba675SRob Herring			gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
101724ba675SRob Herring		};
102724ba675SRob Herring
103724ba675SRob Herring		led-green {
104724ba675SRob Herring			label = "obsa6:green:stat";
105724ba675SRob Herring			gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
106724ba675SRob Herring		};
107724ba675SRob Herring
108724ba675SRob Herring		led-yellow {
109724ba675SRob Herring			label = "obsa6:yellow:stat";
110724ba675SRob Herring			gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
111724ba675SRob Herring		};
112724ba675SRob Herring        };
113724ba675SRob Herring
114724ba675SRob Herring	gpio_keys {
115724ba675SRob Herring		compatible = "gpio-keys";
116724ba675SRob Herring		pinctrl-0 = <&pmx_gpio_init>;
117724ba675SRob Herring		pinctrl-names = "default";
118724ba675SRob Herring
119*b98a9191SKrzysztof Kozlowski		button-power {
120724ba675SRob Herring			label = "Init Button";
121724ba675SRob Herring			linux,code = <KEY_POWER>;
122724ba675SRob Herring			gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
123724ba675SRob Herring		};
124724ba675SRob Herring	};
125724ba675SRob Herring};
126724ba675SRob Herring
127724ba675SRob Herring&nand {
128724ba675SRob Herring	chip-delay = <25>;
129724ba675SRob Herring	status = "okay";
130724ba675SRob Herring
131724ba675SRob Herring	partition@0 {
132724ba675SRob Herring		label = "uboot";
133724ba675SRob Herring		reg = <0x0 0x90000>;
134724ba675SRob Herring	};
135724ba675SRob Herring
136724ba675SRob Herring	partition@90000 {
137724ba675SRob Herring		label = "env";
138724ba675SRob Herring		reg = <0x90000 0x44000>;
139724ba675SRob Herring	};
140724ba675SRob Herring
141724ba675SRob Herring	partition@d4000 {
142724ba675SRob Herring		label = "test";
143724ba675SRob Herring		reg = <0xd4000 0x20000>;
144724ba675SRob Herring	};
145724ba675SRob Herring
146724ba675SRob Herring	partition@f4000 {
147724ba675SRob Herring		label = "conf";
148724ba675SRob Herring		reg = <0xf4000 0x400000>;
149724ba675SRob Herring	};
150724ba675SRob Herring
151724ba675SRob Herring	partition@4f4000 {
152724ba675SRob Herring		label = "linux";
153724ba675SRob Herring		reg = <0x4f4000 0x1d20000>;
154724ba675SRob Herring	};
155724ba675SRob Herring
156724ba675SRob Herring	partition@2214000 {
157724ba675SRob Herring		label = "user";
158724ba675SRob Herring		reg = <0x2214000 0x1dec000>;
159724ba675SRob Herring	};
160724ba675SRob Herring};
161724ba675SRob Herring
162724ba675SRob Herring&mdio {
163724ba675SRob Herring	status = "okay";
164724ba675SRob Herring
165724ba675SRob Herring	ethphy0: ethernet-phy@0 {
166724ba675SRob Herring		reg = <0>;
167724ba675SRob Herring	};
168724ba675SRob Herring};
169724ba675SRob Herring
170724ba675SRob Herring&eth0 {
171724ba675SRob Herring	status = "okay";
172724ba675SRob Herring	ethernet0-port@0 {
173724ba675SRob Herring		phy-handle = <&ethphy0>;
174724ba675SRob Herring	};
175724ba675SRob Herring};
176724ba675SRob Herring
177724ba675SRob Herring&gpio0 {
178724ba675SRob Herring	status = "okay";
179724ba675SRob Herring
180724ba675SRob Herring	pinctrl-0 = <&pmx_gpio_header>;
181724ba675SRob Herring	pinctrl-names = "default";
182724ba675SRob Herring};
183