blob: 79796c8b9c4f48e45da0258c46c6ff9a30a5cb2e [file] [log] [blame]
Stefan Peter5492a112012-11-18 16:46:16 +01001/dts-v1/;
2
Ezequiel Garcia0ab61292013-07-26 10:18:02 -03003#include "kirkwood.dtsi"
4#include "kirkwood-6281.dtsi"
Stefan Peter5492a112012-11-18 16:46:16 +01005
6/ {
7 model = "MPL CEC4";
8 compatible = "mpl,cec4-10", "mpl,cec4", "marvell,kirkwood-88f6281", "marvell,kirkwood";
9
10 memory {
11 device_type = "memory";
12 reg = <0x00000000 0x20000000>;
13 };
14
Sebastian Hesselbarthab833612014-04-30 14:56:30 +020015 chosen {
16 bootargs = "console=ttyS0,115200n8 earlyprintk";
17 stdout-path = &uart0;
18 };
Stefan Peter5492a112012-11-18 16:46:16 +010019
Ezequiel Garcia54397d82013-07-26 10:18:05 -030020 mbus {
Ezequiel Garcia54397d82013-07-26 10:18:05 -030021 pcie-controller {
22 status = "okay";
23
24 pcie@1,0 {
25 status = "okay";
26 };
27 };
28 };
29
Stefan Peter5492a112012-11-18 16:46:16 +010030 ocp@f1000000 {
Sebastian Hesselbartha9483962014-04-30 14:56:32 +020031 pinctrl: pin-controller@10000 {
Stefan Peterde64ee52012-11-19 16:00:02 +010032 pmx_led_health: pmx-led-health {
33 marvell,pins = "mpp7";
34 marvell,function = "gpo";
35 };
36
37 pmx_sata1: pmx-sata1 {
38 marvell,pins = "mpp34";
39 marvell,function = "sata1";
40 };
41
42 pmx_sata0: pmx-sata0 {
43 marvell,pins = "mpp35";
44 marvell,function = "sata0";
45 };
46
47 pmx_led_user1o: pmx-led-user1o {
48 marvell,pins = "mpp40";
49 marvell,function = "gpio";
50 };
51
52 pmx_led_user1g: pmx-led-user1g {
53 marvell,pins = "mpp41";
54 marvell,function = "gpio";
55 };
56
57 pmx_led_user0o: pmx-led-user0o {
58 marvell,pins = "mpp44";
59 marvell,function = "gpio";
60 };
61
62 pmx_led_user0g: pmx-led-user0g {
63 marvell,pins = "mpp45";
64 marvell,function = "gpio";
65 };
66
67 pmx_led_misc: pmx-led-misc {
68 marvell,pins = "mpp46";
69 marvell,function = "gpio";
70 };
71
72 pmx_sdio_cd: pmx-sdio-cd {
73 marvell,pins = "mpp47";
74 marvell,function = "gpio";
75 };
76 };
77
Stefan Peter5492a112012-11-18 16:46:16 +010078 i2c@11000 {
79 status = "okay";
80
81 rtc@51 {
82 compatible = "nxp,pcf8563";
83 reg = <0x51>;
84 };
85
86 eeprom@57 {
87 compatible = "atmel,24c02";
88 reg = <0x57>;
89 };
90
91 };
92
Sebastian Hesselbarth9f2339a2014-04-30 14:56:36 +020093 serial@12000 {
94 status = "okay";
95 };
Stefan Peter5492a112012-11-18 16:46:16 +010096
Stefan Peter5492a112012-11-18 16:46:16 +010097 rtc@10300 {
98 status = "disabled";
99 };
100
101 sata@80000 {
Thomas Petazzoni3740e682013-05-24 11:44:51 +0200102 pinctrl-0 = <&pmx_sata0 &pmx_sata1>;
103 pinctrl-names = "default";
Stefan Peter5492a112012-11-18 16:46:16 +0100104 nr-ports = <2>;
105 status = "okay";
Stefan Peter5492a112012-11-18 16:46:16 +0100106 };
Thomas Petazzoni5dd8a012012-12-21 15:49:12 +0100107
108 mvsdio@90000 {
109 pinctrl-0 = <&pmx_sdio &pmx_sdio_cd>;
110 pinctrl-names = "default";
111 status = "okay";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +0100112 cd-gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
Thomas Petazzoni5dd8a012012-12-21 15:49:12 +0100113 /* No WP GPIO */
114 };
Stefan Peter5492a112012-11-18 16:46:16 +0100115 };
116
117 gpio-leds {
118 compatible = "gpio-leds";
Thomas Petazzoni3740e682013-05-24 11:44:51 +0200119 pinctrl-0 = < &pmx_led_health
120 &pmx_led_user1o
121 &pmx_led_user1g &pmx_led_user0o
122 &pmx_led_user0g &pmx_led_misc
123 >;
124 pinctrl-names = "default";
Stefan Peter5492a112012-11-18 16:46:16 +0100125
126 health {
127 label = "status:green:health";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +0100128 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
Stefan Peter5492a112012-11-18 16:46:16 +0100129 };
130
131 user1o {
132 label = "user1:orange";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +0100133 gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
Stefan Peter5492a112012-11-18 16:46:16 +0100134 default-state = "on";
135 };
136
137 user1g {
138 label = "user1:green";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +0100139 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
Stefan Peter5492a112012-11-18 16:46:16 +0100140 default-state = "on";
141 };
142
143 user0o {
144 label = "user0:orange";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +0100145 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
Stefan Peter5492a112012-11-18 16:46:16 +0100146 default-state = "on";
147 };
148
149 user0g {
150 label = "user0:green";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +0100151 gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
Stefan Peter5492a112012-11-18 16:46:16 +0100152 default-state = "on";
153 };
154
155 misc {
156 label = "status:orange:misc";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +0100157 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
Stefan Peter5492a112012-11-18 16:46:16 +0100158 default-state = "on";
159 };
160
161 };
162};
163
Jason Gunthorpe7045ff52013-09-17 12:44:33 -0600164&nand {
165 pinctrl-0 = <&pmx_nand>;
166 pinctrl-names = "default";
167 status = "okay";
168
169 partition@0 {
170 label = "uboot";
171 reg = <0x0000000 0x100000>;
172 };
173
174 partition@100000 {
175 label = "env";
176 reg = <0x100000 0x80000>;
177 };
178
179 partition@180000 {
180 label = "fdt";
181 reg = <0x180000 0x80000>;
182 };
183
184 partition@200000 {
185 label = "kernel";
186 reg = <0x200000 0x400000>;
187 };
188
189 partition@600000 {
190 label = "rootfs";
191 reg = <0x600000 0x1fa00000>;
192 };
193};
194
Sebastian Hesselbarth876e2332013-07-07 22:34:56 +0200195&mdio {
196 status = "okay";
197
198 ethphy0: ethernet-phy@1 {
Sebastian Hesselbarth876e2332013-07-07 22:34:56 +0200199 reg = <1>;
200 };
201
202 ethphy1: ethernet-phy@2 {
Sebastian Hesselbarth876e2332013-07-07 22:34:56 +0200203 reg = <2>;
204 };
205};
206
207&eth0 {
208 status = "okay";
209 ethernet0-port@0 {
210 phy-handle = <&ethphy0>;
211 };
212};
213
214&eth1 {
215 status = "okay";
216 ethernet1-port@0 {
217 phy-handle = <&ethphy1>;
218 };
219};