Re: [PATCH v3 4/5] dt-bindings: spi: add binding doc for spi-mtk-snfi
From: Chuanhong Guo
Date: Tue Apr 05 2022 - 20:21:19 EST
Hi!
On Tue, Apr 5, 2022 at 3:20 PM Miquel Raynal <miquel.raynal@xxxxxxxxxxx> 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@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