Skip to content

Commit ef32476

Browse files
Merge tag 'nand/for-4.13' into MTD
From Boris: """ This pull request contains the following core changes: * addition of on-ecc support to Micron driver * addition of helpers to help drivers choose most appropriate ECC settings * deletion of dead-code (cached programming and ->errstat() hook) * make sure drivers that do not support the SET/GET FEATURES command return ENOTSUPP use a dummy ->set/get_features implementation returning -ENOTSUPP (required for Micron on-die ECC) * change the semantic of ecc->write_page() for drivers setting the NAND_ECC_CUSTOM_PAGE_ACCESS flag * support exiting 'GET STATUS' command in default ->cmdfunc() implementations * change the prototype of ->setup_data_interface() A bunch of driver related changes: * various cleanup, fixes and improvements of the MTK driver * OMAP DT bindings fixes * support for ->setup_data_interface() in the fsmc driver * support for imx7 in the gpmi driver * finalization of the denali driver rework (thanks to Masahiro for the work he's done on this driver) * fix "bitflips in erased pages" handling in the ifc driver * addition of PM ops and dynamic timing configuration to the atmel driver And as usual we also have a few minor cleanup/fixes/improvements patches across the subsystem. """
2 parents 8b9ef8f + 81667e9 commit ef32476

45 files changed

Lines changed: 2546 additions & 1628 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/devicetree/bindings/mtd/denali-nand.txt‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,23 @@
33
Required properties:
44
- compatible : should be one of the following:
55
"altr,socfpga-denali-nand" - for Altera SOCFPGA
6+
"socionext,uniphier-denali-nand-v5a" - for Socionext UniPhier (v5a)
7+
"socionext,uniphier-denali-nand-v5b" - for Socionext UniPhier (v5b)
68
- reg : should contain registers location and length for data and reg.
79
- reg-names: Should contain the reg names "nand_data" and "denali_reg"
810
- interrupts : The interrupt number.
911

12+
Optional properties:
13+
- nand-ecc-step-size: see nand.txt for details. If present, the value must be
14+
512 for "altr,socfpga-denali-nand"
15+
1024 for "socionext,uniphier-denali-nand-v5a"
16+
1024 for "socionext,uniphier-denali-nand-v5b"
17+
- nand-ecc-strength: see nand.txt for details. Valid values are:
18+
8, 15 for "altr,socfpga-denali-nand"
19+
8, 16, 24 for "socionext,uniphier-denali-nand-v5a"
20+
8, 16 for "socionext,uniphier-denali-nand-v5b"
21+
- nand-ecc-maximize: see nand.txt for details
22+
1023
The device tree may optionally contain sub-nodes describing partitions of the
1124
address space. See partition.txt for more detail.
1225

‎Documentation/devicetree/bindings/mtd/elm.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Error location module
22

33
Required properties:
4-
- compatible: Must be "ti,am33xx-elm"
4+
- compatible: Must be "ti,am3352-elm"
55
- reg: physical base address and size of the registers map.
66
- interrupts: Interrupt number for the elm.
77

‎Documentation/devicetree/bindings/mtd/gpmc-nand.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ the GPMC controller with a name of "nand".
55

66
All timing relevant properties as well as generic gpmc child properties are
77
explained in a separate documents - please refer to
8-
Documentation/devicetree/bindings/bus/ti-gpmc.txt
8+
Documentation/devicetree/bindings/memory-controllers/omap-gpmc.txt
99

1010
For NAND specific properties such as ECC modes or bus width, please refer to
1111
Documentation/devicetree/bindings/mtd/nand.txt

‎Documentation/devicetree/bindings/mtd/gpmc-nor.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ child nodes of the GPMC controller with a name of "nor".
55

66
All timing relevant properties as well as generic GPMC child properties are
77
explained in a separate documents. Please refer to
8-
Documentation/devicetree/bindings/bus/ti-gpmc.txt
8+
Documentation/devicetree/bindings/memory-controllers/omap-gpmc.txt
99

1010
Required properties:
1111
- bank-width: Width of NOR flash in bytes. GPMC supports 8-bit and
@@ -28,7 +28,7 @@ Required properties:
2828

2929
Optional properties:
3030
- gpmc,XXX Additional GPMC timings and settings parameters. See
31-
Documentation/devicetree/bindings/bus/ti-gpmc.txt
31+
Documentation/devicetree/bindings/memory-controllers/omap-gpmc.txt
3232

3333
Optional properties for partition table parsing:
3434
- #address-cells: should be set to 1

‎Documentation/devicetree/bindings/mtd/gpmc-onenand.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ the GPMC controller with a name of "onenand".
55

