Jason Cooper | 767fc1e | 2012-10-22 02:15:35 +0000 | [diff] [blame] | 1 | /dts-v1/; |
| 2 | |
Ezequiel Garcia | 0ab6129 | 2013-07-26 10:18:02 -0300 | [diff] [blame] | 3 | #include "kirkwood.dtsi" |
| 4 | #include "kirkwood-6282.dtsi" |
Jason Cooper | 767fc1e | 2012-10-22 02:15:35 +0000 | [diff] [blame] | 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 { |
Jason Cooper | 1598954 | 2013-01-26 20:50:11 +0000 | [diff] [blame] | 20 | pinctrl: pinctrl@10000 { |
| 21 | /* |
Jason Cooper | 1598954 | 2013-01-26 20:50:11 +0000 | [diff] [blame] | 22 | * Switch positions |
| 23 | * |
| 24 | * /-SW_LEFT(2) |
| 25 | * | |
| 26 | * | /-SW_IDLE |
| 27 | * | | |
| 28 | * | | /-SW_RIGHT |
| 29 | * | | | |
| 30 | * PS [L] [I] [R] LEDS |
| 31 | */ |
Thomas Petazzoni | faf7612 | 2013-05-24 11:44:55 +0200 | [diff] [blame] | 32 | pinctrl-0 = <&pmx_sw_left &pmx_sw_right |
| 33 | &pmx_sw_idle &pmx_sw_left2>; |
Jason Cooper | 1598954 | 2013-01-26 20:50:11 +0000 | [diff] [blame] | 34 | pinctrl-names = "default"; |
| 35 | |
| 36 | pmx_led_disk_yellow: pmx-led-disk-yellow { |
| 37 | marvell,pins = "mpp21"; |
| 38 | marvell,function = "gpio"; |
| 39 | }; |
| 40 | |
| 41 | pmx_sata0_pwr_enable: pmx-sata0-pwr-enable { |
| 42 | marvell,pins = "mpp36"; |
| 43 | marvell,function = "gpio"; |
| 44 | }; |
| 45 | |
| 46 | pmx_led_sys_red: pmx-led-sys-red { |
| 47 | marvell,pins = "mpp37"; |
| 48 | marvell,function = "gpio"; |
| 49 | }; |
| 50 | |
| 51 | pmx_led_sys_blue: pmx-led-sys-blue { |
| 52 | marvell,pins = "mpp38"; |
| 53 | marvell,function = "gpio"; |
| 54 | }; |
| 55 | |
| 56 | pmx_led_wifi_green: pmx-led-wifi-green { |
| 57 | marvell,pins = "mpp39"; |
| 58 | marvell,function = "gpio"; |
| 59 | }; |
| 60 | |
| 61 | pmx_sw_left: pmx-sw-left { |
| 62 | marvell,pins = "mpp43"; |
| 63 | marvell,function = "gpio"; |
| 64 | }; |
| 65 | |
| 66 | pmx_sw_right: pmx-sw-right { |
| 67 | marvell,pins = "mpp44"; |
| 68 | marvell,function = "gpio"; |
| 69 | }; |
| 70 | |
| 71 | pmx_sw_idle: pmx-sw-idle { |
| 72 | marvell,pins = "mpp45"; |
| 73 | marvell,function = "gpio"; |
| 74 | }; |
| 75 | |
| 76 | pmx_sw_left2: pmx-sw-left2 { |
| 77 | marvell,pins = "mpp46"; |
| 78 | marvell,function = "gpio"; |
| 79 | }; |
| 80 | |
| 81 | pmx_led_wifi_yellow: pmx-led-wifi-yellow { |
| 82 | marvell,pins = "mpp48"; |
| 83 | marvell,function = "gpio"; |
| 84 | }; |
| 85 | }; |
| 86 | |
Jason Cooper | 767fc1e | 2012-10-22 02:15:35 +0000 | [diff] [blame] | 87 | serial@12000 { |
Jason Cooper | 767fc1e | 2012-10-22 02:15:35 +0000 | [diff] [blame] | 88 | status = "ok"; |
Thomas Petazzoni | faf7612 | 2013-05-24 11:44:55 +0200 | [diff] [blame] | 89 | pinctrl-0 = <&pmx_uart0>; |
| 90 | pinctrl-names = "default"; |
Jason Cooper | 767fc1e | 2012-10-22 02:15:35 +0000 | [diff] [blame] | 91 | }; |
| 92 | |
Jason Cooper | 767fc1e | 2012-10-22 02:15:35 +0000 | [diff] [blame] | 93 | sata@80000 { |
| 94 | status = "okay"; |
| 95 | nr-ports = <1>; |
| 96 | }; |
Andrew Lunn | 44d032e | 2013-01-26 20:50:12 +0000 | [diff] [blame] | 97 | |
| 98 | i2c@11000 { |
| 99 | status = "ok"; |
Thomas Petazzoni | faf7612 | 2013-05-24 11:44:55 +0200 | [diff] [blame] | 100 | pinctrl-0 = <&pmx_twsi0>; |
| 101 | pinctrl-names = "default"; |
Andrew Lunn | 44d032e | 2013-01-26 20:50:12 +0000 | [diff] [blame] | 102 | }; |
Jason Cooper | 0dbe6ce | 2013-01-26 20:50:10 +0000 | [diff] [blame] | 103 | |
| 104 | mvsdio@90000 { |
| 105 | pinctrl-0 = <&pmx_sdio>; |
| 106 | pinctrl-names = "default"; |
| 107 | status = "okay"; |
| 108 | /* No CD or WP GPIOs */ |
Simon Baatz | d87b5fb | 2013-05-13 23:18:58 +0200 | [diff] [blame] | 109 | broken-cd; |
Jason Cooper | 0dbe6ce | 2013-01-26 20:50:10 +0000 | [diff] [blame] | 110 | }; |
Jason Cooper | 767fc1e | 2012-10-22 02:15:35 +0000 | [diff] [blame] | 111 | }; |
| 112 | |
| 113 | gpio-leds { |
Thomas Petazzoni | faf7612 | 2013-05-24 11:44:55 +0200 | [diff] [blame] | 114 | /* |
| 115 | * GPIO LED layout |
| 116 | * |
| 117 | * /-SYS_LED(2) |
| 118 | * | |
| 119 | * | /-DISK_LED |
| 120 | * | | |
| 121 | * | | /-WLAN_LED(2) |
| 122 | * | | | |
| 123 | * [SW] [*] [*] [*] |
| 124 | */ |
| 125 | |
Jason Cooper | 767fc1e | 2012-10-22 02:15:35 +0000 | [diff] [blame] | 126 | compatible = "gpio-leds"; |
Thomas Petazzoni | faf7612 | 2013-05-24 11:44:55 +0200 | [diff] [blame] | 127 | pinctrl-0 = <&pmx_led_disk_yellow &pmx_led_sys_red |
| 128 | &pmx_led_sys_blue &pmx_led_wifi_green |
| 129 | &pmx_led_wifi_yellow>; |
| 130 | pinctrl-names = "default"; |
Jason Cooper | 767fc1e | 2012-10-22 02:15:35 +0000 | [diff] [blame] | 131 | |
| 132 | disk { |
| 133 | label = "topkick:yellow:disk"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 134 | gpios = <&gpio0 21 GPIO_ACTIVE_LOW>; |
Jason Cooper | 767fc1e | 2012-10-22 02:15:35 +0000 | [diff] [blame] | 135 | linux,default-trigger = "ide-disk"; |
| 136 | }; |
| 137 | system2 { |
| 138 | label = "topkick:red:system"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 139 | gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; |
Jason Cooper | 767fc1e | 2012-10-22 02:15:35 +0000 | [diff] [blame] | 140 | }; |
| 141 | system { |
| 142 | label = "topkick:blue:system"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 143 | gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; |
Jason Cooper | 767fc1e | 2012-10-22 02:15:35 +0000 | [diff] [blame] | 144 | default-state = "on"; |
| 145 | }; |
| 146 | wifi { |
| 147 | label = "topkick:green:wifi"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 148 | gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; |
Jason Cooper | 767fc1e | 2012-10-22 02:15:35 +0000 | [diff] [blame] | 149 | }; |
| 150 | wifi2 { |
| 151 | label = "topkick:yellow:wifi"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 152 | gpios = <&gpio1 16 GPIO_ACTIVE_LOW>; |
Jason Cooper | 767fc1e | 2012-10-22 02:15:35 +0000 | [diff] [blame] | 153 | }; |
| 154 | }; |
Andrew Lunn | 8758c88 | 2013-01-06 11:10:38 +0100 | [diff] [blame] | 155 | regulators { |
| 156 | compatible = "simple-bus"; |
| 157 | #address-cells = <1>; |
| 158 | #size-cells = <0>; |
Thomas Petazzoni | faf7612 | 2013-05-24 11:44:55 +0200 | [diff] [blame] | 159 | pinctrl-0 = <&pmx_sata0_pwr_enable>; |
| 160 | pinctrl-names = "default"; |
Andrew Lunn | 8758c88 | 2013-01-06 11:10:38 +0100 | [diff] [blame] | 161 | |
| 162 | sata0_power: regulator@1 { |
| 163 | compatible = "regulator-fixed"; |
| 164 | reg = <1>; |
| 165 | regulator-name = "SATA0 Power"; |
| 166 | regulator-min-microvolt = <5000000>; |
| 167 | regulator-max-microvolt = <5000000>; |
| 168 | enable-active-high; |
| 169 | regulator-always-on; |
| 170 | regulator-boot-on; |
| 171 | gpio = <&gpio1 4 0>; |
| 172 | }; |
| 173 | }; |
Jason Cooper | 767fc1e | 2012-10-22 02:15:35 +0000 | [diff] [blame] | 174 | }; |
Sebastian Hesselbarth | 876e233 | 2013-07-07 22:34:56 +0200 | [diff] [blame] | 175 | |
Jason Gunthorpe | 7045ff5 | 2013-09-17 12:44:33 -0600 | [diff] [blame] | 176 | &nand { |
| 177 | status = "okay"; |
| 178 | pinctrl-0 = <&pmx_nand>; |
| 179 | pinctrl-names = "default"; |
| 180 | |
| 181 | partition@0 { |
| 182 | label = "u-boot"; |
| 183 | reg = <0x0000000 0x180000>; |
| 184 | }; |
| 185 | |
| 186 | partition@180000 { |
| 187 | label = "u-boot env"; |
| 188 | reg = <0x0180000 0x20000>; |
| 189 | }; |
| 190 | |
| 191 | partition@200000 { |
| 192 | label = "uImage"; |
| 193 | reg = <0x0200000 0x600000>; |
| 194 | }; |
| 195 | |
| 196 | partition@800000 { |
| 197 | label = "uInitrd"; |
| 198 | reg = <0x0800000 0x1000000>; |
| 199 | }; |
| 200 | |
| 201 | partition@1800000 { |
| 202 | label = "rootfs"; |
| 203 | reg = <0x1800000 0xe800000>; |
| 204 | }; |
| 205 | }; |
| 206 | |
Sebastian Hesselbarth | 876e233 | 2013-07-07 22:34:56 +0200 | [diff] [blame] | 207 | &mdio { |
| 208 | status = "okay"; |
| 209 | |
| 210 | ethphy0: ethernet-phy@0 { |
Sebastian Hesselbarth | 876e233 | 2013-07-07 22:34:56 +0200 | [diff] [blame] | 211 | reg = <0>; |
| 212 | }; |
| 213 | }; |
| 214 | |
| 215 | ð0 { |
| 216 | status = "okay"; |
| 217 | ethernet0-port@0 { |
| 218 | phy-handle = <ðphy0>; |
| 219 | }; |
| 220 | }; |