12874c5fdSThomas Gleixner// SPDX-License-Identifier: GPL-2.0-or-later 2b359049fSKim Phillips/* 3b359049fSKim Phillips * MPC8313E RDB Device Tree Source 4b359049fSKim Phillips * 5b359049fSKim Phillips * Copyright 2005, 2006, 2007 Freescale Semiconductor Inc. 6b359049fSKim Phillips */ 7b359049fSKim Phillips 8cda13dd1SPaul Gortmaker/dts-v1/; 9cda13dd1SPaul Gortmaker 10b359049fSKim Phillips/ { 11b359049fSKim Phillips model = "MPC8313ERDB"; 12d71a1dc6SKumar Gala compatible = "MPC8313ERDB", "MPC831xRDB", "MPC83xxRDB"; 13b359049fSKim Phillips #address-cells = <1>; 14b359049fSKim Phillips #size-cells = <1>; 15b359049fSKim Phillips 16ea082fa9SKumar Gala aliases { 17ea082fa9SKumar Gala ethernet0 = &enet0; 18ea082fa9SKumar Gala ethernet1 = &enet1; 19ea082fa9SKumar Gala serial0 = &serial0; 20ea082fa9SKumar Gala serial1 = &serial1; 21ea082fa9SKumar Gala pci0 = &pci0; 22ea082fa9SKumar Gala }; 23ea082fa9SKumar Gala 24b359049fSKim Phillips cpus { 25b359049fSKim Phillips #address-cells = <1>; 26b359049fSKim Phillips #size-cells = <0>; 27b359049fSKim Phillips 28b359049fSKim Phillips PowerPC,8313@0 { 29b359049fSKim Phillips device_type = "cpu"; 30cda13dd1SPaul Gortmaker reg = <0x0>; 31cda13dd1SPaul Gortmaker d-cache-line-size = <32>; 32cda13dd1SPaul Gortmaker i-cache-line-size = <32>; 33cda13dd1SPaul Gortmaker d-cache-size = <16384>; 34cda13dd1SPaul Gortmaker i-cache-size = <16384>; 35b359049fSKim Phillips timebase-frequency = <0>; // from bootloader 36b359049fSKim Phillips bus-frequency = <0>; // from bootloader 37b359049fSKim Phillips clock-frequency = <0>; // from bootloader 38b359049fSKim Phillips }; 39b359049fSKim Phillips }; 40b359049fSKim Phillips 41b359049fSKim Phillips memory { 42b359049fSKim Phillips device_type = "memory"; 43cda13dd1SPaul Gortmaker reg = <0x00000000 0x08000000>; // 128MB at 0 44b359049fSKim Phillips }; 45b359049fSKim Phillips 46ff5ac760SScott Wood localbus@e0005000 { 47ff5ac760SScott Wood #address-cells = <2>; 48ff5ac760SScott Wood #size-cells = <1>; 49ff5ac760SScott Wood compatible = "fsl,mpc8313-elbc", "fsl,elbc", "simple-bus"; 50cda13dd1SPaul Gortmaker reg = <0xe0005000 0x1000>; 51cda13dd1SPaul Gortmaker interrupts = <77 0x8>; 52ff5ac760SScott Wood interrupt-parent = <&ipic>; 53ff5ac760SScott Wood 54ff5ac760SScott Wood // CS0 and CS1 are swapped when 55ff5ac760SScott Wood // booting from nand, but the 56ff5ac760SScott Wood // addresses are the same. 57cda13dd1SPaul Gortmaker ranges = <0x0 0x0 0xfe000000 0x00800000 58cda13dd1SPaul Gortmaker 0x1 0x0 0xe2800000 0x00008000 59cda13dd1SPaul Gortmaker 0x2 0x0 0xf0000000 0x00020000 60cda13dd1SPaul Gortmaker 0x3 0x0 0xfa000000 0x00008000>; 61ff5ac760SScott Wood 6212600e48SScott Wood flash@0,0 { 6312600e48SScott Wood #address-cells = <1>; 6412600e48SScott Wood #size-cells = <1>; 6512600e48SScott Wood compatible = "cfi-flash"; 66cda13dd1SPaul Gortmaker reg = <0x0 0x0 0x800000>; 6712600e48SScott Wood bank-width = <2>; 6812600e48SScott Wood device-width = <1>; 6912600e48SScott Wood }; 7012600e48SScott Wood 71ff5ac760SScott Wood nand@1,0 { 72ff5ac760SScott Wood #address-cells = <1>; 73ff5ac760SScott Wood #size-cells = <1>; 74ff5ac760SScott Wood compatible = "fsl,mpc8313-fcm-nand", 75ff5ac760SScott Wood "fsl,elbc-fcm-nand"; 76cda13dd1SPaul Gortmaker reg = <0x1 0x0 0x2000>; 77ff5ac760SScott Wood 78ff5ac760SScott Wood u-boot@0 { 79cda13dd1SPaul Gortmaker reg = <0x0 0x100000>; 80ff5ac760SScott Wood read-only; 81ff5ac760SScott Wood }; 82ff5ac760SScott Wood 83ff5ac760SScott Wood kernel@100000 { 84cda13dd1SPaul Gortmaker reg = <0x100000 0x300000>; 85ff5ac760SScott Wood }; 86ff5ac760SScott Wood 87ff5ac760SScott Wood fs@400000 { 88cda13dd1SPaul Gortmaker reg = <0x400000 0x1c00000>; 89ff5ac760SScott Wood }; 90ff5ac760SScott Wood }; 91ff5ac760SScott Wood }; 92ff5ac760SScott Wood 93b359049fSKim Phillips soc8313@e0000000 { 94b359049fSKim Phillips #address-cells = <1>; 95b359049fSKim Phillips #size-cells = <1>; 96b359049fSKim Phillips device_type = "soc"; 97ff5ac760SScott Wood compatible = "simple-bus"; 98cda13dd1SPaul Gortmaker ranges = <0x0 0xe0000000 0x00100000>; 99cda13dd1SPaul Gortmaker reg = <0xe0000000 0x00000200>; 100b359049fSKim Phillips bus-frequency = <0>; 101b359049fSKim Phillips 102b359049fSKim Phillips wdt@200 { 103b359049fSKim Phillips device_type = "watchdog"; 104b359049fSKim Phillips compatible = "mpc83xx_wdt"; 105cda13dd1SPaul Gortmaker reg = <0x200 0x100>; 106b359049fSKim Phillips }; 107b359049fSKim Phillips 10857436612SScott Wood sleep-nexus { 10957436612SScott Wood #address-cells = <1>; 11057436612SScott Wood #size-cells = <1>; 11157436612SScott Wood compatible = "simple-bus"; 11257436612SScott Wood sleep = <&pmc 0x03000000>; 11357436612SScott Wood ranges; 11457436612SScott Wood 115b359049fSKim Phillips i2c@3000 { 116ec9686c4SKumar Gala #address-cells = <1>; 117ec9686c4SKumar Gala #size-cells = <0>; 118ec9686c4SKumar Gala cell-index = <0>; 119b359049fSKim Phillips compatible = "fsl-i2c"; 120cda13dd1SPaul Gortmaker reg = <0x3000 0x100>; 121cda13dd1SPaul Gortmaker interrupts = <14 0x8>; 122d71a1dc6SKumar Gala interrupt-parent = <&ipic>; 123b359049fSKim Phillips dfsrr; 1245cfade18SKim Phillips rtc@68 { 1255cfade18SKim Phillips compatible = "dallas,ds1339"; 1265cfade18SKim Phillips reg = <0x68>; 1275cfade18SKim Phillips }; 128b359049fSKim Phillips }; 129b359049fSKim Phillips 13057436612SScott Wood crypto@30000 { 13157436612SScott Wood compatible = "fsl,sec2.2", "fsl,sec2.1", 13257436612SScott Wood "fsl,sec2.0"; 13357436612SScott Wood reg = <0x30000 0x10000>; 13457436612SScott Wood interrupts = <11 0x8>; 13557436612SScott Wood interrupt-parent = <&ipic>; 13657436612SScott Wood fsl,num-channels = <1>; 13757436612SScott Wood fsl,channel-fifo-len = <24>; 13857436612SScott Wood fsl,exec-units-mask = <0x4c>; 13957436612SScott Wood fsl,descriptor-types-mask = <0x0122003f>; 14057436612SScott Wood }; 14157436612SScott Wood }; 14257436612SScott Wood 143b359049fSKim Phillips i2c@3100 { 144ec9686c4SKumar Gala #address-cells = <1>; 145ec9686c4SKumar Gala #size-cells = <0>; 146ec9686c4SKumar Gala cell-index = <1>; 147b359049fSKim Phillips compatible = "fsl-i2c"; 148cda13dd1SPaul Gortmaker reg = <0x3100 0x100>; 149cda13dd1SPaul Gortmaker interrupts = <15 0x8>; 150d71a1dc6SKumar Gala interrupt-parent = <&ipic>; 151b359049fSKim Phillips dfsrr; 152b359049fSKim Phillips }; 153b359049fSKim Phillips 154b359049fSKim Phillips spi@7000 { 155f3a2b29dSAnton Vorontsov cell-index = <0>; 156f3a2b29dSAnton Vorontsov compatible = "fsl,spi"; 157cda13dd1SPaul Gortmaker reg = <0x7000 0x1000>; 158cda13dd1SPaul Gortmaker interrupts = <16 0x8>; 159d71a1dc6SKumar Gala interrupt-parent = <&ipic>; 16033799e33SPeter Korsgaard mode = "cpu"; 161b359049fSKim Phillips }; 162b359049fSKim Phillips 163b359049fSKim Phillips /* phy type (ULPI, UTMI, UTMI_WIDE, SERIAL) */ 164b359049fSKim Phillips usb@23000 { 165b359049fSKim Phillips compatible = "fsl-usb2-dr"; 166cda13dd1SPaul Gortmaker reg = <0x23000 0x1000>; 167b359049fSKim Phillips #address-cells = <1>; 168b359049fSKim Phillips #size-cells = <0>; 169d71a1dc6SKumar Gala interrupt-parent = <&ipic>; 170cda13dd1SPaul Gortmaker interrupts = <38 0x8>; 171b359049fSKim Phillips phy_type = "utmi_wide"; 17257436612SScott Wood sleep = <&pmc 0x00300000>; 173b359049fSKim Phillips }; 174b359049fSKim Phillips 175c78275f3SRichard Cochran ptp_clock@24E00 { 176c78275f3SRichard Cochran compatible = "fsl,etsec-ptp"; 177c78275f3SRichard Cochran reg = <0x24E00 0xB0>; 178c78275f3SRichard Cochran interrupts = <12 0x8 13 0x8>; 179c78275f3SRichard Cochran interrupt-parent = < &ipic >; 180c78275f3SRichard Cochran fsl,tclk-period = <10>; 181c78275f3SRichard Cochran fsl,tmr-prsc = <100>; 182c78275f3SRichard Cochran fsl,tmr-add = <0x999999A4>; 183c78275f3SRichard Cochran fsl,tmr-fiper1 = <0x3B9AC9F6>; 184c78275f3SRichard Cochran fsl,tmr-fiper2 = <0x00018696>; 185c78275f3SRichard Cochran fsl,max-adj = <659999998>; 186c78275f3SRichard Cochran }; 187c78275f3SRichard Cochran 18857436612SScott Wood enet0: ethernet@24000 { 18957436612SScott Wood #address-cells = <1>; 19057436612SScott Wood #size-cells = <1>; 19157436612SScott Wood sleep = <&pmc 0x20000000>; 192a6ecb7e9SKumar Gala ranges = <0x0 0x24000 0x1000>; 19357436612SScott Wood 19457436612SScott Wood cell-index = <0>; 19557436612SScott Wood device_type = "network"; 19657436612SScott Wood model = "eTSEC"; 197344b6287SLi Yang compatible = "gianfar"; 19857436612SScott Wood reg = <0x24000 0x1000>; 19957436612SScott Wood local-mac-address = [ 00 00 00 00 00 00 ]; 20057436612SScott Wood interrupts = <37 0x8 36 0x8 35 0x8>; 20157436612SScott Wood interrupt-parent = <&ipic>; 202b31a1d8bSAndy Fleming tbi-handle = < &tbi0 >; 203e85477f5SAnton Vorontsov /* Vitesse 7385 isn't on the MDIO bus */ 204e85477f5SAnton Vorontsov fixed-link = <1 1 1000 0 0>; 20557436612SScott Wood fsl,magic-packet; 20657436612SScott Wood 207a6ecb7e9SKumar Gala mdio@520 { 208b359049fSKim Phillips #address-cells = <1>; 209b359049fSKim Phillips #size-cells = <0>; 210e77b28ebSKumar Gala compatible = "fsl,gianfar-mdio"; 211a6ecb7e9SKumar Gala reg = <0x520 0x20>; 212d71a1dc6SKumar Gala phy4: ethernet-phy@4 { 213d71a1dc6SKumar Gala interrupt-parent = <&ipic>; 214cda13dd1SPaul Gortmaker interrupts = <20 0x8>; 215cda13dd1SPaul Gortmaker reg = <0x4>; 216b359049fSKim Phillips }; 217b31a1d8bSAndy Fleming tbi0: tbi-phy@11 { 218b31a1d8bSAndy Fleming reg = <0x11>; 219b31a1d8bSAndy Fleming device_type = "tbi-phy"; 220b31a1d8bSAndy Fleming }; 221b359049fSKim Phillips }; 222b359049fSKim Phillips }; 223b359049fSKim Phillips 224e77b28ebSKumar Gala enet1: ethernet@25000 { 2251f0d4d16SAnton Vorontsov #address-cells = <1>; 2261f0d4d16SAnton Vorontsov #size-cells = <1>; 227e77b28ebSKumar Gala cell-index = <1>; 228b359049fSKim Phillips device_type = "network"; 229b359049fSKim Phillips model = "eTSEC"; 230b359049fSKim Phillips compatible = "gianfar"; 231cda13dd1SPaul Gortmaker reg = <0x25000 0x1000>; 232a6ecb7e9SKumar Gala ranges = <0x0 0x25000 0x1000>; 233b359049fSKim Phillips local-mac-address = [ 00 00 00 00 00 00 ]; 234cda13dd1SPaul Gortmaker interrupts = <34 0x8 33 0x8 32 0x8>; 235d71a1dc6SKumar Gala interrupt-parent = <&ipic>; 236b31a1d8bSAndy Fleming tbi-handle = < &tbi1 >; 237d71a1dc6SKumar Gala phy-handle = < &phy4 >; 23857436612SScott Wood sleep = <&pmc 0x10000000>; 23957436612SScott Wood fsl,magic-packet; 240b31a1d8bSAndy Fleming 241a6ecb7e9SKumar Gala mdio@520 { 242b31a1d8bSAndy Fleming #address-cells = <1>; 243b31a1d8bSAndy Fleming #size-cells = <0>; 244b31a1d8bSAndy Fleming compatible = "fsl,gianfar-tbi"; 245a6ecb7e9SKumar Gala reg = <0x520 0x20>; 246b31a1d8bSAndy Fleming 247b31a1d8bSAndy Fleming tbi1: tbi-phy@11 { 248b31a1d8bSAndy Fleming reg = <0x11>; 249b31a1d8bSAndy Fleming device_type = "tbi-phy"; 250b31a1d8bSAndy Fleming }; 251b31a1d8bSAndy Fleming }; 252b31a1d8bSAndy Fleming 253b31a1d8bSAndy Fleming 254b359049fSKim Phillips }; 255b359049fSKim Phillips 256ea082fa9SKumar Gala serial0: serial@4500 { 257ea082fa9SKumar Gala cell-index = <0>; 258b359049fSKim Phillips device_type = "serial"; 259f706bed1SKumar Gala compatible = "fsl,ns16550", "ns16550"; 260cda13dd1SPaul Gortmaker reg = <0x4500 0x100>; 261b359049fSKim Phillips clock-frequency = <0>; 262cda13dd1SPaul Gortmaker interrupts = <9 0x8>; 263d71a1dc6SKumar Gala interrupt-parent = <&ipic>; 264b359049fSKim Phillips }; 265b359049fSKim Phillips 266ea082fa9SKumar Gala serial1: serial@4600 { 267ea082fa9SKumar Gala cell-index = <1>; 268b359049fSKim Phillips device_type = "serial"; 269f706bed1SKumar Gala compatible = "fsl,ns16550", "ns16550"; 270cda13dd1SPaul Gortmaker reg = <0x4600 0x100>; 271b359049fSKim Phillips clock-frequency = <0>; 272cda13dd1SPaul Gortmaker interrupts = <10 0x8>; 273d71a1dc6SKumar Gala interrupt-parent = <&ipic>; 274b359049fSKim Phillips }; 275b359049fSKim Phillips 276b359049fSKim Phillips /* IPIC 277b359049fSKim Phillips * interrupts cell = <intr #, sense> 278b359049fSKim Phillips * sense values match linux IORESOURCE_IRQ_* defines: 279b359049fSKim Phillips * sense == 8: Level, low assertion 280b359049fSKim Phillips * sense == 2: Edge, high-to-low change 281b359049fSKim Phillips */ 282d71a1dc6SKumar Gala ipic: pic@700 { 283b359049fSKim Phillips interrupt-controller; 284b359049fSKim Phillips #address-cells = <0>; 285b359049fSKim Phillips #interrupt-cells = <2>; 286cda13dd1SPaul Gortmaker reg = <0x700 0x100>; 287b359049fSKim Phillips device_type = "ipic"; 288b359049fSKim Phillips }; 28957436612SScott Wood 29057436612SScott Wood pmc: power@b00 { 29157436612SScott Wood compatible = "fsl,mpc8313-pmc", "fsl,mpc8349-pmc"; 29257436612SScott Wood reg = <0xb00 0x100 0xa00 0x100>; 29357436612SScott Wood interrupts = <80 8>; 29457436612SScott Wood interrupt-parent = <&ipic>; 29557436612SScott Wood fsl,mpc8313-wakeup-timer = <>m1>; 29657436612SScott Wood 29757436612SScott Wood /* Remove this (or change to "okay") if you have 29857436612SScott Wood * a REVA3 or later board, if you apply one of the 29957436612SScott Wood * workarounds listed in section 8.5 of the board 30057436612SScott Wood * manual, or if you are adapting this device tree 30157436612SScott Wood * to a different board. 30257436612SScott Wood */ 30357436612SScott Wood status = "fail"; 304b359049fSKim Phillips }; 3051b3c5cdaSKumar Gala 30657436612SScott Wood gtm1: timer@500 { 30757436612SScott Wood compatible = "fsl,mpc8313-gtm", "fsl,gtm"; 30857436612SScott Wood reg = <0x500 0x100>; 30957436612SScott Wood interrupts = <90 8 78 8 84 8 72 8>; 31057436612SScott Wood interrupt-parent = <&ipic>; 31157436612SScott Wood }; 31257436612SScott Wood 31357436612SScott Wood timer@600 { 31457436612SScott Wood compatible = "fsl,mpc8313-gtm", "fsl,gtm"; 31557436612SScott Wood reg = <0x600 0x100>; 31657436612SScott Wood interrupts = <91 8 79 8 85 8 73 8>; 31757436612SScott Wood interrupt-parent = <&ipic>; 31857436612SScott Wood }; 31957436612SScott Wood }; 32057436612SScott Wood 32157436612SScott Wood sleep-nexus { 32257436612SScott Wood #address-cells = <1>; 32357436612SScott Wood #size-cells = <1>; 32457436612SScott Wood compatible = "simple-bus"; 32557436612SScott Wood sleep = <&pmc 0x00010000>; 32657436612SScott Wood ranges; 32757436612SScott Wood 328ea082fa9SKumar Gala pci0: pci@e0008500 { 329ea082fa9SKumar Gala cell-index = <1>; 330cda13dd1SPaul Gortmaker interrupt-map-mask = <0xf800 0x0 0x0 0x7>; 3311b3c5cdaSKumar Gala interrupt-map = < 3321b3c5cdaSKumar Gala /* IDSEL 0x0E -mini PCI */ 333cda13dd1SPaul Gortmaker 0x7000 0x0 0x0 0x1 &ipic 18 0x8 334cda13dd1SPaul Gortmaker 0x7000 0x0 0x0 0x2 &ipic 18 0x8 335cda13dd1SPaul Gortmaker 0x7000 0x0 0x0 0x3 &ipic 18 0x8 336cda13dd1SPaul Gortmaker 0x7000 0x0 0x0 0x4 &ipic 18 0x8 3371b3c5cdaSKumar Gala 3381b3c5cdaSKumar Gala /* IDSEL 0x0F - PCI slot */ 339cda13dd1SPaul Gortmaker 0x7800 0x0 0x0 0x1 &ipic 17 0x8 340cda13dd1SPaul Gortmaker 0x7800 0x0 0x0 0x2 &ipic 18 0x8 341cda13dd1SPaul Gortmaker 0x7800 0x0 0x0 0x3 &ipic 17 0x8 342cda13dd1SPaul Gortmaker 0x7800 0x0 0x0 0x4 &ipic 18 0x8>; 3431b3c5cdaSKumar Gala interrupt-parent = <&ipic>; 344cda13dd1SPaul Gortmaker interrupts = <66 0x8>; 345cda13dd1SPaul Gortmaker bus-range = <0x0 0x0>; 346cda13dd1SPaul Gortmaker ranges = <0x02000000 0x0 0x90000000 0x90000000 0x0 0x10000000 347cda13dd1SPaul Gortmaker 0x42000000 0x0 0x80000000 0x80000000 0x0 0x10000000 348cda13dd1SPaul Gortmaker 0x01000000 0x0 0x00000000 0xe2000000 0x0 0x00100000>; 349cda13dd1SPaul Gortmaker clock-frequency = <66666666>; 3501b3c5cdaSKumar Gala #interrupt-cells = <1>; 3511b3c5cdaSKumar Gala #size-cells = <2>; 3521b3c5cdaSKumar Gala #address-cells = <3>; 3535b70a097SJohn Rigby reg = <0xe0008500 0x100 /* internal registers */ 3545b70a097SJohn Rigby 0xe0008300 0x8>; /* config space access registers */ 3551b3c5cdaSKumar Gala compatible = "fsl,mpc8349-pci"; 3561b3c5cdaSKumar Gala device_type = "pci"; 3571b3c5cdaSKumar Gala }; 35857436612SScott Wood 35957436612SScott Wood dma@82a8 { 36057436612SScott Wood #address-cells = <1>; 36157436612SScott Wood #size-cells = <1>; 36257436612SScott Wood compatible = "fsl,mpc8313-dma", "fsl,elo-dma"; 36357436612SScott Wood reg = <0xe00082a8 4>; 36457436612SScott Wood ranges = <0 0xe0008100 0x1a8>; 36557436612SScott Wood interrupt-parent = <&ipic>; 36657436612SScott Wood interrupts = <71 8>; 36757436612SScott Wood 36857436612SScott Wood dma-channel@0 { 36957436612SScott Wood compatible = "fsl,mpc8313-dma-channel", 37057436612SScott Wood "fsl,elo-dma-channel"; 37157436612SScott Wood reg = <0 0x28>; 37257436612SScott Wood interrupt-parent = <&ipic>; 37357436612SScott Wood interrupts = <71 8>; 37457436612SScott Wood cell-index = <0>; 37557436612SScott Wood }; 37657436612SScott Wood 37757436612SScott Wood dma-channel@80 { 37857436612SScott Wood compatible = "fsl,mpc8313-dma-channel", 37957436612SScott Wood "fsl,elo-dma-channel"; 38057436612SScott Wood reg = <0x80 0x28>; 38157436612SScott Wood interrupt-parent = <&ipic>; 38257436612SScott Wood interrupts = <71 8>; 38357436612SScott Wood cell-index = <1>; 38457436612SScott Wood }; 38557436612SScott Wood 38657436612SScott Wood dma-channel@100 { 38757436612SScott Wood compatible = "fsl,mpc8313-dma-channel", 38857436612SScott Wood "fsl,elo-dma-channel"; 38957436612SScott Wood reg = <0x100 0x28>; 39057436612SScott Wood interrupt-parent = <&ipic>; 39157436612SScott Wood interrupts = <71 8>; 39257436612SScott Wood cell-index = <2>; 39357436612SScott Wood }; 39457436612SScott Wood 39557436612SScott Wood dma-channel@180 { 39657436612SScott Wood compatible = "fsl,mpc8313-dma-channel", 39757436612SScott Wood "fsl,elo-dma-channel"; 39857436612SScott Wood reg = <0x180 0x28>; 39957436612SScott Wood interrupt-parent = <&ipic>; 40057436612SScott Wood interrupts = <71 8>; 40157436612SScott Wood cell-index = <3>; 40257436612SScott Wood }; 40357436612SScott Wood }; 40457436612SScott Wood }; 405b359049fSKim Phillips}; 406