summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/mtd/samsung,s5pv210-onenand.yaml
blob: e07941b69904759d490d3e1cc43ed2e6a019212b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/mtd/samsung,s5pv210-onenand.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Samsung S5Pv210 SoC OneNAND Controller

maintainers:
  - Krzysztof Kozlowski <krzk@kernel.org>

properties:
  compatible:
    enum:
      - samsung,s5pv210-onenand

  reg:
    items:
      - description: Control registers
      - description: OneNAND interface nCE[0]
      - description: OneNAND interface nCE[1]

  clocks:
    maxItems: 2

  clock-names:
    items:
      - const: bus
      - const: onenand

  interrupts:
    maxItems: 1

required:
  - compatible
  - reg
  - clocks
  - clock-names
  - interrupts

allOf:
  - $ref: nand-controller.yaml

unevaluatedProperties: false

examples:
  - |
    #include <dt-bindings/clock/s5pv210.h>

    nand-controller@b0600000 {
        compatible = "samsung,s5pv210-onenand";
        reg = <0xb0600000 0x2000>,
              <0xb0000000 0x20000>,
              <0xb0040000 0x20000>;
        clocks = <&clocks CLK_NANDXL>, <&clocks DOUT_FLASH>;
        clock-names = "bus", "onenand";
        interrupt-parent = <&vic1>;
        interrupts = <31>;
        #address-cells = <1>;
        #size-cells = <0>;

        nand@0 {
            reg = <0>;
        };
    };