Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: mtd: update STM32 FMC2 NAND controller documentation

These bindings can be used on SOCs where the FMC2 NAND controller is
in standalone. In case that the FMC2 embeds 2 controllers (an external
bus controller and a raw NAND controller), the register base address,
the clock and the reset will be defined in the parent node.

Signed-off-by: Christophe Kerello <christophe.kerello@st.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/1591975362-22009-3-git-send-email-christophe.kerello@st.com

authored by

Christophe Kerello and committed by
Miquel Raynal
bce49d1e 5eeb7fe9

+57 -26
+57 -26
Documentation/devicetree/bindings/mtd/st,stm32-fmc2-nand.yaml
··· 9 9 maintainers: 10 10 - Christophe Kerello <christophe.kerello@st.com> 11 11 12 - allOf: 13 - - $ref: "nand-controller.yaml#" 14 - 15 12 properties: 16 13 compatible: 17 - const: st,stm32mp15-fmc2 14 + enum: 15 + - st,stm32mp15-fmc2 16 + - st,stm32mp1-fmc2-nfc 18 17 19 18 reg: 20 - items: 21 - - description: Registers 22 - - description: Chip select 0 data 23 - - description: Chip select 0 command 24 - - description: Chip select 0 address space 25 - - description: Chip select 1 data 26 - - description: Chip select 1 command 27 - - description: Chip select 1 address space 19 + minItems: 6 20 + maxItems: 7 28 21 29 22 interrupts: 30 - maxItems: 1 31 - 32 - clocks: 33 - maxItems: 1 34 - 35 - resets: 36 23 maxItems: 1 37 24 38 25 dmas: ··· 44 57 nand-ecc-strength: 45 58 enum: [1, 4 ,8 ] 46 59 60 + allOf: 61 + - $ref: "nand-controller.yaml#" 62 + 63 + - if: 64 + properties: 65 + compatible: 66 + contains: 67 + const: st,stm32mp15-fmc2 68 + then: 69 + properties: 70 + reg: 71 + items: 72 + - description: Registers 73 + - description: Chip select 0 data 74 + - description: Chip select 0 command 75 + - description: Chip select 0 address space 76 + - description: Chip select 1 data 77 + - description: Chip select 1 command 78 + - description: Chip select 1 address space 79 + 80 + clocks: 81 + maxItems: 1 82 + 83 + resets: 84 + maxItems: 1 85 + 86 + required: 87 + - clocks 88 + 89 + - if: 90 + properties: 91 + compatible: 92 + contains: 93 + const: st,stm32mp1-fmc2-nfc 94 + then: 95 + properties: 96 + reg: 97 + items: 98 + - description: Chip select 0 data 99 + - description: Chip select 0 command 100 + - description: Chip select 0 address space 101 + - description: Chip select 1 data 102 + - description: Chip select 1 command 103 + - description: Chip select 1 address space 104 + 47 105 required: 48 106 - compatible 49 107 - reg 50 108 - interrupts 51 - - clocks 52 109 53 110 examples: 54 111 - | ··· 108 77 <0x81000000 0x1000>, 109 78 <0x89010000 0x1000>, 110 79 <0x89020000 0x1000>; 111 - interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>; 112 - dmas = <&mdma1 20 0x10 0x12000a02 0x0 0x0>, 113 - <&mdma1 20 0x10 0x12000a08 0x0 0x0>, 114 - <&mdma1 21 0x10 0x12000a0a 0x0 0x0>; 115 - dma-names = "tx", "rx", "ecc"; 116 - clocks = <&rcc FMC_K>; 117 - resets = <&rcc FMC_R>; 80 + interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>; 81 + dmas = <&mdma1 20 0x2 0x12000a02 0x0 0x0>, 82 + <&mdma1 20 0x2 0x12000a08 0x0 0x0>, 83 + <&mdma1 21 0x2 0x12000a0a 0x0 0x0>; 84 + dma-names = "tx", "rx", "ecc"; 85 + clocks = <&rcc FMC_K>; 86 + resets = <&rcc FMC_R>; 118 87 #address-cells = <1>; 119 88 #size-cells = <0>; 120 89