blob: 1e9a72100a450dacb3ebcc8d5d44460708b8f3d2 [file] [log] [blame]
Jason Cooper767fc1e2012-10-22 02:15:35 +00001/dts-v1/;
2
Ezequiel Garcia0ab61292013-07-26 10:18:02 -03003#include "kirkwood.dtsi"
4#include "kirkwood-6282.dtsi"
Jason Cooper767fc1e2012-10-22 02:15:35 +00005
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";
Sebastian Hesselbarthab833612014-04-30 14:56:30 +020017 stdout-path = &uart0;
Jason Cooper767fc1e2012-10-22 02:15:35 +000018 };
19
20 ocp@f1000000 {
Sebastian Hesselbartha9483962014-04-30 14:56:32 +020021 pinctrl: pin-controller@10000 {
Jason Cooper15989542013-01-26 20:50:11 +000022 /*
Jason Cooper15989542013-01-26 20:50:11 +000023 * Switch positions
24 *
25 * /-SW_LEFT(2)
26 * |
27 * | /-SW_IDLE
28 * | |
29 * | | /-SW_RIGHT
30 * | | |
31 * PS [L] [I] [R] LEDS
32 */
Thomas Petazzonifaf76122013-05-24 11:44:55 +020033 pinctrl-0 = <&pmx_sw_left &pmx_sw_right
34 &pmx_sw_idle &pmx_sw_left2>;
Jason Cooper15989542013-01-26 20:50:11 +000035 pinctrl-names = "default";
36
37 pmx_led_disk_yellow: pmx-led-disk-yellow {
38 marvell,pins = "mpp21";
39 marvell,function = "gpio";
40 };
41
42 pmx_sata0_pwr_enable: pmx-sata0-pwr-enable {
43 marvell,pins = "mpp36";
44 marvell,function = "gpio";
45 };
46
47 pmx_led_sys_red: pmx-led-sys-red {
48 marvell,pins = "mpp37";
49 marvell,function = "gpio";
50 };
51
52 pmx_led_sys_blue: pmx-led-sys-blue {
53 marvell,pins = "mpp38";
54 marvell,function = "gpio";
55 };
56
57 pmx_led_wifi_green: pmx-led-wifi-green {
58 marvell,pins = "mpp39";
59 marvell,function = "gpio";
60 };
61
62 pmx_sw_left: pmx-sw-left {
63 marvell,pins = "mpp43";
64 marvell,function = "gpio";
65 };
66
67 pmx_sw_right: pmx-sw-right {
68 marvell,pins = "mpp44";
69 marvell,function = "gpio";
70 };
71
72 pmx_sw_idle: pmx-sw-idle {
73 marvell,pins = "mpp45";
74 marvell,function = "gpio";
75 };
76
77 pmx_sw_left2: pmx-sw-left2 {
78 marvell,pins = "mpp46";
79 marvell,function = "gpio";
80 };
81
82 pmx_led_wifi_yellow: pmx-led-wifi-yellow {
83 marvell,pins = "mpp48";
84 marvell,function = "gpio";
85 };
86 };
87
Jason Cooper767fc1e2012-10-22 02:15:35 +000088 serial@12000 {
Sebastian Hesselbarth9f2339a2014-04-30 14:56:36 +020089 status = "okay";
Jason Cooper767fc1e2012-10-22 02:15:35 +000090 };
91
Jason Cooper767fc1e2012-10-22 02:15:35 +000092 sata@80000 {
93 status = "okay";
94 nr-ports = <1>;
95 };
Andrew Lunn44d032e2013-01-26 20:50:12 +000096
97 i2c@11000 {
Sebastian Hesselbarthce55b1f2014-04-30 14:56:39 +020098 status = "okay";
Andrew Lunn44d032e2013-01-26 20:50:12 +000099 };
Jason Cooper0dbe6ce2013-01-26 20:50:10 +0000100
101 mvsdio@90000 {
102 pinctrl-0 = <&pmx_sdio>;
103 pinctrl-names = "default";
104 status = "okay";
105 /* No CD or WP GPIOs */
Simon Baatzd87b5fb2013-05-13 23:18:58 +0200106 broken-cd;
Jason Cooper0dbe6ce2013-01-26 20:50:10 +0000107 };
Jason Cooper767fc1e2012-10-22 02:15:35 +0000108 };
109
110 gpio-leds {
Thomas Petazzonifaf76122013-05-24 11:44:55 +0200111 /*
112 * GPIO LED layout
113 *
114 * /-SYS_LED(2)
115 * |
116 * | /-DISK_LED
117 * | |
118 * | | /-WLAN_LED(2)
119 * | | |
120 * [SW] [*] [*] [*]
121 */
122
Jason Cooper767fc1e2012-10-22 02:15:35 +0000123 compatible = "gpio-leds";
Thomas Petazzonifaf76122013-05-24 11:44:55 +0200124 pinctrl-0 = <&pmx_led_disk_yellow &pmx_led_sys_red
125 &pmx_led_sys_blue &pmx_led_wifi_green
126 &pmx_led_wifi_yellow>;
127 pinctrl-names = "default";
Jason Cooper767fc1e2012-10-22 02:15:35 +0000128
129 disk {
130 label = "topkick:yellow:disk";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +0100131 gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
Stephan Linze5808222016-06-10 07:59:59 +0200132 linux,default-trigger = "disk-activity";
Jason Cooper767fc1e2012-10-22 02:15:35 +0000133 };
134 system2 {
135 label = "topkick:red:system";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +0100136 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
Jason Cooper767fc1e2012-10-22 02:15:35 +0000137 };
138 system {
139 label = "topkick:blue:system";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +0100140 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
Jason Cooper767fc1e2012-10-22 02:15:35 +0000141 default-state = "on";
142 };
143 wifi {
144 label = "topkick:green:wifi";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +0100145 gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
Jason Cooper767fc1e2012-10-22 02:15:35 +0000146 };
147 wifi2 {
148 label = "topkick:yellow:wifi";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +0100149 gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
Jason Cooper767fc1e2012-10-22 02:15:35 +0000150 };
151 };
Andrew Lunn8758c882013-01-06 11:10:38 +0100152 regulators {
153 compatible = "simple-bus";
154 #address-cells = <1>;
155 #size-cells = <0>;
Thomas Petazzonifaf76122013-05-24 11:44:55 +0200156 pinctrl-0 = <&pmx_sata0_pwr_enable>;
157 pinctrl-names = "default";
Andrew Lunn8758c882013-01-06 11:10:38 +0100158
159 sata0_power: regulator@1 {
160 compatible = "regulator-fixed";
161 reg = <1>;
162 regulator-name = "SATA0 Power";
163 regulator-min-microvolt = <5000000>;
164 regulator-max-microvolt = <5000000>;
165 enable-active-high;
166 regulator-always-on;
167 regulator-boot-on;
168 gpio = <&gpio1 4 0>;
169 };
170 };
Jason Cooper767fc1e2012-10-22 02:15:35 +0000171};
Sebastian Hesselbarth876e2332013-07-07 22:34:56 +0200172
Jason Gunthorpe7045ff52013-09-17 12:44:33 -0600173&nand {
174 status = "okay";
Jason Gunthorpe7045ff52013-09-17 12:44:33 -0600175
176 partition@0 {
177 label = "u-boot";
178 reg = <0x0000000 0x180000>;
179 };
180
181 partition@180000 {
182 label = "u-boot env";
183 reg = <0x0180000 0x20000>;
184 };
185
186 partition@200000 {
187 label = "uImage";
188 reg = <0x0200000 0x600000>;
189 };
190
191 partition@800000 {
192 label = "uInitrd";
193 reg = <0x0800000 0x1000000>;
194 };
195
196 partition@1800000 {
197 label = "rootfs";
198 reg = <0x1800000 0xe800000>;
199 };
200};
201
Sebastian Hesselbarth876e2332013-07-07 22:34:56 +0200202&mdio {
203 status = "okay";
204
205 ethphy0: ethernet-phy@0 {
Sebastian Hesselbarth876e2332013-07-07 22:34:56 +0200206 reg = <0>;
207 };
208};
209
210&eth0 {
211 status = "okay";
212 ethernet0-port@0 {
213 phy-handle = <&ethphy0>;
214 };
215};