linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: Use full path to other schemas
@ 2024-05-05  8:46 Krzysztof Kozlowski
  2024-05-06  6:29 ` Miquel Raynal
  2024-05-08 19:10 ` Rob Herring (Arm)
  0 siblings, 2 replies; 3+ messages in thread
From: Krzysztof Kozlowski @ 2024-05-05  8:46 UTC (permalink / raw)
  To: Dmitry Torokhov, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Ming Qian, Zhou Peng, Mauro Carvalho Chehab, Miquel Raynal,
	Richard Weinberger, Vignesh Raghavendra, Jeff LaBundy,
	Shijie Qin, linux-input, devicetree, linux-kernel, linux-media,
	linux-mtd
  Cc: Krzysztof Kozlowski

When referencing other schema, it is preferred to use an absolute path
(/schemas/....), which allows also an seamless move of particular schema
out of Linux kernel to dtschema.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

---

Rob, maybe you can take it directly? Should apply cleanly on your tree.
---
 Documentation/devicetree/bindings/input/azoteq,iqs7222.yaml | 2 +-
 Documentation/devicetree/bindings/media/amphion,vpu.yaml    | 2 +-
 Documentation/devicetree/bindings/mtd/mtd.yaml              | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Documentation/devicetree/bindings/input/azoteq,iqs7222.yaml b/Documentation/devicetree/bindings/input/azoteq,iqs7222.yaml
index 5b1769c19b17..418c168b223b 100644
--- a/Documentation/devicetree/bindings/input/azoteq,iqs7222.yaml
+++ b/Documentation/devicetree/bindings/input/azoteq,iqs7222.yaml
@@ -784,7 +784,7 @@ patternProperties:
       gpio-2: GPIO4
 
     allOf:
-      - $ref: ../pinctrl/pincfg-node.yaml#
+      - $ref: /schemas/pinctrl/pincfg-node.yaml#
 
     properties:
       drive-open-drain: true
diff --git a/Documentation/devicetree/bindings/media/amphion,vpu.yaml b/Documentation/devicetree/bindings/media/amphion,vpu.yaml
index c0d83d755239..9801de3ed84e 100644
--- a/Documentation/devicetree/bindings/media/amphion,vpu.yaml
+++ b/Documentation/devicetree/bindings/media/amphion,vpu.yaml
@@ -44,7 +44,7 @@ patternProperties:
     description:
       Each vpu encoder or decoder correspond a MU, which used for communication
       between driver and firmware. Implement via mailbox on driver.
-    $ref: ../mailbox/fsl,mu.yaml#
+    $ref: /schemas/mailbox/fsl,mu.yaml#
 
 
   "^vpu-core@[0-9a-f]+$":
diff --git a/Documentation/devicetree/bindings/mtd/mtd.yaml b/Documentation/devicetree/bindings/mtd/mtd.yaml
index ee442ecb11cd..bbb56216a4e2 100644
--- a/Documentation/devicetree/bindings/mtd/mtd.yaml
+++ b/Documentation/devicetree/bindings/mtd/mtd.yaml
@@ -48,8 +48,8 @@ patternProperties:
     type: object
 
     allOf:
-      - $ref: ../nvmem/nvmem.yaml#
-      - $ref: ../nvmem/nvmem-deprecated-cells.yaml#
+      - $ref: /schemas/nvmem/nvmem.yaml#
+      - $ref: /schemas/nvmem/nvmem-deprecated-cells.yaml#
 
     unevaluatedProperties: false
 
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] dt-bindings: Use full path to other schemas
  2024-05-05  8:46 [PATCH] dt-bindings: Use full path to other schemas Krzysztof Kozlowski
@ 2024-05-06  6:29 ` Miquel Raynal
  2024-05-08 19:10 ` Rob Herring (Arm)
  1 sibling, 0 replies; 3+ messages in thread
From: Miquel Raynal @ 2024-05-06  6:29 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Dmitry Torokhov, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Ming Qian, Zhou Peng, Mauro Carvalho Chehab, Richard Weinberger,
	Vignesh Raghavendra, Jeff LaBundy, Shijie Qin, linux-input,
	devicetree, linux-kernel, linux-media, linux-mtd

Hi Krzysztof,

krzysztof.kozlowski@linaro.org wrote on Sun,  5 May 2024 10:46:18 +0200:

> When referencing other schema, it is preferred to use an absolute path
> (/schemas/....), which allows also an seamless move of particular schema
> out of Linux kernel to dtschema.

I didn't know about this. You probably want to add a check over uses of
relative paths in the tooling now :-)

> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> 
> ---
> 
> Rob, maybe you can take it directly? Should apply cleanly on your tree.

Acked-by: Miquel Raynal <miquel.raynal@bootlin.com>

Thanks,
Miquèl

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] dt-bindings: Use full path to other schemas
  2024-05-05  8:46 [PATCH] dt-bindings: Use full path to other schemas Krzysztof Kozlowski
  2024-05-06  6:29 ` Miquel Raynal
@ 2024-05-08 19:10 ` Rob Herring (Arm)
  1 sibling, 0 replies; 3+ messages in thread
From: Rob Herring (Arm) @ 2024-05-08 19:10 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: linux-mtd, linux-kernel, Shijie Qin, Ming Qian,
	Vignesh Raghavendra, Miquel Raynal, Zhou Peng, linux-input,
	devicetree, linux-media, Krzysztof Kozlowski,
	Mauro Carvalho Chehab, Dmitry Torokhov, Conor Dooley,
	Jeff LaBundy, Richard Weinberger


On Sun, 05 May 2024 10:46:18 +0200, Krzysztof Kozlowski wrote:
> When referencing other schema, it is preferred to use an absolute path
> (/schemas/....), which allows also an seamless move of particular schema
> out of Linux kernel to dtschema.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> 
> ---
> 
> Rob, maybe you can take it directly? Should apply cleanly on your tree.
> ---
>  Documentation/devicetree/bindings/input/azoteq,iqs7222.yaml | 2 +-
>  Documentation/devicetree/bindings/media/amphion,vpu.yaml    | 2 +-
>  Documentation/devicetree/bindings/mtd/mtd.yaml              | 4 ++--
>  3 files changed, 4 insertions(+), 4 deletions(-)
> 

Applied, thanks!


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-05-08 19:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-05  8:46 [PATCH] dt-bindings: Use full path to other schemas Krzysztof Kozlowski
2024-05-06  6:29 ` Miquel Raynal
2024-05-08 19:10 ` Rob Herring (Arm)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).