[PATCH v3 4/5] dt-bindings: spi: add binding doc for spi-mtk-snfi

Chuanhong Guo gch981213 at gmail.com
Tue Apr 5 07:39:28 PDT 2022


Hi!

On Tue, Apr 5, 2022 at 3:20 PM Miquel Raynal <miquel.raynal at bootlin.com> wrote:
> You can try including spi-nand.yaml (like you do with
> spi-controller.yaml). You should no longer need to define
> nand-ecc-engine then as it is already described there?

This doesn't work. I added
- $ref: /schemas/mtd/spi-nand.yaml#
to the allOf property and dt_binding_check complains the following:

Documentation/devicetree/bindings/spi/mediatek,spi-mtk-snfi.example.dtb:
spi at 1100d000: compatible:0: 'spi-nand' was expected
>From schema: /home/user/src/kernels/linux/Documentation/devicetree/bindings/spi/mediatek,spi-mtk-snfi.yaml

BTW I still can't get dt_binding_check to complain anything about
spi-nand. Here's the command I used:

make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- DT_CHECKER_FLAGS=-m
dt_binding_check
DT_SCHEMA_FILES=Documentation/devicetree/bindings/spi/mediatek,spi-mtk-snfi.yaml

-- 
Regards,
Chuanhong Guo



More information about the linux-mtd mailing list