Skip to content

Commit 26729db

Browse files
krzkmiquelraynal
authored andcommitted
dt-bindings: mtd: Add Samsung S5Pv210 OneNAND
Document binding for Samsung S5Pv210 SoC OneNAND controller used already in S5Pv210 DTS. Signed-off-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: Rob Herring <[email protected]> Signed-off-by: Miquel Raynal <[email protected]> Link: https://lore.kernel.org/linux-mtd/[email protected]
1 parent fe0b821 commit 26729db

File tree

1 file changed

+65
-0
lines changed

1 file changed

+65
-0
lines changed
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/mtd/samsung,s5pv210-onenand.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Samsung S5Pv210 SoC OneNAND Controller
8+
9+
maintainers:
10+
- Krzysztof Kozlowski <[email protected]>
11+
12+
properties:
13+
compatible:
14+
enum:
15+
- samsung,s5pv210-onenand
16+
17+
reg:
18+
items:
19+
- description: Control registers
20+
- description: OneNAND interface nCE[0]
21+
- description: OneNAND interface nCE[1]
22+
23+
clocks:
24+
maxItems: 2
25+
26+
clock-names:
27+
items:
28+
- const: bus
29+
- const: onenand
30+
31+
interrupts:
32+
maxItems: 1
33+
34+
required:
35+
- compatible
36+
- reg
37+
- clocks
38+
- clock-names
39+
- interrupts
40+
41+
allOf:
42+
- $ref: nand-controller.yaml
43+
44+
unevaluatedProperties: false
45+
46+
examples:
47+
- |
48+
#include <dt-bindings/clock/s5pv210.h>
49+
50+
nand-controller@b0600000 {
51+
compatible = "samsung,s5pv210-onenand";
52+
reg = <0xb0600000 0x2000>,
53+
<0xb0000000 0x20000>,
54+
<0xb0040000 0x20000>;
55+
clocks = <&clocks CLK_NANDXL>, <&clocks DOUT_FLASH>;
56+
clock-names = "bus", "onenand";
57+
interrupt-parent = <&vic1>;
58+
interrupts = <31>;
59+
#address-cells = <1>;
60+
#size-cells = <0>;
61+
62+
nand@0 {
63+
reg = <0>;
64+
};
65+
};

0 commit comments

Comments
 (0)