Commit 036f290d authored by Stefan Roese's avatar Stefan Roese Committed by Josh Boyer

powerpc/44x: Add MTD support (NOR FLASH) to Katmai dts

This patch adds NOR FLASH MTD support to the Katmai (440SPe) dts file.
For this the OPB ranges address is mapped differently (base 0x00000000
-> 0xe0000000). This results in the address being identical to the lower
32bit of its physical address. This is needed for the MTD mapping to work
correctly, since U-Boot will insert the physical addresses of the EBC
chip selects into the EBC ranges property. This is the way its done in
most other 4xx dts files as well.

Additionally with a small whitespace cleanup.
Signed-off-by: default avatarStefan Roese <sr@denx.de>
Cc: Josh Boyer <jwboyer@linux.vnet.ibm.com>
Signed-off-by: default avatarJosh Boyer <jwboyer@linux.vnet.ibm.com>
parent 28ef35eb
...@@ -156,7 +156,7 @@ POB0: opb { ...@@ -156,7 +156,7 @@ POB0: opb {
compatible = "ibm,opb-440spe", "ibm,opb-440gp", "ibm,opb"; compatible = "ibm,opb-440spe", "ibm,opb-440gp", "ibm,opb";
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
ranges = <0x00000000 0x00000004 0xe0000000 0x20000000>; ranges = <0xe0000000 0x00000004 0xe0000000 0x20000000>;
clock-frequency = <0>; /* Filled in by zImage */ clock-frequency = <0>; /* Filled in by zImage */
EBC0: ebc { EBC0: ebc {
...@@ -165,14 +165,47 @@ EBC0: ebc { ...@@ -165,14 +165,47 @@ EBC0: ebc {
#address-cells = <2>; #address-cells = <2>;
#size-cells = <1>; #size-cells = <1>;
clock-frequency = <0>; /* Filled in by zImage */ clock-frequency = <0>; /* Filled in by zImage */
/* ranges property is supplied by U-Boot */
interrupts = <0x5 0x1>; interrupts = <0x5 0x1>;
interrupt-parent = <&UIC1>; interrupt-parent = <&UIC1>;
nor_flash@0,0 {
compatible = "cfi-flash";
bank-width = <2>;
reg = <0x00000000 0x00000000 0x01000000>;
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "kernel";
reg = <0x00000000 0x001e0000>;
};
partition@1e0000 {
label = "dtb";
reg = <0x001e0000 0x00020000>;
};
partition@200000 {
label = "root";
reg = <0x00200000 0x00200000>;
};
partition@400000 {
label = "user";
reg = <0x00400000 0x00b60000>;
};
partition@f60000 {
label = "env";
reg = <0x00f60000 0x00040000>;
};
partition@fa0000 {
label = "u-boot";
reg = <0x00fa0000 0x00060000>;
};
};
}; };
UART0: serial@10000200 { UART0: serial@f0000200 {
device_type = "serial"; device_type = "serial";
compatible = "ns16550"; compatible = "ns16550";
reg = <0x10000200 0x00000008>; reg = <0xf0000200 0x00000008>;
virtual-reg = <0xa0000200>; virtual-reg = <0xa0000200>;
clock-frequency = <0>; /* Filled in by zImage */ clock-frequency = <0>; /* Filled in by zImage */
current-speed = <115200>; current-speed = <115200>;
...@@ -180,10 +213,10 @@ UART0: serial@10000200 { ...@@ -180,10 +213,10 @@ UART0: serial@10000200 {
interrupts = <0x0 0x4>; interrupts = <0x0 0x4>;
}; };
UART1: serial@10000300 { UART1: serial@f0000300 {
device_type = "serial"; device_type = "serial";
compatible = "ns16550"; compatible = "ns16550";
reg = <0x10000300 0x00000008>; reg = <0xf0000300 0x00000008>;
virtual-reg = <0xa0000300>; virtual-reg = <0xa0000300>;
clock-frequency = <0>; clock-frequency = <0>;
current-speed = <0>; current-speed = <0>;
...@@ -192,10 +225,10 @@ UART1: serial@10000300 { ...@@ -192,10 +225,10 @@ UART1: serial@10000300 {
}; };
UART2: serial@10000600 { UART2: serial@f0000600 {
device_type = "serial"; device_type = "serial";
compatible = "ns16550"; compatible = "ns16550";
reg = <0x10000600 0x00000008>; reg = <0xf0000600 0x00000008>;
virtual-reg = <0xa0000600>; virtual-reg = <0xa0000600>;
clock-frequency = <0>; clock-frequency = <0>;
current-speed = <0>; current-speed = <0>;
...@@ -203,27 +236,27 @@ UART2: serial@10000600 { ...@@ -203,27 +236,27 @@ UART2: serial@10000600 {
interrupts = <0x5 0x4>; interrupts = <0x5 0x4>;
}; };
IIC0: i2c@10000400 { IIC0: i2c@f0000400 {
compatible = "ibm,iic-440spe", "ibm,iic-440gp", "ibm,iic"; compatible = "ibm,iic-440spe", "ibm,iic-440gp", "ibm,iic";
reg = <0x10000400 0x00000014>; reg = <0xf0000400 0x00000014>;
interrupt-parent = <&UIC0>; interrupt-parent = <&UIC0>;
interrupts = <0x2 0x4>; interrupts = <0x2 0x4>;
}; };
IIC1: i2c@10000500 { IIC1: i2c@f0000500 {
compatible = "ibm,iic-440spe", "ibm,iic-440gp", "ibm,iic"; compatible = "ibm,iic-440spe", "ibm,iic-440gp", "ibm,iic";
reg = <0x10000500 0x00000014>; reg = <0xf0000500 0x00000014>;
interrupt-parent = <&UIC0>; interrupt-parent = <&UIC0>;
interrupts = <0x3 0x4>; interrupts = <0x3 0x4>;
}; };
EMAC0: ethernet@10000800 { EMAC0: ethernet@f0000800 {
linux,network-index = <0x0>; linux,network-index = <0x0>;
device_type = "network"; device_type = "network";
compatible = "ibm,emac-440spe", "ibm,emac4"; compatible = "ibm,emac-440spe", "ibm,emac4";
interrupt-parent = <&UIC1>; interrupt-parent = <&UIC1>;
interrupts = <0x1c 0x4 0x1d 0x4>; interrupts = <0x1c 0x4 0x1d 0x4>;
reg = <0x10000800 0x00000074>; reg = <0xf0000800 0x00000074>;
local-mac-address = [000000000000]; local-mac-address = [000000000000];
mal-device = <&MAL0>; mal-device = <&MAL0>;
mal-tx-channel = <0>; mal-tx-channel = <0>;
...@@ -453,6 +486,6 @@ xor-accel@400200000 { ...@@ -453,6 +486,6 @@ xor-accel@400200000 {
}; };
chosen { chosen {
linux,stdout-path = "/plb/opb/serial@10000200"; linux,stdout-path = "/plb/opb/serial@f0000200";
}; };
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment