Josh Boyer | 8852ab7 | 2007-09-07 07:50:50 -0500 | [diff] [blame] | 1 | /* |
| 2 | * Device Tree Source for IBM Walnut |
| 3 | * |
| 4 | * Copyright 2007 IBM Corp. |
| 5 | * Josh Boyer <jwboyer@linux.vnet.ibm.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 | |
Josh Boyer | 8852ab7 | 2007-09-07 07:50:50 -0500 | [diff] [blame] | 14 | / { |
| 15 | #address-cells = <1>; |
| 16 | #size-cells = <1>; |
| 17 | model = "ibm,walnut"; |
| 18 | compatible = "ibm,walnut"; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame] | 19 | dcr-parent = <&{/cpus/cpu@0}>; |
Josh Boyer | 8852ab7 | 2007-09-07 07:50:50 -0500 | [diff] [blame] | 20 | |
Stefan Roese | 8aaed98 | 2007-12-15 18:55:16 +1100 | [diff] [blame] | 21 | aliases { |
| 22 | ethernet0 = &EMAC; |
| 23 | serial0 = &UART0; |
| 24 | serial1 = &UART1; |
| 25 | }; |
| 26 | |
Josh Boyer | 8852ab7 | 2007-09-07 07:50:50 -0500 | [diff] [blame] | 27 | cpus { |
| 28 | #address-cells = <1>; |
| 29 | #size-cells = <0>; |
| 30 | |
Josh Boyer | 72fda11 | 2007-12-06 13:20:05 -0600 | [diff] [blame] | 31 | cpu@0 { |
Josh Boyer | 8852ab7 | 2007-09-07 07:50:50 -0500 | [diff] [blame] | 32 | device_type = "cpu"; |
Josh Boyer | 72fda11 | 2007-12-06 13:20:05 -0600 | [diff] [blame] | 33 | model = "PowerPC,405GP"; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame] | 34 | reg = <0x00000000>; |
| 35 | clock-frequency = <200000000>; /* Filled in by zImage */ |
Josh Boyer | 8852ab7 | 2007-09-07 07:50:50 -0500 | [diff] [blame] | 36 | timebase-frequency = <0>; /* Filled in by zImage */ |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame] | 37 | i-cache-line-size = <32>; |
| 38 | d-cache-line-size = <32>; |
| 39 | i-cache-size = <16384>; |
| 40 | d-cache-size = <16384>; |
Josh Boyer | 8852ab7 | 2007-09-07 07:50:50 -0500 | [diff] [blame] | 41 | dcr-controller; |
| 42 | dcr-access-method = "native"; |
| 43 | }; |
| 44 | }; |
| 45 | |
| 46 | memory { |
| 47 | device_type = "memory"; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame] | 48 | reg = <0x00000000 0x00000000>; /* Filled in by zImage */ |
Josh Boyer | 8852ab7 | 2007-09-07 07:50:50 -0500 | [diff] [blame] | 49 | }; |
| 50 | |
| 51 | UIC0: interrupt-controller { |
| 52 | compatible = "ibm,uic"; |
| 53 | interrupt-controller; |
| 54 | cell-index = <0>; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame] | 55 | dcr-reg = <0x0c0 0x009>; |
Josh Boyer | 8852ab7 | 2007-09-07 07:50:50 -0500 | [diff] [blame] | 56 | #address-cells = <0>; |
| 57 | #size-cells = <0>; |
| 58 | #interrupt-cells = <2>; |
| 59 | }; |
| 60 | |
| 61 | plb { |
| 62 | compatible = "ibm,plb3"; |
| 63 | #address-cells = <1>; |
| 64 | #size-cells = <1>; |
| 65 | ranges; |
| 66 | clock-frequency = <0>; /* Filled in by zImage */ |
| 67 | |
| 68 | SDRAM0: memory-controller { |
| 69 | compatible = "ibm,sdram-405gp"; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame] | 70 | dcr-reg = <0x010 0x002>; |
Josh Boyer | 8852ab7 | 2007-09-07 07:50:50 -0500 | [diff] [blame] | 71 | }; |
| 72 | |
| 73 | MAL: mcmal { |
| 74 | compatible = "ibm,mcmal-405gp", "ibm,mcmal"; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame] | 75 | dcr-reg = <0x180 0x062>; |
Josh Boyer | b3af7a5 | 2007-10-20 00:53:11 +1000 | [diff] [blame] | 76 | num-tx-chans = <1>; |
Josh Boyer | 8852ab7 | 2007-09-07 07:50:50 -0500 | [diff] [blame] | 77 | num-rx-chans = <1>; |
| 78 | interrupt-parent = <&UIC0>; |
Josh Boyer | b3af7a5 | 2007-10-20 00:53:11 +1000 | [diff] [blame] | 79 | interrupts = < |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame] | 80 | 0xb 0x4 /* TXEOB */ |
| 81 | 0xc 0x4 /* RXEOB */ |
| 82 | 0xa 0x4 /* SERR */ |
| 83 | 0xd 0x4 /* TXDE */ |
| 84 | 0xe 0x4 /* RXDE */>; |
Josh Boyer | 8852ab7 | 2007-09-07 07:50:50 -0500 | [diff] [blame] | 85 | }; |
| 86 | |
| 87 | POB0: opb { |
| 88 | compatible = "ibm,opb-405gp", "ibm,opb"; |
| 89 | #address-cells = <1>; |
| 90 | #size-cells = <1>; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame] | 91 | ranges = <0xef600000 0xef600000 0x00a00000>; |
| 92 | dcr-reg = <0x0a0 0x005>; |
Josh Boyer | 8852ab7 | 2007-09-07 07:50:50 -0500 | [diff] [blame] | 93 | clock-frequency = <0>; /* Filled in by zImage */ |
| 94 | |
| 95 | UART0: serial@ef600300 { |
| 96 | device_type = "serial"; |
| 97 | compatible = "ns16550"; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame] | 98 | reg = <0xef600300 0x00000008>; |
| 99 | virtual-reg = <0xef600300>; |
Josh Boyer | 8852ab7 | 2007-09-07 07:50:50 -0500 | [diff] [blame] | 100 | clock-frequency = <0>; /* Filled in by zImage */ |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame] | 101 | current-speed = <9600>; |
Josh Boyer | 8852ab7 | 2007-09-07 07:50:50 -0500 | [diff] [blame] | 102 | interrupt-parent = <&UIC0>; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame] | 103 | interrupts = <0x0 0x4>; |
Josh Boyer | 8852ab7 | 2007-09-07 07:50:50 -0500 | [diff] [blame] | 104 | }; |
| 105 | |
| 106 | UART1: serial@ef600400 { |
| 107 | device_type = "serial"; |
| 108 | compatible = "ns16550"; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame] | 109 | reg = <0xef600400 0x00000008>; |
| 110 | virtual-reg = <0xef600400>; |
Josh Boyer | 8852ab7 | 2007-09-07 07:50:50 -0500 | [diff] [blame] | 111 | clock-frequency = <0>; /* Filled in by zImage */ |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame] | 112 | current-speed = <9600>; |
Josh Boyer | 8852ab7 | 2007-09-07 07:50:50 -0500 | [diff] [blame] | 113 | interrupt-parent = <&UIC0>; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame] | 114 | interrupts = <0x1 0x4>; |
Josh Boyer | 8852ab7 | 2007-09-07 07:50:50 -0500 | [diff] [blame] | 115 | }; |
| 116 | |
| 117 | IIC: i2c@ef600500 { |
| 118 | compatible = "ibm,iic-405gp", "ibm,iic"; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame] | 119 | reg = <0xef600500 0x00000011>; |
Josh Boyer | 8852ab7 | 2007-09-07 07:50:50 -0500 | [diff] [blame] | 120 | interrupt-parent = <&UIC0>; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame] | 121 | interrupts = <0x2 0x4>; |
Josh Boyer | 8852ab7 | 2007-09-07 07:50:50 -0500 | [diff] [blame] | 122 | }; |
| 123 | |
| 124 | GPIO: gpio@ef600700 { |
| 125 | compatible = "ibm,gpio-405gp"; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame] | 126 | reg = <0xef600700 0x00000020>; |
Josh Boyer | 8852ab7 | 2007-09-07 07:50:50 -0500 | [diff] [blame] | 127 | }; |
| 128 | |
| 129 | EMAC: ethernet@ef600800 { |
Josh Boyer | 8852ab7 | 2007-09-07 07:50:50 -0500 | [diff] [blame] | 130 | device_type = "network"; |
| 131 | compatible = "ibm,emac-405gp", "ibm,emac"; |
| 132 | interrupt-parent = <&UIC0>; |
Steven A. Falco | 2927315 | 2007-11-01 04:52:53 +1100 | [diff] [blame] | 133 | interrupts = < |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame] | 134 | 0xf 0x4 /* Ethernet */ |
| 135 | 0x9 0x4 /* Ethernet Wake Up */>; |
Josh Boyer | b3af7a5 | 2007-10-20 00:53:11 +1000 | [diff] [blame] | 136 | local-mac-address = [000000000000]; /* Filled in by zImage */ |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame] | 137 | reg = <0xef600800 0x00000070>; |
Josh Boyer | 8852ab7 | 2007-09-07 07:50:50 -0500 | [diff] [blame] | 138 | mal-device = <&MAL>; |
Josh Boyer | b3af7a5 | 2007-10-20 00:53:11 +1000 | [diff] [blame] | 139 | mal-tx-channel = <0>; |
Josh Boyer | 8852ab7 | 2007-09-07 07:50:50 -0500 | [diff] [blame] | 140 | mal-rx-channel = <0>; |
| 141 | cell-index = <0>; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame] | 142 | max-frame-size = <1500>; |
| 143 | rx-fifo-size = <4096>; |
| 144 | tx-fifo-size = <2048>; |
Josh Boyer | 8852ab7 | 2007-09-07 07:50:50 -0500 | [diff] [blame] | 145 | phy-mode = "rmii"; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame] | 146 | phy-map = <0x00000001>; |
Josh Boyer | 8852ab7 | 2007-09-07 07:50:50 -0500 | [diff] [blame] | 147 | }; |
| 148 | |
| 149 | }; |
| 150 | |
| 151 | EBC0: ebc { |
| 152 | compatible = "ibm,ebc-405gp", "ibm,ebc"; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame] | 153 | dcr-reg = <0x012 0x002>; |
Josh Boyer | 8852ab7 | 2007-09-07 07:50:50 -0500 | [diff] [blame] | 154 | #address-cells = <2>; |
| 155 | #size-cells = <1>; |
Josh Boyer | bf07f32 | 2007-09-15 04:54:13 +1000 | [diff] [blame] | 156 | /* The ranges property is supplied by the bootwrapper |
| 157 | * and is based on the firmware's configuration of the |
| 158 | * EBC bridge |
| 159 | */ |
Josh Boyer | 8852ab7 | 2007-09-07 07:50:50 -0500 | [diff] [blame] | 160 | clock-frequency = <0>; /* Filled in by zImage */ |
| 161 | |
| 162 | sram@0,0 { |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame] | 163 | reg = <0x00000000 0x00000000 0x00080000>; |
Josh Boyer | 8852ab7 | 2007-09-07 07:50:50 -0500 | [diff] [blame] | 164 | }; |
| 165 | |
| 166 | flash@0,80000 { |
Josh Boyer | bf07f32 | 2007-09-15 04:54:13 +1000 | [diff] [blame] | 167 | compatible = "jedec-flash"; |
Josh Boyer | 8852ab7 | 2007-09-07 07:50:50 -0500 | [diff] [blame] | 168 | bank-width = <1>; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame] | 169 | reg = <0x00000000 0x00080000 0x00080000>; |
Josh Boyer | bf07f32 | 2007-09-15 04:54:13 +1000 | [diff] [blame] | 170 | #address-cells = <1>; |
| 171 | #size-cells = <1>; |
| 172 | partition@0 { |
| 173 | label = "OpenBIOS"; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame] | 174 | reg = <0x00000000 0x00080000>; |
Josh Boyer | bf07f32 | 2007-09-15 04:54:13 +1000 | [diff] [blame] | 175 | read-only; |
| 176 | }; |
Josh Boyer | 8852ab7 | 2007-09-07 07:50:50 -0500 | [diff] [blame] | 177 | }; |
| 178 | |
David Gibson | 22258fa | 2008-01-11 14:25:34 +1100 | [diff] [blame] | 179 | nvram@1,0 { |
Josh Boyer | 8852ab7 | 2007-09-07 07:50:50 -0500 | [diff] [blame] | 180 | /* NVRAM and RTC */ |
David Gibson | 22258fa | 2008-01-11 14:25:34 +1100 | [diff] [blame] | 181 | compatible = "ds1743-nvram"; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame] | 182 | #bytes = <0x2000>; |
| 183 | reg = <0x00000001 0x00000000 0x00002000>; |
Josh Boyer | 8852ab7 | 2007-09-07 07:50:50 -0500 | [diff] [blame] | 184 | }; |
| 185 | |
| 186 | keyboard@2,0 { |
| 187 | compatible = "intel,82C42PC"; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame] | 188 | reg = <0x00000002 0x00000000 0x00000002>; |
Josh Boyer | 8852ab7 | 2007-09-07 07:50:50 -0500 | [diff] [blame] | 189 | }; |
| 190 | |
| 191 | ir@3,0 { |
| 192 | compatible = "ti,TIR2000PAG"; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame] | 193 | reg = <0x00000003 0x00000000 0x00000010>; |
Josh Boyer | 8852ab7 | 2007-09-07 07:50:50 -0500 | [diff] [blame] | 194 | }; |
| 195 | |
| 196 | fpga@7,0 { |
| 197 | compatible = "Walnut-FPGA"; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame] | 198 | reg = <0x00000007 0x00000000 0x00000010>; |
| 199 | virtual-reg = <0xf0300005>; |
Josh Boyer | 8852ab7 | 2007-09-07 07:50:50 -0500 | [diff] [blame] | 200 | }; |
| 201 | }; |
Benjamin Herrenschmidt | 379865d | 2007-12-21 15:39:28 +1100 | [diff] [blame] | 202 | |
| 203 | PCI0: pci@ec000000 { |
| 204 | device_type = "pci"; |
| 205 | #interrupt-cells = <1>; |
| 206 | #size-cells = <2>; |
| 207 | #address-cells = <3>; |
| 208 | compatible = "ibm,plb405gp-pci", "ibm,plb-pci"; |
| 209 | primary; |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame] | 210 | reg = <0xeec00000 0x00000008 /* Config space access */ |
| 211 | 0xeed80000 0x00000004 /* IACK */ |
| 212 | 0xeed80000 0x00000004 /* Special cycle */ |
| 213 | 0xef480000 0x00000040>; /* Internal registers */ |
Benjamin Herrenschmidt | 379865d | 2007-12-21 15:39:28 +1100 | [diff] [blame] | 214 | |
| 215 | /* Outbound ranges, one memory and one IO, |
| 216 | * later cannot be changed. Chip supports a second |
| 217 | * IO range but we don't use it for now |
| 218 | */ |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame] | 219 | ranges = <0x02000000 0x00000000 0x80000000 0x80000000 0x00000000 0x20000000 |
| 220 | 0x01000000 0x00000000 0x00000000 0xe8000000 0x00000000 0x00010000>; |
Benjamin Herrenschmidt | 379865d | 2007-12-21 15:39:28 +1100 | [diff] [blame] | 221 | |
| 222 | /* Inbound 2GB range starting at 0 */ |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame] | 223 | dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x80000000>; |
Benjamin Herrenschmidt | 379865d | 2007-12-21 15:39:28 +1100 | [diff] [blame] | 224 | |
| 225 | /* Walnut has all 4 IRQ pins tied together per slot */ |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame] | 226 | interrupt-map-mask = <0xf800 0x0 0x0 0x0>; |
Benjamin Herrenschmidt | 379865d | 2007-12-21 15:39:28 +1100 | [diff] [blame] | 227 | interrupt-map = < |
| 228 | /* IDSEL 1 */ |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame] | 229 | 0x800 0x0 0x0 0x0 &UIC0 0x1c 0x8 |
Benjamin Herrenschmidt | 379865d | 2007-12-21 15:39:28 +1100 | [diff] [blame] | 230 | |
| 231 | /* IDSEL 2 */ |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame] | 232 | 0x1000 0x0 0x0 0x0 &UIC0 0x1d 0x8 |
Benjamin Herrenschmidt | 379865d | 2007-12-21 15:39:28 +1100 | [diff] [blame] | 233 | |
| 234 | /* IDSEL 3 */ |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame] | 235 | 0x1800 0x0 0x0 0x0 &UIC0 0x1e 0x8 |
Benjamin Herrenschmidt | 379865d | 2007-12-21 15:39:28 +1100 | [diff] [blame] | 236 | |
| 237 | /* IDSEL 4 */ |
David Gibson | 71f3497 | 2008-05-15 16:46:39 +1000 | [diff] [blame] | 238 | 0x2000 0x0 0x0 0x0 &UIC0 0x1f 0x8 |
Benjamin Herrenschmidt | 379865d | 2007-12-21 15:39:28 +1100 | [diff] [blame] | 239 | >; |
| 240 | }; |
Josh Boyer | 8852ab7 | 2007-09-07 07:50:50 -0500 | [diff] [blame] | 241 | }; |
| 242 | |
| 243 | chosen { |
| 244 | linux,stdout-path = "/plb/opb/serial@ef600300"; |
| 245 | }; |
| 246 | }; |