1*5def4c47SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2*5def4c47SEmmanuel Vadot%YAML 1.2 3*5def4c47SEmmanuel Vadot--- 4*5def4c47SEmmanuel Vadot$id: http://devicetree.org/schemas/mtd/intel,lgm-nand.yaml# 5*5def4c47SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*5def4c47SEmmanuel Vadot 7*5def4c47SEmmanuel Vadottitle: Intel LGM SoC NAND Controller Device Tree Bindings 8*5def4c47SEmmanuel Vadot 9*5def4c47SEmmanuel VadotallOf: 10*5def4c47SEmmanuel Vadot - $ref: "nand-controller.yaml" 11*5def4c47SEmmanuel Vadot 12*5def4c47SEmmanuel Vadotmaintainers: 13*5def4c47SEmmanuel Vadot - Ramuthevar Vadivel Murugan <vadivel.muruganx.ramuthevar@linux.intel.com> 14*5def4c47SEmmanuel Vadot 15*5def4c47SEmmanuel Vadotproperties: 16*5def4c47SEmmanuel Vadot compatible: 17*5def4c47SEmmanuel Vadot const: intel,lgm-nand 18*5def4c47SEmmanuel Vadot 19*5def4c47SEmmanuel Vadot reg: 20*5def4c47SEmmanuel Vadot maxItems: 6 21*5def4c47SEmmanuel Vadot 22*5def4c47SEmmanuel Vadot reg-names: 23*5def4c47SEmmanuel Vadot items: 24*5def4c47SEmmanuel Vadot - const: ebunand 25*5def4c47SEmmanuel Vadot - const: hsnand 26*5def4c47SEmmanuel Vadot - const: nand_cs0 27*5def4c47SEmmanuel Vadot - const: nand_cs1 28*5def4c47SEmmanuel Vadot - const: addr_sel0 29*5def4c47SEmmanuel Vadot - const: addr_sel1 30*5def4c47SEmmanuel Vadot 31*5def4c47SEmmanuel Vadot clocks: 32*5def4c47SEmmanuel Vadot maxItems: 1 33*5def4c47SEmmanuel Vadot 34*5def4c47SEmmanuel Vadot dmas: 35*5def4c47SEmmanuel Vadot maxItems: 2 36*5def4c47SEmmanuel Vadot 37*5def4c47SEmmanuel Vadot dma-names: 38*5def4c47SEmmanuel Vadot items: 39*5def4c47SEmmanuel Vadot - const: tx 40*5def4c47SEmmanuel Vadot - const: rx 41*5def4c47SEmmanuel Vadot 42*5def4c47SEmmanuel Vadot "#address-cells": 43*5def4c47SEmmanuel Vadot const: 1 44*5def4c47SEmmanuel Vadot 45*5def4c47SEmmanuel Vadot "#size-cells": 46*5def4c47SEmmanuel Vadot const: 0 47*5def4c47SEmmanuel Vadot 48*5def4c47SEmmanuel VadotpatternProperties: 49*5def4c47SEmmanuel Vadot "^nand@[a-f0-9]+$": 50*5def4c47SEmmanuel Vadot type: object 51*5def4c47SEmmanuel Vadot properties: 52*5def4c47SEmmanuel Vadot reg: 53*5def4c47SEmmanuel Vadot minimum: 0 54*5def4c47SEmmanuel Vadot maximum: 7 55*5def4c47SEmmanuel Vadot 56*5def4c47SEmmanuel Vadot nand-ecc-mode: true 57*5def4c47SEmmanuel Vadot 58*5def4c47SEmmanuel Vadot nand-ecc-algo: 59*5def4c47SEmmanuel Vadot const: hw 60*5def4c47SEmmanuel Vadot 61*5def4c47SEmmanuel Vadot additionalProperties: false 62*5def4c47SEmmanuel Vadot 63*5def4c47SEmmanuel Vadotrequired: 64*5def4c47SEmmanuel Vadot - compatible 65*5def4c47SEmmanuel Vadot - reg 66*5def4c47SEmmanuel Vadot - reg-names 67*5def4c47SEmmanuel Vadot - clocks 68*5def4c47SEmmanuel Vadot - dmas 69*5def4c47SEmmanuel Vadot - dma-names 70*5def4c47SEmmanuel Vadot - "#address-cells" 71*5def4c47SEmmanuel Vadot - "#size-cells" 72*5def4c47SEmmanuel Vadot 73*5def4c47SEmmanuel VadotadditionalProperties: false 74*5def4c47SEmmanuel Vadot 75*5def4c47SEmmanuel Vadotexamples: 76*5def4c47SEmmanuel Vadot - | 77*5def4c47SEmmanuel Vadot nand-controller@e0f00000 { 78*5def4c47SEmmanuel Vadot compatible = "intel,lgm-nand"; 79*5def4c47SEmmanuel Vadot reg = <0xe0f00000 0x100>, 80*5def4c47SEmmanuel Vadot <0xe1000000 0x300>, 81*5def4c47SEmmanuel Vadot <0xe1400000 0x8000>, 82*5def4c47SEmmanuel Vadot <0xe1c00000 0x1000>, 83*5def4c47SEmmanuel Vadot <0x17400000 0x4>, 84*5def4c47SEmmanuel Vadot <0x17c00000 0x4>; 85*5def4c47SEmmanuel Vadot reg-names = "ebunand", "hsnand", "nand_cs0", "nand_cs1", 86*5def4c47SEmmanuel Vadot "addr_sel0", "addr_sel1"; 87*5def4c47SEmmanuel Vadot clocks = <&cgu0 125>; 88*5def4c47SEmmanuel Vadot dmas = <&dma0 8>, <&dma0 9>; 89*5def4c47SEmmanuel Vadot dma-names = "tx", "rx"; 90*5def4c47SEmmanuel Vadot #address-cells = <1>; 91*5def4c47SEmmanuel Vadot #size-cells = <0>; 92*5def4c47SEmmanuel Vadot 93*5def4c47SEmmanuel Vadot nand@0 { 94*5def4c47SEmmanuel Vadot reg = <0>; 95*5def4c47SEmmanuel Vadot nand-ecc-mode = "hw"; 96*5def4c47SEmmanuel Vadot }; 97*5def4c47SEmmanuel Vadot }; 98*5def4c47SEmmanuel Vadot 99*5def4c47SEmmanuel Vadot... 100