Commit 22a41e9a authored by Rob Herring's avatar Rob Herring
Browse files

dt-bindings: Fix missing '/schemas' in $ref paths



Absolute paths in $ref should always begin with '/schemas'. The tools
mostly work with it omitted, but for correctness the path should be
everything except the hostname as that is taken from the schema's $id
value. This scheme is defined in the json-schema spec.

Cc: Hector Martin <marcan@marcan.st>
Cc: Sven Peter <sven@svenpeter.dev>
Cc: Andrew Lunn <andrew@lunn.ch>
Cc: Vivien Didelot <vivien.didelot@gmail.com>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: Vladimir Oltean <olteanv@gmail.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: Paolo Abeni <pabeni@redhat.com>
Cc: Mark Brown <broonie@kernel.org>
Cc: Chunfeng Yun <chunfeng.yun@mediatek.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Mukesh Savaliya <msavaliy@codeaurora.org>
Cc: Akash Asthana <akashast@codeaurora.org>
Cc: Bayi Cheng <bayi.cheng@mediatek.com>
Cc: Chuanhong Guo <gch981213@gmail.com>
Cc: Min Guo <min.guo@mediatek.com>
Cc: netdev@vger.kernel.org
Cc: linux-spi@vger.kernel.org
Cc: linux-usb@vger.kernel.org
Signed-off-by: default avatarRob Herring <robh@kernel.org>
Acked-by: default avatarJakub Kicinski <kuba@kernel.org>
Acked-by: default avatarMark Brown <broonie@debian.org>
Link: https://lore.kernel.org/r/20220325215652.525383-1-robh@kernel.org
parent a50e431b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -42,7 +42,7 @@ patternProperties:
    description:
      The individual power management domains within this controller
    type: object
    $ref: /power/apple,pmgr-pwrstate.yaml#
    $ref: /schemas/power/apple,pmgr-pwrstate.yaml#

required:
  - compatible
+1 −1
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@ description:
  Ethernet switch port Description

allOf:
  - $ref: "http://devicetree.org/schemas/net/ethernet-controller.yaml#"
  - $ref: /schemas/net/ethernet-controller.yaml#

properties:
  reg:
+1 −1
Original line number Diff line number Diff line
@@ -103,7 +103,7 @@ patternProperties:
                 supports up to 50MHz, up to four chip selects, programmable
                 data path from 4 bits to 32 bits and numerous protocol
                 variants.
    $ref: /spi/spi-controller.yaml#
    $ref: /schemas/spi/spi-controller.yaml#

    properties:
      compatible:
+1 −1
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ description: |
  capability of this controller.

allOf:
  - $ref: /spi/spi-controller.yaml#
  - $ref: /schemas/spi/spi-controller.yaml#

properties:
  compatible:
+1 −1
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@ description: The QSPI controller allows SPI protocol communication in single,
  as NOR flash.

allOf:
  - $ref: /spi/spi-controller.yaml#
  - $ref: /schemas/spi/spi-controller.yaml#

properties:
  compatible:
Loading