Marian Balakowicz | 30d992e | 2007-11-10 04:12:20 +1100 | [diff] [blame] | 1 | /* |
| 2 | * TQM5200 board Device Tree Source |
| 3 | * |
| 4 | * Copyright (C) 2007 Semihalf |
| 5 | * Marian Balakowicz <m8@semihalf.com> |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify it |
| 8 | * under the terms of the GNU General Public License as published by the |
| 9 | * Free Software Foundation; either version 2 of the License, or (at your |
| 10 | * option) any later version. |
| 11 | */ |
| 12 | |
Marian Balakowicz | 30d992e | 2007-11-10 04:12:20 +1100 | [diff] [blame] | 13 | / { |
| 14 | model = "tqc,tqm5200"; |
| 15 | compatible = "tqc,tqm5200"; |
| 16 | #address-cells = <1>; |
| 17 | #size-cells = <1>; |
| 18 | |
| 19 | cpus { |
| 20 | #address-cells = <1>; |
| 21 | #size-cells = <0>; |
| 22 | |
| 23 | PowerPC,5200@0 { |
| 24 | device_type = "cpu"; |
| 25 | reg = <0>; |
| 26 | d-cache-line-size = <20>; |
| 27 | i-cache-line-size = <20>; |
| 28 | d-cache-size = <4000>; // L1, 16K |
| 29 | i-cache-size = <4000>; // L1, 16K |
| 30 | timebase-frequency = <0>; // from bootloader |
| 31 | bus-frequency = <0>; // from bootloader |
| 32 | clock-frequency = <0>; // from bootloader |
| 33 | }; |
| 34 | }; |
| 35 | |
| 36 | memory { |
| 37 | device_type = "memory"; |
| 38 | reg = <00000000 04000000>; // 64MB |
| 39 | }; |
| 40 | |
| 41 | soc5200@f0000000 { |
Paul Gortmaker | 58a5be3 | 2008-01-26 07:33:20 +1100 | [diff] [blame] | 42 | #address-cells = <1>; |
| 43 | #size-cells = <1>; |
Grant Likely | 24ce6bc | 2008-01-24 22:25:31 -0700 | [diff] [blame] | 44 | compatible = "fsl,mpc5200-immr"; |
Marian Balakowicz | 30d992e | 2007-11-10 04:12:20 +1100 | [diff] [blame] | 45 | ranges = <0 f0000000 0000c000>; |
| 46 | reg = <f0000000 00000100>; |
| 47 | bus-frequency = <0>; // from bootloader |
| 48 | system-frequency = <0>; // from bootloader |
| 49 | |
| 50 | cdm@200 { |
Grant Likely | 24ce6bc | 2008-01-24 22:25:31 -0700 | [diff] [blame] | 51 | compatible = "fsl,mpc5200-cdm"; |
Marian Balakowicz | 30d992e | 2007-11-10 04:12:20 +1100 | [diff] [blame] | 52 | reg = <200 38>; |
| 53 | }; |
| 54 | |
Grant Likely | 24ce6bc | 2008-01-24 22:25:31 -0700 | [diff] [blame] | 55 | mpc5200_pic: interrupt-controller@500 { |
Marian Balakowicz | 30d992e | 2007-11-10 04:12:20 +1100 | [diff] [blame] | 56 | // 5200 interrupts are encoded into two levels; |
| 57 | interrupt-controller; |
| 58 | #interrupt-cells = <3>; |
Grant Likely | 24ce6bc | 2008-01-24 22:25:31 -0700 | [diff] [blame] | 59 | compatible = "fsl,mpc5200-pic"; |
Marian Balakowicz | 30d992e | 2007-11-10 04:12:20 +1100 | [diff] [blame] | 60 | reg = <500 80>; |
| 61 | }; |
| 62 | |
Grant Likely | 24ce6bc | 2008-01-24 22:25:31 -0700 | [diff] [blame] | 63 | timer@600 { // General Purpose Timer |
Marian Balakowicz | 30d992e | 2007-11-10 04:12:20 +1100 | [diff] [blame] | 64 | compatible = "fsl,mpc5200-gpt"; |
| 65 | reg = <600 10>; |
| 66 | interrupts = <1 9 0>; |
| 67 | interrupt-parent = <&mpc5200_pic>; |
| 68 | fsl,has-wdt; |
| 69 | }; |
| 70 | |
| 71 | gpio@b00 { |
Grant Likely | 24ce6bc | 2008-01-24 22:25:31 -0700 | [diff] [blame] | 72 | compatible = "fsl,mpc5200-gpio"; |
Marian Balakowicz | 30d992e | 2007-11-10 04:12:20 +1100 | [diff] [blame] | 73 | reg = <b00 40>; |
| 74 | interrupts = <1 7 0>; |
| 75 | interrupt-parent = <&mpc5200_pic>; |
| 76 | }; |
| 77 | |
| 78 | usb@1000 { |
Grant Likely | 24ce6bc | 2008-01-24 22:25:31 -0700 | [diff] [blame] | 79 | compatible = "fsl,mpc5200-ohci","ohci-be"; |
Marian Balakowicz | 30d992e | 2007-11-10 04:12:20 +1100 | [diff] [blame] | 80 | reg = <1000 ff>; |
| 81 | interrupts = <2 6 0>; |
| 82 | interrupt-parent = <&mpc5200_pic>; |
| 83 | }; |
| 84 | |
| 85 | dma-controller@1200 { |
Grant Likely | 24ce6bc | 2008-01-24 22:25:31 -0700 | [diff] [blame] | 86 | compatible = "fsl,mpc5200-bestcomm"; |
Marian Balakowicz | 30d992e | 2007-11-10 04:12:20 +1100 | [diff] [blame] | 87 | reg = <1200 80>; |
| 88 | interrupts = <3 0 0 3 1 0 3 2 0 3 3 0 |
| 89 | 3 4 0 3 5 0 3 6 0 3 7 0 |
| 90 | 3 8 0 3 9 0 3 a 0 3 b 0 |
| 91 | 3 c 0 3 d 0 3 e 0 3 f 0>; |
| 92 | interrupt-parent = <&mpc5200_pic>; |
| 93 | }; |
| 94 | |
| 95 | xlb@1f00 { |
Grant Likely | 24ce6bc | 2008-01-24 22:25:31 -0700 | [diff] [blame] | 96 | compatible = "fsl,mpc5200-xlb"; |
Marian Balakowicz | 30d992e | 2007-11-10 04:12:20 +1100 | [diff] [blame] | 97 | reg = <1f00 100>; |
| 98 | }; |
| 99 | |
| 100 | serial@2000 { // PSC1 |
| 101 | device_type = "serial"; |
Grant Likely | 24ce6bc | 2008-01-24 22:25:31 -0700 | [diff] [blame] | 102 | compatible = "fsl,mpc5200-psc-uart"; |
Marian Balakowicz | 30d992e | 2007-11-10 04:12:20 +1100 | [diff] [blame] | 103 | port-number = <0>; // Logical port assignment |
| 104 | reg = <2000 100>; |
| 105 | interrupts = <2 1 0>; |
| 106 | interrupt-parent = <&mpc5200_pic>; |
| 107 | }; |
| 108 | |
| 109 | serial@2200 { // PSC2 |
| 110 | device_type = "serial"; |
Grant Likely | 24ce6bc | 2008-01-24 22:25:31 -0700 | [diff] [blame] | 111 | compatible = "fsl,mpc5200-psc-uart"; |
Marian Balakowicz | 30d992e | 2007-11-10 04:12:20 +1100 | [diff] [blame] | 112 | port-number = <1>; // Logical port assignment |
| 113 | reg = <2200 100>; |
| 114 | interrupts = <2 2 0>; |
| 115 | interrupt-parent = <&mpc5200_pic>; |
| 116 | }; |
| 117 | |
| 118 | serial@2400 { // PSC3 |
| 119 | device_type = "serial"; |
Grant Likely | 24ce6bc | 2008-01-24 22:25:31 -0700 | [diff] [blame] | 120 | compatible = "fsl,mpc5200-psc-uart"; |
Marian Balakowicz | 30d992e | 2007-11-10 04:12:20 +1100 | [diff] [blame] | 121 | port-number = <2>; // Logical port assignment |
| 122 | reg = <2400 100>; |
| 123 | interrupts = <2 3 0>; |
| 124 | interrupt-parent = <&mpc5200_pic>; |
| 125 | }; |
| 126 | |
| 127 | ethernet@3000 { |
| 128 | device_type = "network"; |
Grant Likely | 24ce6bc | 2008-01-24 22:25:31 -0700 | [diff] [blame] | 129 | compatible = "fsl,mpc5200-fec"; |
Bartlomiej Sieka | 115e1ad | 2008-04-03 01:26:02 +1100 | [diff] [blame] | 130 | reg = <3000 400>; |
Grant Likely | 24ce6bc | 2008-01-24 22:25:31 -0700 | [diff] [blame] | 131 | local-mac-address = [ 00 00 00 00 00 00 ]; |
Marian Balakowicz | 30d992e | 2007-11-10 04:12:20 +1100 | [diff] [blame] | 132 | interrupts = <2 5 0>; |
| 133 | interrupt-parent = <&mpc5200_pic>; |
Bartlomiej Sieka | 115e1ad | 2008-04-03 01:26:02 +1100 | [diff] [blame] | 134 | phy-handle = <&phy0>; |
| 135 | }; |
| 136 | |
| 137 | mdio@3000 { |
| 138 | #address-cells = <1>; |
| 139 | #size-cells = <0>; |
| 140 | compatible = "fsl,mpc5200b-mdio","fsl,mpc5200-mdio"; |
| 141 | reg = <3000 400>; // fec range, since we need to setup fec interrupts |
| 142 | interrupts = <2 5 0>; // these are for "mii command finished", not link changes & co. |
| 143 | interrupt-parent = <&mpc5200_pic>; |
| 144 | |
| 145 | phy0: ethernet-phy@0 { |
| 146 | device_type = "ethernet-phy"; |
| 147 | reg = <0>; |
| 148 | }; |
Marian Balakowicz | 30d992e | 2007-11-10 04:12:20 +1100 | [diff] [blame] | 149 | }; |
| 150 | |
| 151 | ata@3a00 { |
Grant Likely | 24ce6bc | 2008-01-24 22:25:31 -0700 | [diff] [blame] | 152 | compatible = "fsl,mpc5200-ata"; |
Marian Balakowicz | 30d992e | 2007-11-10 04:12:20 +1100 | [diff] [blame] | 153 | reg = <3a00 100>; |
| 154 | interrupts = <2 7 0>; |
| 155 | interrupt-parent = <&mpc5200_pic>; |
| 156 | }; |
| 157 | |
| 158 | i2c@3d40 { |
Bartlomiej Sieka | 115e1ad | 2008-04-03 01:26:02 +1100 | [diff] [blame] | 159 | #address-cells = <1>; |
| 160 | #size-cells = <0>; |
Grant Likely | 24ce6bc | 2008-01-24 22:25:31 -0700 | [diff] [blame] | 161 | compatible = "fsl,mpc5200-i2c","fsl-i2c"; |
Marian Balakowicz | 30d992e | 2007-11-10 04:12:20 +1100 | [diff] [blame] | 162 | reg = <3d40 40>; |
| 163 | interrupts = <2 10 0>; |
| 164 | interrupt-parent = <&mpc5200_pic>; |
| 165 | fsl5200-clocking; |
Bartlomiej Sieka | 115e1ad | 2008-04-03 01:26:02 +1100 | [diff] [blame] | 166 | |
| 167 | rtc@68 { |
| 168 | device_type = "rtc"; |
| 169 | compatible = "dallas,ds1307"; |
| 170 | reg = <68>; |
| 171 | }; |
Marian Balakowicz | 30d992e | 2007-11-10 04:12:20 +1100 | [diff] [blame] | 172 | }; |
| 173 | |
| 174 | sram@8000 { |
Grant Likely | 24ce6bc | 2008-01-24 22:25:31 -0700 | [diff] [blame] | 175 | compatible = "fsl,mpc5200-sram"; |
Marian Balakowicz | 30d992e | 2007-11-10 04:12:20 +1100 | [diff] [blame] | 176 | reg = <8000 4000>; |
| 177 | }; |
| 178 | }; |
| 179 | |
Bartlomiej Sieka | 115e1ad | 2008-04-03 01:26:02 +1100 | [diff] [blame] | 180 | lpb { |
| 181 | model = "fsl,lpb"; |
| 182 | compatible = "fsl,lpb"; |
| 183 | #address-cells = <2>; |
| 184 | #size-cells = <1>; |
| 185 | ranges = <0 0 fc000000 02000000>; |
| 186 | |
| 187 | flash@0,0 { |
| 188 | compatible = "cfi-flash"; |
| 189 | reg = <0 0 02000000>; |
| 190 | bank-width = <4>; |
| 191 | device-width = <2>; |
| 192 | #size-cells = <1>; |
| 193 | #address-cells = <1>; |
| 194 | }; |
| 195 | }; |
| 196 | |
Marian Balakowicz | 30d992e | 2007-11-10 04:12:20 +1100 | [diff] [blame] | 197 | pci@f0000d00 { |
| 198 | #interrupt-cells = <1>; |
| 199 | #size-cells = <2>; |
| 200 | #address-cells = <3>; |
| 201 | device_type = "pci"; |
| 202 | compatible = "fsl,mpc5200-pci"; |
| 203 | reg = <f0000d00 100>; |
| 204 | interrupt-map-mask = <f800 0 0 7>; |
| 205 | interrupt-map = <c000 0 0 1 &mpc5200_pic 0 0 3 |
| 206 | c000 0 0 2 &mpc5200_pic 0 0 3 |
| 207 | c000 0 0 3 &mpc5200_pic 0 0 3 |
| 208 | c000 0 0 4 &mpc5200_pic 0 0 3>; |
| 209 | clock-frequency = <0>; // From boot loader |
| 210 | interrupts = <2 8 0 2 9 0 2 a 0>; |
| 211 | interrupt-parent = <&mpc5200_pic>; |
| 212 | bus-range = <0 0>; |
| 213 | ranges = <42000000 0 80000000 80000000 0 10000000 |
| 214 | 02000000 0 90000000 90000000 0 10000000 |
| 215 | 01000000 0 00000000 a0000000 0 01000000>; |
| 216 | }; |
| 217 | }; |