159d13f9dSBryan O'Donoghue/* 259d13f9dSBryan O'Donoghue * Analogue & Micro ASP8347 Device Tree Source 359d13f9dSBryan O'Donoghue * 459d13f9dSBryan O'Donoghue * Copyright 2008 Codehermit 559d13f9dSBryan O'Donoghue * 659d13f9dSBryan O'Donoghue * This program is free software; you can redistribute it and/or modify it 759d13f9dSBryan O'Donoghue * under the terms of the GNU General Public License as published by the 859d13f9dSBryan O'Donoghue * Free Software Foundation; either version 2 of the License, or (at your 959d13f9dSBryan O'Donoghue * option) any later version. 1059d13f9dSBryan O'Donoghue */ 1159d13f9dSBryan O'Donoghue 1259d13f9dSBryan O'Donoghue/dts-v1/; 1359d13f9dSBryan O'Donoghue 1459d13f9dSBryan O'Donoghue/ { 1559d13f9dSBryan O'Donoghue model = "Analogue & Micro ASP8347E"; 1659d13f9dSBryan O'Donoghue compatible = "analogue-and-micro,asp8347e"; 1759d13f9dSBryan O'Donoghue #address-cells = <1>; 1859d13f9dSBryan O'Donoghue #size-cells = <1>; 1959d13f9dSBryan O'Donoghue 2059d13f9dSBryan O'Donoghue aliases { 2159d13f9dSBryan O'Donoghue ethernet0 = &enet0; 2259d13f9dSBryan O'Donoghue ethernet1 = &enet1; 2359d13f9dSBryan O'Donoghue serial0 = &serial0; 2459d13f9dSBryan O'Donoghue serial1 = &serial1; 2559d13f9dSBryan O'Donoghue }; 2659d13f9dSBryan O'Donoghue 2759d13f9dSBryan O'Donoghue cpus { 2859d13f9dSBryan O'Donoghue #address-cells = <1>; 2959d13f9dSBryan O'Donoghue #size-cells = <0>; 3059d13f9dSBryan O'Donoghue 3159d13f9dSBryan O'Donoghue PowerPC,8347@0 { 3259d13f9dSBryan O'Donoghue device_type = "cpu"; 3359d13f9dSBryan O'Donoghue reg = <0x0>; 3459d13f9dSBryan O'Donoghue d-cache-line-size = <32>; 3559d13f9dSBryan O'Donoghue i-cache-line-size = <32>; 3659d13f9dSBryan O'Donoghue d-cache-size = <32768>; 3759d13f9dSBryan O'Donoghue i-cache-size = <32768>; 3859d13f9dSBryan O'Donoghue timebase-frequency = <0>; // from bootloader 3959d13f9dSBryan O'Donoghue bus-frequency = <0>; // from bootloader 4059d13f9dSBryan O'Donoghue clock-frequency = <0>; // from bootloader 4159d13f9dSBryan O'Donoghue }; 4259d13f9dSBryan O'Donoghue }; 4359d13f9dSBryan O'Donoghue 4459d13f9dSBryan O'Donoghue memory { 4559d13f9dSBryan O'Donoghue device_type = "memory"; 4659d13f9dSBryan O'Donoghue reg = <0x00000000 0x8000000>; // 128MB at 0 4759d13f9dSBryan O'Donoghue }; 4859d13f9dSBryan O'Donoghue 4959d13f9dSBryan O'Donoghue localbus@ff005000 { 5059d13f9dSBryan O'Donoghue #address-cells = <2>; 5159d13f9dSBryan O'Donoghue #size-cells = <1>; 5259d13f9dSBryan O'Donoghue compatible = "fsl,mpc8347e-localbus", 5359d13f9dSBryan O'Donoghue "fsl,pq2pro-localbus", 5459d13f9dSBryan O'Donoghue "simple-bus"; 5559d13f9dSBryan O'Donoghue reg = <0xff005000 0x1000>; 5659d13f9dSBryan O'Donoghue interrupts = <77 0x8>; 5759d13f9dSBryan O'Donoghue interrupt-parent = <&ipic>; 5859d13f9dSBryan O'Donoghue 5959d13f9dSBryan O'Donoghue ranges = < 6059d13f9dSBryan O'Donoghue 0 0 0xf0000000 0x02000000 6159d13f9dSBryan O'Donoghue >; 6259d13f9dSBryan O'Donoghue 6359d13f9dSBryan O'Donoghue flash@0,0 { 6459d13f9dSBryan O'Donoghue compatible = "cfi-flash"; 6559d13f9dSBryan O'Donoghue reg = <0 0 0x02000000>; 6659d13f9dSBryan O'Donoghue bank-width = <2>; 6759d13f9dSBryan O'Donoghue device-width = <2>; 6859d13f9dSBryan O'Donoghue }; 6959d13f9dSBryan O'Donoghue }; 7059d13f9dSBryan O'Donoghue 7159d13f9dSBryan O'Donoghue soc8349@ff000000 { 7259d13f9dSBryan O'Donoghue #address-cells = <1>; 7359d13f9dSBryan O'Donoghue #size-cells = <1>; 7459d13f9dSBryan O'Donoghue device_type = "soc"; 7559d13f9dSBryan O'Donoghue ranges = <0x0 0xff000000 0x00100000>; 7659d13f9dSBryan O'Donoghue reg = <0xff000000 0x00000200>; 7759d13f9dSBryan O'Donoghue bus-frequency = <0>; 7859d13f9dSBryan O'Donoghue 7959d13f9dSBryan O'Donoghue wdt@200 { 8059d13f9dSBryan O'Donoghue device_type = "watchdog"; 8159d13f9dSBryan O'Donoghue compatible = "mpc83xx_wdt"; 8259d13f9dSBryan O'Donoghue reg = <0x200 0x100>; 8359d13f9dSBryan O'Donoghue }; 8459d13f9dSBryan O'Donoghue 8559d13f9dSBryan O'Donoghue i2c@3000 { 8659d13f9dSBryan O'Donoghue #address-cells = <1>; 8759d13f9dSBryan O'Donoghue #size-cells = <0>; 8859d13f9dSBryan O'Donoghue cell-index = <0>; 8959d13f9dSBryan O'Donoghue compatible = "fsl-i2c"; 9059d13f9dSBryan O'Donoghue reg = <0x3000 0x100>; 9159d13f9dSBryan O'Donoghue interrupts = <14 0x8>; 9259d13f9dSBryan O'Donoghue interrupt-parent = <&ipic>; 9359d13f9dSBryan O'Donoghue dfsrr; 9459d13f9dSBryan O'Donoghue 9559d13f9dSBryan O'Donoghue rtc@68 { 9659d13f9dSBryan O'Donoghue compatible = "dallas,ds1374"; 9759d13f9dSBryan O'Donoghue reg = <0x68>; 9859d13f9dSBryan O'Donoghue }; 9959d13f9dSBryan O'Donoghue }; 10059d13f9dSBryan O'Donoghue 10159d13f9dSBryan O'Donoghue i2c@3100 { 10259d13f9dSBryan O'Donoghue #address-cells = <1>; 10359d13f9dSBryan O'Donoghue #size-cells = <0>; 10459d13f9dSBryan O'Donoghue cell-index = <1>; 10559d13f9dSBryan O'Donoghue compatible = "fsl-i2c"; 10659d13f9dSBryan O'Donoghue reg = <0x3100 0x100>; 10759d13f9dSBryan O'Donoghue interrupts = <15 0x8>; 10859d13f9dSBryan O'Donoghue interrupt-parent = <&ipic>; 10959d13f9dSBryan O'Donoghue dfsrr; 11059d13f9dSBryan O'Donoghue }; 11159d13f9dSBryan O'Donoghue 11259d13f9dSBryan O'Donoghue spi@7000 { 11359d13f9dSBryan O'Donoghue cell-index = <0>; 11459d13f9dSBryan O'Donoghue compatible = "fsl,spi"; 11559d13f9dSBryan O'Donoghue reg = <0x7000 0x1000>; 11659d13f9dSBryan O'Donoghue interrupts = <16 0x8>; 11759d13f9dSBryan O'Donoghue interrupt-parent = <&ipic>; 11859d13f9dSBryan O'Donoghue mode = "cpu"; 11959d13f9dSBryan O'Donoghue }; 12059d13f9dSBryan O'Donoghue 12159d13f9dSBryan O'Donoghue /* phy type (ULPI or SERIAL) are only types supported for MPH */ 12259d13f9dSBryan O'Donoghue /* port = 0 or 1 */ 12359d13f9dSBryan O'Donoghue usb@22000 { 12459d13f9dSBryan O'Donoghue compatible = "fsl-usb2-mph"; 12559d13f9dSBryan O'Donoghue reg = <0x22000 0x1000>; 12659d13f9dSBryan O'Donoghue #address-cells = <1>; 12759d13f9dSBryan O'Donoghue #size-cells = <0>; 12859d13f9dSBryan O'Donoghue interrupt-parent = <&ipic>; 12959d13f9dSBryan O'Donoghue interrupts = <39 0x8>; 13059d13f9dSBryan O'Donoghue phy_type = "ulpi"; 13159d13f9dSBryan O'Donoghue port1; 13259d13f9dSBryan O'Donoghue }; 13359d13f9dSBryan O'Donoghue /* phy type (ULPI, UTMI, UTMI_WIDE, SERIAL) */ 13459d13f9dSBryan O'Donoghue usb@23000 { 13559d13f9dSBryan O'Donoghue compatible = "fsl-usb2-dr"; 13659d13f9dSBryan O'Donoghue reg = <0x23000 0x1000>; 13759d13f9dSBryan O'Donoghue #address-cells = <1>; 13859d13f9dSBryan O'Donoghue #size-cells = <0>; 13959d13f9dSBryan O'Donoghue interrupt-parent = <&ipic>; 14059d13f9dSBryan O'Donoghue interrupts = <38 0x8>; 14159d13f9dSBryan O'Donoghue dr_mode = "otg"; 14259d13f9dSBryan O'Donoghue phy_type = "ulpi"; 14359d13f9dSBryan O'Donoghue }; 14459d13f9dSBryan O'Donoghue 14559d13f9dSBryan O'Donoghue mdio@24520 { 14659d13f9dSBryan O'Donoghue #address-cells = <1>; 14759d13f9dSBryan O'Donoghue #size-cells = <0>; 14859d13f9dSBryan O'Donoghue compatible = "fsl,gianfar-mdio"; 14959d13f9dSBryan O'Donoghue reg = <0x24520 0x20>; 15059d13f9dSBryan O'Donoghue 15159d13f9dSBryan O'Donoghue phy0: ethernet-phy@0 { 15259d13f9dSBryan O'Donoghue interrupt-parent = <&ipic>; 15359d13f9dSBryan O'Donoghue interrupts = <17 0x8>; 15459d13f9dSBryan O'Donoghue reg = <0x1>; 15559d13f9dSBryan O'Donoghue device_type = "ethernet-phy"; 15659d13f9dSBryan O'Donoghue }; 15759d13f9dSBryan O'Donoghue phy1: ethernet-phy@1 { 15859d13f9dSBryan O'Donoghue interrupt-parent = <&ipic>; 15959d13f9dSBryan O'Donoghue interrupts = <18 0x8>; 16059d13f9dSBryan O'Donoghue reg = <0x2>; 16159d13f9dSBryan O'Donoghue device_type = "ethernet-phy"; 16259d13f9dSBryan O'Donoghue }; 16359d13f9dSBryan O'Donoghue }; 16459d13f9dSBryan O'Donoghue 16559d13f9dSBryan O'Donoghue enet0: ethernet@24000 { 16659d13f9dSBryan O'Donoghue cell-index = <0>; 16759d13f9dSBryan O'Donoghue device_type = "network"; 16859d13f9dSBryan O'Donoghue model = "TSEC"; 16959d13f9dSBryan O'Donoghue compatible = "gianfar"; 17059d13f9dSBryan O'Donoghue reg = <0x24000 0x1000>; 17159d13f9dSBryan O'Donoghue local-mac-address = [ 00 08 e5 11 32 33 ]; 17259d13f9dSBryan O'Donoghue interrupts = <32 0x8 33 0x8 34 0x8>; 17359d13f9dSBryan O'Donoghue interrupt-parent = <&ipic>; 17459d13f9dSBryan O'Donoghue phy-handle = <&phy0>; 17559d13f9dSBryan O'Donoghue linux,network-index = <0>; 17659d13f9dSBryan O'Donoghue }; 17759d13f9dSBryan O'Donoghue 17859d13f9dSBryan O'Donoghue enet1: ethernet@25000 { 17959d13f9dSBryan O'Donoghue cell-index = <1>; 18059d13f9dSBryan O'Donoghue device_type = "network"; 18159d13f9dSBryan O'Donoghue model = "TSEC"; 18259d13f9dSBryan O'Donoghue compatible = "gianfar"; 18359d13f9dSBryan O'Donoghue reg = <0x25000 0x1000>; 18459d13f9dSBryan O'Donoghue local-mac-address = [ 00 08 e5 11 32 34 ]; 18559d13f9dSBryan O'Donoghue interrupts = <35 0x8 36 0x8 37 0x8>; 18659d13f9dSBryan O'Donoghue interrupt-parent = <&ipic>; 18759d13f9dSBryan O'Donoghue phy-handle = <&phy1>; 18859d13f9dSBryan O'Donoghue linux,network-index = <1>; 18959d13f9dSBryan O'Donoghue }; 19059d13f9dSBryan O'Donoghue 19159d13f9dSBryan O'Donoghue serial0: serial@4500 { 19259d13f9dSBryan O'Donoghue cell-index = <0>; 19359d13f9dSBryan O'Donoghue device_type = "serial"; 19459d13f9dSBryan O'Donoghue compatible = "ns16550"; 19559d13f9dSBryan O'Donoghue reg = <0x4500 0x100>; 19659d13f9dSBryan O'Donoghue clock-frequency = <400000000>; 19759d13f9dSBryan O'Donoghue interrupts = <9 0x8>; 19859d13f9dSBryan O'Donoghue interrupt-parent = <&ipic>; 19959d13f9dSBryan O'Donoghue }; 20059d13f9dSBryan O'Donoghue 20159d13f9dSBryan O'Donoghue serial1: serial@4600 { 20259d13f9dSBryan O'Donoghue cell-index = <1>; 20359d13f9dSBryan O'Donoghue device_type = "serial"; 20459d13f9dSBryan O'Donoghue compatible = "ns16550"; 20559d13f9dSBryan O'Donoghue reg = <0x4600 0x100>; 20659d13f9dSBryan O'Donoghue clock-frequency = <400000000>; 20759d13f9dSBryan O'Donoghue interrupts = <10 0x8>; 20859d13f9dSBryan O'Donoghue interrupt-parent = <&ipic>; 20959d13f9dSBryan O'Donoghue }; 21059d13f9dSBryan O'Donoghue 21159d13f9dSBryan O'Donoghue /* May need to remove if on a part without crypto engine */ 21259d13f9dSBryan O'Donoghue crypto@30000 { 21359d13f9dSBryan O'Donoghue device_type = "crypto"; 21459d13f9dSBryan O'Donoghue model = "SEC2"; 21559d13f9dSBryan O'Donoghue compatible = "talitos"; 21659d13f9dSBryan O'Donoghue reg = <0x30000 0x10000>; 21759d13f9dSBryan O'Donoghue interrupts = <11 0x8>; 21859d13f9dSBryan O'Donoghue interrupt-parent = <&ipic>; 21959d13f9dSBryan O'Donoghue num-channels = <4>; 22059d13f9dSBryan O'Donoghue channel-fifo-len = <24>; 22159d13f9dSBryan O'Donoghue exec-units-mask = <0x0000007e>; 22259d13f9dSBryan O'Donoghue /* desc mask is for rev2.0, 22359d13f9dSBryan O'Donoghue * we need runtime fixup for >2.0 */ 22459d13f9dSBryan O'Donoghue descriptor-types-mask = <0x01010ebf>; 22559d13f9dSBryan O'Donoghue }; 22659d13f9dSBryan O'Donoghue 22759d13f9dSBryan O'Donoghue /* IPIC 22859d13f9dSBryan O'Donoghue * interrupts cell = <intr #, sense> 22959d13f9dSBryan O'Donoghue * sense values match linux IORESOURCE_IRQ_* defines: 23059d13f9dSBryan O'Donoghue * sense == 8: Level, low assertion 23159d13f9dSBryan O'Donoghue * sense == 2: Edge, high-to-low change 23259d13f9dSBryan O'Donoghue */ 23359d13f9dSBryan O'Donoghue ipic: pic@700 { 23459d13f9dSBryan O'Donoghue interrupt-controller; 23559d13f9dSBryan O'Donoghue #address-cells = <0>; 23659d13f9dSBryan O'Donoghue #interrupt-cells = <2>; 23759d13f9dSBryan O'Donoghue reg = <0x700 0x100>; 23859d13f9dSBryan O'Donoghue device_type = "ipic"; 23959d13f9dSBryan O'Donoghue }; 24059d13f9dSBryan O'Donoghue }; 24159d13f9dSBryan O'Donoghue 24259d13f9dSBryan O'Donoghue chosen { 24359d13f9dSBryan O'Donoghue bootargs = "console=ttyS0,38400 root=/dev/mtdblock3 rootfstype=jffs2"; 24459d13f9dSBryan O'Donoghue linux,stdout-path = &serial0; 24559d13f9dSBryan O'Donoghue }; 24659d13f9dSBryan O'Donoghue 24759d13f9dSBryan O'Donoghue}; 248