Skip to content

Commit 801b084

Browse files
committed
Merge tag 'nand/for-6.19' into mtd/next
Raw NAND changes: * The major change in this MR will be the support for the Allwinner H616 NAND controller, which lead to numerous changes and cleanups in the driver. * Another notable change on this driver is the use of field_get()/field_prep(), but since the global support for this helpers is going to be merged in the same release as we start using these helpers, it implies undefining them in the first place to avoid warnings. Depending on the merging order (Yuri's bitmap branch or mtd/next), a temporary warning may arise. * Marvell drivers layout handling changes have also landed, they fix previous definitions and abuses that have been made previously, which implied to relax the ECC parameters validation in the core a bit. * The Cadence NAND controller driver gets NV-DDR interface support. SPI NAND changes: * Support for FudanMicro FM25S01BI3 and ESMT F50L1G41LC is added. Aside from these main changes, there is the usual load of fixes and API updates.
2 parents de95c58 + f6dffe2 commit 801b084

13 files changed

Lines changed: 760 additions & 99 deletions

File tree

Documentation/devicetree/bindings/mtd/allwinner,sun4i-a10-nand.yaml

Lines changed: 38 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ $schema: http://devicetree.org/meta-schemas/core.yaml#
66

77
title: Allwinner A10 NAND Controller
88

9-
allOf:
10-
- $ref: nand-controller.yaml
11-
129
maintainers:
1310
- Chen-Yu Tsai <wens@csie.org>
1411
- Maxime Ripard <mripard@kernel.org>
@@ -18,21 +15,29 @@ properties:
1815
enum:
1916
- allwinner,sun4i-a10-nand
2017
- allwinner,sun8i-a23-nand-controller
18+
- allwinner,sun50i-h616-nand-controller
19+
2120
reg:
2221
maxItems: 1
2322

2423
interrupts:
2524
maxItems: 1
2625

2726
clocks:
27+
minItems: 2
2828
items:
2929
- description: Bus Clock
3030
- description: Module Clock
31+
- description: ECC Clock
32+
- description: MBus Clock
3133

3234
clock-names:
35+
minItems: 2
3336
items:
3437
- const: ahb
3538
- const: mod
39+
- const: ecc
40+
- const: mbus
3641

3742
resets:
3843
maxItems: 1
@@ -85,6 +90,36 @@ required:
8590

8691
unevaluatedProperties: false
8792

93+
allOf:
94+
- $ref: nand-controller.yaml
95+
96+
- if:
97+
properties:
98+
compatible:
99+
contains:
100+
enum:
101+
- allwinner,sun4i-a10-nand
102+
- allwinner,sun8i-a23-nand-controller
103+
then:
104+
properties:
105+
clocks:
106+
maxItems: 2
107+
clock-names:
108+
maxItems: 2
109+
110+
- if:
111+
properties:
112+
compatible:
113+
contains:
114+
enum:
115+
- allwinner,sun50i-h616-nand-controller
116+
then:
117+
properties:
118+
clocks:
119+
minItems: 4
120+
clock-names:
121+
minItems: 4
122+
88123
examples:
89124
- |
90125
#include <dt-bindings/interrupt-controller/arm-gic.h>

drivers/mtd/nand/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ config MTD_NAND_ECC_MEDIATEK
6363

6464
config MTD_NAND_ECC_REALTEK
6565
tristate "Realtek RTL93xx hardware ECC engine"
66-
depends on HAS_IOMEM
66+
depends on HAS_IOMEM && HAS_DMA
6767
depends on MACH_REALTEK_RTL || COMPILE_TEST
6868
select MTD_NAND_ECC
6969
help

0 commit comments

Comments
 (0)