12f86102bSMiquel Raynal# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
22f86102bSMiquel Raynal%YAML 1.2
32f86102bSMiquel Raynal---
42f86102bSMiquel Raynal$id: http://devicetree.org/schemas/mtd/arm,pl353-nand-r2p1.yaml#
52f86102bSMiquel Raynal$schema: http://devicetree.org/meta-schemas/core.yaml#
62f86102bSMiquel Raynal
7*dd3cb467SAndrew Lunntitle: PL353 NAND Controller
82f86102bSMiquel Raynal
92f86102bSMiquel RaynalallOf:
102f86102bSMiquel Raynal  - $ref: nand-controller.yaml
112f86102bSMiquel Raynal
122f86102bSMiquel Raynalmaintainers:
132f86102bSMiquel Raynal  - Miquel Raynal <miquel.raynal@bootlin.com>
142f86102bSMiquel Raynal
152f86102bSMiquel Raynalproperties:
162f86102bSMiquel Raynal  compatible:
172f86102bSMiquel Raynal    items:
182f86102bSMiquel Raynal      - const: arm,pl353-nand-r2p1
192f86102bSMiquel Raynal
202f86102bSMiquel Raynal  reg:
212f86102bSMiquel Raynal    items:
222f86102bSMiquel Raynal      - items:
232f86102bSMiquel Raynal          - description: CS with regard to the parent ranges property
242f86102bSMiquel Raynal          - description: Offset of the memory region requested by the device
252f86102bSMiquel Raynal          - description: Length of the memory region requested by the device
262f86102bSMiquel Raynal
272f86102bSMiquel Raynalrequired:
282f86102bSMiquel Raynal  - compatible
292f86102bSMiquel Raynal  - reg
302f86102bSMiquel Raynal
312f86102bSMiquel RaynalunevaluatedProperties: false
322f86102bSMiquel Raynal
332f86102bSMiquel Raynalexamples:
342f86102bSMiquel Raynal  - |
352f86102bSMiquel Raynal    smcc: memory-controller@e000e000 {
362f86102bSMiquel Raynal        compatible = "arm,pl353-smc-r2p1", "arm,primecell";
372f86102bSMiquel Raynal        reg = <0xe000e000 0x0001000>;
382f86102bSMiquel Raynal        clock-names = "memclk", "apb_pclk";
392f86102bSMiquel Raynal        clocks = <&clkc 11>, <&clkc 44>;
402f86102bSMiquel Raynal        ranges = <0x0 0x0 0xe1000000 0x1000000 /* Nand CS region */
412f86102bSMiquel Raynal                  0x1 0x0 0xe2000000 0x2000000 /* SRAM/NOR CS0 region */
422f86102bSMiquel Raynal                  0x2 0x0 0xe4000000 0x2000000>; /* SRAM/NOR CS1 region */
432f86102bSMiquel Raynal        #address-cells = <2>;
442f86102bSMiquel Raynal        #size-cells = <1>;
452f86102bSMiquel Raynal
462f86102bSMiquel Raynal        nfc0: nand-controller@0,0 {
472f86102bSMiquel Raynal            compatible = "arm,pl353-nand-r2p1";
482f86102bSMiquel Raynal            reg = <0 0 0x1000000>;
492f86102bSMiquel Raynal            #address-cells = <1>;
502f86102bSMiquel Raynal            #size-cells = <0>;
512f86102bSMiquel Raynal        };
522f86102bSMiquel Raynal    };
53