0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/mtd/ti,gpmc-onenand.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: OneNAND over Texas Instruments GPMC bus.
0008
0009 maintainers:
0010 - Tony Lindgren <tony@atomide.com>
0011 - Roger Quadros <rogerq@kernel.org>
0012
0013 description:
0014 GPMC connected OneNAND (found on OMAP boards) are represented
0015 as child nodes of the GPMC controller.
0016
0017 properties:
0018 compatible:
0019 const: ti,omap2-onenand
0020
0021 reg:
0022 items:
0023 - description: |
0024 Chip Select number, register offset and size of
0025 OneNAND register window.
0026
0027 "#address-cells": true
0028
0029 "#size-cells": true
0030
0031 int-gpios:
0032 description: GPIO specifier for the INT pin.
0033
0034 patternProperties:
0035 "@[0-9a-f]+$":
0036 $ref: "/schemas/mtd/partitions/partition.yaml"
0037
0038 allOf:
0039 - $ref: "/schemas/memory-controllers/ti,gpmc-child.yaml"
0040
0041 required:
0042 - compatible
0043 - reg
0044 - "#address-cells"
0045 - "#size-cells"
0046
0047 unevaluatedProperties: false
0048
0049 examples:
0050 - |
0051 gpmc: memory-controller@6e000000 {
0052 compatible = "ti,omap3430-gpmc";
0053 reg = <0x6e000000 0x02d0>;
0054 interrupts = <20>;
0055 gpmc,num-cs = <8>;
0056 gpmc,num-waitpins = <4>;
0057 clocks = <&l3s_clkctrl>;
0058 clock-names = "fck";
0059 #address-cells = <2>;
0060 #size-cells = <1>;
0061
0062 ranges = <0 0 0x01000000 0x01000000>, /* 16 MB for OneNAND */
0063 <1 0 0x02000000 0x01000000>; /* 16 MB for smc91c96 */
0064
0065 onenand@0,0 {
0066 compatible = "ti,omap2-onenand";
0067 reg = <0 0 0x20000>; /* CS0, offset 0, IO size 128K */
0068 #address-cells = <1>;
0069 #size-cells = <1>;
0070
0071 partition@0 {
0072 label = "bootloader";
0073 reg = <0x00000000 0x00100000>;
0074 };
0075
0076 partition@100000 {
0077 label = "config";
0078 reg = <0x00100000 0x002c0000>;
0079 };
0080 };
0081 };