spi: brcm,spi-bcm-qspi: convert to the json-schema
authorRafał Miłecki <rafal@milecki.pl>
Fri, 16 Apr 2021 19:47:23 +0000 (21:47 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 20 Apr 2021 16:29:37 +0000 (17:29 +0100)
commit7d82f89c39ad3193893d36924fc1f8d44f3dc612
treecd4220918e00e33d60ede81b10e3dc77e267b615
parent1b8a7d4282c038b3846f2485d86cb990c55c38d9
spi: brcm,spi-bcm-qspi: convert to the json-schema

This helps validating DTS files.

Changes that require mentioning:
1. reg-names
   "mspi_regs" and "bspi_regs" were renamed to "mspi" and "bspi" as that
   is what's used in DTS files and in Linux driver
2. interrupt-names
   Names were reordered. "mspi_done" has to go first as it's always
   required.
3. spi-rx-bus-width
   Property description was dropped as it's part of the
   spi-controller.yaml
4. Examples:
   * drop partitions as they are well documented elsewhere
   * regs and interrupts were formatted and reordered to match yaml
   * <0x1c> was replaced with <&gic>
   * "m25p80" node name became "flash"
   * dropped invalid "m25p,fast-read" property
   * dropped undocumented and Linux-unused "clock-names"

This rewritten binding validates cleanly using the  "dt_binding_check".
Some Linux stored DTS files will require reordering regs and interrupts
to make dtbs_check happy.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20210416194723.23855-1-zajec5@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/spi/brcm,spi-bcm-qspi.txt [deleted file]
Documentation/devicetree/bindings/spi/brcm,spi-bcm-qspi.yaml [new file with mode: 0644]
MAINTAINERS