Skip to content

Commit 51735ca

Browse files
author
Roger Quadros
committed
mtd: nand: omap: Update DT binding documentation
Add compatible id and interrupts. The NAND interrupts are provided by the GPMC controller node. Signed-off-by: Roger Quadros <rogerq@ti.com> Acked-by: Rob Herring <robh@kernel.org> Acked-by: Brian Norris <computersforpeace@gmail.com> Acked-by: Tony Lindgren <tony@atomide.com>
1 parent c9711ec commit 51735ca

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

‎Documentation/devicetree/bindings/mtd/gpmc-nand.txt‎

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ Documentation/devicetree/bindings/mtd/nand.txt
1313

1414
Required properties:
1515

16-
- reg: The CS line the peripheral is connected to
16+
- compatible: "ti,omap2-nand"
17+
- reg: range id (CS number), base offset and length of the
18+
NAND I/O space
19+
- interrupt-parent: must point to gpmc node
20+
- interrupts: Two interrupt specifiers, one for fifoevent, one for termcount.
1721

1822
Optional properties:
1923

@@ -55,17 +59,22 @@ Example for an AM33xx board:
5559
gpmc: gpmc@50000000 {
5660
compatible = "ti,am3352-gpmc";
5761
ti,hwmods = "gpmc";
58-
reg = <0x50000000 0x1000000>;
62+
reg = <0x50000000 0x36c>;
5963
interrupts = <100>;
6064
gpmc,num-cs = <8>;
6165
gpmc,num-waitpins = <2>;
6266
#address-cells = <2>;
6367
#size-cells = <1>;
64-
ranges = <0 0 0x08000000 0x2000>; /* CS0: NAND */
68+
ranges = <0 0 0x08000000 0x1000000>; /* CS0 space, 16MB */
6569
elm_id = <&elm>;
70+
interrupt-controller;
71+
#interrupt-cells = <2>;
6672

6773
nand@0,0 {
68-
reg = <0 0 0>; /* CS0, offset 0 */
74+
compatible = "ti,omap2-nand";
75+
reg = <0 0 4>; /* CS0, offset 0, NAND I/O window 4 */
76+
interrupt-parent = <&gpmc>;
77+
interrupts = <0 IRQ_TYPE_NONE>, <1 IRQ_TYPE NONE>;
6978
nand-bus-width = <16>;
7079
ti,nand-ecc-opt = "bch8";
7180
ti,nand-xfer-type = "polled";

0 commit comments

Comments
 (0)