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"; |
Sebastian Hesselbarth | ab83361 | 2014-04-30 14:56:30 +0200 | [diff] [blame] | 17 | stdout-path = &uart0; |
Jason Cooper | 767fc1e | 2012-10-22 02:15:35 +0000 | [diff] [blame] | 18 | }; |
| 19 | |
| 20 | ocp@f1000000 { |
Sebastian Hesselbarth | a948396 | 2014-04-30 14:56:32 +0200 | [diff] [blame] | 21 | pinctrl: pin-controller@10000 { |
Jason Cooper | 1598954 | 2013-01-26 20:50:11 +0000 | [diff] [blame] | 22 | /* |
Jason Cooper | 1598954 | 2013-01-26 20:50:11 +0000 | [diff] [blame] | 23 | * Switch positions |
| 24 | * |
| 25 | * /-SW_LEFT(2) |
| 26 | * | |
| 27 | * | /-SW_IDLE |
| 28 | * | | |
| 29 | * | | /-SW_RIGHT |
| 30 | * | | | |
| 31 | * PS [L] [I] [R] LEDS |
| 32 | */ |
Thomas Petazzoni | faf7612 | 2013-05-24 11:44:55 +0200 | [diff] [blame] | 33 | pinctrl-0 = <&pmx_sw_left &pmx_sw_right |
| 34 | &pmx_sw_idle &pmx_sw_left2>; |
Jason Cooper | 1598954 | 2013-01-26 20:50:11 +0000 | [diff] [blame] | 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 | |
Jason Cooper | 767fc1e | 2012-10-22 02:15:35 +0000 | [diff] [blame] | 88 | serial@12000 { |
Sebastian Hesselbarth | 9f2339a | 2014-04-30 14:56:36 +0200 | [diff] [blame^] | 89 | status = "okay"; |
Jason Cooper | 767fc1e | 2012-10-22 02:15:35 +0000 | [diff] [blame] | 90 | }; |
| 91 | |
Jason Cooper | 767fc1e | 2012-10-22 02:15:35 +0000 | [diff] [blame] | 92 | sata@80000 { |
| 93 | status = "okay"; |
| 94 | nr-ports = <1>; |
| 95 | }; |
Andrew Lunn | 44d032e | 2013-01-26 20:50:12 +0000 | [diff] [blame] | 96 | |
| 97 | i2c@11000 { |
| 98 | status = "ok"; |
Thomas Petazzoni | faf7612 | 2013-05-24 11:44:55 +0200 | [diff] [blame] | 99 | pinctrl-0 = <&pmx_twsi0>; |
| 100 | pinctrl-names = "default"; |
Andrew Lunn | 44d032e | 2013-01-26 20:50:12 +0000 | [diff] [blame] | 101 | }; |
Jason Cooper | 0dbe6ce | 2013-01-26 20:50:10 +0000 | [diff] [blame] | 102 | |
| 103 | mvsdio@90000 { |
| 104 | pinctrl-0 = <&pmx_sdio>; |
| 105 | pinctrl-names = "default"; |
| 106 | status = "okay"; |
| 107 | /* No CD or WP GPIOs */ |
Simon Baatz | d87b5fb | 2013-05-13 23:18:58 +0200 | [diff] [blame] | 108 | broken-cd; |
Jason Cooper | 0dbe6ce | 2013-01-26 20:50:10 +0000 | [diff] [blame] | 109 | }; |
Jason Cooper | 767fc1e | 2012-10-22 02:15:35 +0000 | [diff] [blame] | 110 | }; |
| 111 | |
| 112 | gpio-leds { |
Thomas Petazzoni | faf7612 | 2013-05-24 11:44:55 +0200 | [diff] [blame] | 113 | /* |
| 114 | * GPIO LED layout |
| 115 | * |
| 116 | * /-SYS_LED(2) |
| 117 | * | |
| 118 | * | /-DISK_LED |
| 119 | * | | |
| 120 | * | | /-WLAN_LED(2) |
| 121 | * | | | |
| 122 | * [SW] [*] [*] [*] |
| 123 | */ |
| 124 | |
Jason Cooper | 767fc1e | 2012-10-22 02:15:35 +0000 | [diff] [blame] | 125 | compatible = "gpio-leds"; |
Thomas Petazzoni | faf7612 | 2013-05-24 11:44:55 +0200 | [diff] [blame] | 126 | pinctrl-0 = <&pmx_led_disk_yellow &pmx_led_sys_red |
| 127 | &pmx_led_sys_blue &pmx_led_wifi_green |
| 128 | &pmx_led_wifi_yellow>; |
| 129 | pinctrl-names = "default"; |
Jason Cooper | 767fc1e | 2012-10-22 02:15:35 +0000 | [diff] [blame] | 130 | |
| 131 | disk { |
| 132 | label = "topkick:yellow:disk"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 133 | gpios = <&gpio0 21 GPIO_ACTIVE_LOW>; |
Jason Cooper | 767fc1e | 2012-10-22 02:15:35 +0000 | [diff] [blame] | 134 | linux,default-trigger = "ide-disk"; |
| 135 | }; |
| 136 | system2 { |
| 137 | label = "topkick:red:system"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 138 | gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; |
Jason Cooper | 767fc1e | 2012-10-22 02:15:35 +0000 | [diff] [blame] | 139 | }; |
| 140 | system { |
| 141 | label = "topkick:blue:system"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 142 | gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; |
Jason Cooper | 767fc1e | 2012-10-22 02:15:35 +0000 | [diff] [blame] | 143 | default-state = "on"; |
| 144 | }; |
| 145 | wifi { |
| 146 | label = "topkick:green:wifi"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 147 | gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; |
Jason Cooper | 767fc1e | 2012-10-22 02:15:35 +0000 | [diff] [blame] | 148 | }; |
| 149 | wifi2 { |
| 150 | label = "topkick:yellow:wifi"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 151 | gpios = <&gpio1 16 GPIO_ACTIVE_LOW>; |
Jason Cooper | 767fc1e | 2012-10-22 02:15:35 +0000 | [diff] [blame] | 152 | }; |
| 153 | }; |
Andrew Lunn | 8758c88 | 2013-01-06 11:10:38 +0100 | [diff] [blame] | 154 | regulators { |
| 155 | compatible = "simple-bus"; |
| 156 | #address-cells = <1>; |
| 157 | #size-cells = <0>; |
Thomas Petazzoni | faf7612 | 2013-05-24 11:44:55 +0200 | [diff] [blame] | 158 | pinctrl-0 = <&pmx_sata0_pwr_enable>; |
| 159 | pinctrl-names = "default"; |
Andrew Lunn | 8758c88 | 2013-01-06 11:10:38 +0100 | [diff] [blame] | 160 | |
| 161 | sata0_power: regulator@1 { |
| 162 | compatible = "regulator-fixed"; |
| 163 | reg = <1>; |
| 164 | regulator-name = "SATA0 Power"; |
| 165 | regulator-min-microvolt = <5000000>; |
| 166 | regulator-max-microvolt = <5000000>; |
| 167 | enable-active-high; |
| 168 | regulator-always-on; |
| 169 | regulator-boot-on; |
| 170 | gpio = <&gpio1 4 0>; |
| 171 | }; |
| 172 | }; |
Jason Cooper | 767fc1e | 2012-10-22 02:15:35 +0000 | [diff] [blame] | 173 | }; |
Sebastian Hesselbarth | 876e233 | 2013-07-07 22:34:56 +0200 | [diff] [blame] | 174 | |
Jason Gunthorpe | 7045ff5 | 2013-09-17 12:44:33 -0600 | [diff] [blame] | 175 | &nand { |
| 176 | status = "okay"; |
| 177 | pinctrl-0 = <&pmx_nand>; |
| 178 | pinctrl-names = "default"; |
| 179 | |
| 180 | partition@0 { |
| 181 | label = "u-boot"; |
| 182 | reg = <0x0000000 0x180000>; |
| 183 | }; |
| 184 | |
| 185 | partition@180000 { |
| 186 | label = "u-boot env"; |
| 187 | reg = <0x0180000 0x20000>; |
| 188 | }; |
| 189 | |
| 190 | partition@200000 { |
| 191 | label = "uImage"; |
| 192 | reg = <0x0200000 0x600000>; |
| 193 | }; |
| 194 | |
| 195 | partition@800000 { |
| 196 | label = "uInitrd"; |
| 197 | reg = <0x0800000 0x1000000>; |
| 198 | }; |
| 199 | |
| 200 | partition@1800000 { |
| 201 | label = "rootfs"; |
| 202 | reg = <0x1800000 0xe800000>; |
| 203 | }; |
| 204 | }; |
| 205 | |
Sebastian Hesselbarth | 876e233 | 2013-07-07 22:34:56 +0200 | [diff] [blame] | 206 | &mdio { |
| 207 | status = "okay"; |
| 208 | |
| 209 | ethphy0: ethernet-phy@0 { |
Sebastian Hesselbarth | 876e233 | 2013-07-07 22:34:56 +0200 | [diff] [blame] | 210 | reg = <0>; |
| 211 | }; |
| 212 | }; |
| 213 | |
| 214 | ð0 { |
| 215 | status = "okay"; |
| 216 | ethernet0-port@0 { |
| 217 | phy-handle = <ðphy0>; |
| 218 | }; |
| 219 | }; |