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"; |
| 49 | compatible = "marvell,a385-db-ap", "marvell,armada385", "marvell,armada38x"; |
| 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 |
| 62 | MBUS_ID(0x01, 0x1d) 0 0xfff00000 0x100000>; |
| 63 | |
| 64 | internal-regs { |
| 65 | spi1: spi@10680 { |
| 66 | pinctrl-names = "default"; |
| 67 | pinctrl-0 = <&spi1_pins>; |
| 68 | status = "okay"; |
| 69 | |
| 70 | spi-flash@0 { |
| 71 | #address-cells = <1>; |
| 72 | #size-cells = <1>; |
| 73 | compatible = "st,m25p128"; |
| 74 | reg = <0>; /* Chip select 0 */ |
| 75 | spi-max-frequency = <54000000>; |
| 76 | }; |
| 77 | }; |
| 78 | |
| 79 | i2c0: i2c@11000 { |
| 80 | pinctrl-names = "default"; |
| 81 | pinctrl-0 = <&i2c0_pins>; |
| 82 | status = "okay"; |
| 83 | |
| 84 | /* |
| 85 | * This bus is wired to two EEPROM |
| 86 | * sockets, one of which holding the |
| 87 | * board ID used by the bootloader. |
| 88 | * Erasing this EEPROM's content will |
| 89 | * brick the board. |
| 90 | * Use this bus with caution. |
| 91 | */ |
| 92 | }; |
| 93 | |
| 94 | mdio@72004 { |
| 95 | pinctrl-names = "default"; |
| 96 | pinctrl-0 = <&mdio_pins>; |
| 97 | |
| 98 | phy0: ethernet-phy@1 { |
| 99 | reg = <1>; |
| 100 | }; |
| 101 | |
| 102 | phy1: ethernet-phy@4 { |
| 103 | reg = <4>; |
| 104 | }; |
| 105 | |
| 106 | phy2: ethernet-phy@6 { |
| 107 | reg = <6>; |
| 108 | }; |
| 109 | }; |
| 110 | |
| 111 | /* UART0 is exposed through the JP8 connector */ |
| 112 | uart0: serial@12000 { |
| 113 | pinctrl-names = "default"; |
| 114 | pinctrl-0 = <&uart0_pins>; |
| 115 | status = "okay"; |
| 116 | }; |
| 117 | |
| 118 | /* |
| 119 | * UART1 is exposed through a FTDI chip |
| 120 | * wired to the mini-USB connector |
| 121 | */ |
| 122 | uart1: serial@12100 { |
| 123 | pinctrl-names = "default"; |
| 124 | pinctrl-0 = <&uart1_pins>; |
| 125 | status = "okay"; |
| 126 | }; |
| 127 | |
| 128 | ethernet@30000 { |
| 129 | status = "okay"; |
| 130 | phy = <&phy2>; |
| 131 | phy-mode = "sgmii"; |
| 132 | }; |
| 133 | |
| 134 | ethernet@34000 { |
| 135 | status = "okay"; |
| 136 | phy = <&phy1>; |
| 137 | phy-mode = "sgmii"; |
| 138 | }; |
| 139 | |
| 140 | ethernet@70000 { |
| 141 | pinctrl-names = "default"; |
| 142 | |
| 143 | /* |
| 144 | * The Reference Clock 0 is used to |
| 145 | * provide a clock to the PHY |
| 146 | */ |
| 147 | pinctrl-0 = <&ge0_rgmii_pins>, <&ref_clk0_pins>; |
| 148 | status = "okay"; |
| 149 | phy = <&phy0>; |
| 150 | phy-mode = "rgmii-id"; |
| 151 | }; |
Maxime Ripard | 2a2dbd8 | 2015-03-03 11:16:45 +0100 | [diff] [blame] | 152 | |
| 153 | nfc: flash@d0000 { |
| 154 | status = "okay"; |
| 155 | #address-cells = <1>; |
| 156 | #size-cells = <1>; |
| 157 | |
| 158 | num-cs = <1>; |
| 159 | nand-ecc-strength = <4>; |
| 160 | nand-ecc-step-size = <512>; |
| 161 | marvell,nand-keep-config; |
| 162 | marvell,nand-enable-arbiter; |
| 163 | nand-on-flash-bbt; |
| 164 | }; |
Maxime Ripard | e5ee128 | 2015-01-08 18:38:09 +0100 | [diff] [blame] | 165 | }; |
| 166 | |
| 167 | pcie-controller { |
| 168 | status = "okay"; |
| 169 | |
| 170 | /* |
| 171 | * The three PCIe units are accessible through |
| 172 | * standard mini-PCIe slots on the board. |
| 173 | */ |
| 174 | pcie@1,0 { |
| 175 | /* Port 0, Lane 0 */ |
| 176 | status = "okay"; |
| 177 | }; |
| 178 | |
| 179 | pcie@2,0 { |
| 180 | /* Port 1, Lane 0 */ |
| 181 | status = "okay"; |
| 182 | }; |
| 183 | |
| 184 | pcie@3,0 { |
| 185 | /* Port 2, Lane 0 */ |
| 186 | status = "okay"; |
| 187 | }; |
| 188 | }; |
| 189 | }; |
| 190 | }; |