Skip to content

dt-bindings: calxeda: Convert bindings to json-schema

Andre Przywara linux-arm-kernel linux-clk linux-devicetree lkml 1 version Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest8 patches 8 repliesApplied

Changelog from the cover letter

v2 ... v3:
- adjust license to name both BSD and GPL
- add missing address specifier for clock nodes' names
- properly group phandle properties in SATA bindings example
- use itemised interrupt description in l2ecc binding
- limit reg-shift in the IPMI binding
- allow device_type property in IPMI binding

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/8dt-bindings: clock: Convert Calxeda clock bindings to json-schemaDocumentation/devicetree/bindings/clock/calxeda.txt Documentation/devicetree/bindings/clock/calxeda.yaml+82 -171 reply
2/8dt-bindings: sata: Convert Calxeda SATA controller to json-schemaDocumentation/devicetree/bindings/ata/sata_highbank.txt Documentation/devicetree/bindings/ata/sata_highbank.yaml+95 -441 reply
3/8dt-bindings: net: Convert Calxeda Ethernet binding to json-schemaDocumentation/devicetree/bindings/net/calxeda-xgmac.txt Documentation/devicetree/bindings/net/calxeda-xgmac.yaml+49 -181 reply
4/8dt-bindings: phy: Convert Calxeda ComboPHY binding to json-schemaDocumentation/devicetree/bindings/phy/calxeda-combophy.txt Documentation/devicetree/bindings/phy/calxeda-combophy.yaml+51 -171 reply
5/8dt-bindings: arm: Convert Calxeda L2 cache controller to json-schemaDocumentation/devicetree/bindings/arm/calxeda/l2ecc.txt Documentation/devicetree/bindings/arm/calxeda/l2ecc.yaml+42 -151 reply
6/8dt-bindings: memory-controllers: Convert Calxeda DDR to json-schemaDocumentation/devicetree/bindings/memory-controllers/calxeda-ddr-ctrlr.txt Documentation/devicetree/bindings/memory-controllers/calxeda-ddr-ctrlr.yaml+42 -161 reply
7/8dt-bindings: ipmi: Convert IPMI-SMIC bindings to json-schemaDocumentation/devicetree/bindings/ipmi/ipmi-smic.txt Documentation/devicetree/bindings/ipmi/ipmi-smic.yaml+63 -251 reply
8/8dt-bindings: arm: Add Calxeda system registers json-schema bindingDocumentation/devicetree/bindings/arm/calxeda/hb-sregs.yaml+49 -01 reply

Reviews trailers per patch

1 of 8 patches has a Reviewed-by or Acked-by.

PatchStephen Boyd
1/8A-b
2/8
3/8
4/8
5/8
6/8
7/8
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/8] dt-bindings: calxeda: Convert bindings to json-schema

Hi,

this is the DT schema bindings conversion part of the v2 Calxeda update series. The .dts part was already merged, so this tackles what is left.

This series converts the "prose" DT binding documentation for various devices used by the Calxeda platform to the json-schema format, so that the automatic checking actually does something useful.
After those patches "make dtbs_check" comes back clean for the two .dts files in the kernel, and "dt_validate -m" reports only those three not-covered nodes (on Highbank, only the last one on Midway):
arm,cortex-a9-twd-timer
arm,cortex-a9-twd-wdt
calxeda,hb-sdhci
The first two are generic ARM devices, for which the binding doc just does not have been converted yet. The SDHCI controller is actually disabled in the DTs, and the SD slot is populated on very few special systems only, also there has never been a driver in the kernel for this device anyway.

Verified by trying to break every single assumption the bindings make (in their example section): the tooling complained correctly.

Thanks,
Andre

Changelog:
v2 ... v3:
- adjust license to name both BSD and GPL
- add missing address specifier for clock nodes' names
- properly group phandle properties in SATA bindings example
- use itemised interrupt description in l2ecc binding
- limit reg-shift in the IPMI binding
- allow device_type property in IPMI binding

v1 ... v2:
- Remove unneeded property type from clocks and sgpio-gpio
- add additionalProperties: false to bindings missing it before
- limit number in "phydev" to the hardware constraint of 5 bits
- add required: properties to l2ecc binding
- fix enumeration of compatible strings in calxeda-ddr-ctrlr

Andre Przywara (8):
dt-bindings: clock: Convert Calxeda clock bindings to json-schema
dt-bindings: sata: Convert Calxeda SATA controller to json-schema
dt-bindings: net: Convert Calxeda Ethernet binding to json-schema
dt-bindings: phy: Convert Calxeda ComboPHY binding to json-schema
dt-bindings: arm: Convert Calxeda L2 cache controller to json-schema
dt-bindings: memory-controllers: Convert Calxeda DDR to json-schema
dt-bindings: ipmi: Convert IPMI-SMIC bindings to json-schema
dt-bindings: arm: Add Calxeda system registers json-schema binding

 .../bindings/arm/calxeda/hb-sregs.yaml        | 49 ++++++++++
 .../devicetree/bindings/arm/calxeda/l2ecc.txt | 15 ---
 .../bindings/arm/calxeda/l2ecc.yaml           | 42 ++++++++
 .../devicetree/bindings/ata/sata_highbank.txt | 44 ---------
 .../bindings/ata/sata_highbank.yaml           | 95 +++++++++++++++++++
 .../devicetree/bindings/clock/calxeda.txt     | 17 ----
 .../devicetree/bindings/clock/calxeda.yaml    | 82 ++++++++++++++++
 .../devicetree/bindings/ipmi/ipmi-smic.txt    | 25 -----
 .../devicetree/bindings/ipmi/ipmi-smic.yaml   | 63 ++++++++++++
 .../memory-controllers/calxeda-ddr-ctrlr.txt  | 16 ----
 .../memory-controllers/calxeda-ddr-ctrlr.yaml | 42 ++++++++
 .../devicetree/bindings/net/calxeda-xgmac.txt | 18 ----
 .../bindings/net/calxeda-xgmac.yaml           | 49 ++++++++++
 .../bindings/phy/calxeda-combophy.txt         | 17 ----
 .../bindings/phy/calxeda-combophy.yaml        | 51 ++++++++++
 15 files changed, 473 insertions(+), 152 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/arm/calxeda/hb-sregs.yaml
 delete mode 100644 Documentation/devicetree/bindings/arm/calxeda/l2ecc.txt
 create mode 100644 Documentation/devicetree/bindings/arm/calxeda/l2ecc.yaml
 delete mode 100644 Documentation/devicetree/bindings/ata/sata_highbank.txt
 create mode 100644 Documentation/devicetree/bindings/ata/sata_highbank.yaml
 delete mode 100644 Documentation/devicetree/bindings/clock/calxeda.txt
 create mode 100644 Documentation/devicetree/bindings/clock/calxeda.yaml
 delete mode 100644 Documentation/devicetree/bindings/ipmi/ipmi-smic.txt
 create mode 100644 Documentation/devicetree/bindings/ipmi/ipmi-smic.yaml
 delete mode 100644 Documentation/devicetree/bindings/memory-controllers/calxeda-ddr-ctrlr.txt
 create mode 100644 Documentation/devicetree/bindings/memory-controllers/calxeda-ddr-ctrlr.yaml
 delete mode 100644 Documentation/devicetree/bindings/net/calxeda-xgmac.txt
 create mode 100644 Documentation/devicetree/bindings/net/calxeda-xgmac.yaml
 delete mode 100644 Documentation/devicetree/bindings/phy/calxeda-combophy.txt
 create mode 100644 Documentation/devicetree/bindings/phy/calxeda-combophy.yaml
Signature · 1 line
2.17.1