xref: /freebsd/sys/contrib/device-tree/Bindings/mtd/ti,gpmc-onenand.yaml (revision 7ef62cebc2f965b0f640263e179276928885e33d)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/mtd/ti,gpmc-onenand.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: OneNAND over Texas Instruments GPMC bus.
8
9maintainers:
10  - Tony Lindgren <tony@atomide.com>
11  - Roger Quadros <rogerq@kernel.org>
12
13description:
14  GPMC connected OneNAND (found on OMAP boards) are represented
15  as child nodes of the GPMC controller.
16
17properties:
18  compatible:
19    const: ti,omap2-onenand
20
21  reg:
22    items:
23      - description: |
24          Chip Select number, register offset and size of
25          OneNAND register window.
26
27  "#address-cells": true
28
29  "#size-cells": true
30
31  int-gpios:
32    description: GPIO specifier for the INT pin.
33
34patternProperties:
35  "@[0-9a-f]+$":
36    $ref: "/schemas/mtd/partitions/partition.yaml"
37
38allOf:
39  - $ref: "/schemas/memory-controllers/ti,gpmc-child.yaml"
40
41required:
42  - compatible
43  - reg
44  - "#address-cells"
45  - "#size-cells"
46
47unevaluatedProperties: false
48
49examples:
50  - |
51    gpmc: memory-controller@6e000000 {
52      compatible = "ti,omap3430-gpmc";
53      reg = <0x6e000000 0x02d0>;
54      interrupts = <20>;
55      gpmc,num-cs = <8>;
56      gpmc,num-waitpins = <4>;
57      clocks = <&l3s_clkctrl>;
58      clock-names = "fck";
59      #address-cells = <2>;
60      #size-cells = <1>;
61
62      ranges = <0 0 0x01000000 0x01000000>,   /* 16 MB for OneNAND */
63               <1 0 0x02000000 0x01000000>;   /* 16 MB for smc91c96 */
64
65      onenand@0,0 {
66        compatible = "ti,omap2-onenand";
67        reg = <0 0 0x20000>;    /* CS0, offset 0, IO size 128K */
68        #address-cells = <1>;
69        #size-cells = <1>;
70
71        partition@0 {
72          label = "bootloader";
73          reg = <0x00000000 0x00100000>;
74        };
75
76        partition@100000 {
77          label = "config";
78          reg = <0x00100000 0x002c0000>;
79        };
80      };
81    };
82