xref: /freebsd/sys/contrib/device-tree/Bindings/mtd/samsung,s5pv210-onenand.yaml (revision 7d0873ebb83b19ba1e8a89e679470d885efe12e3)
1*7d0873ebSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2*7d0873ebSEmmanuel Vadot%YAML 1.2
3*7d0873ebSEmmanuel Vadot---
4*7d0873ebSEmmanuel Vadot$id: http://devicetree.org/schemas/mtd/samsung,s5pv210-onenand.yaml#
5*7d0873ebSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*7d0873ebSEmmanuel Vadot
7*7d0873ebSEmmanuel Vadottitle: Samsung S5Pv210 SoC OneNAND Controller
8*7d0873ebSEmmanuel Vadot
9*7d0873ebSEmmanuel Vadotmaintainers:
10*7d0873ebSEmmanuel Vadot  - Krzysztof Kozlowski <krzk@kernel.org>
11*7d0873ebSEmmanuel Vadot
12*7d0873ebSEmmanuel Vadotproperties:
13*7d0873ebSEmmanuel Vadot  compatible:
14*7d0873ebSEmmanuel Vadot    enum:
15*7d0873ebSEmmanuel Vadot      - samsung,s5pv210-onenand
16*7d0873ebSEmmanuel Vadot
17*7d0873ebSEmmanuel Vadot  reg:
18*7d0873ebSEmmanuel Vadot    items:
19*7d0873ebSEmmanuel Vadot      - description: Control registers
20*7d0873ebSEmmanuel Vadot      - description: OneNAND interface nCE[0]
21*7d0873ebSEmmanuel Vadot      - description: OneNAND interface nCE[1]
22*7d0873ebSEmmanuel Vadot
23*7d0873ebSEmmanuel Vadot  clocks:
24*7d0873ebSEmmanuel Vadot    maxItems: 2
25*7d0873ebSEmmanuel Vadot
26*7d0873ebSEmmanuel Vadot  clock-names:
27*7d0873ebSEmmanuel Vadot    items:
28*7d0873ebSEmmanuel Vadot      - const: bus
29*7d0873ebSEmmanuel Vadot      - const: onenand
30*7d0873ebSEmmanuel Vadot
31*7d0873ebSEmmanuel Vadot  interrupts:
32*7d0873ebSEmmanuel Vadot    maxItems: 1
33*7d0873ebSEmmanuel Vadot
34*7d0873ebSEmmanuel Vadotrequired:
35*7d0873ebSEmmanuel Vadot  - compatible
36*7d0873ebSEmmanuel Vadot  - reg
37*7d0873ebSEmmanuel Vadot  - clocks
38*7d0873ebSEmmanuel Vadot  - clock-names
39*7d0873ebSEmmanuel Vadot  - interrupts
40*7d0873ebSEmmanuel Vadot
41*7d0873ebSEmmanuel VadotallOf:
42*7d0873ebSEmmanuel Vadot  - $ref: nand-controller.yaml
43*7d0873ebSEmmanuel Vadot
44*7d0873ebSEmmanuel VadotunevaluatedProperties: false
45*7d0873ebSEmmanuel Vadot
46*7d0873ebSEmmanuel Vadotexamples:
47*7d0873ebSEmmanuel Vadot  - |
48*7d0873ebSEmmanuel Vadot    #include <dt-bindings/clock/s5pv210.h>
49*7d0873ebSEmmanuel Vadot
50*7d0873ebSEmmanuel Vadot    nand-controller@b0600000 {
51*7d0873ebSEmmanuel Vadot        compatible = "samsung,s5pv210-onenand";
52*7d0873ebSEmmanuel Vadot        reg = <0xb0600000 0x2000>,
53*7d0873ebSEmmanuel Vadot              <0xb0000000 0x20000>,
54*7d0873ebSEmmanuel Vadot              <0xb0040000 0x20000>;
55*7d0873ebSEmmanuel Vadot        clocks = <&clocks CLK_NANDXL>, <&clocks DOUT_FLASH>;
56*7d0873ebSEmmanuel Vadot        clock-names = "bus", "onenand";
57*7d0873ebSEmmanuel Vadot        interrupt-parent = <&vic1>;
58*7d0873ebSEmmanuel Vadot        interrupts = <31>;
59*7d0873ebSEmmanuel Vadot        #address-cells = <1>;
60*7d0873ebSEmmanuel Vadot        #size-cells = <0>;
61*7d0873ebSEmmanuel Vadot
62*7d0873ebSEmmanuel Vadot        nand@0 {
63*7d0873ebSEmmanuel Vadot            reg = <0>;
64*7d0873ebSEmmanuel Vadot        };
65*7d0873ebSEmmanuel Vadot    };
66