Skip to content

Commit eef26f1

Browse files
cpackham-atlnzbroonie
authored andcommitted
dt-bindings: spi: Add realtek,rtl9301-snand
Add a dtschema for the SPI-NAND controller on the RTL9300 SoCs. The controller supports * Serial/Dual/Quad data with * PIO and DMA data read/write operation * Configurable flash access timing Signed-off-by: Chris Packham <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 36dbe45 commit eef26f1

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/spi/realtek,rtl9301-snand.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: SPI-NAND Flash Controller for Realtek RTL9300 SoCs
8+
9+
maintainers:
10+
- Chris Packham <[email protected]>
11+
12+
description:
13+
The Realtek RTL9300 SoCs have a built in SPI-NAND controller. It supports
14+
typical SPI-NAND page cache operations in single, dual or quad IO mode.
15+
16+
properties:
17+
compatible:
18+
oneOf:
19+
- items:
20+
- enum:
21+
- realtek,rtl9302b-snand
22+
- realtek,rtl9302c-snand
23+
- realtek,rtl9303-snand
24+
- const: realtek,rtl9301-snand
25+
- const: realtek,rtl9301-snand
26+
27+
reg:
28+
maxItems: 1
29+
30+
interrupts:
31+
maxItems: 1
32+
33+
clocks:
34+
maxItems: 1
35+
36+
required:
37+
- compatible
38+
- reg
39+
- interrupts
40+
- clocks
41+
42+
allOf:
43+
- $ref: /schemas/spi/spi-controller.yaml#
44+
45+
unevaluatedProperties: false
46+
47+
examples:
48+
- |
49+
spi@1a400 {
50+
compatible = "realtek,rtl9302c-snand", "realtek,rtl9301-snand";
51+
reg = <0x1a400 0x44>;
52+
interrupt-parent = <&intc>;
53+
interrupts = <19>;
54+
clocks = <&lx_clk>;
55+
#address-cells = <1>;
56+
#size-cells = <0>;
57+
58+
flash@0 {
59+
compatible = "spi-nand";
60+
reg = <0>;
61+
};
62+
};

0 commit comments

Comments
 (0)