rk: revert to v3.10
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / kirkwood-topkick.dts
1 /dts-v1/;
2
3 /include/ "kirkwood.dtsi"
4 /include/ "kirkwood-6282.dtsi"
5
6 / {
7         model = "Univeral Scientific Industrial Co. Topkick-1281P2";
8         compatible = "usi,topkick-1281P2", "usi,topkick", "marvell,kirkwood-88f6282", "marvell,kirkwood";
9
10         memory {
11                 device_type = "memory";
12                 reg = <0x00000000 0x10000000>;
13         };
14
15         chosen {
16                 bootargs = "console=ttyS0,115200n8 earlyprintk";
17         };
18
19         ocp@f1000000 {
20                 pinctrl: pinctrl@10000 {
21                         /*
22                          * GPIO LED layout
23                          *
24                          *       /-SYS_LED(2)
25                          *       |
26                          *       |   /-DISK_LED
27                          *       |   |
28                          *       |   |   /-WLAN_LED(2)
29                          *       |   |   |
30                          * [SW] [*] [*] [*]
31                          */
32
33                         /*
34                          * Switch positions
35                          *
36                          *     /-SW_LEFT(2)
37                          *     |
38                          *     |   /-SW_IDLE
39                          *     |   |
40                          *     |   |   /-SW_RIGHT
41                          *     |   |   |
42                          * PS [L] [I] [R] LEDS
43                          */
44                         pinctrl-0 = < &pmx_led_disk_yellow
45                                       &pmx_sata0_pwr_enable
46                                       &pmx_led_sys_red
47                                       &pmx_led_sys_blue
48                                       &pmx_led_wifi_green
49                                       &pmx_sw_left
50                                       &pmx_sw_right
51                                       &pmx_sw_idle
52                                       &pmx_sw_left2
53                                       &pmx_led_wifi_yellow
54                                       &pmx_uart0
55                                       &pmx_nand
56                                       &pmx_twsi0 >;
57                         pinctrl-names = "default";
58
59                         pmx_led_disk_yellow: pmx-led-disk-yellow {
60                                 marvell,pins = "mpp21";
61                                 marvell,function = "gpio";
62                         };
63
64                         pmx_sata0_pwr_enable: pmx-sata0-pwr-enable {
65                                 marvell,pins = "mpp36";
66                                 marvell,function = "gpio";
67                         };
68
69                         pmx_led_sys_red: pmx-led-sys-red {
70                                 marvell,pins = "mpp37";
71                                 marvell,function = "gpio";
72                         };
73
74                         pmx_led_sys_blue: pmx-led-sys-blue {
75                                 marvell,pins = "mpp38";
76                                 marvell,function = "gpio";
77                         };
78
79                         pmx_led_wifi_green: pmx-led-wifi-green {
80                                 marvell,pins = "mpp39";
81                                 marvell,function = "gpio";
82                         };
83
84                         pmx_sw_left: pmx-sw-left {
85                                 marvell,pins = "mpp43";
86                                 marvell,function = "gpio";
87                         };
88
89                         pmx_sw_right: pmx-sw-right {
90                                 marvell,pins = "mpp44";
91                                 marvell,function = "gpio";
92                         };
93
94                         pmx_sw_idle: pmx-sw-idle {
95                                 marvell,pins = "mpp45";
96                                 marvell,function = "gpio";
97                         };
98
99                         pmx_sw_left2: pmx-sw-left2 {
100                                 marvell,pins = "mpp46";
101                                 marvell,function = "gpio";
102                         };
103
104                         pmx_led_wifi_yellow: pmx-led-wifi-yellow {
105                                 marvell,pins = "mpp48";
106                                 marvell,function = "gpio";
107                         };
108                 };
109
110                 serial@12000 {
111                         status = "ok";
112                 };
113
114                 nand@3000000 {
115                         status = "okay";
116
117                         partition@0 {
118                                 label = "u-boot";
119                                 reg = <0x0000000 0x180000>;
120                         };
121
122                         partition@180000 {
123                                 label = "u-boot env";
124                                 reg = <0x0180000 0x20000>;
125                         };
126
127                         partition@200000 {
128                                 label = "uImage";
129                                 reg = <0x0200000 0x600000>;
130                         };
131
132                         partition@800000 {
133                                 label = "uInitrd";
134                                 reg = <0x0800000 0x1000000>;
135                         };
136
137                         partition@1800000 {
138                                 label = "rootfs";
139                                 reg = <0x1800000 0xe800000>;
140                         };
141                 };
142
143                 sata@80000 {
144                         status = "okay";
145                         nr-ports = <1>;
146                 };
147
148                 i2c@11000 {
149                         status = "ok";
150                 };
151
152                 mvsdio@90000 {
153                         pinctrl-0 = <&pmx_sdio>;
154                         pinctrl-names = "default";
155                         status = "okay";
156                         /* No CD or WP GPIOs */
157                 };
158         };
159
160         gpio-leds {
161                 compatible = "gpio-leds";
162
163                 disk {
164                         label = "topkick:yellow:disk";
165                         gpios = <&gpio0 21 1>;
166                         linux,default-trigger = "ide-disk";
167                 };
168                 system2 {
169                         label = "topkick:red:system";
170                         gpios = <&gpio1 5 1>;
171                 };
172                 system {
173                         label = "topkick:blue:system";
174                         gpios = <&gpio1 6 1>;
175                         default-state = "on";
176                 };
177                 wifi {
178                         label = "topkick:green:wifi";
179                         gpios = <&gpio1 7 1>;
180                 };
181                 wifi2 {
182                         label = "topkick:yellow:wifi";
183                         gpios = <&gpio1 16 1>;
184                 };
185         };
186         regulators {
187                 compatible = "simple-bus";
188                 #address-cells = <1>;
189                 #size-cells = <0>;
190
191                 sata0_power: regulator@1 {
192                         compatible = "regulator-fixed";
193                         reg = <1>;
194                         regulator-name = "SATA0 Power";
195                         regulator-min-microvolt = <5000000>;
196                         regulator-max-microvolt = <5000000>;
197                         enable-active-high;
198                         regulator-always-on;
199                         regulator-boot-on;
200                         gpio = <&gpio1 4 0>;
201                 };
202         };
203 };