mediatek: cudy: fixes typo for spi and mtd properties
Same as commit 3674689, correct 'buswidth' to 'bus-width'. Move the nmbm properties outside the partition definition. Change uppercase to lowercase, add missing read-only flag. Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
This commit is contained in:
parent
2f2e21a52b
commit
ab375a3484
@ -133,8 +133,8 @@
|
|||||||
reg = <0>;
|
reg = <0>;
|
||||||
|
|
||||||
spi-max-frequency = <52000000>;
|
spi-max-frequency = <52000000>;
|
||||||
spi-tx-buswidth = <4>;
|
spi-tx-bus-width = <4>;
|
||||||
spi-rx-buswidth = <4>;
|
spi-rx-bus-width = <4>;
|
||||||
|
|
||||||
spi-cal-enable;
|
spi-cal-enable;
|
||||||
spi-cal-mode = "read-data";
|
spi-cal-mode = "read-data";
|
||||||
|
@ -148,6 +148,7 @@
|
|||||||
label = "Factory";
|
label = "Factory";
|
||||||
reg = <0x180000 0x0200000>;
|
reg = <0x180000 0x0200000>;
|
||||||
read-only;
|
read-only;
|
||||||
|
|
||||||
nvmem-layout {
|
nvmem-layout {
|
||||||
compatible = "fixed-layout";
|
compatible = "fixed-layout";
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
@ -163,6 +164,7 @@
|
|||||||
label = "bdinfo";
|
label = "bdinfo";
|
||||||
reg = <0x380000 0x0040000>;
|
reg = <0x380000 0x0040000>;
|
||||||
read-only;
|
read-only;
|
||||||
|
|
||||||
nvmem-layout {
|
nvmem-layout {
|
||||||
compatible = "fixed-layout";
|
compatible = "fixed-layout";
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
@ -174,25 +176,23 @@
|
|||||||
#nvmem-cell-cells = <1>;
|
#nvmem-cell-cells = <1>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
partition@3C0000 {
|
partition@3c0000 {
|
||||||
label = "FIP";
|
label = "FIP";
|
||||||
reg = <0x3C0000 0x0200000>;
|
reg = <0x3c0000 0x0200000>;
|
||||||
read-only;
|
read-only;
|
||||||
};
|
};
|
||||||
|
|
||||||
partition@580000 {
|
partition@5c0000 {
|
||||||
label = "ubi";
|
label = "ubi";
|
||||||
reg = <0x5C0000 0x4000000>;
|
reg = <0x5c0000 0x4000000>;
|
||||||
compatible = "linux,ubi";
|
compatible = "linux,ubi";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
&pio {
|
&pio {
|
||||||
spi0_flash_pins: spi0-pins {
|
spi0_flash_pins: spi0-pins {
|
||||||
mux {
|
mux {
|
||||||
|
@ -117,7 +117,6 @@
|
|||||||
&spi0 {
|
&spi0 {
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&spi0_flash_pins>;
|
pinctrl-0 = <&spi0_flash_pins>;
|
||||||
|
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
|
||||||
spi_nand: spi_nand@0 {
|
spi_nand: spi_nand@0 {
|
||||||
@ -127,18 +126,18 @@
|
|||||||
reg = <0>;
|
reg = <0>;
|
||||||
|
|
||||||
spi-max-frequency = <52000000>;
|
spi-max-frequency = <52000000>;
|
||||||
spi-tx-buswidth = <4>;
|
spi-tx-bus-width = <4>;
|
||||||
spi-rx-buswidth = <4>;
|
spi-rx-bus-width = <4>;
|
||||||
|
|
||||||
|
mediatek,nmbm;
|
||||||
|
mediatek,bmt-max-ratio = <1>;
|
||||||
|
mediatek,bmt-max-reserved-blocks = <64>;
|
||||||
|
|
||||||
partitions {
|
partitions {
|
||||||
compatible = "fixed-partitions";
|
compatible = "fixed-partitions";
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <1>;
|
#size-cells = <1>;
|
||||||
|
|
||||||
mediatek,nmbm;
|
|
||||||
mediatek,bmt-max-ratio = <1>;
|
|
||||||
mediatek,bmt-max-reserved-blocks = <64>;
|
|
||||||
|
|
||||||
partition@0 {
|
partition@0 {
|
||||||
label = "BL2";
|
label = "BL2";
|
||||||
reg = <0x0000000 0x0100000>;
|
reg = <0x0000000 0x0100000>;
|
||||||
@ -177,6 +176,7 @@
|
|||||||
partition@3c0000 {
|
partition@3c0000 {
|
||||||
label = "FIP";
|
label = "FIP";
|
||||||
reg = <0x03c0000 0x0200000>;
|
reg = <0x03c0000 0x0200000>;
|
||||||
|
read-only;
|
||||||
};
|
};
|
||||||
|
|
||||||
partition@5c0000 {
|
partition@5c0000 {
|
||||||
|
@ -162,6 +162,7 @@
|
|||||||
label = "Factory";
|
label = "Factory";
|
||||||
reg = <0x180000 0x0200000>;
|
reg = <0x180000 0x0200000>;
|
||||||
read-only;
|
read-only;
|
||||||
|
|
||||||
nvmem-layout {
|
nvmem-layout {
|
||||||
compatible = "fixed-layout";
|
compatible = "fixed-layout";
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
@ -177,6 +178,7 @@
|
|||||||
label = "bdinfo";
|
label = "bdinfo";
|
||||||
reg = <0x380000 0x0040000>;
|
reg = <0x380000 0x0040000>;
|
||||||
read-only;
|
read-only;
|
||||||
|
|
||||||
nvmem-layout {
|
nvmem-layout {
|
||||||
compatible = "fixed-layout";
|
compatible = "fixed-layout";
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
@ -188,25 +190,23 @@
|
|||||||
#nvmem-cell-cells = <1>;
|
#nvmem-cell-cells = <1>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
partition@3C0000 {
|
partition@3c0000 {
|
||||||
label = "FIP";
|
label = "FIP";
|
||||||
reg = <0x3C0000 0x0200000>;
|
reg = <0x3c0000 0x0200000>;
|
||||||
read-only;
|
read-only;
|
||||||
};
|
};
|
||||||
|
|
||||||
partition@580000 {
|
partition@5c0000 {
|
||||||
label = "ubi";
|
label = "ubi";
|
||||||
reg = <0x5C0000 0x4000000>;
|
reg = <0x5c0000 0x4000000>;
|
||||||
compatible = "linux,ubi";
|
compatible = "linux,ubi";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
&pio {
|
&pio {
|
||||||
spi0_flash_pins: spi0-pins {
|
spi0_flash_pins: spi0-pins {
|
||||||
mux {
|
mux {
|
||||||
|
@ -227,6 +227,7 @@
|
|||||||
label = "Factory";
|
label = "Factory";
|
||||||
reg = <0x180000 0x0200000>;
|
reg = <0x180000 0x0200000>;
|
||||||
read-only;
|
read-only;
|
||||||
|
|
||||||
nvmem-layout {
|
nvmem-layout {
|
||||||
compatible = "fixed-layout";
|
compatible = "fixed-layout";
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
@ -242,6 +243,7 @@
|
|||||||
label = "bdinfo";
|
label = "bdinfo";
|
||||||
reg = <0x380000 0x0040000>;
|
reg = <0x380000 0x0040000>;
|
||||||
read-only;
|
read-only;
|
||||||
|
|
||||||
nvmem-layout {
|
nvmem-layout {
|
||||||
compatible = "fixed-layout";
|
compatible = "fixed-layout";
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
@ -255,15 +257,15 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
partition@3C0000 {
|
partition@3c0000 {
|
||||||
label = "FIP";
|
label = "FIP";
|
||||||
reg = <0x3C0000 0x0200000>;
|
reg = <0x3c0000 0x0200000>;
|
||||||
read-only;
|
read-only;
|
||||||
};
|
};
|
||||||
|
|
||||||
partition@580000 {
|
partition@5c0000 {
|
||||||
label = "ubi";
|
label = "ubi";
|
||||||
reg = <0x5C0000 0x4000000>;
|
reg = <0x5c0000 0x4000000>;
|
||||||
compatible = "linux,ubi";
|
compatible = "linux,ubi";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -165,6 +165,7 @@
|
|||||||
label = "Factory";
|
label = "Factory";
|
||||||
reg = <0x180000 0x0200000>;
|
reg = <0x180000 0x0200000>;
|
||||||
read-only;
|
read-only;
|
||||||
|
|
||||||
nvmem-layout {
|
nvmem-layout {
|
||||||
compatible = "fixed-layout";
|
compatible = "fixed-layout";
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
@ -180,6 +181,7 @@
|
|||||||
label = "bdinfo";
|
label = "bdinfo";
|
||||||
reg = <0x380000 0x0040000>;
|
reg = <0x380000 0x0040000>;
|
||||||
read-only;
|
read-only;
|
||||||
|
|
||||||
nvmem-layout {
|
nvmem-layout {
|
||||||
compatible = "fixed-layout";
|
compatible = "fixed-layout";
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
@ -193,15 +195,15 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
partition@3C0000 {
|
partition@3c0000 {
|
||||||
label = "FIP";
|
label = "FIP";
|
||||||
reg = <0x3C0000 0x0200000>;
|
reg = <0x3c0000 0x0200000>;
|
||||||
read-only;
|
read-only;
|
||||||
};
|
};
|
||||||
|
|
||||||
partition@580000 {
|
partition@5c0000 {
|
||||||
label = "ubi";
|
label = "ubi";
|
||||||
reg = <0x5C0000 0x4000000>;
|
reg = <0x5c0000 0x4000000>;
|
||||||
compatible = "linux,ubi";
|
compatible = "linux,ubi";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user