db78100.dts revision 218246
1208561Sraj/* 2208561Sraj * Copyright (c) 2010 The FreeBSD Foundation 3208561Sraj * All rights reserved. 4208561Sraj * 5208561Sraj * This software was developed by Semihalf under sponsorship from 6208561Sraj * the FreeBSD Foundation. 7208561Sraj * 8208561Sraj * Redistribution and use in source and binary forms, with or without 9208561Sraj * modification, are permitted provided that the following conditions 10208561Sraj * are met: 11208561Sraj * 1. Redistributions of source code must retain the above copyright 12208561Sraj * notice, this list of conditions and the following disclaimer. 13208561Sraj * 2. Redistributions in binary form must reproduce the above copyright 14208561Sraj * notice, this list of conditions and the following disclaimer in the 15208561Sraj * documentation and/or other materials provided with the distribution. 16208561Sraj * 17208561Sraj * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 18208561Sraj * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19208561Sraj * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20208561Sraj * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 21208561Sraj * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22208561Sraj * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23208561Sraj * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24208561Sraj * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25208561Sraj * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26208561Sraj * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27208561Sraj * SUCH DAMAGE. 28208561Sraj * 29208561Sraj * Marvell DB-78100 Device Tree Source. 30208561Sraj * 31208561Sraj * $FreeBSD: head/sys/boot/fdt/dts/db78100.dts 218246 2011-02-04 01:09:02Z marcel $ 32208561Sraj */ 33208561Sraj 34208561Sraj/dts-v1/; 35208561Sraj 36208561Sraj/ { 37208561Sraj model = "mrvl,DB-78100"; 38208561Sraj compatible = "DB-78100-BP", "DB-78100-BP-A"; 39208561Sraj #address-cells = <1>; 40208561Sraj #size-cells = <1>; 41208561Sraj 42208561Sraj aliases { 43208561Sraj ethernet0 = &enet0; 44208561Sraj serial0 = &serial0; 45208561Sraj serial1 = &serial1; 46208561Sraj mpp = &MPP; 47208561Sraj }; 48208561Sraj 49208561Sraj cpus { 50208561Sraj #address-cells = <1>; 51208561Sraj #size-cells = <0>; 52208561Sraj 53208561Sraj cpu@0 { 54208561Sraj device_type = "cpu"; 55208561Sraj compatible = "ARM,88FR571"; 56208561Sraj reg = <0x0>; 57208561Sraj d-cache-line-size = <32>; // 32 bytes 58208561Sraj i-cache-line-size = <32>; // 32 bytes 59208561Sraj d-cache-size = <0x4000>; // L1, 16K 60208561Sraj i-cache-size = <0x4000>; // L1, 16K 61208561Sraj timebase-frequency = <0>; 62208561Sraj bus-frequency = <0>; 63208561Sraj clock-frequency = <0>; 64208561Sraj }; 65208561Sraj }; 66208561Sraj 67208561Sraj memory { 68208561Sraj device_type = "memory"; 69208561Sraj reg = <0x0 0x20000000>; // 512M at 0x0 70208561Sraj }; 71208561Sraj 72208561Sraj localbus@f1000000 { 73208561Sraj #address-cells = <2>; 74208561Sraj #size-cells = <1>; 75208561Sraj compatible = "mrvl,lbc"; 76208561Sraj win-count = <14>; 77208561Sraj 78208561Sraj /* This reflects CPU decode windows setup. */ 79208561Sraj ranges = <0x0 0x0f 0xf9300000 0x00100000 80208561Sraj 0x1 0x1e 0xfa000000 0x00100000 81208561Sraj 0x2 0x1d 0xfa100000 0x02000000 82208561Sraj 0x3 0x1b 0xfc100000 0x00000400>; 83208561Sraj 84208561Sraj nor@0,0 { 85208561Sraj #address-cells = <1>; 86208561Sraj #size-cells = <1>; 87208561Sraj compatible = "cfi-flash"; 88208561Sraj reg = <0x0 0x0 0x00100000>; 89208561Sraj bank-width = <2>; 90208561Sraj device-width = <1>; 91208561Sraj }; 92208561Sraj 93208561Sraj led@1,0 { 94208561Sraj #address-cells = <1>; 95208561Sraj #size-cells = <1>; 96208561Sraj compatible = "led"; 97208561Sraj reg = <0x1 0x0 0x00100000>; 98208561Sraj }; 99208561Sraj 100208561Sraj nor@2,0 { 101208561Sraj #address-cells = <1>; 102208561Sraj #size-cells = <1>; 103208561Sraj compatible = "cfi-flash"; 104208561Sraj reg = <0x2 0x0 0x02000000>; 105208561Sraj bank-width = <2>; 106208561Sraj device-width = <1>; 107208561Sraj }; 108208561Sraj 109208561Sraj nand@3,0 { 110208561Sraj #address-cells = <1>; 111208561Sraj #size-cells = <1>; 112208561Sraj reg = <0x3 0x0 0x00100000>; 113208561Sraj bank-width = <2>; 114208561Sraj device-width = <1>; 115208561Sraj }; 116208561Sraj }; 117208561Sraj 118208561Sraj soc78100@f1000000 { 119208561Sraj #address-cells = <1>; 120208561Sraj #size-cells = <1>; 121208561Sraj compatible = "simple-bus"; 122208561Sraj ranges = <0x0 0xf1000000 0x00100000>; 123208561Sraj bus-frequency = <0>; 124208561Sraj 125208561Sraj PIC: pic@20200 { 126208561Sraj interrupt-controller; 127208561Sraj #address-cells = <0>; 128208561Sraj #interrupt-cells = <1>; 129208561Sraj reg = <0x20200 0x3c>; 130208561Sraj compatible = "mrvl,pic"; 131208561Sraj }; 132208561Sraj 133208561Sraj timer@20300 { 134208561Sraj compatible = "mrvl,timer"; 135208561Sraj reg = <0x20300 0x30>; 136208561Sraj interrupts = <8>; 137208561Sraj interrupt-parent = <&PIC>; 138208561Sraj mrvl,has-wdt; 139208561Sraj }; 140208561Sraj 141208561Sraj MPP: mpp@10000 { 142208561Sraj #pin-cells = <2>; 143208561Sraj compatible = "mrvl,mpp"; 144208561Sraj reg = <0x10000 0x34>; 145208561Sraj pin-count = <50>; 146208561Sraj pin-map = < 147208561Sraj 0 2 /* MPP[0]: GE1_TXCLK */ 148208561Sraj 1 2 /* MPP[1]: GE1_TXCTL */ 149208561Sraj 2 2 /* MPP[2]: GE1_RXCTL */ 150208561Sraj 3 2 /* MPP[3]: GE1_RXCLK */ 151208561Sraj 4 2 /* MPP[4]: GE1_TXD[0] */ 152208561Sraj 5 2 /* MPP[5]: GE1_TXD[1] */ 153208561Sraj 6 2 /* MPP[6]: GE1_TXD[2] */ 154208561Sraj 7 2 /* MPP[7]: GE1_TXD[3] */ 155208561Sraj 8 2 /* MPP[8]: GE1_RXD[0] */ 156208561Sraj 9 2 /* MPP[9]: GE1_RXD[1] */ 157208561Sraj 10 2 /* MPP[10]: GE1_RXD[2] */ 158208561Sraj 11 2 /* MPP[11]: GE1_RXD[3] */ 159208561Sraj 13 3 /* MPP[13]: SYSRST_OUTn */ 160208561Sraj 14 3 /* MPP[14]: SATA1_ACTn */ 161208561Sraj 15 3 /* MPP[15]: SATA0_ACTn */ 162208561Sraj 16 4 /* MPP[16]: UA2_TXD */ 163208561Sraj 17 4 /* MPP[17]: UA2_RXD */ 164208561Sraj 18 3 /* MPP[18]: <UNKNOWN> */ 165208561Sraj 19 3 /* MPP[19]: <UNKNOWN> */ 166208561Sraj 20 3 /* MPP[20]: <UNKNOWN> */ 167208561Sraj 21 3 /* MPP[21]: <UNKNOWN> */ 168208561Sraj 22 4 /* MPP[22]: UA3_TXD */ 169208561Sraj 23 4 >; /* MPP[21]: UA3_RXD */ 170208561Sraj }; 171208561Sraj 172208561Sraj GPIO: gpio@10100 { 173208561Sraj #gpio-cells = <3>; 174208561Sraj compatible = "mrvl,gpio"; 175208561Sraj reg = <0x10100 0x20>; 176208561Sraj gpio-controller; 177208561Sraj interrupts = <56 57 58 59>; 178208561Sraj interrupt-parent = <&PIC>; 179208561Sraj }; 180208561Sraj 181208561Sraj rtc@10300 { 182208561Sraj compatible = "mrvl,rtc"; 183208561Sraj reg = <0x10300 0x08>; 184208561Sraj }; 185208561Sraj 186208561Sraj twsi@11000 { 187208561Sraj #address-cells = <1>; 188208561Sraj #size-cells = <0>; 189208561Sraj compatible = "mrvl,twsi"; 190208561Sraj reg = <0x11000 0x20>; 191208561Sraj interrupts = <2>; 192208561Sraj interrupt-parent = <&PIC>; 193208561Sraj }; 194208561Sraj 195208561Sraj twsi@11100 { 196208561Sraj #address-cells = <1>; 197208561Sraj #size-cells = <0>; 198208561Sraj compatible = "mrvl,twsi"; 199208561Sraj reg = <0x11100 0x20>; 200208561Sraj interrupts = <3>; 201208561Sraj interrupt-parent = <&PIC>; 202208561Sraj }; 203208561Sraj 204208561Sraj enet0: ethernet@72000 { 205208561Sraj #address-cells = <1>; 206208561Sraj #size-cells = <1>; 207208561Sraj model = "V2"; 208208561Sraj compatible = "mrvl,ge"; 209208561Sraj reg = <0x72000 0x2000>; 210208561Sraj ranges = <0x0 0x72000 0x2000>; 211208561Sraj local-mac-address = [ 00 00 00 00 00 00 ]; 212208561Sraj interrupts = <41 42 43 40 70>; 213208561Sraj interrupt-parent = <&PIC>; 214208561Sraj phy-handle = <&phy0>; 215208561Sraj 216208561Sraj mdio@0 { 217208561Sraj #address-cells = <1>; 218208561Sraj #size-cells = <0>; 219208561Sraj compatible = "mrvl,mdio"; 220208561Sraj 221208561Sraj phy0: ethernet-phy@0 { 222208561Sraj reg = <0x8>; 223208561Sraj }; 224208561Sraj }; 225208561Sraj }; 226208561Sraj 227208561Sraj enet1: ethernet@76000 { 228208561Sraj #address-cells = <1>; 229208561Sraj #size-cells = <1>; 230208561Sraj model = "V2"; 231208561Sraj compatible = "mrvl,ge"; 232208561Sraj reg = <0x76000 0x2000>; 233208561Sraj ranges = <0x0 0x76000 0x2000>; 234208561Sraj local-mac-address = [ 00 00 00 00 00 00 ]; 235208561Sraj interrupts = <45 46 47 44 70>; 236208561Sraj interrupt-parent = <&PIC>; 237208561Sraj phy-handle = <&phy0>; 238208561Sraj 239208561Sraj mdio@0 { 240208561Sraj #address-cells = <1>; 241208561Sraj #size-cells = <0>; 242208561Sraj compatible = "mrvl,mdio"; 243208561Sraj 244208561Sraj phy0: ethernet-phy@0 { 245208561Sraj reg = <0x9>; 246208561Sraj }; 247208561Sraj }; 248208561Sraj }; 249208561Sraj 250208561Sraj serial0: serial@12000 { 251208561Sraj compatible = "ns16550"; 252208561Sraj reg = <0x12000 0x20>; 253208561Sraj reg-shift = <2>; 254208561Sraj clock-frequency = <0>; 255208561Sraj interrupts = <12>; 256208561Sraj interrupt-parent = <&PIC>; 257208561Sraj }; 258208561Sraj 259208561Sraj serial1: serial@12100 { 260208561Sraj compatible = "ns16550"; 261208561Sraj reg = <0x12100 0x20>; 262208561Sraj reg-shift = <2>; 263208561Sraj clock-frequency = <0>; 264208561Sraj interrupts = <13>; 265208561Sraj interrupt-parent = <&PIC>; 266208561Sraj }; 267208561Sraj 268208561Sraj usb@50000 { 269208561Sraj compatible = "mrvl,usb-ehci", "usb-ehci"; 270208561Sraj reg = <0x50000 0x1000>; 271208561Sraj interrupts = <72 16>; 272208561Sraj interrupt-parent = <&PIC>; 273208561Sraj }; 274208561Sraj 275208561Sraj usb@51000 { 276208561Sraj compatible = "mrvl,usb-ehci", "usb-ehci"; 277208561Sraj reg = <0x51000 0x1000>; 278208561Sraj interrupts = <72 17>; 279208561Sraj interrupt-parent = <&PIC>; 280208561Sraj }; 281208561Sraj 282208561Sraj usb@52000 { 283208561Sraj compatible = "mrvl,usb-ehci", "usb-ehci"; 284208561Sraj reg = <0x52000 0x1000>; 285208561Sraj interrupts = <72 18>; 286208561Sraj interrupt-parent = <&PIC>; 287208561Sraj }; 288208561Sraj 289208561Sraj xor@60000 { 290208561Sraj compatible = "mrvl,xor"; 291208561Sraj reg = <0x60000 0x1000>; 292208561Sraj interrupts = <22 23>; 293208561Sraj interrupt-parent = <&PIC>; 294208561Sraj }; 295208561Sraj 296208561Sraj crypto@90000 { 297208561Sraj compatible = "mrvl,cesa"; 298208561Sraj reg = <0x90000 0x10000>; 299208561Sraj interrupts = <19>; 300208561Sraj interrupt-parent = <&PIC>; 301208561Sraj }; 302208561Sraj 303208561Sraj sata@a0000 { 304208561Sraj compatible = "mrvl,sata"; 305208561Sraj reg = <0xa0000 0x6000>; 306208561Sraj interrupts = <26>; 307208561Sraj interrupt-parent = <&PIC>; 308208561Sraj }; 309208561Sraj }; 310208561Sraj 311218246Smarcel pci0: pcie@f1040000 { 312218246Smarcel compatible = "mrvl,pcie"; 313218246Smarcel device_type = "pci"; 314218246Smarcel #interrupt-cells = <1>; 315218246Smarcel #size-cells = <2>; 316218246Smarcel #address-cells = <3>; 317218246Smarcel reg = <0xf1040000 0x2000>; 318218246Smarcel bus-range = <0 255>; 319218246Smarcel ranges = <0x02000000 0x0 0xf2000000 0xf2000000 0x0 0x04000000 320218246Smarcel 0x01000000 0x0 0x00000000 0xf1100000 0x0 0x00100000>; 321218246Smarcel clock-frequency = <33333333>; 322218246Smarcel interrupt-parent = <&PIC>; 323218246Smarcel interrupts = <68>; 324218246Smarcel interrupt-map-mask = <0xf800 0x0 0x0 0x7>; 325218246Smarcel interrupt-map = < 326218246Smarcel /* IDSEL 0x1 */ 327218246Smarcel 0x0800 0x0 0x0 0x1 &PIC 0x20 328218246Smarcel 0x0800 0x0 0x0 0x2 &PIC 0x21 329218246Smarcel 0x0800 0x0 0x0 0x3 &PIC 0x22 330218246Smarcel 0x0800 0x0 0x0 0x4 &PIC 0x23 331218246Smarcel >; 332218246Smarcel }; 333218246Smarcel 334208561Sraj sram@fd000000 { 335208561Sraj compatible = "mrvl,cesa-sram"; 336208561Sraj reg = <0xfd000000 0x00100000>; 337208561Sraj }; 338218246Smarcel 339218246Smarcel chosen { 340218246Smarcel stdin = "serial0"; 341218246Smarcel stdout = "serial0"; 342218246Smarcel }; 343208561Sraj}; 344