xref: /freebsd-src/sys/contrib/device-tree/src/arm/marvell/kirkwood-openblocks_a6.dts (revision 0e8011faf58b743cc652e3b2ad0f7671227610df)
1f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0
2f126890aSEmmanuel Vadot/dts-v1/;
3f126890aSEmmanuel Vadot
4f126890aSEmmanuel Vadot#include "kirkwood.dtsi"
5f126890aSEmmanuel Vadot#include "kirkwood-6282.dtsi"
6f126890aSEmmanuel Vadot
7f126890aSEmmanuel Vadot/ {
8f126890aSEmmanuel Vadot	model = "Plat'Home OpenBlocksA6";
9f126890aSEmmanuel Vadot	compatible = "plathome,openblocks-a6", "marvell,kirkwood-88f6283", "marvell,kirkwood";
10f126890aSEmmanuel Vadot
11f126890aSEmmanuel Vadot	memory {
12f126890aSEmmanuel Vadot		device_type = "memory";
13f126890aSEmmanuel Vadot		reg = <0x00000000 0x20000000>;
14f126890aSEmmanuel Vadot	};
15f126890aSEmmanuel Vadot
16f126890aSEmmanuel Vadot	chosen {
17f126890aSEmmanuel Vadot		bootargs = "console=ttyS0,115200n8 earlyprintk";
18f126890aSEmmanuel Vadot		stdout-path = &uart0;
19f126890aSEmmanuel Vadot	};
20f126890aSEmmanuel Vadot
21f126890aSEmmanuel Vadot	ocp@f1000000 {
22f126890aSEmmanuel Vadot		serial@12000 {
23f126890aSEmmanuel Vadot			status = "okay";
24f126890aSEmmanuel Vadot		};
25f126890aSEmmanuel Vadot
26f126890aSEmmanuel Vadot		serial@12100 {
27f126890aSEmmanuel Vadot			status = "okay";
28f126890aSEmmanuel Vadot		};
29f126890aSEmmanuel Vadot
30f126890aSEmmanuel Vadot		sata@80000 {
31f126890aSEmmanuel Vadot			nr-ports = <1>;
32f126890aSEmmanuel Vadot			status = "okay";
33f126890aSEmmanuel Vadot		};
34f126890aSEmmanuel Vadot
35f126890aSEmmanuel Vadot		i2c@11100 {
36f126890aSEmmanuel Vadot			status = "okay";
37f126890aSEmmanuel Vadot
38f126890aSEmmanuel Vadot			s35390a: s35390a@30 {
39f126890aSEmmanuel Vadot				compatible = "sii,s35390a";
40f126890aSEmmanuel Vadot				reg = <0x30>;
41f126890aSEmmanuel Vadot			};
42f126890aSEmmanuel Vadot		};
43f126890aSEmmanuel Vadot
44f126890aSEmmanuel Vadot		pinctrl: pin-controller@10000 {
45f126890aSEmmanuel Vadot			pinctrl-0 = <&pmx_dip_switches>;
46f126890aSEmmanuel Vadot			pinctrl-names = "default";
47f126890aSEmmanuel Vadot
48f126890aSEmmanuel Vadot			pmx_uart0: pmx-uart0 {
49f126890aSEmmanuel Vadot				marvell,pins = "mpp10", "mpp11", "mpp15",
50f126890aSEmmanuel Vadot					"mpp16";
51f126890aSEmmanuel Vadot				marvell,function = "uart0";
52f126890aSEmmanuel Vadot			};
53f126890aSEmmanuel Vadot
54f126890aSEmmanuel Vadot			pmx_uart1: pmx-uart1 {
55f126890aSEmmanuel Vadot				marvell,pins = "mpp13", "mpp14", "mpp8",
56f126890aSEmmanuel Vadot					"mpp9";
57f126890aSEmmanuel Vadot				marvell,function = "uart1";
58f126890aSEmmanuel Vadot			};
59f126890aSEmmanuel Vadot
60f126890aSEmmanuel Vadot			pmx_sysrst: pmx-sysrst {
61f126890aSEmmanuel Vadot				marvell,pins = "mpp6";
62f126890aSEmmanuel Vadot				marvell,function = "sysrst";
63f126890aSEmmanuel Vadot			};
64f126890aSEmmanuel Vadot
65f126890aSEmmanuel Vadot			pmx_dip_switches: pmx-dip-switches {
66f126890aSEmmanuel Vadot				marvell,pins = "mpp20", "mpp21", "mpp22", "mpp23";
67f126890aSEmmanuel Vadot				marvell,function = "gpio";
68f126890aSEmmanuel Vadot			};
69f126890aSEmmanuel Vadot
70f126890aSEmmanuel Vadot			pmx_gpio_header: pmx-gpio-header {
71f126890aSEmmanuel Vadot				marvell,pins = "mpp24", "mpp25", "mpp26", "mpp27",
72f126890aSEmmanuel Vadot					       "mpp28", "mpp29", "mpp30", "mpp31";
73f126890aSEmmanuel Vadot				marvell,function = "gpio";
74f126890aSEmmanuel Vadot			};
75f126890aSEmmanuel Vadot
76f126890aSEmmanuel Vadot			pmx_gpio_init: pmx-init {
77f126890aSEmmanuel Vadot				marvell,pins = "mpp38";
78f126890aSEmmanuel Vadot				marvell,function = "gpio";
79f126890aSEmmanuel Vadot			};
80f126890aSEmmanuel Vadot
81f126890aSEmmanuel Vadot			pmx_usb_oc: pmx-usb-oc {
82f126890aSEmmanuel Vadot				marvell,pins = "mpp39";
83f126890aSEmmanuel Vadot				marvell,function = "gpio";
84f126890aSEmmanuel Vadot			};
85f126890aSEmmanuel Vadot
86f126890aSEmmanuel Vadot			pmx_leds: pmx-leds {
87f126890aSEmmanuel Vadot				marvell,pins = "mpp41", "mpp42", "mpp43";
88f126890aSEmmanuel Vadot				marvell,function = "gpio";
89f126890aSEmmanuel Vadot			};
90f126890aSEmmanuel Vadot		};
91f126890aSEmmanuel Vadot	};
92f126890aSEmmanuel Vadot
93f126890aSEmmanuel Vadot	gpio-leds {
94f126890aSEmmanuel Vadot		compatible = "gpio-leds";
95f126890aSEmmanuel Vadot		pinctrl-0 = <&pmx_leds>;
96f126890aSEmmanuel Vadot		pinctrl-names = "default";
97f126890aSEmmanuel Vadot
98f126890aSEmmanuel Vadot		led-red {
99f126890aSEmmanuel Vadot			label = "obsa6:red:stat";
100f126890aSEmmanuel Vadot			gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
101f126890aSEmmanuel Vadot		};
102f126890aSEmmanuel Vadot
103f126890aSEmmanuel Vadot		led-green {
104f126890aSEmmanuel Vadot			label = "obsa6:green:stat";
105f126890aSEmmanuel Vadot			gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
106f126890aSEmmanuel Vadot		};
107f126890aSEmmanuel Vadot
108f126890aSEmmanuel Vadot		led-yellow {
109f126890aSEmmanuel Vadot			label = "obsa6:yellow:stat";
110f126890aSEmmanuel Vadot			gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
111f126890aSEmmanuel Vadot		};
112f126890aSEmmanuel Vadot        };
113f126890aSEmmanuel Vadot
114f126890aSEmmanuel Vadot	gpio_keys {
115f126890aSEmmanuel Vadot		compatible = "gpio-keys";
116f126890aSEmmanuel Vadot		pinctrl-0 = <&pmx_gpio_init>;
117f126890aSEmmanuel Vadot		pinctrl-names = "default";
118f126890aSEmmanuel Vadot
119*0e8011faSEmmanuel Vadot		button-power {
120f126890aSEmmanuel Vadot			label = "Init Button";
121f126890aSEmmanuel Vadot			linux,code = <KEY_POWER>;
122f126890aSEmmanuel Vadot			gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
123f126890aSEmmanuel Vadot		};
124f126890aSEmmanuel Vadot	};
125f126890aSEmmanuel Vadot};
126f126890aSEmmanuel Vadot
127f126890aSEmmanuel Vadot&nand {
128f126890aSEmmanuel Vadot	chip-delay = <25>;
129f126890aSEmmanuel Vadot	status = "okay";
130f126890aSEmmanuel Vadot
131f126890aSEmmanuel Vadot	partition@0 {
132f126890aSEmmanuel Vadot		label = "uboot";
133f126890aSEmmanuel Vadot		reg = <0x0 0x90000>;
134f126890aSEmmanuel Vadot	};
135f126890aSEmmanuel Vadot
136f126890aSEmmanuel Vadot	partition@90000 {
137f126890aSEmmanuel Vadot		label = "env";
138f126890aSEmmanuel Vadot		reg = <0x90000 0x44000>;
139f126890aSEmmanuel Vadot	};
140f126890aSEmmanuel Vadot
141f126890aSEmmanuel Vadot	partition@d4000 {
142f126890aSEmmanuel Vadot		label = "test";
143f126890aSEmmanuel Vadot		reg = <0xd4000 0x20000>;
144f126890aSEmmanuel Vadot	};
145f126890aSEmmanuel Vadot
146f126890aSEmmanuel Vadot	partition@f4000 {
147f126890aSEmmanuel Vadot		label = "conf";
148f126890aSEmmanuel Vadot		reg = <0xf4000 0x400000>;
149f126890aSEmmanuel Vadot	};
150f126890aSEmmanuel Vadot
151f126890aSEmmanuel Vadot	partition@4f4000 {
152f126890aSEmmanuel Vadot		label = "linux";
153f126890aSEmmanuel Vadot		reg = <0x4f4000 0x1d20000>;
154f126890aSEmmanuel Vadot	};
155f126890aSEmmanuel Vadot
156f126890aSEmmanuel Vadot	partition@2214000 {
157f126890aSEmmanuel Vadot		label = "user";
158f126890aSEmmanuel Vadot		reg = <0x2214000 0x1dec000>;
159f126890aSEmmanuel Vadot	};
160f126890aSEmmanuel Vadot};
161f126890aSEmmanuel Vadot
162f126890aSEmmanuel Vadot&mdio {
163f126890aSEmmanuel Vadot	status = "okay";
164f126890aSEmmanuel Vadot
165f126890aSEmmanuel Vadot	ethphy0: ethernet-phy@0 {
166f126890aSEmmanuel Vadot		reg = <0>;
167f126890aSEmmanuel Vadot	};
168f126890aSEmmanuel Vadot};
169f126890aSEmmanuel Vadot
170f126890aSEmmanuel Vadot&eth0 {
171f126890aSEmmanuel Vadot	status = "okay";
172f126890aSEmmanuel Vadot	ethernet0-port@0 {
173f126890aSEmmanuel Vadot		phy-handle = <&ethphy0>;
174f126890aSEmmanuel Vadot	};
175f126890aSEmmanuel Vadot};
176f126890aSEmmanuel Vadot
177f126890aSEmmanuel Vadot&gpio0 {
178f126890aSEmmanuel Vadot	status = "okay";
179f126890aSEmmanuel Vadot
180f126890aSEmmanuel Vadot	pinctrl-0 = <&pmx_gpio_header>;
181f126890aSEmmanuel Vadot	pinctrl-names = "default";
182f126890aSEmmanuel Vadot};
183