2007-09-07 19:50:50 +07:00
|
|
|
/*
|
|
|
|
* Device Tree Source for IBM Walnut
|
|
|
|
*
|
|
|
|
* Copyright 2007 IBM Corp.
|
|
|
|
* Josh Boyer <jwboyer@linux.vnet.ibm.com>
|
|
|
|
*
|
|
|
|
* This file is licensed under the terms of the GNU General Public
|
|
|
|
* License version 2. This program is licensed "as is" without
|
|
|
|
* any warranty of any kind, whether express or implied.
|
|
|
|
*/
|
|
|
|
|
2008-05-15 13:46:39 +07:00
|
|
|
/dts-v1/;
|
|
|
|
|
2007-09-07 19:50:50 +07:00
|
|
|
/ {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
model = "ibm,walnut";
|
|
|
|
compatible = "ibm,walnut";
|
2008-05-15 13:46:39 +07:00
|
|
|
dcr-parent = <&{/cpus/cpu@0}>;
|
2007-09-07 19:50:50 +07:00
|
|
|
|
2007-12-15 14:55:16 +07:00
|
|
|
aliases {
|
|
|
|
ethernet0 = &EMAC;
|
|
|
|
serial0 = &UART0;
|
|
|
|
serial1 = &UART1;
|
|
|
|
};
|
|
|
|
|
2007-09-07 19:50:50 +07:00
|
|
|
cpus {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
2007-12-07 02:20:05 +07:00
|
|
|
cpu@0 {
|
2007-09-07 19:50:50 +07:00
|
|
|
device_type = "cpu";
|
2007-12-07 02:20:05 +07:00
|
|
|
model = "PowerPC,405GP";
|
2008-05-15 13:46:39 +07:00
|
|
|
reg = <0x00000000>;
|
|
|
|
clock-frequency = <200000000>; /* Filled in by zImage */
|
2007-09-07 19:50:50 +07:00
|
|
|
timebase-frequency = <0>; /* Filled in by zImage */
|
2008-05-15 13:46:39 +07:00
|
|
|
i-cache-line-size = <32>;
|
|
|
|
d-cache-line-size = <32>;
|
|
|
|
i-cache-size = <16384>;
|
|
|
|
d-cache-size = <16384>;
|
2007-09-07 19:50:50 +07:00
|
|
|
dcr-controller;
|
|
|
|
dcr-access-method = "native";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
memory {
|
|
|
|
device_type = "memory";
|
2008-05-15 13:46:39 +07:00
|
|
|
reg = <0x00000000 0x00000000>; /* Filled in by zImage */
|
2007-09-07 19:50:50 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
UIC0: interrupt-controller {
|
|
|
|
compatible = "ibm,uic";
|
|
|
|
interrupt-controller;
|
|
|
|
cell-index = <0>;
|
2008-05-15 13:46:39 +07:00
|
|
|
dcr-reg = <0x0c0 0x009>;
|
2007-09-07 19:50:50 +07:00
|
|
|
#address-cells = <0>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
#interrupt-cells = <2>;
|
|
|
|
};
|
|
|
|
|
|
|
|
plb {
|
|
|
|
compatible = "ibm,plb3";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
ranges;
|
|
|
|
clock-frequency = <0>; /* Filled in by zImage */
|
|
|
|
|
|
|
|
SDRAM0: memory-controller {
|
|
|
|
compatible = "ibm,sdram-405gp";
|
2008-05-15 13:46:39 +07:00
|
|
|
dcr-reg = <0x010 0x002>;
|
2007-09-07 19:50:50 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
MAL: mcmal {
|
|
|
|
compatible = "ibm,mcmal-405gp", "ibm,mcmal";
|
2008-05-15 13:46:39 +07:00
|
|
|
dcr-reg = <0x180 0x062>;
|
2007-10-19 21:53:11 +07:00
|
|
|
num-tx-chans = <1>;
|
2007-09-07 19:50:50 +07:00
|
|
|
num-rx-chans = <1>;
|
|
|
|
interrupt-parent = <&UIC0>;
|
2007-10-19 21:53:11 +07:00
|
|
|
interrupts = <
|
2008-05-15 13:46:39 +07:00
|
|
|
0xb 0x4 /* TXEOB */
|
|
|
|
0xc 0x4 /* RXEOB */
|
|
|
|
0xa 0x4 /* SERR */
|
|
|
|
0xd 0x4 /* TXDE */
|
|
|
|
0xe 0x4 /* RXDE */>;
|
2007-09-07 19:50:50 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
POB0: opb {
|
|
|
|
compatible = "ibm,opb-405gp", "ibm,opb";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
2008-05-15 13:46:39 +07:00
|
|
|
ranges = <0xef600000 0xef600000 0x00a00000>;
|
|
|
|
dcr-reg = <0x0a0 0x005>;
|
2007-09-07 19:50:50 +07:00
|
|
|
clock-frequency = <0>; /* Filled in by zImage */
|
|
|
|
|
|
|
|
UART0: serial@ef600300 {
|
|
|
|
device_type = "serial";
|
|
|
|
compatible = "ns16550";
|
2008-05-15 13:46:39 +07:00
|
|
|
reg = <0xef600300 0x00000008>;
|
|
|
|
virtual-reg = <0xef600300>;
|
2007-09-07 19:50:50 +07:00
|
|
|
clock-frequency = <0>; /* Filled in by zImage */
|
2008-05-15 13:46:39 +07:00
|
|
|
current-speed = <9600>;
|
2007-09-07 19:50:50 +07:00
|
|
|
interrupt-parent = <&UIC0>;
|
2008-05-15 13:46:39 +07:00
|
|
|
interrupts = <0x0 0x4>;
|
2007-09-07 19:50:50 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
UART1: serial@ef600400 {
|
|
|
|
device_type = "serial";
|
|
|
|
compatible = "ns16550";
|
2008-05-15 13:46:39 +07:00
|
|
|
reg = <0xef600400 0x00000008>;
|
|
|
|
virtual-reg = <0xef600400>;
|
2007-09-07 19:50:50 +07:00
|
|
|
clock-frequency = <0>; /* Filled in by zImage */
|
2008-05-15 13:46:39 +07:00
|
|
|
current-speed = <9600>;
|
2007-09-07 19:50:50 +07:00
|
|
|
interrupt-parent = <&UIC0>;
|
2008-05-15 13:46:39 +07:00
|
|
|
interrupts = <0x1 0x4>;
|
2007-09-07 19:50:50 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
IIC: i2c@ef600500 {
|
|
|
|
compatible = "ibm,iic-405gp", "ibm,iic";
|
2008-05-15 13:46:39 +07:00
|
|
|
reg = <0xef600500 0x00000011>;
|
2007-09-07 19:50:50 +07:00
|
|
|
interrupt-parent = <&UIC0>;
|
2008-05-15 13:46:39 +07:00
|
|
|
interrupts = <0x2 0x4>;
|
2007-09-07 19:50:50 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
GPIO: gpio@ef600700 {
|
|
|
|
compatible = "ibm,gpio-405gp";
|
2008-05-15 13:46:39 +07:00
|
|
|
reg = <0xef600700 0x00000020>;
|
2007-09-07 19:50:50 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
EMAC: ethernet@ef600800 {
|
|
|
|
device_type = "network";
|
|
|
|
compatible = "ibm,emac-405gp", "ibm,emac";
|
|
|
|
interrupt-parent = <&UIC0>;
|
2007-11-01 00:52:53 +07:00
|
|
|
interrupts = <
|
2008-05-15 13:46:39 +07:00
|
|
|
0xf 0x4 /* Ethernet */
|
|
|
|
0x9 0x4 /* Ethernet Wake Up */>;
|
2007-10-19 21:53:11 +07:00
|
|
|
local-mac-address = [000000000000]; /* Filled in by zImage */
|
2008-05-15 13:46:39 +07:00
|
|
|
reg = <0xef600800 0x00000070>;
|
2007-09-07 19:50:50 +07:00
|
|
|
mal-device = <&MAL>;
|
2007-10-19 21:53:11 +07:00
|
|
|
mal-tx-channel = <0>;
|
2007-09-07 19:50:50 +07:00
|
|
|
mal-rx-channel = <0>;
|
|
|
|
cell-index = <0>;
|
2008-05-15 13:46:39 +07:00
|
|
|
max-frame-size = <1500>;
|
|
|
|
rx-fifo-size = <4096>;
|
|
|
|
tx-fifo-size = <2048>;
|
2007-09-07 19:50:50 +07:00
|
|
|
phy-mode = "rmii";
|
2008-05-15 13:46:39 +07:00
|
|
|
phy-map = <0x00000001>;
|
2007-09-07 19:50:50 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
EBC0: ebc {
|
|
|
|
compatible = "ibm,ebc-405gp", "ibm,ebc";
|
2008-05-15 13:46:39 +07:00
|
|
|
dcr-reg = <0x012 0x002>;
|
2007-09-07 19:50:50 +07:00
|
|
|
#address-cells = <2>;
|
|
|
|
#size-cells = <1>;
|
2007-09-15 01:54:13 +07:00
|
|
|
/* The ranges property is supplied by the bootwrapper
|
|
|
|
* and is based on the firmware's configuration of the
|
|
|
|
* EBC bridge
|
|
|
|
*/
|
2007-09-07 19:50:50 +07:00
|
|
|
clock-frequency = <0>; /* Filled in by zImage */
|
|
|
|
|
|
|
|
sram@0,0 {
|
2008-05-15 13:46:39 +07:00
|
|
|
reg = <0x00000000 0x00000000 0x00080000>;
|
2007-09-07 19:50:50 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
flash@0,80000 {
|
2007-09-15 01:54:13 +07:00
|
|
|
compatible = "jedec-flash";
|
2007-09-07 19:50:50 +07:00
|
|
|
bank-width = <1>;
|
2008-05-15 13:46:39 +07:00
|
|
|
reg = <0x00000000 0x00080000 0x00080000>;
|
2007-09-15 01:54:13 +07:00
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
partition@0 {
|
|
|
|
label = "OpenBIOS";
|
2008-05-15 13:46:39 +07:00
|
|
|
reg = <0x00000000 0x00080000>;
|
2007-09-15 01:54:13 +07:00
|
|
|
read-only;
|
|
|
|
};
|
2007-09-07 19:50:50 +07:00
|
|
|
};
|
|
|
|
|
2008-01-11 10:25:34 +07:00
|
|
|
nvram@1,0 {
|
2007-09-07 19:50:50 +07:00
|
|
|
/* NVRAM and RTC */
|
2008-01-11 10:25:34 +07:00
|
|
|
compatible = "ds1743-nvram";
|
2008-05-15 13:46:39 +07:00
|
|
|
#bytes = <0x2000>;
|
|
|
|
reg = <0x00000001 0x00000000 0x00002000>;
|
2007-09-07 19:50:50 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
keyboard@2,0 {
|
|
|
|
compatible = "intel,82C42PC";
|
2008-05-15 13:46:39 +07:00
|
|
|
reg = <0x00000002 0x00000000 0x00000002>;
|
2007-09-07 19:50:50 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
ir@3,0 {
|
|
|
|
compatible = "ti,TIR2000PAG";
|
2008-05-15 13:46:39 +07:00
|
|
|
reg = <0x00000003 0x00000000 0x00000010>;
|
2007-09-07 19:50:50 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
fpga@7,0 {
|
|
|
|
compatible = "Walnut-FPGA";
|
2008-05-15 13:46:39 +07:00
|
|
|
reg = <0x00000007 0x00000000 0x00000010>;
|
|
|
|
virtual-reg = <0xf0300005>;
|
2007-09-07 19:50:50 +07:00
|
|
|
};
|
|
|
|
};
|
2007-12-21 11:39:28 +07:00
|
|
|
|
|
|
|
PCI0: pci@ec000000 {
|
|
|
|
device_type = "pci";
|
|
|
|
#interrupt-cells = <1>;
|
|
|
|
#size-cells = <2>;
|
|
|
|
#address-cells = <3>;
|
|
|
|
compatible = "ibm,plb405gp-pci", "ibm,plb-pci";
|
|
|
|
primary;
|
2008-05-15 13:46:39 +07:00
|
|
|
reg = <0xeec00000 0x00000008 /* Config space access */
|
|
|
|
0xeed80000 0x00000004 /* IACK */
|
|
|
|
0xeed80000 0x00000004 /* Special cycle */
|
|
|
|
0xef480000 0x00000040>; /* Internal registers */
|
2007-12-21 11:39:28 +07:00
|
|
|
|
|
|
|
/* Outbound ranges, one memory and one IO,
|
|
|
|
* later cannot be changed. Chip supports a second
|
|
|
|
* IO range but we don't use it for now
|
|
|
|
*/
|
2008-05-15 13:46:39 +07:00
|
|
|
ranges = <0x02000000 0x00000000 0x80000000 0x80000000 0x00000000 0x20000000
|
|
|
|
0x01000000 0x00000000 0x00000000 0xe8000000 0x00000000 0x00010000>;
|
2007-12-21 11:39:28 +07:00
|
|
|
|
|
|
|
/* Inbound 2GB range starting at 0 */
|
2008-05-15 13:46:39 +07:00
|
|
|
dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x80000000>;
|
2007-12-21 11:39:28 +07:00
|
|
|
|
|
|
|
/* Walnut has all 4 IRQ pins tied together per slot */
|
2008-05-15 13:46:39 +07:00
|
|
|
interrupt-map-mask = <0xf800 0x0 0x0 0x0>;
|
2007-12-21 11:39:28 +07:00
|
|
|
interrupt-map = <
|
|
|
|
/* IDSEL 1 */
|
2008-05-15 13:46:39 +07:00
|
|
|
0x800 0x0 0x0 0x0 &UIC0 0x1c 0x8
|
2007-12-21 11:39:28 +07:00
|
|
|
|
|
|
|
/* IDSEL 2 */
|
2008-05-15 13:46:39 +07:00
|
|
|
0x1000 0x0 0x0 0x0 &UIC0 0x1d 0x8
|
2007-12-21 11:39:28 +07:00
|
|
|
|
|
|
|
/* IDSEL 3 */
|
2008-05-15 13:46:39 +07:00
|
|
|
0x1800 0x0 0x0 0x0 &UIC0 0x1e 0x8
|
2007-12-21 11:39:28 +07:00
|
|
|
|
|
|
|
/* IDSEL 4 */
|
2008-05-15 13:46:39 +07:00
|
|
|
0x2000 0x0 0x0 0x0 &UIC0 0x1f 0x8
|
2007-12-21 11:39:28 +07:00
|
|
|
>;
|
|
|
|
};
|
2007-09-07 19:50:50 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
chosen {
|
|
|
|
linux,stdout-path = "/plb/opb/serial@ef600300";
|
|
|
|
};
|
|
|
|
};
|