xref: /freebsd/sys/contrib/device-tree/Bindings/mtd/ti,gpmc-onenand.yaml (revision fac71e4e09885bb2afa3d984a0c239a52e1a7418)
18cc087a1SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
28cc087a1SEmmanuel Vadot%YAML 1.2
38cc087a1SEmmanuel Vadot---
48cc087a1SEmmanuel Vadot$id: http://devicetree.org/schemas/mtd/ti,gpmc-onenand.yaml#
58cc087a1SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
68cc087a1SEmmanuel Vadot
78cc087a1SEmmanuel Vadottitle: OneNAND over Texas Instruments GPMC bus.
88cc087a1SEmmanuel Vadot
98cc087a1SEmmanuel Vadotmaintainers:
108cc087a1SEmmanuel Vadot  - Tony Lindgren <tony@atomide.com>
118cc087a1SEmmanuel Vadot  - Roger Quadros <rogerq@kernel.org>
128cc087a1SEmmanuel Vadot
138cc087a1SEmmanuel Vadotdescription:
148cc087a1SEmmanuel Vadot  GPMC connected OneNAND (found on OMAP boards) are represented
158cc087a1SEmmanuel Vadot  as child nodes of the GPMC controller.
168cc087a1SEmmanuel Vadot
178cc087a1SEmmanuel Vadotproperties:
188bab661aSEmmanuel Vadot  $nodename:
198bab661aSEmmanuel Vadot    pattern: "^onenand@[0-9],[0,9]$"
208bab661aSEmmanuel Vadot
218cc087a1SEmmanuel Vadot  compatible:
228cc087a1SEmmanuel Vadot    const: ti,omap2-onenand
238cc087a1SEmmanuel Vadot
248cc087a1SEmmanuel Vadot  reg:
258cc087a1SEmmanuel Vadot    items:
268cc087a1SEmmanuel Vadot      - description: |
278cc087a1SEmmanuel Vadot          Chip Select number, register offset and size of
288cc087a1SEmmanuel Vadot          OneNAND register window.
298cc087a1SEmmanuel Vadot
308cc087a1SEmmanuel Vadot  "#address-cells": true
318cc087a1SEmmanuel Vadot
328cc087a1SEmmanuel Vadot  "#size-cells": true
338cc087a1SEmmanuel Vadot
348cc087a1SEmmanuel Vadot  int-gpios:
358cc087a1SEmmanuel Vadot    description: GPIO specifier for the INT pin.
368cc087a1SEmmanuel Vadot
378cc087a1SEmmanuel VadotpatternProperties:
388cc087a1SEmmanuel Vadot  "@[0-9a-f]+$":
39*fac71e4eSEmmanuel Vadot    $ref: /schemas/mtd/partitions/partition.yaml
408cc087a1SEmmanuel Vadot
418cc087a1SEmmanuel VadotallOf:
42*fac71e4eSEmmanuel Vadot  - $ref: /schemas/memory-controllers/ti,gpmc-child.yaml
438cc087a1SEmmanuel Vadot
448cc087a1SEmmanuel Vadotrequired:
458cc087a1SEmmanuel Vadot  - compatible
468cc087a1SEmmanuel Vadot  - reg
478cc087a1SEmmanuel Vadot  - "#address-cells"
488cc087a1SEmmanuel Vadot  - "#size-cells"
498cc087a1SEmmanuel Vadot
508cc087a1SEmmanuel VadotunevaluatedProperties: false
518cc087a1SEmmanuel Vadot
528cc087a1SEmmanuel Vadotexamples:
538cc087a1SEmmanuel Vadot  - |
548cc087a1SEmmanuel Vadot    gpmc: memory-controller@6e000000 {
558cc087a1SEmmanuel Vadot      compatible = "ti,omap3430-gpmc";
568cc087a1SEmmanuel Vadot      reg = <0x6e000000 0x02d0>;
578cc087a1SEmmanuel Vadot      interrupts = <20>;
588cc087a1SEmmanuel Vadot      gpmc,num-cs = <8>;
598cc087a1SEmmanuel Vadot      gpmc,num-waitpins = <4>;
608cc087a1SEmmanuel Vadot      clocks = <&l3s_clkctrl>;
618cc087a1SEmmanuel Vadot      clock-names = "fck";
628cc087a1SEmmanuel Vadot      #address-cells = <2>;
638cc087a1SEmmanuel Vadot      #size-cells = <1>;
648cc087a1SEmmanuel Vadot
658cc087a1SEmmanuel Vadot      ranges = <0 0 0x01000000 0x01000000>,   /* 16 MB for OneNAND */
668cc087a1SEmmanuel Vadot               <1 0 0x02000000 0x01000000>;   /* 16 MB for smc91c96 */
678cc087a1SEmmanuel Vadot
688cc087a1SEmmanuel Vadot      onenand@0,0 {
698cc087a1SEmmanuel Vadot        compatible = "ti,omap2-onenand";
708cc087a1SEmmanuel Vadot        reg = <0 0 0x20000>;    /* CS0, offset 0, IO size 128K */
718cc087a1SEmmanuel Vadot        #address-cells = <1>;
728cc087a1SEmmanuel Vadot        #size-cells = <1>;
738cc087a1SEmmanuel Vadot
748cc087a1SEmmanuel Vadot        partition@0 {
758cc087a1SEmmanuel Vadot          label = "bootloader";
768cc087a1SEmmanuel Vadot          reg = <0x00000000 0x00100000>;
778cc087a1SEmmanuel Vadot        };
788cc087a1SEmmanuel Vadot
798cc087a1SEmmanuel Vadot        partition@100000 {
808cc087a1SEmmanuel Vadot          label = "config";
818cc087a1SEmmanuel Vadot          reg = <0x00100000 0x002c0000>;
828cc087a1SEmmanuel Vadot        };
838cc087a1SEmmanuel Vadot      };
848cc087a1SEmmanuel Vadot    };
85