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

dt-bindings: mtd: sunxi-nand: Add an example to validate the bindings

Copy-paste an existing DT node to ensure the dt_binding_check target
would catch any unforeseen difference.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/linux-mtd/20221114090315.848208-9-miquel.raynal@bootlin.com

+23
+23
Documentation/devicetree/bindings/mtd/allwinner,sun4i-a10-nand.yaml
··· 86 86 87 87 unevaluatedProperties: false 88 88 89 + examples: 90 + - | 91 + #include <dt-bindings/interrupt-controller/arm-gic.h> 92 + #include <dt-bindings/clock/sun6i-rtc.h> 93 + #include <dt-bindings/clock/sun8i-a23-a33-ccu.h> 94 + #include <dt-bindings/reset/sun8i-a23-a33-ccu.h> 95 + 96 + nand-controller@1c03000 { 97 + compatible = "allwinner,sun8i-a23-nand-controller"; 98 + reg = <0x01c03000 0x1000>; 99 + interrupts = <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>; 100 + clocks = <&ccu CLK_BUS_NAND>, <&ccu CLK_NAND>; 101 + clock-names = "ahb", "mod"; 102 + resets = <&ccu RST_BUS_NAND>; 103 + reset-names = "ahb"; 104 + dmas = <&dma 5>; 105 + dma-names = "rxtx"; 106 + pinctrl-names = "default"; 107 + pinctrl-0 = <&nand_pins &nand_cs0_pin &nand_rb0_pin>; 108 + #address-cells = <1>; 109 + #size-cells = <0>; 110 + }; 111 + 89 112 ...