ARM: kirkwood: Remove kirkwood_setup_wins and rely on the DT binding
[cascardo/linux.git] / arch / arm / boot / dts / kirkwood-mplcec4.dts
1 /dts-v1/;
2
3 #include "kirkwood.dtsi"
4 #include "kirkwood-6281.dtsi"
5
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
15         chosen {
16                 bootargs = "console=ttyS0,115200n8 earlyprintk";
17         };
18
19         mbus {
20                 pcie-controller {
21                         status = "okay";
22
23                         pcie@1,0 {
24                                 status = "okay";
25                         };
26                 };
27         };
28
29         ocp@f1000000 {
30                 pinctrl: pinctrl@10000 {
31                         pmx_led_health: pmx-led-health {
32                                 marvell,pins = "mpp7";
33                                 marvell,function = "gpo";
34                         };
35
36                         pmx_sata1: pmx-sata1 {
37                                 marvell,pins = "mpp34";
38                                 marvell,function = "sata1";
39                         };
40
41                         pmx_sata0: pmx-sata0 {
42                                 marvell,pins = "mpp35";
43                                 marvell,function = "sata0";
44                         };
45
46                         pmx_led_user1o: pmx-led-user1o {
47                                 marvell,pins = "mpp40";
48                                 marvell,function = "gpio";
49                         };
50
51                         pmx_led_user1g: pmx-led-user1g {
52                                 marvell,pins = "mpp41";
53                                 marvell,function = "gpio";
54                         };
55
56                         pmx_led_user0o: pmx-led-user0o {
57                                 marvell,pins = "mpp44";
58                                 marvell,function = "gpio";
59                         };
60
61                         pmx_led_user0g: pmx-led-user0g {
62                                 marvell,pins = "mpp45";
63                                 marvell,function = "gpio";
64                         };
65
66                         pmx_led_misc: pmx-led-misc {
67                                 marvell,pins = "mpp46";
68                                 marvell,function = "gpio";
69                         };
70
71                         pmx_sdio_cd: pmx-sdio-cd {
72                                 marvell,pins = "mpp47";
73                                 marvell,function = "gpio";
74                         };
75                 };
76
77                 i2c@11000 {
78                         status = "okay";
79
80                         rtc@51 {
81                                 compatible = "nxp,pcf8563";
82                                 reg = <0x51>;
83                         };
84
85                         eeprom@57 {
86                                 compatible = "atmel,24c02";
87                                 reg = <0x57>;
88                         };
89
90                 };
91
92                 serial@12000 {
93                         status = "ok";
94                         pinctrl-0 = <&pmx_uart0>;
95                         pinctrl-names = "default";
96                 };
97
98                 nand@3000000 {
99                         pinctrl-0 = <&pmx_nand>;
100                         pinctrl-names = "default";
101                         status = "okay";
102
103                         partition@0 {
104                                 label = "uboot";
105                                 reg = <0x0000000 0x100000>;
106                         };
107
108                         partition@100000 {
109                                 label = "env";
110                                 reg = <0x100000 0x80000>;
111                         };
112
113                         partition@180000 {
114                                 label = "fdt";
115                                 reg = <0x180000 0x80000>;
116                         };
117
118                         partition@200000 {
119                                 label = "kernel";
120                                 reg = <0x200000 0x400000>;
121                         };
122
123                         partition@600000 {
124                                 label = "rootfs";
125                                 reg = <0x600000 0x1fa00000>;
126                         };
127                 };
128
129                 rtc@10300 {
130                         status = "disabled";
131                 };
132
133                 sata@80000 {
134                         pinctrl-0 = <&pmx_sata0 &pmx_sata1>;
135                         pinctrl-names = "default";
136                         nr-ports = <2>;
137                         status = "okay";
138                 };
139
140                 mvsdio@90000 {
141                         pinctrl-0 = <&pmx_sdio &pmx_sdio_cd>;
142                         pinctrl-names = "default";
143                         status = "okay";
144                         cd-gpios = <&gpio1 15 1>;
145                         /* No WP GPIO */
146                 };
147         };
148
149         gpio-leds {
150                 compatible = "gpio-leds";
151                 pinctrl-0 = < &pmx_led_health
152                               &pmx_led_user1o
153                               &pmx_led_user1g &pmx_led_user0o
154                               &pmx_led_user0g &pmx_led_misc
155                             >;
156                 pinctrl-names = "default";
157
158                 health {
159                         label = "status:green:health";
160                         gpios = <&gpio0 7 1>;
161                 };
162
163                 user1o {
164                         label = "user1:orange";
165                         gpios = <&gpio1 8 1>;
166                         default-state = "on";
167                 };
168
169                 user1g {
170                         label = "user1:green";
171                         gpios = <&gpio1 9 1>;
172                         default-state = "on";
173                 };
174
175                 user0o {
176                         label = "user0:orange";
177                         gpios = <&gpio1 12 1>;
178                         default-state = "on";
179                 };
180
181                 user0g {
182                         label = "user0:green";
183                         gpios = <&gpio1 13 1>;
184                         default-state = "on";
185                 };
186
187                 misc {
188                         label = "status:orange:misc";
189                         gpios = <&gpio1 14 1>;
190                         default-state = "on";
191                 };
192
193         };
194 };
195
196 &mdio {
197         status = "okay";
198
199         ethphy0: ethernet-phy@1 {
200                 device_type = "ethernet-phy";
201                 reg = <1>;
202         };
203
204         ethphy1: ethernet-phy@2 {
205                 device_type = "ethernet-phy";
206                 reg = <2>;
207         };
208 };
209
210 &eth0 {
211         status = "okay";
212         ethernet0-port@0 {
213                 phy-handle = <&ethphy0>;
214         };
215 };
216
217 &eth1 {
218         status = "okay";
219         ethernet1-port@0 {
220                 phy-handle = <&ethphy1>;
221         };
222 };