Thomas Petazzoni | 37ae08c | 2013-08-01 17:07:32 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Marvell 88F6281 GTW GE Board |
| 3 | * |
| 4 | * Lennert Buytenhek <buytenh@marvell.com> |
| 5 | * Thomas Petazzoni <thomas.petazzoni@free-electrons.com> |
| 6 | * |
| 7 | * This file is licensed under the terms of the GNU General Public |
| 8 | * License version 2. This program is licensed "as is" without any |
| 9 | * warranty of any kind, whether express or implied. |
| 10 | * |
| 11 | * This file contains the definitions that are common between the 6281 |
| 12 | * and 6282 variants of the Marvell Kirkwood Development Board. |
| 13 | */ |
| 14 | |
| 15 | /dts-v1/; |
| 16 | |
Jason Cooper | ea489af | 2013-08-06 15:02:24 +0000 | [diff] [blame] | 17 | #include "kirkwood.dtsi" |
| 18 | #include "kirkwood-6281.dtsi" |
Thomas Petazzoni | 37ae08c | 2013-08-01 17:07:32 +0200 | [diff] [blame] | 19 | |
| 20 | / { |
| 21 | model = "Marvell 88F6281 GTW GE Board"; |
| 22 | compatible = "marvell,mv88f6281gtw-ge", "marvell,kirkwood-88f6281", "marvell,kirkwood"; |
| 23 | |
| 24 | memory { |
| 25 | device_type = "memory"; |
| 26 | reg = <0x00000000 0x20000000>; /* 512 MB */ |
| 27 | }; |
| 28 | |
| 29 | chosen { |
| 30 | bootargs = "console=ttyS0,115200n8 earlyprintk"; |
Sebastian Hesselbarth | ab83361 | 2014-04-30 14:56:30 +0200 | [diff] [blame] | 31 | stdout-path = &uart0; |
Thomas Petazzoni | 37ae08c | 2013-08-01 17:07:32 +0200 | [diff] [blame] | 32 | }; |
| 33 | |
Sebastian Hesselbarth | 788296b | 2014-04-30 14:56:28 +0200 | [diff] [blame] | 34 | mbus { |
| 35 | pcie-controller { |
| 36 | status = "okay"; |
| 37 | |
| 38 | pcie@1,0 { |
| 39 | status = "okay"; |
| 40 | }; |
| 41 | }; |
| 42 | }; |
| 43 | |
Thomas Petazzoni | 37ae08c | 2013-08-01 17:07:32 +0200 | [diff] [blame] | 44 | ocp@f1000000 { |
Sebastian Hesselbarth | a948396 | 2014-04-30 14:56:32 +0200 | [diff] [blame] | 45 | pin-controller@10000 { |
Thomas Petazzoni | 37ae08c | 2013-08-01 17:07:32 +0200 | [diff] [blame] | 46 | pmx_usb_led: pmx-usb-led { |
| 47 | marvell,pins = "mpp12"; |
| 48 | marvell,function = "gpo"; |
| 49 | }; |
| 50 | |
| 51 | pmx_leds: pmx-leds { |
| 52 | marvell,pins = "mpp20", "mpp21"; |
| 53 | marvell,function = "gpio"; |
| 54 | }; |
| 55 | |
| 56 | pmx_keys: pmx-keys { |
| 57 | marvell,pins = "mpp46", "mpp47"; |
| 58 | marvell,function = "gpio"; |
| 59 | }; |
| 60 | }; |
| 61 | |
| 62 | spi@10600 { |
Thomas Petazzoni | 37ae08c | 2013-08-01 17:07:32 +0200 | [diff] [blame] | 63 | status = "okay"; |
| 64 | |
| 65 | flash@0 { |
| 66 | #address-cells = <1>; |
| 67 | #size-cells = <1>; |
Rafał Miłecki | 943d45a | 2015-05-19 13:40:16 +0200 | [diff] [blame] | 68 | compatible = "mxicy,mx25l12805d", "jedec,spi-nor"; |
Thomas Petazzoni | 37ae08c | 2013-08-01 17:07:32 +0200 | [diff] [blame] | 69 | reg = <0>; |
| 70 | spi-max-frequency = <50000000>; |
| 71 | mode = <0>; |
| 72 | }; |
| 73 | }; |
| 74 | |
| 75 | serial@12000 { |
Sebastian Hesselbarth | 9f2339a | 2014-04-30 14:56:36 +0200 | [diff] [blame] | 76 | status = "okay"; |
Thomas Petazzoni | 37ae08c | 2013-08-01 17:07:32 +0200 | [diff] [blame] | 77 | }; |
| 78 | |
| 79 | ehci@50000 { |
| 80 | status = "okay"; |
| 81 | }; |
Thomas Petazzoni | 37ae08c | 2013-08-01 17:07:32 +0200 | [diff] [blame] | 82 | }; |
| 83 | |
| 84 | gpio-leds { |
| 85 | compatible = "gpio-leds"; |
| 86 | pinctrl-0 = <&pmx_leds &pmx_usb_led>; |
| 87 | pinctrl-names = "default"; |
| 88 | |
| 89 | green-status { |
| 90 | label = "gtw:green:Status"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 91 | gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>; |
Thomas Petazzoni | 37ae08c | 2013-08-01 17:07:32 +0200 | [diff] [blame] | 92 | }; |
| 93 | |
| 94 | red-status { |
| 95 | label = "gtw:red:Status"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 96 | gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>; |
Thomas Petazzoni | 37ae08c | 2013-08-01 17:07:32 +0200 | [diff] [blame] | 97 | }; |
| 98 | |
| 99 | green-usb { |
| 100 | label = "gtw:green:USB"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 101 | gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; |
Thomas Petazzoni | 37ae08c | 2013-08-01 17:07:32 +0200 | [diff] [blame] | 102 | }; |
| 103 | }; |
| 104 | |
| 105 | gpio_keys { |
| 106 | compatible = "gpio-keys"; |
| 107 | #address-cells = <1>; |
| 108 | #size-cells = <0>; |
| 109 | pinctrl-0 = <&pmx_keys>; |
| 110 | pinctrl-names = "default"; |
| 111 | |
| 112 | button@1 { |
| 113 | label = "SWR Button"; |
Andrew Lunn | 2330119 | 2013-12-04 16:51:38 +0100 | [diff] [blame] | 114 | linux,code = <KEY_RESTART>; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 115 | gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; |
Thomas Petazzoni | 37ae08c | 2013-08-01 17:07:32 +0200 | [diff] [blame] | 116 | }; |
| 117 | button@2 { |
| 118 | label = "WPS Button"; |
Andrew Lunn | 2330119 | 2013-12-04 16:51:38 +0100 | [diff] [blame] | 119 | linux,code = <KEY_WPS_BUTTON>; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 120 | gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; |
Thomas Petazzoni | 37ae08c | 2013-08-01 17:07:32 +0200 | [diff] [blame] | 121 | }; |
| 122 | }; |
Andrew Lunn | e7c8f38 | 2014-02-22 20:14:45 +0100 | [diff] [blame] | 123 | |
| 124 | dsa@0 { |
| 125 | compatible = "marvell,dsa"; |
Andrew Lunn | 4f5e01e | 2014-09-01 19:35:41 +0200 | [diff] [blame] | 126 | #address-cells = <1>; |
Andrew Lunn | e7c8f38 | 2014-02-22 20:14:45 +0100 | [diff] [blame] | 127 | #size-cells = <0>; |
| 128 | |
Andrew Lunn | 4f5e01e | 2014-09-01 19:35:41 +0200 | [diff] [blame] | 129 | dsa,ethernet = <ð0port>; |
| 130 | dsa,mii-bus = <&mdio>; |
Andrew Lunn | e7c8f38 | 2014-02-22 20:14:45 +0100 | [diff] [blame] | 131 | |
| 132 | switch@0 { |
| 133 | #address-cells = <1>; |
| 134 | #size-cells = <0>; |
| 135 | reg = <0 0>; /* MDIO address 0, switch 0 in tree */ |
| 136 | |
| 137 | port@0 { |
| 138 | reg = <0>; |
| 139 | label = "lan1"; |
| 140 | }; |
| 141 | |
| 142 | port@1 { |
| 143 | reg = <1>; |
| 144 | label = "lan2"; |
| 145 | }; |
| 146 | |
| 147 | port@2 { |
| 148 | reg = <2>; |
| 149 | label = "lan3"; |
| 150 | }; |
| 151 | |
| 152 | port@3 { |
| 153 | reg = <3>; |
| 154 | label = "lan4"; |
| 155 | }; |
| 156 | |
| 157 | port@4 { |
| 158 | reg = <4>; |
| 159 | label = "wan"; |
| 160 | }; |
| 161 | |
| 162 | port@5 { |
| 163 | reg = <5>; |
| 164 | label = "cpu"; |
| 165 | }; |
| 166 | }; |
| 167 | }; |
| 168 | }; |
| 169 | |
| 170 | &mdio { |
| 171 | status = "okay"; |
Andrew Lunn | e7c8f38 | 2014-02-22 20:14:45 +0100 | [diff] [blame] | 172 | }; |
| 173 | |
| 174 | ð0 { |
| 175 | status = "okay"; |
Andrew Lunn | 4f5e01e | 2014-09-01 19:35:41 +0200 | [diff] [blame] | 176 | |
Andrew Lunn | e7c8f38 | 2014-02-22 20:14:45 +0100 | [diff] [blame] | 177 | ethernet0-port@0 { |
Andrew Lunn | 4f5e01e | 2014-09-01 19:35:41 +0200 | [diff] [blame] | 178 | speed = <1000>; |
| 179 | duplex = <1>; |
Andrew Lunn | e7c8f38 | 2014-02-22 20:14:45 +0100 | [diff] [blame] | 180 | }; |
Thomas Petazzoni | 37ae08c | 2013-08-01 17:07:32 +0200 | [diff] [blame] | 181 | }; |