Maxime Ripard | e5ee128 | 2015-01-08 18:38:09 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Device Tree file for Marvell Armada 385 Access Point Development board |
| 3 | * (DB-88F6820-AP) |
| 4 | * |
| 5 | * Copyright (C) 2014 Marvell |
| 6 | * |
| 7 | * Nadav Haklai <nadavh@marvell.com> |
| 8 | * |
| 9 | * This file is dual-licensed: you can use it either under the terms |
| 10 | * of the GPL or the X11 license, at your option. Note that this dual |
| 11 | * licensing only applies to this file, and not this project as a |
| 12 | * whole. |
| 13 | * |
| 14 | * a) This file is licensed under the terms of the GNU General Public |
| 15 | * License version 2. This program is licensed "as is" without |
| 16 | * any warranty of any kind, whether express or implied. |
| 17 | * |
| 18 | * Or, alternatively, |
| 19 | * |
| 20 | * b) Permission is hereby granted, free of charge, to any person |
| 21 | * obtaining a copy of this software and associated documentation |
| 22 | * files (the "Software"), to deal in the Software without |
| 23 | * restriction, including without limitation the rights to use, |
| 24 | * copy, modify, merge, publish, distribute, sublicense, and/or |
| 25 | * sell copies of the Software, and to permit persons to whom the |
| 26 | * Software is furnished to do so, subject to the following |
| 27 | * conditions: |
| 28 | * |
| 29 | * The above copyright notice and this permission notice shall be |
| 30 | * included in all copies or substantial portions of the Software. |
| 31 | * |
| 32 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 33 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
| 34 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 35 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
| 36 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
| 37 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 38 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
| 39 | * OTHER DEALINGS IN THE SOFTWARE. |
| 40 | */ |
| 41 | |
| 42 | /dts-v1/; |
| 43 | #include "armada-385.dtsi" |
| 44 | |
| 45 | #include <dt-bindings/gpio/gpio.h> |
| 46 | |
| 47 | / { |
| 48 | model = "Marvell Armada 385 Access Point Development Board"; |
Marcin Wojtas | db347f1 | 2015-10-15 03:17:08 +0200 | [diff] [blame] | 49 | compatible = "marvell,a385-db-ap", "marvell,armada385", "marvell,armada380"; |
Maxime Ripard | e5ee128 | 2015-01-08 18:38:09 +0100 | [diff] [blame] | 50 | |
| 51 | chosen { |
Thomas Petazzoni | 9552203 | 2015-03-03 15:41:02 +0100 | [diff] [blame] | 52 | stdout-path = "serial1:115200n8"; |
Maxime Ripard | e5ee128 | 2015-01-08 18:38:09 +0100 | [diff] [blame] | 53 | }; |
| 54 | |
| 55 | memory { |
| 56 | device_type = "memory"; |
| 57 | reg = <0x00000000 0x80000000>; /* 2GB */ |
| 58 | }; |
| 59 | |
| 60 | soc { |
| 61 | ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000 |
Boris Brezillon | d716f2e | 2015-08-18 10:08:59 +0200 | [diff] [blame] | 62 | MBUS_ID(0x01, 0x1d) 0 0xfff00000 0x100000 |
| 63 | MBUS_ID(0x09, 0x19) 0 0xf1100000 0x10000 |
Marcin Wojtas | c49e99c | 2016-03-14 09:38:58 +0100 | [diff] [blame] | 64 | MBUS_ID(0x09, 0x15) 0 0xf1110000 0x10000 |
| 65 | MBUS_ID(0x0c, 0x04) 0 0xf1200000 0x100000>; |
Maxime Ripard | e5ee128 | 2015-01-08 18:38:09 +0100 | [diff] [blame] | 66 | |
| 67 | internal-regs { |
Maxime Ripard | e5ee128 | 2015-01-08 18:38:09 +0100 | [diff] [blame] | 68 | i2c0: i2c@11000 { |
| 69 | pinctrl-names = "default"; |
| 70 | pinctrl-0 = <&i2c0_pins>; |
| 71 | status = "okay"; |
| 72 | |
| 73 | /* |
| 74 | * This bus is wired to two EEPROM |
| 75 | * sockets, one of which holding the |
| 76 | * board ID used by the bootloader. |
| 77 | * Erasing this EEPROM's content will |
| 78 | * brick the board. |
| 79 | * Use this bus with caution. |
| 80 | */ |
| 81 | }; |
| 82 | |
| 83 | mdio@72004 { |
| 84 | pinctrl-names = "default"; |
| 85 | pinctrl-0 = <&mdio_pins>; |
| 86 | |
| 87 | phy0: ethernet-phy@1 { |
| 88 | reg = <1>; |
| 89 | }; |
| 90 | |
| 91 | phy1: ethernet-phy@4 { |
| 92 | reg = <4>; |
| 93 | }; |
| 94 | |
| 95 | phy2: ethernet-phy@6 { |
| 96 | reg = <6>; |
| 97 | }; |
| 98 | }; |
| 99 | |
| 100 | /* UART0 is exposed through the JP8 connector */ |
| 101 | uart0: serial@12000 { |
| 102 | pinctrl-names = "default"; |
| 103 | pinctrl-0 = <&uart0_pins>; |
| 104 | status = "okay"; |
| 105 | }; |
| 106 | |
| 107 | /* |
| 108 | * UART1 is exposed through a FTDI chip |
| 109 | * wired to the mini-USB connector |
| 110 | */ |
| 111 | uart1: serial@12100 { |
| 112 | pinctrl-names = "default"; |
| 113 | pinctrl-0 = <&uart1_pins>; |
| 114 | status = "okay"; |
| 115 | }; |
| 116 | |
Maxime Ripard | 7776ab7 | 2015-01-19 14:01:14 +0100 | [diff] [blame] | 117 | pinctrl@18000 { |
| 118 | xhci0_vbus_pins: xhci0-vbus-pins { |
| 119 | marvell,pins = "mpp44"; |
| 120 | marvell,function = "gpio"; |
| 121 | }; |
| 122 | }; |
| 123 | |
Thomas Petazzoni | 34d4829 | 2016-01-27 16:08:20 +0100 | [diff] [blame] | 124 | /* CON3 */ |
Maxime Ripard | e5ee128 | 2015-01-08 18:38:09 +0100 | [diff] [blame] | 125 | ethernet@30000 { |
| 126 | status = "okay"; |
| 127 | phy = <&phy2>; |
| 128 | phy-mode = "sgmii"; |
Marcin Wojtas | c49e99c | 2016-03-14 09:38:58 +0100 | [diff] [blame] | 129 | buffer-manager = <&bm>; |
| 130 | bm,pool-long = <1>; |
| 131 | bm,pool-short = <3>; |
Maxime Ripard | e5ee128 | 2015-01-08 18:38:09 +0100 | [diff] [blame] | 132 | }; |
| 133 | |
Thomas Petazzoni | 34d4829 | 2016-01-27 16:08:20 +0100 | [diff] [blame] | 134 | /* CON2 */ |
Maxime Ripard | e5ee128 | 2015-01-08 18:38:09 +0100 | [diff] [blame] | 135 | ethernet@34000 { |
| 136 | status = "okay"; |
| 137 | phy = <&phy1>; |
| 138 | phy-mode = "sgmii"; |
Marcin Wojtas | c49e99c | 2016-03-14 09:38:58 +0100 | [diff] [blame] | 139 | buffer-manager = <&bm>; |
| 140 | bm,pool-long = <2>; |
| 141 | bm,pool-short = <3>; |
Maxime Ripard | e5ee128 | 2015-01-08 18:38:09 +0100 | [diff] [blame] | 142 | }; |
| 143 | |
Grzegorz Jaszczyk | b583e29 | 2016-08-04 12:14:06 +0200 | [diff] [blame] | 144 | usb@58000 { |
| 145 | status = "okay"; |
| 146 | }; |
| 147 | |
Thomas Petazzoni | 34d4829 | 2016-01-27 16:08:20 +0100 | [diff] [blame] | 148 | /* CON4 */ |
Maxime Ripard | e5ee128 | 2015-01-08 18:38:09 +0100 | [diff] [blame] | 149 | ethernet@70000 { |
| 150 | pinctrl-names = "default"; |
| 151 | |
| 152 | /* |
| 153 | * The Reference Clock 0 is used to |
| 154 | * provide a clock to the PHY |
| 155 | */ |
| 156 | pinctrl-0 = <&ge0_rgmii_pins>, <&ref_clk0_pins>; |
| 157 | status = "okay"; |
| 158 | phy = <&phy0>; |
| 159 | phy-mode = "rgmii-id"; |
Marcin Wojtas | c49e99c | 2016-03-14 09:38:58 +0100 | [diff] [blame] | 160 | buffer-manager = <&bm>; |
| 161 | bm,pool-long = <0>; |
| 162 | bm,pool-short = <3>; |
| 163 | }; |
| 164 | |
| 165 | bm@c8000 { |
| 166 | status = "okay"; |
Maxime Ripard | e5ee128 | 2015-01-08 18:38:09 +0100 | [diff] [blame] | 167 | }; |
Maxime Ripard | 2a2dbd8 | 2015-03-03 11:16:45 +0100 | [diff] [blame] | 168 | |
| 169 | nfc: flash@d0000 { |
| 170 | status = "okay"; |
Maxime Ripard | 2a2dbd8 | 2015-03-03 11:16:45 +0100 | [diff] [blame] | 171 | num-cs = <1>; |
| 172 | nand-ecc-strength = <4>; |
| 173 | nand-ecc-step-size = <512>; |
| 174 | marvell,nand-keep-config; |
| 175 | marvell,nand-enable-arbiter; |
| 176 | nand-on-flash-bbt; |
Grzegorz Jaszczyk | 4ec1729 | 2016-08-04 12:14:07 +0200 | [diff] [blame] | 177 | |
| 178 | partitions { |
| 179 | compatible = "fixed-partitions"; |
| 180 | #address-cells = <1>; |
| 181 | #size-cells = <1>; |
| 182 | |
| 183 | partition@0 { |
| 184 | label = "U-Boot"; |
| 185 | reg = <0x00000000 0x00800000>; |
| 186 | read-only; |
| 187 | }; |
| 188 | |
| 189 | partition@800000 { |
| 190 | label = "uImage"; |
| 191 | reg = <0x00800000 0x00400000>; |
| 192 | read-only; |
| 193 | }; |
| 194 | |
| 195 | partition@c00000 { |
| 196 | label = "Root"; |
| 197 | reg = <0x00c00000 0x3f400000>; |
| 198 | }; |
| 199 | }; |
Maxime Ripard | 2a2dbd8 | 2015-03-03 11:16:45 +0100 | [diff] [blame] | 200 | }; |
Maxime Ripard | 7776ab7 | 2015-01-19 14:01:14 +0100 | [diff] [blame] | 201 | |
| 202 | usb3@f0000 { |
| 203 | status = "okay"; |
| 204 | usb-phy = <&usb3_phy>; |
| 205 | }; |
Maxime Ripard | e5ee128 | 2015-01-08 18:38:09 +0100 | [diff] [blame] | 206 | }; |
| 207 | |
Marcin Wojtas | c49e99c | 2016-03-14 09:38:58 +0100 | [diff] [blame] | 208 | bm-bppi { |
| 209 | status = "okay"; |
| 210 | }; |
| 211 | |
Rob Herring | 28fbb9c | 2017-07-26 16:09:37 -0500 | [diff] [blame] | 212 | pcie { |
Maxime Ripard | e5ee128 | 2015-01-08 18:38:09 +0100 | [diff] [blame] | 213 | status = "okay"; |
| 214 | |
| 215 | /* |
| 216 | * The three PCIe units are accessible through |
| 217 | * standard mini-PCIe slots on the board. |
| 218 | */ |
| 219 | pcie@1,0 { |
| 220 | /* Port 0, Lane 0 */ |
| 221 | status = "okay"; |
| 222 | }; |
| 223 | |
| 224 | pcie@2,0 { |
| 225 | /* Port 1, Lane 0 */ |
| 226 | status = "okay"; |
| 227 | }; |
| 228 | |
| 229 | pcie@3,0 { |
| 230 | /* Port 2, Lane 0 */ |
| 231 | status = "okay"; |
| 232 | }; |
| 233 | }; |
| 234 | }; |
Maxime Ripard | 7776ab7 | 2015-01-19 14:01:14 +0100 | [diff] [blame] | 235 | |
| 236 | usb3_phy: usb3_phy { |
| 237 | compatible = "usb-nop-xceiv"; |
| 238 | vcc-supply = <®_xhci0_vbus>; |
| 239 | }; |
| 240 | |
| 241 | reg_xhci0_vbus: xhci0-vbus { |
| 242 | compatible = "regulator-fixed"; |
| 243 | pinctrl-names = "default"; |
| 244 | pinctrl-0 = <&xhci0_vbus_pins>; |
| 245 | regulator-name = "xhci0-vbus"; |
| 246 | regulator-min-microvolt = <5000000>; |
| 247 | regulator-max-microvolt = <5000000>; |
| 248 | enable-active-high; |
| 249 | gpio = <&gpio1 12 GPIO_ACTIVE_HIGH>; |
| 250 | }; |
Maxime Ripard | e5ee128 | 2015-01-08 18:38:09 +0100 | [diff] [blame] | 251 | }; |
Stefan Roese | 0160a4b | 2016-07-13 11:55:18 +0200 | [diff] [blame] | 252 | |
| 253 | &spi1 { |
| 254 | pinctrl-names = "default"; |
| 255 | pinctrl-0 = <&spi1_pins>; |
| 256 | status = "okay"; |
| 257 | |
| 258 | spi-flash@0 { |
| 259 | #address-cells = <1>; |
| 260 | #size-cells = <1>; |
| 261 | compatible = "st,m25p128", "jedec,spi-nor"; |
| 262 | reg = <0>; /* Chip select 0 */ |
| 263 | spi-max-frequency = <54000000>; |
| 264 | }; |
| 265 | }; |