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

dt-bindings: mtd: Add Samsung S5Pv210 OneNAND

Document binding for Samsung S5Pv210 SoC OneNAND controller used already
in S5Pv210 DTS.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20240313184317.18466-1-krzysztof.kozlowski@linaro.org

authored by

Krzysztof Kozlowski and committed by
Miquel Raynal
26729dbb fe0b8213

+65
+65
Documentation/devicetree/bindings/mtd/samsung,s5pv210-onenand.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/mtd/samsung,s5pv210-onenand.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Samsung S5Pv210 SoC OneNAND Controller 8 + 9 + maintainers: 10 + - Krzysztof Kozlowski <krzk@kernel.org> 11 + 12 + properties: 13 + compatible: 14 + enum: 15 + - samsung,s5pv210-onenand 16 + 17 + reg: 18 + items: 19 + - description: Control registers 20 + - description: OneNAND interface nCE[0] 21 + - description: OneNAND interface nCE[1] 22 + 23 + clocks: 24 + maxItems: 2 25 + 26 + clock-names: 27 + items: 28 + - const: bus 29 + - const: onenand 30 + 31 + interrupts: 32 + maxItems: 1 33 + 34 + required: 35 + - compatible 36 + - reg 37 + - clocks 38 + - clock-names 39 + - interrupts 40 + 41 + allOf: 42 + - $ref: nand-controller.yaml 43 + 44 + unevaluatedProperties: false 45 + 46 + examples: 47 + - | 48 + #include <dt-bindings/clock/s5pv210.h> 49 + 50 + nand-controller@b0600000 { 51 + compatible = "samsung,s5pv210-onenand"; 52 + reg = <0xb0600000 0x2000>, 53 + <0xb0000000 0x20000>, 54 + <0xb0040000 0x20000>; 55 + clocks = <&clocks CLK_NANDXL>, <&clocks DOUT_FLASH>; 56 + clock-names = "bus", "onenand"; 57 + interrupt-parent = <&vic1>; 58 + interrupts = <31>; 59 + #address-cells = <1>; 60 + #size-cells = <0>; 61 + 62 + nand@0 { 63 + reg = <0>; 64 + }; 65 + };