]>
Commit | Line | Data |
---|---|---|
767fc1ea JC |
1 | /dts-v1/; |
2 | ||
0ab6129c EG |
3 | #include "kirkwood.dtsi" |
4 | #include "kirkwood-6282.dtsi" | |
767fc1ea JC |
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"; | |
ab833614 | 17 | stdout-path = &uart0; |
767fc1ea JC |
18 | }; |
19 | ||
20 | ocp@f1000000 { | |
15989543 | 21 | pinctrl: pinctrl@10000 { |
15989543 JC |
22 | /* |
23 | * Switch positions | |
24 | * | |
25 | * /-SW_LEFT(2) | |
26 | * | | |
27 | * | /-SW_IDLE | |
28 | * | | | |
29 | * | | /-SW_RIGHT | |
30 | * | | | | |
31 | * PS [L] [I] [R] LEDS | |
32 | */ | |
faf76128 TP |
33 | pinctrl-0 = <&pmx_sw_left &pmx_sw_right |
34 | &pmx_sw_idle &pmx_sw_left2>; | |
15989543 JC |
35 | 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 | ||
767fc1ea | 88 | serial@12000 { |
767fc1ea | 89 | status = "ok"; |
faf76128 TP |
90 | pinctrl-0 = <&pmx_uart0>; |
91 | pinctrl-names = "default"; | |
767fc1ea JC |
92 | }; |
93 | ||
767fc1ea JC |
94 | sata@80000 { |
95 | status = "okay"; | |
96 | nr-ports = <1>; | |
97 | }; | |
44d032e7 AL |
98 | |
99 | i2c@11000 { | |
100 | status = "ok"; | |
faf76128 TP |
101 | pinctrl-0 = <&pmx_twsi0>; |
102 | pinctrl-names = "default"; | |
44d032e7 | 103 | }; |
0dbe6ce0 JC |
104 | |
105 | mvsdio@90000 { | |
106 | pinctrl-0 = <&pmx_sdio>; | |
107 | pinctrl-names = "default"; | |
108 | status = "okay"; | |
109 | /* No CD or WP GPIOs */ | |
d87b5fbb | 110 | broken-cd; |
0dbe6ce0 | 111 | }; |
767fc1ea JC |
112 | }; |
113 | ||
114 | gpio-leds { | |
faf76128 TP |
115 | /* |
116 | * GPIO LED layout | |
117 | * | |
118 | * /-SYS_LED(2) | |
119 | * | | |
120 | * | /-DISK_LED | |
121 | * | | | |
122 | * | | /-WLAN_LED(2) | |
123 | * | | | | |
124 | * [SW] [*] [*] [*] | |
125 | */ | |
126 | ||
767fc1ea | 127 | compatible = "gpio-leds"; |
faf76128 TP |
128 | pinctrl-0 = <&pmx_led_disk_yellow &pmx_led_sys_red |
129 | &pmx_led_sys_blue &pmx_led_wifi_green | |
130 | &pmx_led_wifi_yellow>; | |
131 | pinctrl-names = "default"; | |
767fc1ea JC |
132 | |
133 | disk { | |
134 | label = "topkick:yellow:disk"; | |
3a31f2d7 | 135 | gpios = <&gpio0 21 GPIO_ACTIVE_LOW>; |
767fc1ea JC |
136 | linux,default-trigger = "ide-disk"; |
137 | }; | |
138 | system2 { | |
139 | label = "topkick:red:system"; | |
3a31f2d7 | 140 | gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; |
767fc1ea JC |
141 | }; |
142 | system { | |
143 | label = "topkick:blue:system"; | |
3a31f2d7 | 144 | gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; |
767fc1ea JC |
145 | default-state = "on"; |
146 | }; | |
147 | wifi { | |
148 | label = "topkick:green:wifi"; | |
3a31f2d7 | 149 | gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; |
767fc1ea JC |
150 | }; |
151 | wifi2 { | |
152 | label = "topkick:yellow:wifi"; | |
3a31f2d7 | 153 | gpios = <&gpio1 16 GPIO_ACTIVE_LOW>; |
767fc1ea JC |
154 | }; |
155 | }; | |
8758c885 AL |
156 | regulators { |
157 | compatible = "simple-bus"; | |
158 | #address-cells = <1>; | |
159 | #size-cells = <0>; | |
faf76128 TP |
160 | pinctrl-0 = <&pmx_sata0_pwr_enable>; |
161 | pinctrl-names = "default"; | |
8758c885 AL |
162 | |
163 | sata0_power: regulator@1 { | |
164 | compatible = "regulator-fixed"; | |
165 | reg = <1>; | |
166 | regulator-name = "SATA0 Power"; | |
167 | regulator-min-microvolt = <5000000>; | |
168 | regulator-max-microvolt = <5000000>; | |
169 | enable-active-high; | |
170 | regulator-always-on; | |
171 | regulator-boot-on; | |
172 | gpio = <&gpio1 4 0>; | |
173 | }; | |
174 | }; | |
767fc1ea | 175 | }; |
876e2333 | 176 | |
7045ff5a JG |
177 | &nand { |
178 | status = "okay"; | |
179 | pinctrl-0 = <&pmx_nand>; | |
180 | pinctrl-names = "default"; | |
181 | ||
182 | partition@0 { | |
183 | label = "u-boot"; | |
184 | reg = <0x0000000 0x180000>; | |
185 | }; | |
186 | ||
187 | partition@180000 { | |
188 | label = "u-boot env"; | |
189 | reg = <0x0180000 0x20000>; | |
190 | }; | |
191 | ||
192 | partition@200000 { | |
193 | label = "uImage"; | |
194 | reg = <0x0200000 0x600000>; | |
195 | }; | |
196 | ||
197 | partition@800000 { | |
198 | label = "uInitrd"; | |
199 | reg = <0x0800000 0x1000000>; | |
200 | }; | |
201 | ||
202 | partition@1800000 { | |
203 | label = "rootfs"; | |
204 | reg = <0x1800000 0xe800000>; | |
205 | }; | |
206 | }; | |
207 | ||
876e2333 SH |
208 | &mdio { |
209 | status = "okay"; | |
210 | ||
211 | ethphy0: ethernet-phy@0 { | |
876e2333 SH |
212 | reg = <0>; |
213 | }; | |
214 | }; | |
215 | ||
216 | ð0 { | |
217 | status = "okay"; | |
218 | ethernet0-port@0 { | |
219 | phy-handle = <ðphy0>; | |
220 | }; | |
221 | }; |