Thomas Petazzoni | 9ae6f74 | 2012-06-13 19:01:28 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Device Tree file for Marvell Armada XP evaluation board |
| 3 | * (DB-78460-BP) |
| 4 | * |
Thomas Petazzoni | 82066bd | 2014-03-04 17:37:00 +0100 | [diff] [blame] | 5 | * Copyright (C) 2012-2014 Marvell |
Thomas Petazzoni | 9ae6f74 | 2012-06-13 19:01:28 +0200 | [diff] [blame] | 6 | * |
| 7 | * Lior Amsalem <alior@marvell.com> |
| 8 | * Gregory CLEMENT <gregory.clement@free-electrons.com> |
| 9 | * Thomas Petazzoni <thomas.petazzoni@free-electrons.com> |
| 10 | * |
| 11 | * This file is licensed under the terms of the GNU General Public |
| 12 | * License version 2. This program is licensed "as is" without any |
| 13 | * warranty of any kind, whether express or implied. |
Thomas Petazzoni | 82066bd | 2014-03-04 17:37:00 +0100 | [diff] [blame] | 14 | * |
| 15 | * Note: this Device Tree assumes that the bootloader has remapped the |
| 16 | * internal registers to 0xf1000000 (instead of the default |
| 17 | * 0xd0000000). The 0xf1000000 is the default used by the recent, |
| 18 | * DT-capable, U-Boot bootloaders provided by Marvell. Some earlier |
| 19 | * boards were delivered with an older version of the bootloader that |
| 20 | * left internal registers mapped at 0xd0000000. If you are in this |
| 21 | * situation, you should either update your bootloader (preferred |
| 22 | * solution) or the below Device Tree should be adjusted. |
Thomas Petazzoni | 9ae6f74 | 2012-06-13 19:01:28 +0200 | [diff] [blame] | 23 | */ |
| 24 | |
| 25 | /dts-v1/; |
Ezequiel Garcia | 3814988 | 2013-07-26 10:17:56 -0300 | [diff] [blame] | 26 | #include "armada-xp-mv78460.dtsi" |
Thomas Petazzoni | 9ae6f74 | 2012-06-13 19:01:28 +0200 | [diff] [blame] | 27 | |
| 28 | / { |
| 29 | model = "Marvell Armada XP Evaluation Board"; |
Thomas Petazzoni | 0bec30a | 2012-09-13 17:41:50 +0200 | [diff] [blame] | 30 | compatible = "marvell,axp-db", "marvell,armadaxp-mv78460", "marvell,armadaxp", "marvell,armada-370-xp"; |
Thomas Petazzoni | 9ae6f74 | 2012-06-13 19:01:28 +0200 | [diff] [blame] | 31 | |
| 32 | chosen { |
| 33 | bootargs = "console=ttyS0,115200 earlyprintk"; |
| 34 | }; |
| 35 | |
| 36 | memory { |
| 37 | device_type = "memory"; |
Gregory CLEMENT | 7489836 | 2013-04-12 16:29:10 +0200 | [diff] [blame] | 38 | reg = <0 0x00000000 0 0x80000000>; /* 2 GB */ |
Thomas Petazzoni | 9ae6f74 | 2012-06-13 19:01:28 +0200 | [diff] [blame] | 39 | }; |
| 40 | |
| 41 | soc { |
Thomas Petazzoni | 82066bd | 2014-03-04 17:37:00 +0100 | [diff] [blame] | 42 | ranges = <MBUS_ID(0xf0, 0x01) 0 0 0xf1000000 0x100000 |
Ezequiel Garcia | de1af8d | 2013-07-26 10:17:59 -0300 | [diff] [blame] | 43 | MBUS_ID(0x01, 0x1d) 0 0 0xfff00000 0x100000 |
| 44 | MBUS_ID(0x01, 0x2f) 0 0 0xf0000000 0x1000000>; |
| 45 | |
| 46 | devbus-bootcs { |
| 47 | status = "okay"; |
| 48 | |
| 49 | /* Device Bus parameters are required */ |
| 50 | |
| 51 | /* Read parameters */ |
Thomas Petazzoni | f3aec8f | 2014-04-14 17:29:20 +0200 | [diff] [blame] | 52 | devbus,bus-width = <16>; |
Ezequiel Garcia | de1af8d | 2013-07-26 10:17:59 -0300 | [diff] [blame] | 53 | devbus,turn-off-ps = <60000>; |
| 54 | devbus,badr-skew-ps = <0>; |
| 55 | devbus,acc-first-ps = <124000>; |
| 56 | devbus,acc-next-ps = <248000>; |
| 57 | devbus,rd-setup-ps = <0>; |
| 58 | devbus,rd-hold-ps = <0>; |
| 59 | |
| 60 | /* Write parameters */ |
| 61 | devbus,sync-enable = <0>; |
| 62 | devbus,wr-high-ps = <60000>; |
| 63 | devbus,wr-low-ps = <60000>; |
| 64 | devbus,ale-wr-ps = <60000>; |
| 65 | |
| 66 | /* NOR 16 MiB */ |
| 67 | nor@0 { |
| 68 | compatible = "cfi-flash"; |
| 69 | reg = <0 0x1000000>; |
| 70 | bank-width = <2>; |
| 71 | }; |
| 72 | }; |
Ezequiel Garcia | b484ff4 | 2013-05-17 08:09:58 -0300 | [diff] [blame] | 73 | |
Ezequiel Garcia | 14fd8ed | 2013-07-26 10:18:00 -0300 | [diff] [blame] | 74 | pcie-controller { |
| 75 | status = "okay"; |
| 76 | |
| 77 | /* |
| 78 | * All 6 slots are physically present as |
| 79 | * standard PCIe slots on the board. |
| 80 | */ |
| 81 | pcie@1,0 { |
| 82 | /* Port 0, Lane 0 */ |
| 83 | status = "okay"; |
| 84 | }; |
| 85 | pcie@2,0 { |
| 86 | /* Port 0, Lane 1 */ |
| 87 | status = "okay"; |
| 88 | }; |
| 89 | pcie@3,0 { |
| 90 | /* Port 0, Lane 2 */ |
| 91 | status = "okay"; |
| 92 | }; |
| 93 | pcie@4,0 { |
| 94 | /* Port 0, Lane 3 */ |
| 95 | status = "okay"; |
| 96 | }; |
| 97 | pcie@9,0 { |
| 98 | /* Port 2, Lane 0 */ |
| 99 | status = "okay"; |
| 100 | }; |
| 101 | pcie@10,0 { |
| 102 | /* Port 3, Lane 0 */ |
| 103 | status = "okay"; |
| 104 | }; |
| 105 | }; |
| 106 | |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 107 | internal-regs { |
| 108 | serial@12000 { |
Thomas Petazzoni | bf4f9c6 | 2013-04-09 23:06:36 +0200 | [diff] [blame] | 109 | status = "okay"; |
| 110 | }; |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 111 | serial@12100 { |
Thomas Petazzoni | bf4f9c6 | 2013-04-09 23:06:36 +0200 | [diff] [blame] | 112 | status = "okay"; |
| 113 | }; |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 114 | serial@12200 { |
Thomas Petazzoni | bf4f9c6 | 2013-04-09 23:06:36 +0200 | [diff] [blame] | 115 | status = "okay"; |
| 116 | }; |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 117 | serial@12300 { |
Thomas Petazzoni | bf4f9c6 | 2013-04-09 23:06:36 +0200 | [diff] [blame] | 118 | status = "okay"; |
| 119 | }; |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 120 | |
| 121 | sata@a0000 { |
| 122 | nr-ports = <2>; |
Thomas Petazzoni | bf4f9c6 | 2013-04-09 23:06:36 +0200 | [diff] [blame] | 123 | status = "okay"; |
| 124 | }; |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 125 | |
| 126 | mdio { |
| 127 | phy0: ethernet-phy@0 { |
| 128 | reg = <0>; |
| 129 | }; |
| 130 | |
| 131 | phy1: ethernet-phy@1 { |
| 132 | reg = <1>; |
| 133 | }; |
| 134 | |
| 135 | phy2: ethernet-phy@2 { |
| 136 | reg = <25>; |
| 137 | }; |
| 138 | |
| 139 | phy3: ethernet-phy@3 { |
| 140 | reg = <27>; |
| 141 | }; |
| 142 | }; |
| 143 | |
| 144 | ethernet@70000 { |
Thomas Petazzoni | bf4f9c6 | 2013-04-09 23:06:36 +0200 | [diff] [blame] | 145 | status = "okay"; |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 146 | phy = <&phy0>; |
| 147 | phy-mode = "rgmii-id"; |
| 148 | }; |
| 149 | ethernet@74000 { |
| 150 | status = "okay"; |
| 151 | phy = <&phy1>; |
| 152 | phy-mode = "rgmii-id"; |
| 153 | }; |
| 154 | ethernet@30000 { |
| 155 | status = "okay"; |
| 156 | phy = <&phy2>; |
| 157 | phy-mode = "sgmii"; |
| 158 | }; |
| 159 | ethernet@34000 { |
| 160 | status = "okay"; |
| 161 | phy = <&phy3>; |
| 162 | phy-mode = "sgmii"; |
| 163 | }; |
| 164 | |
| 165 | mvsdio@d4000 { |
| 166 | pinctrl-0 = <&sdio_pins>; |
| 167 | pinctrl-names = "default"; |
| 168 | status = "okay"; |
| 169 | /* No CD or WP GPIOs */ |
Simon Baatz | d87b5fb | 2013-05-13 23:18:58 +0200 | [diff] [blame] | 170 | broken-cd; |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 171 | }; |
| 172 | |
| 173 | usb@50000 { |
| 174 | status = "okay"; |
| 175 | }; |
| 176 | |
| 177 | usb@51000 { |
| 178 | status = "okay"; |
| 179 | }; |
| 180 | |
| 181 | usb@52000 { |
| 182 | status = "okay"; |
| 183 | }; |
| 184 | |
| 185 | spi0: spi@10600 { |
| 186 | status = "okay"; |
| 187 | |
| 188 | spi-flash@0 { |
| 189 | #address-cells = <1>; |
| 190 | #size-cells = <1>; |
| 191 | compatible = "m25p64"; |
| 192 | reg = <0>; /* Chip select 0 */ |
| 193 | spi-max-frequency = <20000000>; |
| 194 | }; |
| 195 | }; |
Thomas Petazzoni | bf4f9c6 | 2013-04-09 23:06:36 +0200 | [diff] [blame] | 196 | }; |
Thomas Petazzoni | 9ae6f74 | 2012-06-13 19:01:28 +0200 | [diff] [blame] | 197 | }; |
| 198 | }; |