lantiq: dts: move partitions into partition node

Signed-off-by: Mathias Kresin <dev@kresin.me>
This commit is contained in:
Mathias Kresin 2019-01-27 14:05:38 +01:00
parent 7685ed59c5
commit 2ec59c173f
4 changed files with 95 additions and 80 deletions

View File

@ -17,6 +17,9 @@
compatible = "lantiq,nor"; compatible = "lantiq,nor";
bank-width = <2>; bank-width = <2>;
reg = <0x0 0x4000000>; reg = <0x0 0x4000000>;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
@ -35,4 +38,5 @@
reg = <0x80000 0x3d0000>; reg = <0x80000 0x3d0000>;
}; };
}; };
};
}; };

View File

@ -261,12 +261,15 @@
pinctrl-0 = <&pins_spi_default>; pinctrl-0 = <&pins_spi_default>;
m25p80@4 { m25p80@4 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "jedec,spi-nor"; compatible = "jedec,spi-nor";
reg = <4>; reg = <4>;
spi-max-frequency = <1000000>; spi-max-frequency = <1000000>;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
urlader: partition@0 { urlader: partition@0 {
reg = <0x0 0x20000>; reg = <0x0 0x20000>;
label = "urlader"; label = "urlader";
@ -285,6 +288,7 @@
read-only; read-only;
}; };
}; };
};
}; };
&usb_phy0 { &usb_phy0 {

View File

@ -264,12 +264,14 @@
pinctrl-0 = <&pins_spi_default>; pinctrl-0 = <&pins_spi_default>;
m25p80@4 { m25p80@4 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "jedec,spi-nor"; compatible = "jedec,spi-nor";
reg = <4>; reg = <4>;
spi-max-frequency = <20000000>; spi-max-frequency = <20000000>;
partitions {
#address-cells = <1>;
#size-cells = <1>;
partition@0 { partition@0 {
reg = <0x0 0x10000>; reg = <0x0 0x10000>;
label = "u-boot"; label = "u-boot";
@ -309,6 +311,7 @@
read-only; read-only;
}; };
}; };
};
}; };
&usb_phy0 { &usb_phy0 {

View File

@ -5,14 +5,17 @@
compatible = "lantiq,sflash-falcon", "simple-bus"; compatible = "lantiq,sflash-falcon", "simple-bus";
flash@0 { flash@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "spansion,s25fl129p0", "spansion,s25fl129p1"; compatible = "spansion,s25fl129p0", "spansion,s25fl129p1";
reg = <0 0>; reg = <0 0>;
linux,mtd-name = "sflash"; linux,mtd-name = "sflash";
spi-max-frequency = <80000000>; spi-max-frequency = <80000000>;
m25p,fast-read; m25p,fast-read;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 { partition@0 {
reg = <0x0 0x40000>; reg = <0x0 0x40000>;
label = "uboot"; label = "uboot";
@ -34,4 +37,5 @@
label = "image1"; label = "image1";
}; };
}; };
};
}; };