[Letux-kernel] [PATCH 18/20] MIPS: DTS: ingenic/mipsbook_400: Add the NAND memory node
Lubomir Rintel
lkundrak at v3.sk
Tue Nov 17 21:58:11 CET 2020
...along with the partition map.
Signed-off-by: Lubomir Rintel <lkundrak at v3.sk>
---
arch/mips/boot/dts/ingenic/mipsbook_400.dts | 43 +++++++++++++++++++++
1 file changed, 43 insertions(+)
diff --git a/arch/mips/boot/dts/ingenic/mipsbook_400.dts b/arch/mips/boot/dts/ingenic/mipsbook_400.dts
index b9f290c784cb7..d8e018aa77102 100644
--- a/arch/mips/boot/dts/ingenic/mipsbook_400.dts
+++ b/arch/mips/boot/dts/ingenic/mipsbook_400.dts
@@ -371,6 +371,49 @@ &mmc {
&nand {
pinctrl-names = "default";
pinctrl-0 = <&pins_nand>;
+
+ nand0: nand at 0 {
+ #address-cells = <0>;
+ #size-cells = <0>;
+ reg = <0>;
+ wp-gpios = <&gpc 23 GPIO_ACTIVE_LOW>;
+
+ partitions {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ compatible = "fixed-partitions";
+
+ bootloader at 0 {
+ label = "bootloader";
+ reg = <0x00000000 0x00100000>;
+ };
+
+ kernel at 100000 {
+ label = "kernel";
+ reg = <0x00100000 0x00300000>;
+ };
+
+ mac at 400000 {
+ label = "mac";
+ reg = <0x00400000 0x00100000>;
+ };
+
+ recovery at 500000 {
+ label = "mini rootfs";
+ reg = <0x00500000 0x00500000>;
+ };
+
+ root at a00000 {
+ label = "yaffs2 rootfs";
+ reg = <0x00a00000 0x3f600000>;
+ };
+
+ extend at 40000000 {
+ label = "extend 1G flash";
+ reg = <0x40000000 0x40000000>;
+ };
+ };
+ };
};
--
2.28.0
More information about the Letux-kernel
mailing list