]> git.karo-electronics.de Git - karo-tx-linux.git/blob - arch/arm/boot/dts/kirkwood-mplcec4.dts
Merge remote-tracking branch 'gpio/for-next'
[karo-tx-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                 ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000>;
21                 pcie-controller {
22                         status = "okay";
23
24                         pcie@1,0 {
25                                 status = "okay";
26                         };
27                 };
28         };
29
30         ocp@f1000000 {
31                 pinctrl: pinctrl@10000 {
32                         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
78                 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
93                 serial@12000 {
94                         status = "ok";
95                         pinctrl-0 = <&pmx_uart0>;
96                         pinctrl-names = "default";
97                 };
98
99                 nand@3000000 {
100                         pinctrl-0 = <&pmx_nand>;
101                         pinctrl-names = "default";
102                         status = "okay";
103
104                         partition@0 {
105                                 label = "uboot";
106                                 reg = <0x0000000 0x100000>;
107                         };
108
109                         partition@100000 {
110                                 label = "env";
111                                 reg = <0x100000 0x80000>;
112                         };
113
114                         partition@180000 {
115                                 label = "fdt";
116                                 reg = <0x180000 0x80000>;
117                         };
118
119                         partition@200000 {
120                                 label = "kernel";
121                                 reg = <0x200000 0x400000>;
122                         };
123
124                         partition@600000 {
125                                 label = "rootfs";
126                                 reg = <0x600000 0x1fa00000>;
127                         };
128                 };
129
130                 rtc@10300 {
131                         status = "disabled";
132                 };
133
134                 sata@80000 {
135                         pinctrl-0 = <&pmx_sata0 &pmx_sata1>;
136                         pinctrl-names = "default";
137                         nr-ports = <2>;
138                         status = "okay";
139                 };
140
141                 mvsdio@90000 {
142                         pinctrl-0 = <&pmx_sdio &pmx_sdio_cd>;
143                         pinctrl-names = "default";
144                         status = "okay";
145                         cd-gpios = <&gpio1 15 1>;
146                         /* No WP GPIO */
147                 };
148         };
149
150         gpio-leds {
151                 compatible = "gpio-leds";
152                 pinctrl-0 = < &pmx_led_health
153                               &pmx_led_user1o
154                               &pmx_led_user1g &pmx_led_user0o
155                               &pmx_led_user0g &pmx_led_misc
156                             >;
157                 pinctrl-names = "default";
158
159                 health {
160                         label = "status:green:health";
161                         gpios = <&gpio0 7 1>;
162                 };
163
164                 user1o {
165                         label = "user1:orange";
166                         gpios = <&gpio1 8 1>;
167                         default-state = "on";
168                 };
169
170                 user1g {
171                         label = "user1:green";
172                         gpios = <&gpio1 9 1>;
173                         default-state = "on";
174                 };
175
176                 user0o {
177                         label = "user0:orange";
178                         gpios = <&gpio1 12 1>;
179                         default-state = "on";
180                 };
181
182                 user0g {
183                         label = "user0:green";
184                         gpios = <&gpio1 13 1>;
185                         default-state = "on";
186                 };
187
188                 misc {
189                         label = "status:orange:misc";
190                         gpios = <&gpio1 14 1>;
191                         default-state = "on";
192                 };
193
194         };
195 };
196
197 &mdio {
198         status = "okay";
199
200         ethphy0: ethernet-phy@1 {
201                 device_type = "ethernet-phy";
202                 reg = <1>;
203         };
204
205         ethphy1: ethernet-phy@2 {
206                 device_type = "ethernet-phy";
207                 reg = <2>;
208         };
209 };
210
211 &eth0 {
212         status = "okay";
213         ethernet0-port@0 {
214                 phy-handle = <&ethphy0>;
215         };
216 };
217
218 &eth1 {
219         status = "okay";
220         ethernet1-port@0 {
221                 phy-handle = <&ethphy1>;
222         };
223 };