66
All timing relevant properties as well as generic gpmc child properties are
77
explained in a separate documents - please refer to
8-
Documentation/devicetree/bindings/bus/ti-gpmc.txt
8+
Documentation/devicetree/bindings/memory-controllers/omap-gpmc.txt
99

1010
Required properties:
1111

‎Documentation/devicetree/bindings/mtd/gpmi-nand.txt‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ The GPMI nand controller provides an interface to control the
44
NAND flash chips.
55

66
Required properties:
7-
- compatible : should be "fsl,<chip>-gpmi-nand"
7+
- compatible : should be "fsl,<chip>-gpmi-nand", chip can be:
8+
* imx23
9+
* imx28
10+
* imx6q
11+
* imx6sx
12+
* imx7d
813
- reg : should contain registers location and length for gpmi and bch.
914
- reg-names: Should contain the reg names "gpmi-nand" and "bch"
1015
- interrupts : BCH interrupt number.
@@ -13,6 +18,13 @@ Required properties:
1318
and GPMI DMA channel ID.
1419
Refer to dma.txt and fsl-mxs-dma.txt for details.
1520
- dma-names: Must be "rx-tx".
21+
- clocks : clocks phandle and clock specifier corresponding to each clock
22+
specified in clock-names.
23+
- clock-names : The "gpmi_io" clock is always required. Which clocks are
24+
exactly required depends on chip:
25+
* imx23/imx28 : "gpmi_io"
26+
* imx6q/sx : "gpmi_io", "gpmi_apb", "gpmi_bch", "gpmi_bch_apb", "per1_bch"
27+
* imx7d : "gpmi_io", "gpmi_bch_apb"
1628

1729
Optional properties:
1830
- nand-on-flash-bbt: boolean to enable on flash bbt option if not

‎Documentation/devicetree/bindings/mtd/mtk-nand.txt‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ tree nodes.
1212

1313
The first part of NFC is NAND Controller Interface (NFI) HW.
1414
Required NFI properties:
15-
- compatible: Should be "mediatek,mtxxxx-nfc".
15+
- compatible: Should be one of "mediatek,mt2701-nfc",
16+
"mediatek,mt2712-nfc".
1617
- reg: Base physical address and size of NFI.
1718
- interrupts: Interrupts of NFI.
1819
- clocks: NFI required clocks.
@@ -141,7 +142,7 @@ Example:
141142
==============
142143

143144
Required BCH properties:
144-
- compatible: Should be "mediatek,mtxxxx-ecc".
145+
- compatible: Should be one of "mediatek,mt2701-ecc", "mediatek,mt2712-ecc".
145146
- reg: Base physical address and size of ECC.
146147
- interrupts: Interrupts of ECC.
147148
- clocks: ECC required clocks.

‎Documentation/devicetree/bindings/mtd/nand.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Optional NAND chip properties:
2121

2222
- nand-ecc-mode : String, operation mode of the NAND ecc mode.
2323
Supported values are: "none", "soft", "hw", "hw_syndrome",
24-
"hw_oob_first".
24+
"hw_oob_first", "on-die".
2525
Deprecated values:
2626
"soft_bch": use "soft" and nand-ecc-algo instead
2727
- nand-ecc-algo: string, algorithm of NAND ECC.

‎Documentation/devicetree/bindings/net/gpmc-eth.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ the GPMC controller with an "ethernet" name.
99

1010
All timing relevant properties as well as generic GPMC child properties are
1111
explained in a separate documents. Please refer to
12-
Documentation/devicetree/bindings/bus/ti-gpmc.txt
12+
Documentation/devicetree/bindings/memory-controllers/omap-gpmc.txt
1313

1414
For the properties relevant to the ethernet controller connected to the GPMC
1515
refer to the binding documentation of the device. For example, the documentation
@@ -43,7 +43,7 @@ Required properties:
4343

4444
Optional properties:
4545
- gpmc,XXX Additional GPMC timings and settings parameters. See
46-
Documentation/devicetree/bindings/bus/ti-gpmc.txt
46+
Documentation/devicetree/bindings/memory-controllers/omap-gpmc.txt
4747

4848
Example:
4949

‎MAINTAINERS‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3895,6 +3895,12 @@ M: Pali Rohár <pali.rohar@gmail.com>
38953895
S: Maintained
38963896
F: drivers/platform/x86/dell-wmi.c
38973897

3898+
DENALI NAND DRIVER
3899+
M: Masahiro Yamada <yamada.masahiro@socionext.com>
3900+
L: linux-mtd@lists.infradead.org
3901+
S: Supported
3902+
F: drivers/mtd/nand/denali*
3903+
38983904
DESIGNWARE USB2 DRD IP DRIVER
38993905
M: John Youn <johnyoun@synopsys.com>
39003906
L: linux-usb@vger.kernel.org

0 commit comments

Comments
 (0)