10052bc5dSKumar Gala/* 20052bc5dSKumar Gala * TQM 8540 Device Tree Source 30052bc5dSKumar Gala * 40052bc5dSKumar Gala * Copyright 2008 Freescale Semiconductor Inc. 50052bc5dSKumar Gala * 60052bc5dSKumar Gala * This program is free software; you can redistribute it and/or modify it 70052bc5dSKumar Gala * under the terms of the GNU General Public License as published by the 80052bc5dSKumar Gala * Free Software Foundation; either version 2 of the License, or (at your 90052bc5dSKumar Gala * option) any later version. 100052bc5dSKumar Gala */ 110052bc5dSKumar Gala 120052bc5dSKumar Gala/dts-v1/; 130052bc5dSKumar Gala 140052bc5dSKumar Gala/ { 154fb035f6SWolfgang Grandegger model = "tqc,tqm8540"; 164fb035f6SWolfgang Grandegger compatible = "tqc,tqm8540"; 170052bc5dSKumar Gala #address-cells = <1>; 180052bc5dSKumar Gala #size-cells = <1>; 190052bc5dSKumar Gala 200052bc5dSKumar Gala aliases { 210052bc5dSKumar Gala ethernet0 = &enet0; 220052bc5dSKumar Gala ethernet1 = &enet1; 230052bc5dSKumar Gala ethernet2 = &enet2; 240052bc5dSKumar Gala serial0 = &serial0; 250052bc5dSKumar Gala serial1 = &serial1; 260052bc5dSKumar Gala pci0 = &pci0; 270052bc5dSKumar Gala }; 280052bc5dSKumar Gala 290052bc5dSKumar Gala cpus { 300052bc5dSKumar Gala #address-cells = <1>; 310052bc5dSKumar Gala #size-cells = <0>; 320052bc5dSKumar Gala 330052bc5dSKumar Gala PowerPC,8540@0 { 340052bc5dSKumar Gala device_type = "cpu"; 350052bc5dSKumar Gala reg = <0>; 360052bc5dSKumar Gala d-cache-line-size = <32>; 370052bc5dSKumar Gala i-cache-line-size = <32>; 380052bc5dSKumar Gala d-cache-size = <32768>; 390052bc5dSKumar Gala i-cache-size = <32768>; 400052bc5dSKumar Gala timebase-frequency = <0>; 410052bc5dSKumar Gala bus-frequency = <0>; 420052bc5dSKumar Gala clock-frequency = <0>; 43c054065bSKumar Gala next-level-cache = <&L2>; 440052bc5dSKumar Gala }; 450052bc5dSKumar Gala }; 460052bc5dSKumar Gala 470052bc5dSKumar Gala memory { 480052bc5dSKumar Gala device_type = "memory"; 490052bc5dSKumar Gala reg = <0x00000000 0x10000000>; 500052bc5dSKumar Gala }; 510052bc5dSKumar Gala 52f67be814SKumar Gala soc@e0000000 { 530052bc5dSKumar Gala #address-cells = <1>; 540052bc5dSKumar Gala #size-cells = <1>; 550052bc5dSKumar Gala device_type = "soc"; 560052bc5dSKumar Gala ranges = <0x0 0xe0000000 0x100000>; 570052bc5dSKumar Gala reg = <0xe0000000 0x200>; 580052bc5dSKumar Gala bus-frequency = <0>; 590052bc5dSKumar Gala compatible = "fsl,mpc8540-immr", "simple-bus"; 600052bc5dSKumar Gala 61*e1a22897SKumar Gala ecm-law@0 { 62*e1a22897SKumar Gala compatible = "fsl,ecm-law"; 63*e1a22897SKumar Gala reg = <0x0 0x1000>; 64*e1a22897SKumar Gala fsl,num-laws = <8>; 65*e1a22897SKumar Gala }; 66*e1a22897SKumar Gala 67*e1a22897SKumar Gala ecm@1000 { 68*e1a22897SKumar Gala compatible = "fsl,mpc8540-ecm", "fsl,ecm"; 69*e1a22897SKumar Gala reg = <0x1000 0x1000>; 70*e1a22897SKumar Gala interrupts = <17 2>; 71*e1a22897SKumar Gala interrupt-parent = <&mpic>; 72*e1a22897SKumar Gala }; 73*e1a22897SKumar Gala 740052bc5dSKumar Gala memory-controller@2000 { 75fe671772SKumar Gala compatible = "fsl,mpc8540-memory-controller"; 760052bc5dSKumar Gala reg = <0x2000 0x1000>; 770052bc5dSKumar Gala interrupt-parent = <&mpic>; 780052bc5dSKumar Gala interrupts = <18 2>; 790052bc5dSKumar Gala }; 800052bc5dSKumar Gala 81c054065bSKumar Gala L2: l2-cache-controller@20000 { 82fe671772SKumar Gala compatible = "fsl,mpc8540-l2-cache-controller"; 830052bc5dSKumar Gala reg = <0x20000 0x1000>; 840052bc5dSKumar Gala cache-line-size = <32>; 850052bc5dSKumar Gala cache-size = <0x40000>; // L2, 256K 860052bc5dSKumar Gala interrupt-parent = <&mpic>; 870052bc5dSKumar Gala interrupts = <16 2>; 880052bc5dSKumar Gala }; 890052bc5dSKumar Gala 900052bc5dSKumar Gala i2c@3000 { 910052bc5dSKumar Gala #address-cells = <1>; 920052bc5dSKumar Gala #size-cells = <0>; 930052bc5dSKumar Gala cell-index = <0>; 940052bc5dSKumar Gala compatible = "fsl-i2c"; 950052bc5dSKumar Gala reg = <0x3000 0x100>; 960052bc5dSKumar Gala interrupts = <43 2>; 970052bc5dSKumar Gala interrupt-parent = <&mpic>; 980052bc5dSKumar Gala dfsrr; 990052bc5dSKumar Gala 1006467cae3SWolfgang Grandegger dtt@48 { 1010f73a449SWolfgang Grandegger compatible = "national,lm75"; 1026467cae3SWolfgang Grandegger reg = <0x48>; 1030f73a449SWolfgang Grandegger }; 1040f73a449SWolfgang Grandegger 1050052bc5dSKumar Gala rtc@68 { 1060052bc5dSKumar Gala compatible = "dallas,ds1337"; 1070052bc5dSKumar Gala reg = <0x68>; 1080052bc5dSKumar Gala }; 1090052bc5dSKumar Gala }; 1100052bc5dSKumar Gala 111dee80553SKumar Gala dma@21300 { 112dee80553SKumar Gala #address-cells = <1>; 113dee80553SKumar Gala #size-cells = <1>; 114dee80553SKumar Gala compatible = "fsl,mpc8540-dma", "fsl,eloplus-dma"; 115dee80553SKumar Gala reg = <0x21300 0x4>; 116dee80553SKumar Gala ranges = <0x0 0x21100 0x200>; 117dee80553SKumar Gala cell-index = <0>; 118dee80553SKumar Gala dma-channel@0 { 119dee80553SKumar Gala compatible = "fsl,mpc8540-dma-channel", 120dee80553SKumar Gala "fsl,eloplus-dma-channel"; 121dee80553SKumar Gala reg = <0x0 0x80>; 122dee80553SKumar Gala cell-index = <0>; 123dee80553SKumar Gala interrupt-parent = <&mpic>; 124dee80553SKumar Gala interrupts = <20 2>; 125dee80553SKumar Gala }; 126dee80553SKumar Gala dma-channel@80 { 127dee80553SKumar Gala compatible = "fsl,mpc8540-dma-channel", 128dee80553SKumar Gala "fsl,eloplus-dma-channel"; 129dee80553SKumar Gala reg = <0x80 0x80>; 130dee80553SKumar Gala cell-index = <1>; 131dee80553SKumar Gala interrupt-parent = <&mpic>; 132dee80553SKumar Gala interrupts = <21 2>; 133dee80553SKumar Gala }; 134dee80553SKumar Gala dma-channel@100 { 135dee80553SKumar Gala compatible = "fsl,mpc8540-dma-channel", 136dee80553SKumar Gala "fsl,eloplus-dma-channel"; 137dee80553SKumar Gala reg = <0x100 0x80>; 138dee80553SKumar Gala cell-index = <2>; 139dee80553SKumar Gala interrupt-parent = <&mpic>; 140dee80553SKumar Gala interrupts = <22 2>; 141dee80553SKumar Gala }; 142dee80553SKumar Gala dma-channel@180 { 143dee80553SKumar Gala compatible = "fsl,mpc8540-dma-channel", 144dee80553SKumar Gala "fsl,eloplus-dma-channel"; 145dee80553SKumar Gala reg = <0x180 0x80>; 146dee80553SKumar Gala cell-index = <3>; 147dee80553SKumar Gala interrupt-parent = <&mpic>; 148dee80553SKumar Gala interrupts = <23 2>; 149dee80553SKumar Gala }; 150dee80553SKumar Gala }; 151dee80553SKumar Gala 15284ba4a58SAnton Vorontsov enet0: ethernet@24000 { 15384ba4a58SAnton Vorontsov #address-cells = <1>; 15484ba4a58SAnton Vorontsov #size-cells = <1>; 15584ba4a58SAnton Vorontsov cell-index = <0>; 15684ba4a58SAnton Vorontsov device_type = "network"; 15784ba4a58SAnton Vorontsov model = "TSEC"; 15884ba4a58SAnton Vorontsov compatible = "gianfar"; 15984ba4a58SAnton Vorontsov reg = <0x24000 0x1000>; 16084ba4a58SAnton Vorontsov ranges = <0x0 0x24000 0x1000>; 16184ba4a58SAnton Vorontsov local-mac-address = [ 00 00 00 00 00 00 ]; 16284ba4a58SAnton Vorontsov interrupts = <29 2 30 2 34 2>; 16384ba4a58SAnton Vorontsov interrupt-parent = <&mpic>; 16484ba4a58SAnton Vorontsov phy-handle = <&phy2>; 16584ba4a58SAnton Vorontsov 16684ba4a58SAnton Vorontsov mdio@520 { 1670052bc5dSKumar Gala #address-cells = <1>; 1680052bc5dSKumar Gala #size-cells = <0>; 1690052bc5dSKumar Gala compatible = "fsl,gianfar-mdio"; 17084ba4a58SAnton Vorontsov reg = <0x520 0x20>; 1710052bc5dSKumar Gala 1720052bc5dSKumar Gala phy1: ethernet-phy@1 { 1730052bc5dSKumar Gala interrupt-parent = <&mpic>; 1740052bc5dSKumar Gala interrupts = <8 1>; 1750052bc5dSKumar Gala reg = <1>; 1760052bc5dSKumar Gala device_type = "ethernet-phy"; 1770052bc5dSKumar Gala }; 1780052bc5dSKumar Gala phy2: ethernet-phy@2 { 1790052bc5dSKumar Gala interrupt-parent = <&mpic>; 1800052bc5dSKumar Gala interrupts = <8 1>; 1810052bc5dSKumar Gala reg = <2>; 1820052bc5dSKumar Gala device_type = "ethernet-phy"; 1830052bc5dSKumar Gala }; 1840052bc5dSKumar Gala phy3: ethernet-phy@3 { 1850052bc5dSKumar Gala interrupt-parent = <&mpic>; 1860052bc5dSKumar Gala interrupts = <8 1>; 1870052bc5dSKumar Gala reg = <3>; 1880052bc5dSKumar Gala device_type = "ethernet-phy"; 1890052bc5dSKumar Gala }; 190b31a1d8bSAndy Fleming tbi0: tbi-phy@11 { 191b31a1d8bSAndy Fleming reg = <0x11>; 192b31a1d8bSAndy Fleming device_type = "tbi-phy"; 193b31a1d8bSAndy Fleming }; 194b31a1d8bSAndy Fleming }; 19584ba4a58SAnton Vorontsov }; 196b31a1d8bSAndy Fleming 19784ba4a58SAnton Vorontsov enet1: ethernet@25000 { 19884ba4a58SAnton Vorontsov #address-cells = <1>; 19984ba4a58SAnton Vorontsov #size-cells = <1>; 20084ba4a58SAnton Vorontsov cell-index = <1>; 20184ba4a58SAnton Vorontsov device_type = "network"; 20284ba4a58SAnton Vorontsov model = "TSEC"; 20384ba4a58SAnton Vorontsov compatible = "gianfar"; 20484ba4a58SAnton Vorontsov reg = <0x25000 0x1000>; 20584ba4a58SAnton Vorontsov ranges = <0x0 0x25000 0x1000>; 20684ba4a58SAnton Vorontsov local-mac-address = [ 00 00 00 00 00 00 ]; 20784ba4a58SAnton Vorontsov interrupts = <35 2 36 2 40 2>; 20884ba4a58SAnton Vorontsov interrupt-parent = <&mpic>; 20984ba4a58SAnton Vorontsov phy-handle = <&phy1>; 21084ba4a58SAnton Vorontsov 21184ba4a58SAnton Vorontsov mdio@520 { 212b31a1d8bSAndy Fleming #address-cells = <1>; 213b31a1d8bSAndy Fleming #size-cells = <0>; 214b31a1d8bSAndy Fleming compatible = "fsl,gianfar-tbi"; 21584ba4a58SAnton Vorontsov reg = <0x520 0x20>; 216b31a1d8bSAndy Fleming 217b31a1d8bSAndy Fleming tbi1: tbi-phy@11 { 218b31a1d8bSAndy Fleming reg = <0x11>; 219b31a1d8bSAndy Fleming device_type = "tbi-phy"; 220b31a1d8bSAndy Fleming }; 221b31a1d8bSAndy Fleming }; 22284ba4a58SAnton Vorontsov }; 223b31a1d8bSAndy Fleming 22484ba4a58SAnton Vorontsov enet2: ethernet@26000 { 22584ba4a58SAnton Vorontsov #address-cells = <1>; 22684ba4a58SAnton Vorontsov #size-cells = <1>; 22784ba4a58SAnton Vorontsov cell-index = <2>; 22884ba4a58SAnton Vorontsov device_type = "network"; 22984ba4a58SAnton Vorontsov model = "FEC"; 23084ba4a58SAnton Vorontsov compatible = "gianfar"; 23184ba4a58SAnton Vorontsov reg = <0x26000 0x1000>; 23284ba4a58SAnton Vorontsov ranges = <0x0 0x26000 0x1000>; 23384ba4a58SAnton Vorontsov local-mac-address = [ 00 00 00 00 00 00 ]; 23484ba4a58SAnton Vorontsov interrupts = <41 2>; 23584ba4a58SAnton Vorontsov interrupt-parent = <&mpic>; 23684ba4a58SAnton Vorontsov phy-handle = <&phy3>; 23784ba4a58SAnton Vorontsov 23884ba4a58SAnton Vorontsov mdio@520 { 239b31a1d8bSAndy Fleming #address-cells = <1>; 240b31a1d8bSAndy Fleming #size-cells = <0>; 241b31a1d8bSAndy Fleming compatible = "fsl,gianfar-tbi"; 24284ba4a58SAnton Vorontsov reg = <0x520 0x20>; 243b31a1d8bSAndy Fleming 244b31a1d8bSAndy Fleming tbi2: tbi-phy@11 { 245b31a1d8bSAndy Fleming reg = <0x11>; 246b31a1d8bSAndy Fleming device_type = "tbi-phy"; 247b31a1d8bSAndy Fleming }; 2480052bc5dSKumar Gala }; 2490052bc5dSKumar Gala }; 2500052bc5dSKumar Gala 2510052bc5dSKumar Gala serial0: serial@4500 { 2520052bc5dSKumar Gala cell-index = <0>; 2530052bc5dSKumar Gala device_type = "serial"; 2540052bc5dSKumar Gala compatible = "ns16550"; 2550052bc5dSKumar Gala reg = <0x4500 0x100>; // reg base, size 2560052bc5dSKumar Gala clock-frequency = <0>; // should we fill in in uboot? 2570052bc5dSKumar Gala interrupts = <42 2>; 2580052bc5dSKumar Gala interrupt-parent = <&mpic>; 2590052bc5dSKumar Gala }; 2600052bc5dSKumar Gala 2610052bc5dSKumar Gala serial1: serial@4600 { 2620052bc5dSKumar Gala cell-index = <1>; 2630052bc5dSKumar Gala device_type = "serial"; 2640052bc5dSKumar Gala compatible = "ns16550"; 2650052bc5dSKumar Gala reg = <0x4600 0x100>; // reg base, size 2660052bc5dSKumar Gala clock-frequency = <0>; // should we fill in in uboot? 2670052bc5dSKumar Gala interrupts = <42 2>; 2680052bc5dSKumar Gala interrupt-parent = <&mpic>; 2690052bc5dSKumar Gala }; 2700052bc5dSKumar Gala 2710052bc5dSKumar Gala mpic: pic@40000 { 2720052bc5dSKumar Gala interrupt-controller; 2730052bc5dSKumar Gala #address-cells = <0>; 2740052bc5dSKumar Gala #interrupt-cells = <2>; 2750052bc5dSKumar Gala reg = <0x40000 0x40000>; 2760052bc5dSKumar Gala device_type = "open-pic"; 277acd4b715SKumar Gala compatible = "chrp,open-pic"; 2780052bc5dSKumar Gala }; 2790052bc5dSKumar Gala }; 2800052bc5dSKumar Gala 2810052bc5dSKumar Gala pci0: pci@e0008000 { 2820052bc5dSKumar Gala #interrupt-cells = <1>; 2830052bc5dSKumar Gala #size-cells = <2>; 2840052bc5dSKumar Gala #address-cells = <3>; 2850052bc5dSKumar Gala compatible = "fsl,mpc8540-pcix", "fsl,mpc8540-pci"; 2860052bc5dSKumar Gala device_type = "pci"; 2870052bc5dSKumar Gala reg = <0xe0008000 0x1000>; 2880052bc5dSKumar Gala clock-frequency = <66666666>; 2890052bc5dSKumar Gala interrupt-map-mask = <0xf800 0x0 0x0 0x7>; 2900052bc5dSKumar Gala interrupt-map = < 2910052bc5dSKumar Gala /* IDSEL 28 */ 2920052bc5dSKumar Gala 0xe000 0 0 1 &mpic 2 1 2930052bc5dSKumar Gala 0xe000 0 0 2 &mpic 3 1>; 2940052bc5dSKumar Gala 2950052bc5dSKumar Gala interrupt-parent = <&mpic>; 2960052bc5dSKumar Gala interrupts = <24 2>; 2970052bc5dSKumar Gala bus-range = <0 0>; 2980052bc5dSKumar Gala ranges = <0x02000000 0 0x80000000 0x80000000 0 0x20000000 2990052bc5dSKumar Gala 0x01000000 0 0x00000000 0xe2000000 0 0x01000000>; 3000052bc5dSKumar Gala }; 3010052bc5dSKumar Gala}; 302