[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <tencent_57056C4B1E98EF5C0517A5685B2E4D060508@qq.com>
Date: Mon, 1 Sep 2025 17:05:21 +0800
From: Conley Lee <conleylee@...mail.com>
To: andrew@...n.ch,
kuba@...nel.org,
davem@...emloft.net,
wens@...e.org,
mripard@...nel.org
Cc: netdev@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org,
linux-sunxi@...ts.linux.dev,
Conley Lee <conleylee@...mail.com>
Subject: [PATCH] arm: dts: add nand device in sun7i-a20-haoyu-marsboard.dts
The Haoyu MarsBoard-A20 comes with an 8G Hynix NAND flash,
and this commit adds this NAND device in the device tree.
Signed-off-by: Conley Lee <conleylee@...mail.com>
---
.../allwinner/sun7i-a20-haoyu-marsboard.dts | 67 +++++++++++++++++++
1 file changed, 67 insertions(+)
diff --git a/arch/arm/boot/dts/allwinner/sun7i-a20-haoyu-marsboard.dts b/arch/arm/boot/dts/allwinner/sun7i-a20-haoyu-marsboard.dts
index 097e479c2..62d775c4f 100644
--- a/arch/arm/boot/dts/allwinner/sun7i-a20-haoyu-marsboard.dts
+++ b/arch/arm/boot/dts/allwinner/sun7i-a20-haoyu-marsboard.dts
@@ -118,6 +118,58 @@ gmac_txerr: gmac-txerr-pin {
pins = "PA17";
function = "gmac";
};
+
+ nand_pins_a: nand_base0@0 {
+ pins = "PC0", "PC1", "PC2",
+ "PC5", "PC8", "PC9", "PC10",
+ "PC11", "PC12", "PC13", "PC14",
+ "PC15", "PC16";
+ function = "nand0";
+ drive-strength = <10>;
+ };
+
+ nand_cs0_pins_a: nand_cs@0 {
+ pins = "PC4";
+ function = "nand0";
+ drive-strength = <10>;
+ bias-pull-up;
+ };
+
+ nand_cs1_pins_a: nand_cs@1 {
+ pins = "PC3";
+ function = "nand0";
+ drive-strength = <10>;
+ bias-pull-up;
+ };
+
+ nand_cs2_pins_a: nand_cs@2 {
+ pins = "PC17";
+ function = "nand0";
+ drive-strength = <10>;
+ bias-pull-up;
+ };
+
+ nand_cs3_pins_a: nand_cs@3 {
+ pins = "PC18";
+ function = "nand0";
+ drive-strength = <10>;
+ bias-pull-up;
+ };
+
+ nand_rb0_pins_a: nand_rb@0 {
+ pins = "PC6";
+ function = "nand0";
+ drive-strength = <10>;
+ bias-pull-up;
+ };
+
+ nand_rb1_pins_a: nand_rb@1 {
+ pins = "PC7";
+ function = "nand0";
+ drive-strength = <10>;
+ bias-pull-up;
+ };
+
};
®_ahci_5v {
@@ -180,3 +232,18 @@ &usbphy {
usb2_vbus-supply = <®_usb2_vbus>;
status = "okay";
};
+
+&nfc {
+ pinctrl-names = "default";
+ pinctrl-0 = <&nand_pins_a>, <&nand_cs0_pins_a>, <&nand_rb0_pins_a>, <&nand_cs1_pins_a>, <&nand_rb1_pins_a>;
+ status = "okay";
+
+ nand@0 {
+ #address-cells = <2>;
+ #size-cells = <2>;
+ reg = <0>;
+ allwinner,rb = <0>;
+ nand-ecc-mode = "hw";
+ nand-on-flash-bbt;
+ };
+};
--
2.25.1
Powered by blists - more mailing lists