Skip to contentSkip to conversation

ARM: dts: socfpga: add nand controller nodes

PATCH New Steffen Trumtrar 2 participants 3 messages Nov 9, 2016 – Nov 10, 2016 Device tree bindings

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: socfpga: add nand controller nodes

Add the denali nand controller to the socfpga dtsi.

---
 arch/arm/boot/dts/socfpga.dtsi | 13 +++++++++++++
 1 file changed, 13 insertions(+)
arch/arm/boot/dts/socfpga.dtsi +13 -0
index 9f48141270b8..6b0c23ca5e88 100644
@@ -700,6 +700,19 @@
 			status = "disabled";
 		};
 
+		nand0: nand at ff900000 {
+			#address-cells = <0x1>;
+			#size-cells = <0x1>;
+			compatible = "denali,denali-nand-dt";
+			reg = <0xff900000 0x100000>,
+			      <0xffb80000 0x10000>;
+			reg-names = "nand_data", "denali_reg";
+			interrupts = <0x0 0x90 0x4>;
+			dma-mask = <0xffffffff>;
+			clocks = <&nand_clk>;
+			status = "disabled";
+		};
+
 		ocram: sram at ffff0000 {
 			compatible = "mmio-sram";
 			reg = <0xffff0000 0x10000>;
Signature · 1 line
2.10.1
#1 lore raw

PATCH 1/1 ARM: dts: socfpga: add nand controller nodes

Quoted 22 lines · Steffen Trumtrar

Add the denali nand controller to the socfpga dtsi.

---
 arch/arm/boot/dts/socfpga.dtsi | 13 +++++++++++++
 1 file changed, 13 insertions(+)
arch/arm/boot/dts/socfpga.dtsi +6 -0
index 9f48141270b8..6b0c23ca5e88 100644
@@ -700,6 +700,19 @@
 			status = "disabled";
 		};
 
+		nand0: nand at ff900000 {
+			#address-cells = <0x1>;
+			#size-cells = <0x1>;
+			compatible = "denali,denali-nand-dt";
+			reg = <0xff900000 0x100000>,
+			      <0xffb80000 0x10000>;

arch/arm/boot/dts/socfpga.dtsi line 718

Quoted 10 lines
arch/arm/boot/dts/socfpga.dtsi +7 -0
+			reg-names = "nand_data", "denali_reg";
+			interrupts = <0x0 0x90 0x4>;
+			dma-mask = <0xffffffff>;
+			clocks = <&nand_clk>;
+			status = "disabled";
+		};
+
 		ocram: sram at ffff0000 {
 			compatible = "mmio-sram";
 			reg = <0xffff0000 0x10000>;

Since there's only 1 NAND node, do we need to call the node "nand0"? No need to resend a patch, I can change it locally if we agree that the node should be just:

nand: nand at ff900000

Dinh

#2 lore raw

PATCH 1/1 ARM: dts: socfpga: add nand controller nodes

Quoted 40 lines · Dinh Nguyen
Quoted 22 lines · Steffen Trumtrar

Add the denali nand controller to the socfpga dtsi.

---
 arch/arm/boot/dts/socfpga.dtsi | 13 +++++++++++++
 1 file changed, 13 insertions(+)
arch/arm/boot/dts/socfpga.dtsi +6 -0
index 9f48141270b8..6b0c23ca5e88 100644
@@ -700,6 +700,19 @@
 			status = "disabled";
 		};
 
+		nand0: nand at ff900000 {
+			#address-cells = <0x1>;
+			#size-cells = <0x1>;
+			compatible = "denali,denali-nand-dt";
+			reg = <0xff900000 0x100000>,
+			      <0xffb80000 0x10000>;

arch/arm/boot/dts/socfpga.dtsi line 718

Quoted 10 lines
arch/arm/boot/dts/socfpga.dtsi +7 -0
+			reg-names = "nand_data", "denali_reg";
+			interrupts = <0x0 0x90 0x4>;
+			dma-mask = <0xffffffff>;
+			clocks = <&nand_clk>;
+			status = "disabled";
+		};
+
 		ocram: sram at ffff0000 {
 			compatible = "mmio-sram";
 			reg = <0xffff0000 0x10000>;

Since there's only 1 NAND node, do we need to call the node "nand0"? No need to resend a patch, I can change it locally if we agree that the node should be just:

Quoted 2 lines

nand: nand at ff900000

Okay with me. Go ahead.

Thanks,
Steffen

Signature · 4 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |