1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00

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: Rob Herring <robh@kernel.org>
Acked-by: Jakub Kicinski <kuba@kernel.org>
Acked-by: Mark Brown <broonie@debian.org>
Link: https://lore.kernel.org/r/20220325215652.525383-1-robh@kernel.org
This commit is contained in:
Rob Herring 2022-03-25 16:56:52 -05:00
parent a50e431bbc
commit 22a41e9a50
8 changed files with 9 additions and 9 deletions

View file

@ -42,7 +42,7 @@ patternProperties:
description: description:
The individual power management domains within this controller The individual power management domains within this controller
type: object type: object
$ref: /power/apple,pmgr-pwrstate.yaml# $ref: /schemas/power/apple,pmgr-pwrstate.yaml#
required: required:
- compatible - compatible

View file

@ -15,7 +15,7 @@ description:
Ethernet switch port Description Ethernet switch port Description
allOf: allOf:
- $ref: "http://devicetree.org/schemas/net/ethernet-controller.yaml#" - $ref: /schemas/net/ethernet-controller.yaml#
properties: properties:
reg: reg:

View file

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

View file

@ -18,7 +18,7 @@ description: |
capability of this controller. capability of this controller.
allOf: allOf:
- $ref: /spi/spi-controller.yaml# - $ref: /schemas/spi/spi-controller.yaml#
properties: properties:
compatible: compatible:

View file

@ -16,7 +16,7 @@ description: The QSPI controller allows SPI protocol communication in single,
as NOR flash. as NOR flash.
allOf: allOf:
- $ref: /spi/spi-controller.yaml# - $ref: /schemas/spi/spi-controller.yaml#
properties: properties:
compatible: compatible:

View file

@ -44,7 +44,7 @@ description: |
compatibility. compatibility.
allOf: allOf:
- $ref: /spi/spi-controller.yaml# - $ref: /schemas/spi/spi-controller.yaml#
properties: properties:
compatible: compatible:

View file

@ -132,7 +132,7 @@ properties:
default: host default: host
connector: connector:
$ref: /connector/usb-connector.yaml# $ref: /schemas/connector/usb-connector.yaml#
description: description:
Connector for dual role switch, especially for "gpio-usb-b-connector" Connector for dual role switch, especially for "gpio-usb-b-connector"
type: object type: object
@ -191,7 +191,7 @@ properties:
patternProperties: patternProperties:
"^usb@[0-9a-f]+$": "^usb@[0-9a-f]+$":
type: object type: object
$ref: /usb/mediatek,mtk-xhci.yaml# $ref: /schemas/usb/mediatek,mtk-xhci.yaml#
description: description:
The xhci should be added as subnode to mtu3 as shown in the following The xhci should be added as subnode to mtu3 as shown in the following
example if the host mode is enabled. example if the host mode is enabled.

View file

@ -63,7 +63,7 @@ properties:
maxItems: 1 maxItems: 1
connector: connector:
$ref: /connector/usb-connector.yaml# $ref: /schemas/connector/usb-connector.yaml#
description: Connector for dual role switch description: Connector for dual role switch
type: object type: object