Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: GPL-2.0
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/mtd/allwinner,sun4i-a10-nand.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Allwinner A10 NAND Controller Device Tree Bindings
0008 
0009 allOf:
0010   - $ref: "nand-controller.yaml"
0011 
0012 maintainers:
0013   - Chen-Yu Tsai <wens@csie.org>
0014   - Maxime Ripard <mripard@kernel.org>
0015 
0016 properties:
0017   "#address-cells": true
0018   "#size-cells": true
0019 
0020   compatible:
0021     enum:
0022       - allwinner,sun4i-a10-nand
0023       - allwinner,sun8i-a23-nand-controller
0024   reg:
0025     maxItems: 1
0026 
0027   interrupts:
0028     maxItems: 1
0029 
0030   clocks:
0031     items:
0032       - description: Bus Clock
0033       - description: Module Clock
0034 
0035   clock-names:
0036     items:
0037       - const: ahb
0038       - const: mod
0039 
0040   resets:
0041     maxItems: 1
0042 
0043   reset-names:
0044     const: ahb
0045 
0046   dmas:
0047     maxItems: 1
0048 
0049   dma-names:
0050     const: rxtx
0051 
0052   pinctrl-names: true
0053 
0054 patternProperties:
0055   "^pinctrl-[0-9]+$": true
0056 
0057   "^nand@[a-f0-9]+$":
0058     type: object
0059     properties:
0060       reg:
0061         minimum: 0
0062         maximum: 7
0063 
0064       nand-ecc-mode: true
0065 
0066       nand-ecc-algo:
0067         const: bch
0068 
0069       nand-ecc-step-size:
0070         enum: [ 512, 1024 ]
0071 
0072       nand-ecc-strength:
0073         maximum: 80
0074 
0075       allwinner,rb:
0076         description:
0077           Contains the native Ready/Busy IDs.
0078         $ref: /schemas/types.yaml#/definitions/uint32-array
0079         minItems: 1
0080         maxItems: 2
0081         items:
0082           minimum: 0
0083           maximum: 1
0084 
0085     additionalProperties: false
0086 
0087 required:
0088   - compatible
0089   - reg
0090   - interrupts
0091   - clocks
0092   - clock-names
0093 
0094 additionalProperties: false
0095 
0096 ...