mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-23 05:00:24 +09:00
km/spi: add SPI configuration to KM Kirkwood device tree
In order to migrate the SPI flash interface to the driver model, the SPI configuration needs to be added in the KM Kirkwood device tree file. Signed-off-by: Pascal Linder <pascal.linder@edu.hefr.ch> Signed-off-by: Holger Brunck <holger.brunck@ch.abb.com> Signed-off-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
53c3050d0d
commit
c85306345a
@ -13,6 +13,10 @@
|
|||||||
device_type = "memory";
|
device_type = "memory";
|
||||||
reg = <0x00000000 0x08000000>;
|
reg = <0x00000000 0x08000000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
aliases {
|
||||||
|
spi0 = &spi0;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&mdio {
|
&mdio {
|
||||||
@ -29,3 +33,21 @@
|
|||||||
phy-handle = <ðphy0>;
|
phy-handle = <ðphy0>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&spi0 {
|
||||||
|
status = "okay";
|
||||||
|
|
||||||
|
flash@0 {
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <1>;
|
||||||
|
compatible = "st,m25p80", "jedec,spi-nor", "spi-flash";
|
||||||
|
reg = <0>;
|
||||||
|
spi-max-frequency = <33000000>;
|
||||||
|
mode = <3>;
|
||||||
|
|
||||||
|
partition@uboot {
|
||||||
|
reg = <0x000000 0x0c0000>;
|
||||||
|
label = "uboot";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user