Sean MacLennan | 99192af | 2008-01-13 07:32:38 +1100 | [diff] [blame] | 1 | /* |
| 2 | * Device Tree Source for PIKA Warp |
| 3 | * |
| 4 | * Copyright (c) 2008 PIKA Technologies |
| 5 | * Sean MacLennan <smaclennan@pikatech.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 |
| 9 | * any warranty of any kind, whether express or implied. |
| 10 | */ |
| 11 | |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame^] | 12 | /dts-v1/; |
| 13 | |
Sean MacLennan | 99192af | 2008-01-13 07:32:38 +1100 | [diff] [blame] | 14 | / { |
| 15 | #address-cells = <2>; |
| 16 | #size-cells = <1>; |
| 17 | model = "pika,warp"; |
| 18 | compatible = "pika,warp"; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame^] | 19 | dcr-parent = <&{/cpus/cpu@0}>; |
Sean MacLennan | 99192af | 2008-01-13 07:32:38 +1100 | [diff] [blame] | 20 | |
| 21 | aliases { |
| 22 | ethernet0 = &EMAC0; |
| 23 | serial0 = &UART0; |
| 24 | }; |
| 25 | |
| 26 | cpus { |
| 27 | #address-cells = <1>; |
| 28 | #size-cells = <0>; |
| 29 | |
| 30 | cpu@0 { |
| 31 | device_type = "cpu"; |
| 32 | model = "PowerPC,440EP"; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame^] | 33 | reg = <0x00000000>; |
Sean MacLennan | 99192af | 2008-01-13 07:32:38 +1100 | [diff] [blame] | 34 | clock-frequency = <0>; /* Filled in by zImage */ |
| 35 | timebase-frequency = <0>; /* Filled in by zImage */ |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame^] | 36 | i-cache-line-size = <32>; |
| 37 | d-cache-line-size = <32>; |
| 38 | i-cache-size = <32768>; |
| 39 | d-cache-size = <32768>; |
Sean MacLennan | 99192af | 2008-01-13 07:32:38 +1100 | [diff] [blame] | 40 | dcr-controller; |
| 41 | dcr-access-method = "native"; |
| 42 | }; |
| 43 | }; |
| 44 | |
| 45 | memory { |
| 46 | device_type = "memory"; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame^] | 47 | reg = <0x00000000 0x00000000 0x00000000>; /* Filled in by zImage */ |
Sean MacLennan | 99192af | 2008-01-13 07:32:38 +1100 | [diff] [blame] | 48 | }; |
| 49 | |
| 50 | UIC0: interrupt-controller0 { |
| 51 | compatible = "ibm,uic-440ep","ibm,uic"; |
| 52 | interrupt-controller; |
| 53 | cell-index = <0>; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame^] | 54 | dcr-reg = <0x0c0 0x009>; |
Sean MacLennan | 99192af | 2008-01-13 07:32:38 +1100 | [diff] [blame] | 55 | #address-cells = <0>; |
| 56 | #size-cells = <0>; |
| 57 | #interrupt-cells = <2>; |
| 58 | }; |
| 59 | |
| 60 | UIC1: interrupt-controller1 { |
| 61 | compatible = "ibm,uic-440ep","ibm,uic"; |
| 62 | interrupt-controller; |
| 63 | cell-index = <1>; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame^] | 64 | dcr-reg = <0x0d0 0x009>; |
Sean MacLennan | 99192af | 2008-01-13 07:32:38 +1100 | [diff] [blame] | 65 | #address-cells = <0>; |
| 66 | #size-cells = <0>; |
| 67 | #interrupt-cells = <2>; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame^] | 68 | interrupts = <0x1e 0x4 0x1f 0x4>; /* cascade */ |
Sean MacLennan | 99192af | 2008-01-13 07:32:38 +1100 | [diff] [blame] | 69 | interrupt-parent = <&UIC0>; |
| 70 | }; |
| 71 | |
| 72 | SDR0: sdr { |
| 73 | compatible = "ibm,sdr-440ep"; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame^] | 74 | dcr-reg = <0x00e 0x002>; |
Sean MacLennan | 99192af | 2008-01-13 07:32:38 +1100 | [diff] [blame] | 75 | }; |
| 76 | |
| 77 | CPR0: cpr { |
| 78 | compatible = "ibm,cpr-440ep"; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame^] | 79 | dcr-reg = <0x00c 0x002>; |
Sean MacLennan | 99192af | 2008-01-13 07:32:38 +1100 | [diff] [blame] | 80 | }; |
| 81 | |
| 82 | plb { |
| 83 | compatible = "ibm,plb-440ep", "ibm,plb-440gp", "ibm,plb4"; |
| 84 | #address-cells = <2>; |
| 85 | #size-cells = <1>; |
| 86 | ranges; |
| 87 | clock-frequency = <0>; /* Filled in by zImage */ |
| 88 | |
| 89 | SDRAM0: sdram { |
| 90 | compatible = "ibm,sdram-440ep", "ibm,sdram-405gp"; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame^] | 91 | dcr-reg = <0x010 0x002>; |
Sean MacLennan | 99192af | 2008-01-13 07:32:38 +1100 | [diff] [blame] | 92 | }; |
| 93 | |
| 94 | DMA0: dma { |
| 95 | compatible = "ibm,dma-440ep", "ibm,dma-440gp"; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame^] | 96 | dcr-reg = <0x100 0x027>; |
Sean MacLennan | 99192af | 2008-01-13 07:32:38 +1100 | [diff] [blame] | 97 | }; |
| 98 | |
| 99 | MAL0: mcmal { |
| 100 | compatible = "ibm,mcmal-440ep", "ibm,mcmal-440gp", "ibm,mcmal"; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame^] | 101 | dcr-reg = <0x180 0x062>; |
Sean MacLennan | 99192af | 2008-01-13 07:32:38 +1100 | [diff] [blame] | 102 | num-tx-chans = <4>; |
| 103 | num-rx-chans = <2>; |
| 104 | interrupt-parent = <&MAL0>; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame^] | 105 | interrupts = <0x0 0x1 0x2 0x3 0x4>; |
Sean MacLennan | 99192af | 2008-01-13 07:32:38 +1100 | [diff] [blame] | 106 | #interrupt-cells = <1>; |
| 107 | #address-cells = <0>; |
| 108 | #size-cells = <0>; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame^] | 109 | interrupt-map = </*TXEOB*/ 0x0 &UIC0 0xa 0x4 |
| 110 | /*RXEOB*/ 0x1 &UIC0 0xb 0x4 |
| 111 | /*SERR*/ 0x2 &UIC1 0x0 0x4 |
| 112 | /*TXDE*/ 0x3 &UIC1 0x1 0x4 |
| 113 | /*RXDE*/ 0x4 &UIC1 0x2 0x4>; |
Sean MacLennan | 99192af | 2008-01-13 07:32:38 +1100 | [diff] [blame] | 114 | }; |
| 115 | |
| 116 | POB0: opb { |
| 117 | compatible = "ibm,opb-440ep", "ibm,opb-440gp", "ibm,opb"; |
| 118 | #address-cells = <1>; |
| 119 | #size-cells = <1>; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame^] | 120 | ranges = <0x00000000 0x00000000 0x00000000 0x80000000 |
| 121 | 0x80000000 0x00000000 0x80000000 0x80000000>; |
Sean MacLennan | 99192af | 2008-01-13 07:32:38 +1100 | [diff] [blame] | 122 | interrupt-parent = <&UIC1>; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame^] | 123 | interrupts = <0x7 0x4>; |
Sean MacLennan | 99192af | 2008-01-13 07:32:38 +1100 | [diff] [blame] | 124 | clock-frequency = <0>; /* Filled in by zImage */ |
| 125 | |
| 126 | EBC0: ebc { |
| 127 | compatible = "ibm,ebc-440ep", "ibm,ebc-440gp", "ibm,ebc"; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame^] | 128 | dcr-reg = <0x012 0x002>; |
Sean MacLennan | 99192af | 2008-01-13 07:32:38 +1100 | [diff] [blame] | 129 | #address-cells = <2>; |
| 130 | #size-cells = <1>; |
| 131 | clock-frequency = <0>; /* Filled in by zImage */ |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame^] | 132 | interrupts = <0x5 0x1>; |
Sean MacLennan | 99192af | 2008-01-13 07:32:38 +1100 | [diff] [blame] | 133 | interrupt-parent = <&UIC1>; |
| 134 | |
| 135 | fpga@2,0 { |
| 136 | compatible = "pika,fpga"; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame^] | 137 | reg = <0x00000002 0x00000000 0x00002200>; |
| 138 | interrupts = <0x18 0x8>; |
Sean MacLennan | 99192af | 2008-01-13 07:32:38 +1100 | [diff] [blame] | 139 | interrupt-parent = <&UIC0>; |
| 140 | }; |
| 141 | |
| 142 | nor_flash@0,0 { |
| 143 | compatible = "amd,s29gl512n", "cfi-flash"; |
| 144 | bank-width = <2>; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame^] | 145 | reg = <0x00000000 0x00000000 0x04000000>; |
Sean MacLennan | 99192af | 2008-01-13 07:32:38 +1100 | [diff] [blame] | 146 | #address-cells = <1>; |
| 147 | #size-cells = <1>; |
| 148 | partition@0 { |
| 149 | label = "kernel"; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame^] | 150 | reg = <0x00000000 0x00180000>; |
Sean MacLennan | 99192af | 2008-01-13 07:32:38 +1100 | [diff] [blame] | 151 | }; |
| 152 | partition@180000 { |
| 153 | label = "root"; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame^] | 154 | reg = <0x00180000 0x03480000>; |
Sean MacLennan | 99192af | 2008-01-13 07:32:38 +1100 | [diff] [blame] | 155 | }; |
| 156 | partition@3600000 { |
| 157 | label = "user"; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame^] | 158 | reg = <0x03600000 0x00900000>; |
Sean MacLennan | 99192af | 2008-01-13 07:32:38 +1100 | [diff] [blame] | 159 | }; |
| 160 | partition@3f00000 { |
| 161 | label = "fpga"; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame^] | 162 | reg = <0x03f00000 0x00040000>; |
Sean MacLennan | 99192af | 2008-01-13 07:32:38 +1100 | [diff] [blame] | 163 | }; |
| 164 | partition@3f40000 { |
| 165 | label = "env"; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame^] | 166 | reg = <0x03f40000 0x00040000>; |
Sean MacLennan | 99192af | 2008-01-13 07:32:38 +1100 | [diff] [blame] | 167 | }; |
| 168 | partition@3f80000 { |
| 169 | label = "u-boot"; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame^] | 170 | reg = <0x03f80000 0x00080000>; |
Sean MacLennan | 99192af | 2008-01-13 07:32:38 +1100 | [diff] [blame] | 171 | }; |
| 172 | }; |
| 173 | }; |
| 174 | |
| 175 | UART0: serial@ef600300 { |
| 176 | device_type = "serial"; |
| 177 | compatible = "ns16550"; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame^] | 178 | reg = <0xef600300 0x00000008>; |
| 179 | virtual-reg = <0xef600300>; |
Sean MacLennan | 99192af | 2008-01-13 07:32:38 +1100 | [diff] [blame] | 180 | clock-frequency = <0>; /* Filled in by zImage */ |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame^] | 181 | current-speed = <115200>; |
Sean MacLennan | 99192af | 2008-01-13 07:32:38 +1100 | [diff] [blame] | 182 | interrupt-parent = <&UIC0>; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame^] | 183 | interrupts = <0x0 0x4>; |
Sean MacLennan | 99192af | 2008-01-13 07:32:38 +1100 | [diff] [blame] | 184 | }; |
| 185 | |
| 186 | IIC0: i2c@ef600700 { |
| 187 | compatible = "ibm,iic-440ep", "ibm,iic-440gp", "ibm,iic"; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame^] | 188 | reg = <0xef600700 0x00000014>; |
Sean MacLennan | 99192af | 2008-01-13 07:32:38 +1100 | [diff] [blame] | 189 | interrupt-parent = <&UIC0>; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame^] | 190 | interrupts = <0x2 0x4>; |
Sean MacLennan | 99192af | 2008-01-13 07:32:38 +1100 | [diff] [blame] | 191 | }; |
| 192 | |
| 193 | GPIO0: gpio@ef600b00 { |
| 194 | compatible = "ibm,gpio-440ep"; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame^] | 195 | reg = <0xef600b00 0x00000048>; |
Sean MacLennan | 99192af | 2008-01-13 07:32:38 +1100 | [diff] [blame] | 196 | }; |
| 197 | |
| 198 | GPIO1: gpio@ef600c00 { |
| 199 | compatible = "ibm,gpio-440ep"; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame^] | 200 | reg = <0xef600c00 0x00000048>; |
Sean MacLennan | 99192af | 2008-01-13 07:32:38 +1100 | [diff] [blame] | 201 | }; |
| 202 | |
| 203 | ZMII0: emac-zmii@ef600d00 { |
| 204 | compatible = "ibm,zmii-440ep", "ibm,zmii-440gp", "ibm,zmii"; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame^] | 205 | reg = <0xef600d00 0x0000000c>; |
Sean MacLennan | 99192af | 2008-01-13 07:32:38 +1100 | [diff] [blame] | 206 | }; |
| 207 | |
| 208 | EMAC0: ethernet@ef600e00 { |
Sean MacLennan | 99192af | 2008-01-13 07:32:38 +1100 | [diff] [blame] | 209 | device_type = "network"; |
| 210 | compatible = "ibm,emac-440ep", "ibm,emac-440gp", "ibm,emac"; |
| 211 | interrupt-parent = <&UIC1>; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame^] | 212 | interrupts = <0x1c 0x4 0x1d 0x4>; |
| 213 | reg = <0xef600e00 0x00000070>; |
Sean MacLennan | 99192af | 2008-01-13 07:32:38 +1100 | [diff] [blame] | 214 | local-mac-address = [000000000000]; |
| 215 | mal-device = <&MAL0>; |
| 216 | mal-tx-channel = <0 1>; |
| 217 | mal-rx-channel = <0>; |
| 218 | cell-index = <0>; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame^] | 219 | max-frame-size = <1500>; |
| 220 | rx-fifo-size = <4096>; |
| 221 | tx-fifo-size = <2048>; |
Sean MacLennan | 99192af | 2008-01-13 07:32:38 +1100 | [diff] [blame] | 222 | phy-mode = "rmii"; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame^] | 223 | phy-map = <0x00000000>; |
Sean MacLennan | 99192af | 2008-01-13 07:32:38 +1100 | [diff] [blame] | 224 | zmii-device = <&ZMII0>; |
| 225 | zmii-channel = <0>; |
| 226 | }; |
| 227 | |
| 228 | usb@ef601000 { |
| 229 | compatible = "ohci-be"; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame^] | 230 | reg = <0xef601000 0x00000080>; |
| 231 | interrupts = <0x8 0x1 0x9 0x1>; |
Sean MacLennan | 99192af | 2008-01-13 07:32:38 +1100 | [diff] [blame] | 232 | interrupt-parent = < &UIC1 >; |
| 233 | }; |
| 234 | }; |
| 235 | }; |
| 236 | |
| 237 | chosen { |
| 238 | linux,stdout-path = "/plb/opb/serial@ef600300"; |
| 239 | }; |
| 240 | }; |