~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/mtd/ti,gpmc-nand.yaml

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  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-nand.yaml#
  5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6 
  7 title: Texas Instruments GPMC NAND Flash controller.
  8 
  9 maintainers:
 10   - Tony Lindgren <tony@atomide.com>
 11   - Roger Quadros <rogerq@kernel.org>
 12 
 13 description:
 14   GPMC NAND controller/Flash is represented as a child of the
 15   GPMC controller node.
 16 
 17 properties:
 18   compatible:
 19     items:
 20       - enum:
 21           - ti,am64-nand
 22           - ti,omap2-nand
 23 
 24   reg:
 25     maxItems: 1
 26 
 27   interrupts:
 28     items:
 29       - description: Interrupt for fifoevent
 30       - description: Interrupt for termcount
 31 
 32   "#address-cells": true
 33 
 34   "#size-cells": true
 35 
 36   ti,nand-ecc-opt:
 37     description: Desired ECC algorithm
 38     $ref: /schemas/types.yaml#/definitions/string
 39     enum: [sw, ham1, bch4, bch8, bch16]
 40 
 41   ti,nand-xfer-type:
 42     description: Data transfer method between controller and chip.
 43     $ref: /schemas/types.yaml#/definitions/string
 44     enum: [prefetch-polled, polled, prefetch-dma, prefetch-irq]
 45     default: prefetch-polled
 46 
 47   ti,elm-id:
 48     description:
 49       phandle to the ELM (Error Location Module).
 50     $ref: /schemas/types.yaml#/definitions/phandle
 51 
 52   nand-bus-width:
 53     description:
 54       Bus width to the NAND chip
 55     $ref: /schemas/types.yaml#/definitions/uint32
 56     enum: [8, 16]
 57     default: 8
 58 
 59   rb-gpios:
 60     description:
 61       GPIO connection to R/B signal from NAND chip
 62     maxItems: 1
 63 
 64 allOf:
 65   - $ref: /schemas/memory-controllers/ti,gpmc-child.yaml
 66   - $ref: mtd.yaml#
 67 
 68 required:
 69   - compatible
 70   - reg
 71   - ti,nand-ecc-opt
 72 
 73 unevaluatedProperties: false
 74 
 75 examples:
 76   - |
 77     #include <dt-bindings/interrupt-controller/arm-gic.h>
 78     #include <dt-bindings/gpio/gpio.h>
 79 
 80     gpmc: memory-controller@50000000 {
 81       compatible = "ti,am3352-gpmc";
 82       dmas = <&edma 52 0>;
 83       dma-names = "rxtx";
 84       clocks = <&l3s_gclk>;
 85       clock-names = "fck";
 86       reg = <0x50000000 0x2000>;
 87       interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>;
 88       gpmc,num-cs = <7>;
 89       gpmc,num-waitpins = <2>;
 90       #address-cells = <2>;
 91       #size-cells = <1>;
 92       interrupt-controller;
 93       #interrupt-cells = <2>;
 94       gpio-controller;
 95       #gpio-cells = <2>;
 96 
 97       ranges = <0 0 0x08000000 0x01000000>;   /* CS0 space. Min partition = 16MB */
 98       nand@0,0 {
 99         compatible = "ti,omap2-nand";
100         reg = <0 0 4>;          /* device IO registers */
101         interrupt-parent = <&gpmc>;
102         interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
103                      <1 IRQ_TYPE_NONE>; /* termcount */
104         ti,nand-xfer-type = "prefetch-dma";
105         ti,nand-ecc-opt = "bch16";
106         ti,elm-id = <&elm>;
107         #address-cells = <1>;
108         #size-cells = <1>;
109 
110         /* NAND generic properties */
111         nand-bus-width = <8>;
112         rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>;  /* gpmc_wait0 */
113 
114         /* GPMC properties*/
115         gpmc,device-width = <1>;
116 
117         partition@0 {
118           label = "NAND.SPL";
119           reg = <0x00000000 0x00040000>;
120         };
121         partition@1 {
122           label = "NAND.SPL.backup1";
123           reg = <0x00040000 0x00040000>;
124         };
125       };
126     };

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php