dts file for MPC8343EA
Hi
We have an MPC8343EA based custom board.
I am not able to get Linux up and running in this. No serial output to debug further.
U-boot shows correct 'bdinfo' & 'clocks' output.
inux hangs at machine_probe.
I doubt the DTS file in Linux. anyone has DTS file for MPC8343??
u-boot version - 1.3.2
linux-2.6.27
The board base files are drived from MPC8349Imtx-GP since we have the reference board in which we tested the linux image.
My current DTS file
/dts-v1/;
/ {
model = "MPC8343";
compatible = "MPC8349EMDS", "MPC834xMDS", "MPC83xxMDS";
linux,phandle = <0x100>;
#size-cells = <0x1>;
#address-cells = <0x1>;
aliases {
ethernet0 = &enet0;
ethernet1 = &enet1;
serial0 = &serial0;
serial1 = &serial1;
pci0 = &pci0;
pci1 = &pci1;
};
cpus {
linux,phandle = <0x200>;
#cpus = <0x1>;
#address-cells = <1>;
#size-cells = <0>; PowerPC,8343EA@0 {
device_type = "cpu";
reg = <0x0>;
d-cache-line-size = <20>;
i-cache-line-size = <20>;
d-cache-size = <8000>;
i-cache-size = <8000>;
timebase-frequency = <0>; // from bootloader
bus-frequency = <0>; // from bootloader
clock-frequency = <0>; // from bootloader
32-bit;
};
};
memory {
device_type = "memory";
reg = <0x00000000 0x10000000>; // 256MB at 0
};
bcsr@e2400000 {
device_type = "board-control";
reg = <0xe2400000 0x8000>;
};
soc8343@e0000000 {
bus-frequency = <0x1>;
reg = <0xe0000000 0x200>;
ranges = <0x0 0xe0000000 0x100000>;
device_type = "soc";
#interrupt-cells = <0x2>;
#size-cells = <0x1>;
#address-cells = <0x1>;
wdt@200 {
device_type = "watchdog";
compatible = "mpc83xx_wdt";
reg = <0x200 0x100>;
}; i2c@3000 {
#address-cells = <1>;
#size-cells = <0>;
cell-index = <0>;
compatible = "fsl-i2c";
reg = <0x3000 0x100>;
interrupts = <14 0x8>;
interrupt-parent = <&ipic>;
dfsrr;
rtc@68 {
compatible = "dallas,ds1374";
reg = <0x68>;
};
};
i2c@3100 {
#address-cells = <1>;
#size-cells = <0>;
cell-index = <1>;
compatible = "fsl-i2c";
reg = <0x3100 0x100>;
interrupts = <15 0x8>;
interrupt-parent = <&ipic>;
dfsrr;
};
spi@7000 {
cell-index = <0>;
compatible = "fsl,spi";
reg = <0x7000 0x1000>;
interrupts = <16 0x8>;
interrupt-parent = <&ipic>;
mode = "cpu";
}; dma@82a8 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "fsl,mpc8349-dma", "fsl,elo-dma";
reg = <0x82a8 4>;
ranges = <0 0x8100 0x1a8>;
interrupt-parent = <&ipic>;
interrupts = <71 8>;
cell-index = <0>;
dma-channel@0 {
compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel";
reg = <0 0x80>;
interrupt-parent = <&ipic>;
interrupts = <71 8>;
};
dma-channel@80 {
compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel";
reg = <0x80 0x80>;
interrupt-parent = <&ipic>;
interrupts = <71 8>;
};
dma-channel@100 {
compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel";
reg = <0x100 0x80>;
interrupt-parent = <&ipic>;
interrupts = <71 8>;
};
dma-channel@180 {
compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel";
reg = <0x180 0x28>;
interrupt-parent = <&ipic>;
interrupts = <71 8>;
};
};
/* phy type (ULPI or SERIAL) are only types supported for MPH */
/* port = 0 or 1 */
usb@22000 {
compatible = "fsl-usb2-mph";
reg = <0x22000 0x1000>;
#address-cells = <1>;
#size-cells = <0>;
interrupt-parent = <&ipic>;
interrupts = <39 0x8>;
phy_type = "ulpi";
port1;
};
/* phy type (ULPI, UTMI, UTMI_WIDE, SERIAL) */
usb@23000 {
compatible = "fsl-usb2-dr";
reg = <0x23000 0x1000>;
#address-cells = <1>;
#size-cells = <0>;
interrupt-parent = <&ipic>;
interrupts = <38 0x8>;
dr_mode = "otg";
phy_type = "ulpi";
};
mdio@24520 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "fsl,gianfar-mdio";
reg = <0x24520 0x20>;
phy0: ethernet-phy@0 {
interrupt-parent = <&ipic>;
interrupts = <17 0x8>;
reg = <0x0>;
device_type = "ethernet-phy";
};
phy1: ethernet-phy@1 {
interrupt-parent = <&ipic>;
interrupts = <18 0x8>;
reg = <0x1>;
device_type = "ethernet-phy";
};
enet0: ethernet@24000 {
cell-index = <0>;
device_type = "network";
model = "TSEC";
compatible = "gianfar";
reg = <0x24000 0x1000>;
local-mac-address = [ 00 00 00 00 00 00 ];
interrupts = <32 0x8 33 0x8 34 0x8>;
interrupt-parent = <&ipic>;
phy-handle = <&phy0>;
linux,network-index = <0>;
};
enet1: ethernet@25000 {
cell-index = <1>;
device_type = "network";
model = "TSEC";
compatible = "gianfar";
reg = <0x25000 0x1000>;
local-mac-address = [ 00 00 00 00 00 00 ];
interrupts = <35 0x8 36 0x8 37 0x8>;
interrupt-parent = <&ipic>;
phy-handle = <&phy1>;
linux,network-index = <1>;
}; serial0: serial@4500 {
cell-index = <0>;
device_type = "serial";
compatible = "ns16550";
reg = <0x4500 0x100>;
clock-frequency = <0>;
interrupts = <9 0x8>;
interrupt-parent = <&ipic>;
};
serial1: serial@4600 {
cell-index = <1>;
device_type = "serial";
compatible = "ns16550";
reg = <0x4600 0x100>;
clock-frequency = <0>;
interrupts = <10 0x8>;
interrupt-parent = <&ipic>;
};
crypto@30000 {
compatible = "fsl,sec2.0";
reg = <0x30000 0x10000>;
interrupts = <11 0x8>;
interrupt-parent = <&ipic>;
fsl,num-channels = <4>;
fsl,channel-fifo-len = <24>;
fsl,exec-units-mask = <0x7e>;
fsl,descriptor-types-mask = <0x01010ebf>;
}; Thanks,
agnel
Quoted 7 lines · On Sun, Dec 06, 2009 at 10:41:25PM -0800, [email protected] wrote:
Hi
We have an MPC8343EA based custom board.
I am not able to get Linux up and running in this. No serial output to debug further.
U-boot shows correct 'bdinfo' & 'clocks' output.
inux hangs atmachine_probe.
Check that the platform file you're intending to use matches the compatible field in the root node of the device tree -- and that said platform file is actually being built.
-Scott
Hi Scott:
I am still stuck at Linux kernel booting in MPC8343EA based board.
I have disabled "Ethernet, PCI, USB, dma engines " in the *.dts file and also in the kernel config.
I am using MPC8349emitxgp.dts ; enabled MPC8349ITX support in kernel config also. In fact, I tried building MPC8349emITX; MPC8349MDS also. Same behaviour!
With this, the kernel boots up (explicitly passing the DTB file and cuImage NEVER worked) and hangs after
I am using Linux-V-2.6.27.18 and using powerpc-e300c3-gnu toolchain - gcc-4.1.69-eglibc-2.5.69-1 to build u-boot-1.3.2 & linux.
With this, the kernel boots up (explicitly passing the DTB file and cuImage NEVER worked) and hangs after printing
"Calibrating delay loop... 133.12 BogoMIPS (lpj=266240)"
With a few debug printks looks like the kernel hangs in "cpu_idle" in --main/init.c
Any clues..?? HELP!!!
Please find the dts file and screen-dump below:
Thanks,
Junita
DTS file:
=======
/dts-v1/;
/ {
model = "MPC8349EMITXGP";
compatible = "MPC8349EMITXGP", "MPC834xMITX", "MPC83xxMITX";
#address-cells = <1>;
#size-cells = <1>;
aliases {
serial0 = &serial0;
};
cpus {
#address-cells = <1>;
#size-cells = <0>;
PowerPC,8349@0 {
device_type = "cpu";
reg = <0x0>;
d-cache-line-size = <32>;
i-cache-line-size = <32>;
d-cache-size = <32768>;
i-cache-size = <32768>;
timebase-frequency = <0>; // from bootloader
bus-frequency = <0>; // from bootloader
clock-frequency = <0>; // from bootloader
};
};
memory {
device_type = "memory";
reg = <0x00000000 0x10000000>;
};
soc8349@e0000000 {
#address-cells = <1>;
#size-cells = <1>;
device_type = "soc";
compatible = "simple-bus";
ranges = <0x0 0xe0000000 0x00100000>;
reg = <0xe0000000 0x00000200>;
bus-frequency = <0x0fe502a8>; // frombootloader
wdt@200 {
device_type = "watchdog";
compatible = "mpc83xx_wdt";
reg = <0x200 0x100>;
};
i2c@3000 {
#address-cells = <1>;
#size-cells = <0>;
cell-index = <0>;
compatible = "fsl-i2c";
reg = <0x3000 0x100>;
interrupts = <14 0x8>;
interrupt-parent = <&ipic>;
dfsrr;
};
mdio@24520 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "fsl,gianfar-mdio";
reg = <0x24520 0x20>;
};
serial0: serial@4500 {
cell-index = <0>;
device_type = "serial";
compatible = "ns16550";
reg = <0x4500 0x100>;
clock-frequency = <0>; // from bootloader
interrupts = <9 0x8>;
interrupt-parent = <&ipic>;
};
ipic: pic@700 {
interrupt-controller;
#address-cells = <0>;
#interrupt-cells = <2>;
reg = <0x700 0x100>;
device_type = "ipic";
};
};};
Screen-shot:
==========
Trying TSEC0
Speed: 100, full duplex
Using TSEC0 device
TFTP from server 192.168.201.14; our IP address is 192.168.201.199 Filename '8349.dtb'.
Load address: 0x900000
Loading: #
done
Bytes transferred = 12288 (3000 hex)
SC3000> bootm 0x00600000 - 0x00900000
## Booting image at 00600000 ...
Image Name: Linux-2.6.27.18 Created: 2009-12-11 0:16:24 UTC Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 850785 Bytes = 830.8 kB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
## Current stack ends at 0x0FF9BD48 => set upper limit to 0x00800000 ## cmdline at 0x007FFF00 ... 0x007FFF2E
bd address = 0x0FF9BFC4 memstart = 0x00000000 memsize = 0x10000000 flashstart = 0xFE000000 flashsize = 0x00080000 flashoffset = 0x00034000 sramstart = 0x00000000 sramsize = 0x00000000 bootflags = 0x00000001 intfreq = 399.999 MHz busfreq = 266.666 MHz ethaddr = 00:E0:0C:00:8C:01 IP addr = 192.168.201.199 baudrate = 115200 bps
Skipping initrd
Booting using the fdt at 0x900000
No initrd
## device tree at 0x00900000 ... 0x00902FFF (len=12288=0x3000)
Loading Device Tree to 007fc000, end 007fefff ... OK
Updating property 'timebase-frequency' = 03 f9 40 aa
Updating property 'bus-frequency' = 0f e5 02 a8
Updating property 'clock-frequency' = 17 d7 83 fc
Updating property 'bus-frequency' = 0f e5 02 a8
Updating property 'clock-frequency' = 0f e5 02 a8
## Transferring control to Linux (at address 00000000) ...
Using MPC834x ITX machine description
Linux version 2.6.27.18 ([email protected]) (gcc version 4.1.2) #26 Th9 -> find_legacy_serial_port()
stdout is /soc8349@e0000000/serial@4500
Found legacy serial port 0 for /soc8349@e0000000/serial@4500
mem=e0004500, taddr=e0004500, irq=0, clk=266666664, speed=0legacy_serial_console = 0
default console speed = 115740
<- find_legacy_serial_port()
console [udbg0] enabledsetup_arch: bootmemmpc834x_itx_setup_arch()
arch: exit
Top of RAM: 0x8000000, Total RAM: 0x8000000
Memory hole size: 0MB
Zone PFN ranges:
DMA 0x00000000 -> 0x00008000
Normal 0x00008000 -> 0x00008000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0: 0x00000000 -> 0x00008000
On node 0 totalpages: 32768free_area_init_node: node 0, pgdat c01b6224, node_mem_map c01d0000
DMA zone: 32512 pages, LIFO batch:7
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512 Kernel command line: root=/dev/ram rw console=ttyS0,115200 mem=128M IPIC (128 IRQ sources) at fdffd700
PID hash table entries: 512 (order: 9, 2048 bytes)time_init: decrementer frequency = 66.666666 MHztime_init: processor frequency = 399.999996 MHz
clocksource: timebase mult[3c00001] shift[22] registered
clockevent: decrementer mult[1111] shift[16] cpu[0]
-> check_legacy_serial_console()
console was specified !
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) SC3000 - After vfs_caches_init_early -1
SC3000 - After vfs_caches_init_early-2
Memory: 127912k/131072k available (1688k kernel code, 3000k reserved, 68k data,)SC3000 - After vfs_caches_init_early-3
SLUB: Genslabs=12, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 Calibrating delay loop... 133.12 BogoMIPS (lpj=266240)
Quoted 18 lines · Scott Wood
Quoted 5 lines · On Sun, Dec 06, 2009 at 10:41:25PM -0800, [email protected] wrote:
Hi
We have an MPC8343EA based custom board.
I am not able to get Linux up and running in this. No serial output to
debug further.
Quoted 2 lines
U-boot shows correct 'bdinfo' & 'clocks' output.
inux hangs atmachine_probe.Check that the platform file you're intending to use matches the compatible field in the root node of the device tree -- and that said platform file is actually being built.
-Scott
Quoted 9 lines · Junita Ajith
Hi Scott:
I am still stuck at Linux kernel booting in MPC8343EA based board.
I have disabled "Ethernet, PCI, USB, dma engines " in the *.dts file and also in the kernel config.
I am usingMPC8349emitxgp.dts; enabled MPC8349ITX support in kernel config also. In fact, I tried building MPC8349emITX; MPC8349MDS also. Same behaviour!With this, the kernel boots up (explicitly passing the DTB file and cuImage NEVER worked) and hangs after
Quoted 7 lines
I am using Linux-V-2.6.27.18 and using powerpc-e300c3-gnu toolchain - gcc-4.1.69-eglibc-2.5.69-1 to build u-boot-1.3.2 & linux.
With this, the kernel boots up (explicitly passing the DTB file and cuImage NEVER worked) and hangs after printing "Calibrating delay loop... 133.12 BogoMIPS (lpj=266240)"
With a few debug printks looks like the kernel hangs in "
cpu_idle" in--main/init.c
Try to find out what threads are blocked where.
There may also have been a problem transitioning to the normal serial driver. Do you have an external debugger than can extract the log buffer?
-Scott
Hi Scott:
After enabling debugging option from kernel (2.6.29) , here is the log.
We do have an external debugger(BDI). But soon after the crash happens, looks like the core freezes and hence reading from any location in memeory gives "SAP: Read access failed" error.
I have disabled PCI.
--Thanks,
Junita
Screen-dump :
===========
Bytes transferred = 12288 (3000 hex)
SC3000> bootm 0x00600000 - 0x00900000
## Booting image at 00600000 ...
Image Name: Linux-2.6.29 Created: 2009-12-11 2:59:37 UTC Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2177151 Bytes = 2.1 MB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Booting using the fdt at 0x900000
Loading Device Tree to 007fc000, end 007fefff ... OK
Using MPC834x ITX machine description
Linux version 2.6.29 ([email protected]) (gcc version 4.1.2) #1 Thu De9console [udbg0] enabledsetup_arch: bootmemmpc834x_itx_setup_arch()
Found FSL PCI host bridge at 0x00000000e0008600. Firmware bus number: 1->1 PCI host bridge /pci@e0008600 ranges:
MEM 0x00000000a0000000..0x00000000afffffff -> 0x00000000a0000000 Prefetch MEM 0x00000000b0000000..0x00000000bfffffff -> 0x00000000b0000000
IO 0x00000000e3000000..0x00000000e3ffffff -> 0x0000000000000000
arch: exit
Zone PFN ranges:
DMA 0x00000000 -> 0x00008000
Normal 0x00008000 -> 0x00008000
HighMem 0x00008000 -> 0x00008000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0: 0x00000000 -> 0x00008000
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
Kernel command line: root=/dev/ram rw console=ttyS0,115200 mem=128M
IPIC (128 IRQ sources) at fe7fc700
BUG: spinlock bad magic on CPU#0, swapper/0
lock: c041c3b8, .magic: dead4ead, .owner: <none>/-1, .owner_cpu: -1
Call Trace:
[c0449db0] [c0008990] show_stack+0x3c/0x160 (unreliable)
[c0449de0] [c01fced8] spin_bug+0x8c/0xd0
[c0449e00] [c01fd0e0] _raw_spin_lock+0x94/0x16c
[c0449e30] [c02bcef0] _spin_lock_irqsave+0x20/0x38
[c0449e50] [c004ea4c] down_trylock+0x18/0x4c
[c0449e60] [c0032650] try_acquire_console_sem+0x20/0x7c
[c0449e70] [c0032de0] vprintk+0x148/0x3a4
[c0449f20] [c003308c] printk+0x50/0x60
[c0449f60] [c03f4e98] ipic_init+0x17c/0x180
[c0449fa0] [c03fa7dc] mpc834x_itx_init_IRQ+0x2c/0x40
[c0449fb0] [c03ebee8] init_IRQ+0x24/0x34
[c0449fc0] [c03e570c] start_kernel+0x158/0x2b4[c0449ff0] [00003438] 0x3438
PID hash table entries: 512 (order: 9, 2048 bytes)time_init: decrementer frequency = 66.666666 MHztime_init: processor frequency = 399.999996 MHz
clocksource: timebase mult[3c00001] shift[22] registered
clockevent: decrementer mult[1111] shift[16] cpu[0]
Console: colour dummy device 80x25
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) High memory: 0k
Memory: 124912k/131072k available (4188k kernel code, 6008k reserved, 192k data)SLUB: Genslabs=12, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 Calibrating delay loop... 133.12 BogoMIPS (lpj=266240) Mount-cache hash table entries: 512
khelper used greatest stack depth: 7656 bytes left
Unable to handle kernel paging request for data at address 0xffff3f60 Faulting instruction address: 0xc005e984 Oops: Kernel access of bad area, sig: 11 [#1]
MPC834x ITX
NIP: c005e984 LR: c005eae8 CTR: c005eb48
REGS: c781dd00 TRAP: 0300 Not tainted (2.6.29)
MSR: 00009032 <EE,ME,IR,DR> CR: 22000088 XER: 00000000
DAR: ffff3f60, DSISR: 20000000
TASK = c7818000[1] 'swapper' THREAD: c781c000
GPR00: c005eae8 c781ddb0 c7818000 ffff3f60 c03c1300 fffedb2b 00000100 00000000
GPR08: c0427c84 ffff3f60 00000001 c0440000 42000084 ffffffff 0fff7000 00800000
GPR16: ffffffff 00000000 007fff00 00000000 00000001 c0470000 c0478d1c c03a0000
GPR24: 00000001 c0470000 0000000a c781c000 00009032 00000000 c0478ce0 c0427c64
NIP [c005e984] __rcu_process_callbacks+0x12c/0x2f0
LR [c005eae8] __rcu_process_callbacks+0x290/0x2f0
Call Trace:
[c781ddb0] [c005eae8] __rcu_process_callbacks+0x290/0x2f0 (unreliable)
[c781ddd0] [c005eb68] rcu_process_callbacks+0x20/0x44
[c781dde0] [c0038244] __do_softirq+0x90/0x140
[c781de20] [c0006534] do_softirq+0x58/0x5c
[c781de30] [c00380a0] irq_exit+0x48/0x58
[c781de40] [c0010e64] timer_interrupt+0x12c/0x188
[c781de60] [c0014484] ret_from_except+0x0/0x14
--- Exception: 901 at udbg_550_putc+0x1c/0x58
LR = udbg_puts+0x48/0x6c[c781df20] [00000000] (null) (unreliable)
[c781df30] [c03ee80c] udbg_progress+0x14/0x30
[c781df40] [c03ee8f8] ppc_init+0x3c/0x68
[c781df50] [c0003884] do_one_initcall+0x34/0x1a8
[c781dfd0] [c03e516c] kernel_init+0x94/0xf8
[c781dff0] [c0013c10] kernel_thread+0x4c/0x68
Instruction dump:
39200000 901e0008 913e0004 801f0000 901e0000 807e0024 2f830000 419e0090 7c691b78 3ba00000 48000008 41920038 <83e90000> 2e1f0000 41920008 7c00fa2c
Kernel panic - not syncing: Fatal exception in interrupt
Quoted 34 lines · Scott Wood
Quoted 16 lines · Junita Ajith
Hi Scott:
I am still stuck at Linux kernel booting in MPC8343EA based board.
I have disabled "Ethernet, PCI, USB, dma engines " in the *.dts file and also in the kernel config.
I am usingMPC8349emitxgp.dts; enabled MPC8349ITX support in kernel config also. In fact, I tried building MPC8349emITX; MPC8349MDS also. Same behaviour!With this, the kernel boots up (explicitly passing the DTB file and cuImage NEVER worked) and hangs after
I am using Linux-V-2.6.27.18 and using powerpc-e300c3-gnu toolchain - gcc-4.1.69-eglibc-2.5.69-1 to build u-boot-1.3.2 & linux.
Quoted 7 lines
With this, the kernel boots up (explicitly passing the DTB file and cuImage NEVER worked) and hangs after printing "Calibrating delay loop... 133.12 BogoMIPS (lpj=266240)"
With a few debug printks looks like the kernel hangs in "
cpu_idle" in--main/init.cTry to find out what threads are blocked where.
There may also have been a problem transitioning to the normal serial driver. Do you have an external debugger than can extract the log buffer?
-Scott
I would probably remove the bcsr region. this was some cpld I believe on a=
reference board. with this dts it'll try to write to some hardware regist=
ers that do not exist or are not mapped to the same area.
-----Original Message-----
From: [email protected] [mailto:linux= [email protected]] On Behalf Of ajijuni@gm= ail.com
Sent: Sunday, December 06, 2009 11:41 PM
To: [email protected]
Subject: dts file for MPC8343EA
Hi=20
We have an MPC8343EA based custom board.=20
I am not able to get Linux up and running in this. No serial output to debu= g further.=20
U-boot shows correct 'bdinfo' & 'clocks' output.=20
inux hangs at machine_probe.
I doubt the DTS file in Linux. anyone has DTS file for MPC8343??=20
u-boot version - 1.3.2
linux-2.6.27
The board base files are drived from MPC8349Imtx-GP since we have the refer= ence board in which we tested the linux image.
My current DTS file=20
/dts-v1/;=20
/ {=20
model =3D "MPC8343";=20
compatible =3D "MPC8349EMDS", "MPC834xMDS", "MPC83xxMDS";=20
linux,phandle =3D <0x100>;=20
#size-cells =3D <0x1>;=20
#address-cells =3D <0x1>;=20
aliases {=20
ethernet0 =3D &enet0;=20
ethernet1 =3D &enet1;=20
serial0 =3D &serial0;=20
serial1 =3D &serial1;=20
pci0 =3D &pci0;=20
pci1 =3D &pci1;=20
};=20
cpus {=20
linux,phandle =3D <0x200>;=20
#cpus =3D <0x1>;=20
#address-cells =3D <1>;=20
#size-cells =3D <0>;=20PowerPC,8343EA@0 {=20
device_type =3D "cpu";=20
reg =3D <0x0>;=20
d-cache-line-size =3D <20>;=20
i-cache-line-size =3D <20>;=20
d-cache-size =3D <8000>;=20
i-cache-size =3D <8000>;=20
timebase-frequency =3D <0>; // from bootloade=r=20
bus-frequency =3D <0>; // from bootloade=
r=20
clock-frequency =3D <0>; // from bootloade=
r=20
32-bit;=20
};=20
};=20
memory {=20
device_type =3D "memory";=20
reg =3D <0x00000000 0x10000000>; // 256MB at 0=20
};=20
bcsr@e2400000 {=20
device_type =3D "board-control";=20
reg =3D <0xe2400000 0x8000>;=20
};=20
soc8343@e0000000 {=20
bus-frequency =3D <0x1>;=20
reg =3D <0xe0000000 0x200>;=20
ranges =3D <0x0 0xe0000000 0x100000>;=20
device_type =3D "soc";=20
#interrupt-cells =3D <0x2>;=20
#size-cells =3D <0x1>;=20
#address-cells =3D <0x1>;=20
wdt@200 {=20
device_type =3D "watchdog";=20
compatible =3D "mpc83xx_wdt";=20
reg =3D <0x200 0x100>;=20
};=20i2c@3000 {=20
#address-cells =3D <1>;=20
#size-cells =3D <0>;=20
cell-index =3D <0>;=20
compatible =3D "fsl-i2c";=20
reg =3D <0x3000 0x100>;=20
interrupts =3D <14 0x8>;=20
interrupt-parent =3D <&ipic>;=20
dfsrr;=20
rtc@68 {=20
compatible =3D "dallas,ds1374";=20
reg =3D <0x68>;=20
};=20
};=20
i2c@3100 {=20
#address-cells =3D <1>;=20
#size-cells =3D <0>;=20
cell-index =3D <1>;=20
compatible =3D "fsl-i2c";=20
reg =3D <0x3100 0x100>;=20
interrupts =3D <15 0x8>;=20
interrupt-parent =3D <&ipic>;=20
dfsrr;=20
};=20
spi@7000 {=20
cell-index =3D <0>;=20
compatible =3D "fsl,spi";=20
reg =3D <0x7000 0x1000>;=20
interrupts =3D <16 0x8>;=20
interrupt-parent =3D <&ipic>;=20
mode =3D "cpu";=20
};=20dma@82a8 {=20
#address-cells =3D <1>;=20
#size-cells =3D <1>;=20
compatible =3D "fsl,mpc8349-dma", "fsl,elo-dma";=20
reg =3D <0x82a8 4>;=20
ranges =3D <0 0x8100 0x1a8>;=20
interrupt-parent =3D <&ipic>;=20
interrupts =3D <71 8>;=20
cell-index =3D <0>;=20
dma-channel@0 {=20
compatible =3D "fsl,mpc8349-dma-channel", "=
fsl,elo-dma-channel";=20
reg =3D <0 0x80>;=20
interrupt-parent =3D <&ipic>;=20
interrupts =3D <71 8>;=20
};=20
dma-channel@80 {=20
compatible =3D "fsl,mpc8349-dma-channel", "=
fsl,elo-dma-channel";=20
reg =3D <0x80 0x80>;=20
interrupt-parent =3D <&ipic>;=20
interrupts =3D <71 8>;=20
};=20
dma-channel@100 {=20
compatible =3D "fsl,mpc8349-dma-channel", "=
fsl,elo-dma-channel";=20
reg =3D <0x100 0x80>;=20
interrupt-parent =3D <&ipic>;=20
interrupts =3D <71 8>;=20
};=20
dma-channel@180 {=20
compatible =3D "fsl,mpc8349-dma-channel", "=
fsl,elo-dma-channel";=20
reg =3D <0x180 0x28>;=20
interrupt-parent =3D <&ipic>;=20
interrupts =3D <71 8>;=20
};=20
};=20
/* phy type (ULPI or SERIAL) are only types supported for MPH */=20
/* port =3D 0 or 1 */=20
usb@22000 {=20
compatible =3D "fsl-usb2-mph";=20
reg =3D <0x22000 0x1000>;=20
#address-cells =3D <1>;=20
#size-cells =3D <0>;=20
interrupt-parent =3D <&ipic>;=20
interrupts =3D <39 0x8>;=20
phy_type =3D "ulpi";=20
port1;=20
};=20
/* phy type (ULPI, UTMI, UTMI_WIDE, SERIAL) */=20
usb@23000 {=20
compatible =3D "fsl-usb2-dr";=20
reg =3D <0x23000 0x1000>;=20
#address-cells =3D <1>;=20
#size-cells =3D <0>;=20
interrupt-parent =3D <&ipic>;=20
interrupts =3D <38 0x8>;=20
dr_mode =3D "otg";=20
phy_type =3D "ulpi";=20
};=20
mdio@24520 {=20
#address-cells =3D <1>;=20
#size-cells =3D <0>;=20
compatible =3D "fsl,gianfar-mdio";=20
reg =3D <0x24520 0x20>;=20
phy0: ethernet-phy@0 {=20
interrupt-parent =3D <&ipic>;=20
interrupts =3D <17 0x8>;=20
reg =3D <0x0>;=20
device_type =3D "ethernet-phy";=20
};=20
phy1: ethernet-phy@1 {=20
interrupt-parent =3D <&ipic>;=20
interrupts =3D <18 0x8>;=20
reg =3D <0x1>;=20
device_type =3D "ethernet-phy";=20
};=20
enet0: ethernet@24000 {=20
cell-index =3D <0>;=20
device_type =3D "network";=20
model =3D "TSEC";=20
compatible =3D "gianfar";=20
reg =3D <0x24000 0x1000>;=20
local-mac-address =3D [ 00 00 00 00 00 00 ];=20
interrupts =3D <32 0x8 33 0x8 34 0x8>;=20
interrupt-parent =3D <&ipic>;=20
phy-handle =3D <&phy0>;=20
linux,network-index =3D <0>;=20
};=20
enet1: ethernet@25000 {=20
cell-index =3D <1>;=20
device_type =3D "network";=20
model =3D "TSEC";=20
compatible =3D "gianfar";=20
reg =3D <0x25000 0x1000>;=20
local-mac-address =3D [ 00 00 00 00 00 00 ];=20
interrupts =3D <35 0x8 36 0x8 37 0x8>;=20
interrupt-parent =3D <&ipic>;=20
phy-handle =3D <&phy1>;=20
linux,network-index =3D <1>;=20
};=20serial0: serial@4500 {=20
cell-index =3D <0>;=20
device_type =3D "serial";=20
compatible =3D "ns16550";=20
reg =3D <0x4500 0x100>;=20
clock-frequency =3D <0>;=20
interrupts =3D <9 0x8>;=20
interrupt-parent =3D <&ipic>;=20
};=20
serial1: serial@4600 {=20
cell-index =3D <1>;=20
device_type =3D "serial";=20
compatible =3D "ns16550";=20
reg =3D <0x4600 0x100>;=20
clock-frequency =3D <0>;=20
interrupts =3D <10 0x8>;=20
interrupt-parent =3D <&ipic>;=20
};=20
crypto@30000 {=20
compatible =3D "fsl,sec2.0";=20
reg =3D <0x30000 0x10000>;=20
interrupts =3D <11 0x8>;=20
interrupt-parent =3D <&ipic>;=20
fsl,num-channels =3D <4>;=20
fsl,channel-fifo-len =3D <24>;=20
fsl,exec-units-mask =3D <0x7e>;=20
fsl,descriptor-types-mask =3D <0x01010ebf>;=20
};=20Thanks,=20
agnel=20
_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://lists.ozlabs.org/listinfo/linuxppc-dev