Skip to content

Commit 12bfcb8

Browse files
plappermaulmiquelraynal
authored andcommitted
dt-bindings: mtd: Add realtek,rtl9301-ecc
Add a dtschema for the ECC engine on the Realtek RTL93xx SoCs. The engine supports BCH6 and BCH12 parity for 512 byte blocks. The hardware can make use of interrupts but this is not yet supported by the driver. From the known datasheets it is connected to the LXB (lexra bus) and propably depends on its clock. Provide an optional clock property that can describe the relation. Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de> Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
1 parent 010dc7f commit 12bfcb8

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/mtd/realtek,rtl9301-ecc.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Realtek SoCs NAND ECC engine
8+
9+
maintainers:
10+
- Markus Stockhausen <markus.stockhausen@gmx.de>
11+
12+
properties:
13+
compatible:
14+
const: realtek,rtl9301-ecc
15+
16+
reg:
17+
maxItems: 1
18+
19+
clocks:
20+
maxItems: 1
21+
22+
interrupts:
23+
maxItems: 1
24+
25+
required:
26+
- compatible
27+
- reg
28+
29+
additionalProperties: false
30+
31+
examples:
32+
- |
33+
soc {
34+
#address-cells = <1>;
35+
#size-cells = <1>;
36+
37+
ecc0: ecc@1a600 {
38+
compatible = "realtek,rtl9301-ecc";
39+
reg = <0x1a600 0x54>;
40+
};
41+
};

0 commit comments

Comments
 (0)