1c66ec88fSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-or-later 2c66ec88fSEmmanuel Vadot/* 3c66ec88fSEmmanuel Vadot * TQM5200 board Device Tree Source 4c66ec88fSEmmanuel Vadot * 5c66ec88fSEmmanuel Vadot * Copyright (C) 2007 Semihalf 6c66ec88fSEmmanuel Vadot * Marian Balakowicz <m8@semihalf.com> 7c66ec88fSEmmanuel Vadot */ 8c66ec88fSEmmanuel Vadot 9c66ec88fSEmmanuel Vadot/dts-v1/; 10c66ec88fSEmmanuel Vadot 11c66ec88fSEmmanuel Vadot/ { 12c66ec88fSEmmanuel Vadot model = "tqc,tqm5200"; 13c66ec88fSEmmanuel Vadot compatible = "tqc,tqm5200"; 14c66ec88fSEmmanuel Vadot #address-cells = <1>; 15c66ec88fSEmmanuel Vadot #size-cells = <1>; 16c66ec88fSEmmanuel Vadot interrupt-parent = <&mpc5200_pic>; 17c66ec88fSEmmanuel Vadot 18c66ec88fSEmmanuel Vadot cpus { 19c66ec88fSEmmanuel Vadot #address-cells = <1>; 20c66ec88fSEmmanuel Vadot #size-cells = <0>; 21c66ec88fSEmmanuel Vadot 22c66ec88fSEmmanuel Vadot PowerPC,5200@0 { 23c66ec88fSEmmanuel Vadot device_type = "cpu"; 24c66ec88fSEmmanuel Vadot reg = <0>; 25c66ec88fSEmmanuel Vadot d-cache-line-size = <32>; 26c66ec88fSEmmanuel Vadot i-cache-line-size = <32>; 27c66ec88fSEmmanuel Vadot d-cache-size = <0x4000>; // L1, 16K 28c66ec88fSEmmanuel Vadot i-cache-size = <0x4000>; // L1, 16K 29c66ec88fSEmmanuel Vadot timebase-frequency = <0>; // from bootloader 30c66ec88fSEmmanuel Vadot bus-frequency = <0>; // from bootloader 31c66ec88fSEmmanuel Vadot clock-frequency = <0>; // from bootloader 32c66ec88fSEmmanuel Vadot }; 33c66ec88fSEmmanuel Vadot }; 34c66ec88fSEmmanuel Vadot 35*8cc087a1SEmmanuel Vadot memory@0 { 36c66ec88fSEmmanuel Vadot device_type = "memory"; 37c66ec88fSEmmanuel Vadot reg = <0x00000000 0x04000000>; // 64MB 38c66ec88fSEmmanuel Vadot }; 39c66ec88fSEmmanuel Vadot 40c66ec88fSEmmanuel Vadot soc5200@f0000000 { 41c66ec88fSEmmanuel Vadot #address-cells = <1>; 42c66ec88fSEmmanuel Vadot #size-cells = <1>; 43c66ec88fSEmmanuel Vadot compatible = "fsl,mpc5200-immr"; 44c66ec88fSEmmanuel Vadot ranges = <0 0xf0000000 0x0000c000>; 45c66ec88fSEmmanuel Vadot reg = <0xf0000000 0x00000100>; 46c66ec88fSEmmanuel Vadot bus-frequency = <0>; // from bootloader 47c66ec88fSEmmanuel Vadot system-frequency = <0>; // from bootloader 48c66ec88fSEmmanuel Vadot 49c66ec88fSEmmanuel Vadot cdm@200 { 50c66ec88fSEmmanuel Vadot compatible = "fsl,mpc5200-cdm"; 51c66ec88fSEmmanuel Vadot reg = <0x200 0x38>; 52c66ec88fSEmmanuel Vadot }; 53c66ec88fSEmmanuel Vadot 54c66ec88fSEmmanuel Vadot mpc5200_pic: interrupt-controller@500 { 55c66ec88fSEmmanuel Vadot // 5200 interrupts are encoded into two levels; 56c66ec88fSEmmanuel Vadot interrupt-controller; 57c66ec88fSEmmanuel Vadot #interrupt-cells = <3>; 58c66ec88fSEmmanuel Vadot compatible = "fsl,mpc5200-pic"; 59c66ec88fSEmmanuel Vadot reg = <0x500 0x80>; 60c66ec88fSEmmanuel Vadot }; 61c66ec88fSEmmanuel Vadot 62c66ec88fSEmmanuel Vadot timer@600 { // General Purpose Timer 63c66ec88fSEmmanuel Vadot compatible = "fsl,mpc5200-gpt"; 64c66ec88fSEmmanuel Vadot reg = <0x600 0x10>; 65c66ec88fSEmmanuel Vadot interrupts = <1 9 0>; 66c66ec88fSEmmanuel Vadot fsl,has-wdt; 67c66ec88fSEmmanuel Vadot }; 68c66ec88fSEmmanuel Vadot 69c66ec88fSEmmanuel Vadot can@900 { 70c66ec88fSEmmanuel Vadot compatible = "fsl,mpc5200-mscan"; 71c66ec88fSEmmanuel Vadot interrupts = <2 17 0>; 72c66ec88fSEmmanuel Vadot reg = <0x900 0x80>; 73c66ec88fSEmmanuel Vadot }; 74c66ec88fSEmmanuel Vadot 75c66ec88fSEmmanuel Vadot can@980 { 76c66ec88fSEmmanuel Vadot compatible = "fsl,mpc5200-mscan"; 77c66ec88fSEmmanuel Vadot interrupts = <2 18 0>; 78c66ec88fSEmmanuel Vadot reg = <0x980 0x80>; 79c66ec88fSEmmanuel Vadot }; 80c66ec88fSEmmanuel Vadot 81c66ec88fSEmmanuel Vadot gpio_simple: gpio@b00 { 82c66ec88fSEmmanuel Vadot compatible = "fsl,mpc5200-gpio"; 83c66ec88fSEmmanuel Vadot reg = <0xb00 0x40>; 84c66ec88fSEmmanuel Vadot interrupts = <1 7 0>; 85c66ec88fSEmmanuel Vadot gpio-controller; 86c66ec88fSEmmanuel Vadot #gpio-cells = <2>; 87c66ec88fSEmmanuel Vadot }; 88c66ec88fSEmmanuel Vadot 89c66ec88fSEmmanuel Vadot usb@1000 { 90c66ec88fSEmmanuel Vadot compatible = "fsl,mpc5200-ohci","ohci-be"; 91c66ec88fSEmmanuel Vadot reg = <0x1000 0xff>; 92c66ec88fSEmmanuel Vadot interrupts = <2 6 0>; 93c66ec88fSEmmanuel Vadot }; 94c66ec88fSEmmanuel Vadot 95c66ec88fSEmmanuel Vadot dma-controller@1200 { 96c66ec88fSEmmanuel Vadot compatible = "fsl,mpc5200-bestcomm"; 97c66ec88fSEmmanuel Vadot reg = <0x1200 0x80>; 98c66ec88fSEmmanuel Vadot interrupts = <3 0 0 3 1 0 3 2 0 3 3 0 99c66ec88fSEmmanuel Vadot 3 4 0 3 5 0 3 6 0 3 7 0 100c66ec88fSEmmanuel Vadot 3 8 0 3 9 0 3 10 0 3 11 0 101c66ec88fSEmmanuel Vadot 3 12 0 3 13 0 3 14 0 3 15 0>; 102c66ec88fSEmmanuel Vadot }; 103c66ec88fSEmmanuel Vadot 104c66ec88fSEmmanuel Vadot xlb@1f00 { 105c66ec88fSEmmanuel Vadot compatible = "fsl,mpc5200-xlb"; 106c66ec88fSEmmanuel Vadot reg = <0x1f00 0x100>; 107c66ec88fSEmmanuel Vadot }; 108c66ec88fSEmmanuel Vadot 109c66ec88fSEmmanuel Vadot serial@2000 { // PSC1 110c66ec88fSEmmanuel Vadot compatible = "fsl,mpc5200-psc-uart"; 111c66ec88fSEmmanuel Vadot reg = <0x2000 0x100>; 112c66ec88fSEmmanuel Vadot interrupts = <2 1 0>; 113c66ec88fSEmmanuel Vadot }; 114c66ec88fSEmmanuel Vadot 115c66ec88fSEmmanuel Vadot serial@2200 { // PSC2 116c66ec88fSEmmanuel Vadot compatible = "fsl,mpc5200-psc-uart"; 117c66ec88fSEmmanuel Vadot reg = <0x2200 0x100>; 118c66ec88fSEmmanuel Vadot interrupts = <2 2 0>; 119c66ec88fSEmmanuel Vadot }; 120c66ec88fSEmmanuel Vadot 121c66ec88fSEmmanuel Vadot serial@2400 { // PSC3 122c66ec88fSEmmanuel Vadot compatible = "fsl,mpc5200-psc-uart"; 123c66ec88fSEmmanuel Vadot reg = <0x2400 0x100>; 124c66ec88fSEmmanuel Vadot interrupts = <2 3 0>; 125c66ec88fSEmmanuel Vadot }; 126c66ec88fSEmmanuel Vadot 127c66ec88fSEmmanuel Vadot ethernet@3000 { 128c66ec88fSEmmanuel Vadot compatible = "fsl,mpc5200-fec"; 129c66ec88fSEmmanuel Vadot reg = <0x3000 0x400>; 130c66ec88fSEmmanuel Vadot local-mac-address = [ 00 00 00 00 00 00 ]; 131c66ec88fSEmmanuel Vadot interrupts = <2 5 0>; 132c66ec88fSEmmanuel Vadot phy-handle = <&phy0>; 133c66ec88fSEmmanuel Vadot }; 134c66ec88fSEmmanuel Vadot 135c66ec88fSEmmanuel Vadot mdio@3000 { 136c66ec88fSEmmanuel Vadot #address-cells = <1>; 137c66ec88fSEmmanuel Vadot #size-cells = <0>; 138c66ec88fSEmmanuel Vadot compatible = "fsl,mpc5200-mdio"; 139c66ec88fSEmmanuel Vadot reg = <0x3000 0x400>; // fec range, since we need to setup fec interrupts 140c66ec88fSEmmanuel Vadot interrupts = <2 5 0>; // these are for "mii command finished", not link changes & co. 141c66ec88fSEmmanuel Vadot 142c66ec88fSEmmanuel Vadot phy0: ethernet-phy@0 { 143c66ec88fSEmmanuel Vadot reg = <0>; 144c66ec88fSEmmanuel Vadot }; 145c66ec88fSEmmanuel Vadot }; 146c66ec88fSEmmanuel Vadot 147c66ec88fSEmmanuel Vadot ata@3a00 { 148c66ec88fSEmmanuel Vadot compatible = "fsl,mpc5200-ata"; 149c66ec88fSEmmanuel Vadot reg = <0x3a00 0x100>; 150c66ec88fSEmmanuel Vadot interrupts = <2 7 0>; 151c66ec88fSEmmanuel Vadot }; 152c66ec88fSEmmanuel Vadot 153c66ec88fSEmmanuel Vadot i2c@3d40 { 154c66ec88fSEmmanuel Vadot #address-cells = <1>; 155c66ec88fSEmmanuel Vadot #size-cells = <0>; 156c66ec88fSEmmanuel Vadot compatible = "fsl,mpc5200-i2c","fsl-i2c"; 157c66ec88fSEmmanuel Vadot reg = <0x3d40 0x40>; 158c66ec88fSEmmanuel Vadot interrupts = <2 16 0>; 159c66ec88fSEmmanuel Vadot 160c66ec88fSEmmanuel Vadot rtc@68 { 161c66ec88fSEmmanuel Vadot compatible = "dallas,ds1307"; 162c66ec88fSEmmanuel Vadot reg = <0x68>; 163c66ec88fSEmmanuel Vadot }; 164c66ec88fSEmmanuel Vadot }; 165c66ec88fSEmmanuel Vadot 166c66ec88fSEmmanuel Vadot sram@8000 { 167c66ec88fSEmmanuel Vadot compatible = "fsl,mpc5200-sram"; 168c66ec88fSEmmanuel Vadot reg = <0x8000 0x4000>; 169c66ec88fSEmmanuel Vadot }; 170c66ec88fSEmmanuel Vadot }; 171c66ec88fSEmmanuel Vadot 172c66ec88fSEmmanuel Vadot localbus { 173c66ec88fSEmmanuel Vadot compatible = "fsl,mpc5200-lpb","simple-bus"; 174c66ec88fSEmmanuel Vadot #address-cells = <2>; 175c66ec88fSEmmanuel Vadot #size-cells = <1>; 176c66ec88fSEmmanuel Vadot ranges = <0 0 0xfc000000 0x02000000>; 177c66ec88fSEmmanuel Vadot 178c66ec88fSEmmanuel Vadot flash@0,0 { 179c66ec88fSEmmanuel Vadot compatible = "cfi-flash"; 180c66ec88fSEmmanuel Vadot reg = <0 0 0x02000000>; 181c66ec88fSEmmanuel Vadot bank-width = <4>; 182c66ec88fSEmmanuel Vadot device-width = <2>; 183c66ec88fSEmmanuel Vadot #size-cells = <1>; 184c66ec88fSEmmanuel Vadot #address-cells = <1>; 185c66ec88fSEmmanuel Vadot }; 186c66ec88fSEmmanuel Vadot }; 187c66ec88fSEmmanuel Vadot 188c66ec88fSEmmanuel Vadot pci@f0000d00 { 189c66ec88fSEmmanuel Vadot #interrupt-cells = <1>; 190c66ec88fSEmmanuel Vadot #size-cells = <2>; 191c66ec88fSEmmanuel Vadot #address-cells = <3>; 192c66ec88fSEmmanuel Vadot device_type = "pci"; 193c66ec88fSEmmanuel Vadot compatible = "fsl,mpc5200-pci"; 194c66ec88fSEmmanuel Vadot reg = <0xf0000d00 0x100>; 195c66ec88fSEmmanuel Vadot interrupt-map-mask = <0xf800 0 0 7>; 196c66ec88fSEmmanuel Vadot interrupt-map = <0xc000 0 0 1 &mpc5200_pic 0 0 3 197c66ec88fSEmmanuel Vadot 0xc000 0 0 2 &mpc5200_pic 0 0 3 198c66ec88fSEmmanuel Vadot 0xc000 0 0 3 &mpc5200_pic 0 0 3 199c66ec88fSEmmanuel Vadot 0xc000 0 0 4 &mpc5200_pic 0 0 3>; 200c66ec88fSEmmanuel Vadot clock-frequency = <0>; // From boot loader 201c66ec88fSEmmanuel Vadot interrupts = <2 8 0 2 9 0 2 10 0>; 202c66ec88fSEmmanuel Vadot bus-range = <0 0>; 203*8cc087a1SEmmanuel Vadot ranges = <0x42000000 0 0x80000000 0x80000000 0 0x10000000>, 204*8cc087a1SEmmanuel Vadot <0x02000000 0 0x90000000 0x90000000 0 0x10000000>, 205*8cc087a1SEmmanuel Vadot <0x01000000 0 0x00000000 0xa0000000 0 0x01000000>; 206c66ec88fSEmmanuel Vadot }; 207c66ec88fSEmmanuel Vadot}; 208