Skip to contentSkip to conversation

axs_nand - add driver for NAND controller used on Synopsys AXS dev boards

PATCH In review Alexey Brodkin 2 participants 3 messages Apr 8, 2015 – Apr 10, 2015 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 2/2 axs_nand - add driver for NAND controller used on Synopsys AXS dev boards

Cc Ezequiel Garcia <[email protected]>
Cc Vineet Gupta <[email protected]>
cc Brian Norris <[email protected]>
Cc Grant Likely <[email protected]>
Cc David Woodhouse <[email protected]>
Cc Francois Bedard <[email protected]>
---
 Documentation/devicetree/bindings/mtd/axs-nand.txt |  17 +
 drivers/mtd/nand/Kconfig                           |   6 +
 drivers/mtd/nand/Makefile                          |   1 +
 drivers/mtd/nand/axs_nand.c                        | 412 +++++++++++++++++++++
 4 files changed, 436 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/mtd/axs-nand.txt
 create mode 100644 drivers/mtd/nand/axs_nand.c
Documentation/devicetree/bindings/mtd/axs-nand.txt new file +17 -0
new file mode 100644
index 0000000..c522b7f
@@ -0,0 +1,17 @@
+* Synopsys AXS NAND controller
+
+Required properties:
+  - compatible: must be "snps,axs-nand"
+  - reg: physical base address and size of the registers map
+
+The device tree may optionally contain sub-nodes describing partitions of the
+address space. See partition.txt for more detail.
+
+Examples:
+
+flash@0x16000 {
+	#address-cells = <1>;
+	#size-cells = <1>;
+	compatible = "snps,axs-nand";
+	reg = < 0x16000 0x200 >;
+};
drivers/mtd/nand/Kconfig +6 -0
index dd10646..5ee715a 100644
@@ -516,4 +516,10 @@ config MTD_NAND_XWAY
 	  Enables support for NAND Flash chips on Lantiq XWAY SoCs. NAND is attached
 	  to the External Bus Unit (EBU).
 
+config MTD_NAND_AXS
+	tristate "Support for NAND on Synopsys AXS development board"
+	help
+	  Enables support for NAND Flash chips on Synopsys AXS development
+	  boards.
+
 endif # MTD_NAND
drivers/mtd/nand/Makefile +1 -0
index 9c847e4..5672dc4 100644
@@ -50,5 +50,6 @@ obj-$(CONFIG_MTD_NAND_JZ4740)		+= jz4740_nand.o
 obj-$(CONFIG_MTD_NAND_GPMI_NAND)	+= gpmi-nand/
 obj-$(CONFIG_MTD_NAND_XWAY)		+= xway_nand.o
 obj-$(CONFIG_MTD_NAND_BCM47XXNFLASH)	+= bcm47xxnflash/
+obj-$(CONFIG_MTD_NAND_AXS)		+= axs_nand.o
 
 nand-objs := nand_base.o nand_bbt.o nand_timings.o
drivers/mtd/nand/axs_nand.c new file +412 -0

412 lines not on this page · raw message

Signature · 1 line
2.1.0
#2 lore raw

What happened to 1/2? Whatever that was, I spotted a license mismatch in this 2/2.

drivers/mtd/nand/axs_nand.c line 9

Quoted 12 lines · Alexey Brodkin
drivers/mtd/nand/axs_nand.c new file +9 -0
@@ -0,0 +1,412 @@
+/*
+ * Copyright (C) 2014 Synopsys, Inc. (www.synopsys.com)
+ *
+ * Driver for NAND controller on Synopsys AXS development board.
+ *
+ * This file is subject to the terms and conditions of the GNU General Public
+ * License v2. See the file COPYING in the main directory of this archive for
+ * more details.
+ */

This states the license of this file is GPL v2.

drivers/mtd/nand/axs_nand.c line 412

Quoted 1 line
drivers/mtd/nand/axs_nand.c new file +1 -0
+MODULE_LICENSE("GPL");

According to include/linux/module.h this states the license is GPL v2 or later.

Paul Bolle

#3 lore raw

Hi Paul,

Quoted 19 lines · Paul Bolle

What happened to 1/2? Whatever that was, I spotted a license mismatch in this 2/2.

Quoted 12 lines · Alexey Brodkin

--- /dev/null
+-+-+- b/drivers/mtd/nand/axs_nand.c
@@ -0,0 +-1,412 @@

+-/*
+- * Copyright (C) 2014 Synopsys, Inc. (www.synopsys.com)
+- *
+- * Driver for NAND controller on Synopsys AXS development board.
+- *
+- * This file is subject to the terms and conditions of the GNU General Public
+- * License v2. See the file COPYING in the main directory of this archive for
+- * more details.
+- */

This states the license of this file is GPL v2.

Quoted 4 lines
Quoted 1 line

+-MODULE_LICENSE("GPL");

According to include/linux/module.h this states the license is GPL v2 or later.

I'm really sorry for this noise.

I meant to send a WIP patch for internal review and due to hard-coded CCs in the patch "get send-email" automatically added all of you in the CC field.

I'll try to be more careful next time.

And anyway I'm planning to submit this patch (probably with some more fixes) for normal review sometime soon.

-Alexey