From f6f50ebd8a49012d454fe0812e97cab1b799cf2a Mon Sep 17 00:00:00 2001 From: Zoltan HERPAI Date: Wed, 13 Mar 2019 22:34:54 +0100 Subject: [PATCH] sunxi: enable NAND on C64mini Signed-off-by: Zoltan HERPAI --- .../403-dts-add-nand-to-c64mini.patch | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 target/linux/sunxi/patches-5.15/403-dts-add-nand-to-c64mini.patch diff --git a/target/linux/sunxi/patches-5.15/403-dts-add-nand-to-c64mini.patch b/target/linux/sunxi/patches-5.15/403-dts-add-nand-to-c64mini.patch new file mode 100644 index 0000000000..7f4c3a1fe3 --- /dev/null +++ b/target/linux/sunxi/patches-5.15/403-dts-add-nand-to-c64mini.patch @@ -0,0 +1,62 @@ +diff -ruN a/arch/arm/boot/dts/sun7i-a20-rgl-c64mini.dts b/arch/arm/boot/dts/sun7i-a20-rgl-c64mini.dts +--- a/arch/arm/boot/dts/sun7i-a20-c64mini.dts 2019-02-20 16:13:12.000000000 +0100 ++++ b/arch/arm/boot/dts/sun7i-a20-c64mini.dts 2019-02-22 14:52:35.906512308 +0100 +@@ -175,6 +177,37 @@ + function = "gpio_in"; + bias-pull-down; + }; ++ ++ nand_pins: nand-pins { ++ pins = "PC0", "PC1", "PC2", "PC5", ++ "PC8", "PC9", "PC10", "PC11", ++ "PC12", "PC13", "PC14", "PC15"; ++ function = "nand0"; ++ }; ++ ++ nand_pins_cs0: nand-pins-cs0 { ++ pins = "PC4"; ++ function = "nand0"; ++ bias-pull-up; ++ }; ++ ++ nand_pins_cs1: nand-pins-cs1 { ++ pins = "PC3"; ++ function = "nand0"; ++ bias-pull-up; ++ }; ++ ++ nand_pins_rb0: nand-pins-rb0 { ++ pins = "PC6"; ++ function = "nand0"; ++ bias-pull-up; ++ }; ++ ++ nand_pins_rb1: nand-pins-rb1 { ++ pins = "PC7"; ++ function = "nand0"; ++ bias-pull-up; ++ }; + }; + + ®_usb0_vbus { +@@ -210,3 +243,20 @@ + usb2_vbus-supply = <®_usb2_vbus>; + status = "okay"; + }; ++ ++&nfc { ++ status = "okay"; ++ pinctrl-names = "default"; ++ pinctrl-0 = <&nand_pins>, <&nand_pins_cs0>, <&nand_pins_rb0>; ++ ++ /* ESMT NAND 128MiB 3,3V 8-bit */ ++ nand@0 { ++ #address-cells = <1>; ++ #size-cells = <1>; ++ reg = <0>; ++ allwinner,rb = <0>; ++ nand-ecc-mode = "hw"; ++ nand-ecc-strength = <16>; ++ nand-ecc-step-size = <1024>; ++ }; ++}; -- 2.30.2