Skip to content

Commit 22a41e9

Browse files
committed
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 <[email protected]> Cc: Sven Peter <[email protected]> Cc: Andrew Lunn <[email protected]> Cc: Vivien Didelot <[email protected]> Cc: Florian Fainelli <[email protected]> Cc: Vladimir Oltean <[email protected]> Cc: "David S. Miller" <[email protected]> Cc: Jakub Kicinski <[email protected]> Cc: Paolo Abeni <[email protected]> Cc: Mark Brown <[email protected]> Cc: Chunfeng Yun <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: Mukesh Savaliya <[email protected]> Cc: Akash Asthana <[email protected]> Cc: Bayi Cheng <[email protected]> Cc: Chuanhong Guo <[email protected]> Cc: Min Guo <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Signed-off-by: Rob Herring <[email protected]> Acked-by: Jakub Kicinski <[email protected]> Acked-by: Mark Brown <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent a50e431 commit 22a41e9

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

Documentation/devicetree/bindings/arm/apple/apple,pmgr.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ patternProperties:
4242
description:
4343
The individual power management domains within this controller
4444
type: object
45-
$ref: /power/apple,pmgr-pwrstate.yaml#
45+
$ref: /schemas/power/apple,pmgr-pwrstate.yaml#
4646

4747
required:
4848
- compatible

Documentation/devicetree/bindings/net/dsa/dsa-port.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ description:
1515
Ethernet switch port Description
1616

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

2020
properties:
2121
reg:

Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ patternProperties:
103103
supports up to 50MHz, up to four chip selects, programmable
104104
data path from 4 bits to 32 bits and numerous protocol
105105
variants.
106-
$ref: /spi/spi-controller.yaml#
106+
$ref: /schemas/spi/spi-controller.yaml#
107107

108108
properties:
109109
compatible:

Documentation/devicetree/bindings/spi/mediatek,spi-mtk-nor.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ description: |
1818
capability of this controller.
1919
2020
allOf:
21-
- $ref: /spi/spi-controller.yaml#
21+
- $ref: /schemas/spi/spi-controller.yaml#
2222

2323
properties:
2424
compatible:

Documentation/devicetree/bindings/spi/qcom,spi-qcom-qspi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ description: The QSPI controller allows SPI protocol communication in single,
1616
as NOR flash.
1717

1818
allOf:
19-
- $ref: /spi/spi-controller.yaml#
19+
- $ref: /schemas/spi/spi-controller.yaml#
2020

2121
properties:
2222
compatible:

Documentation/devicetree/bindings/spi/sprd,spi-adi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ description: |
4444
compatibility.
4545
4646
allOf:
47-
- $ref: /spi/spi-controller.yaml#
47+
- $ref: /schemas/spi/spi-controller.yaml#
4848

4949
properties:
5050
compatible:

Documentation/devicetree/bindings/usb/mediatek,mtu3.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ properties:
132132
default: host
133133

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

Documentation/devicetree/bindings/usb/mediatek,musb.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ properties:
6363
maxItems: 1
6464

6565
connector:
66-
$ref: /connector/usb-connector.yaml#
66+
$ref: /schemas/connector/usb-connector.yaml#
6767
description: Connector for dual role switch
6868
type: object
6969

0 commit comments

Comments
 (0)