[PATCH] dt-bindings: gpio: fix trivial-gpio's schema id

Ioana Ciornei posted 1 patch 2 weeks, 5 days ago
Documentation/devicetree/bindings/gpio/trivial-gpio.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] dt-bindings: gpio: fix trivial-gpio's schema id
Posted by Ioana Ciornei 2 weeks, 5 days ago
In case the trivial-gpio schema is referenced through a $ref like
/schemas/trivial-gpio.yaml to match its current schema ID, the following
error message is displayed:

Error in referenced schema matching $id: http://devicetree.org/schemas/trivial-gpio.yaml
Tried these paths (check schema $id if path is wrong):
/path/to/linux/Documentation/devicetree/bindings/trivial-gpio.yaml
/path/to/dtchema/schemas/trivial-gpio.yaml

Fix this by adding the 'gpio' folder to the schema's ID to match its
file path.

Fixes: f03a7f20b23c ("dt-bindings: gpio: Create a trivial GPIO schema")
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
---
 Documentation/devicetree/bindings/gpio/trivial-gpio.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/gpio/trivial-gpio.yaml b/Documentation/devicetree/bindings/gpio/trivial-gpio.yaml
index aa3f88adf91a..3f4bbd57fc52 100644
--- a/Documentation/devicetree/bindings/gpio/trivial-gpio.yaml
+++ b/Documentation/devicetree/bindings/gpio/trivial-gpio.yaml
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
 %YAML 1.2
 ---
-$id: http://devicetree.org/schemas/trivial-gpio.yaml#
+$id: http://devicetree.org/schemas/gpio/trivial-gpio.yaml#
 $schema: http://devicetree.org/meta-schemas/core.yaml#
 
 title: Trivial 2-cell GPIO controllers
-- 
2.25.1
Re: [PATCH] dt-bindings: gpio: fix trivial-gpio's schema id
Posted by Bartosz Golaszewski 2 weeks, 2 days ago
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>


On Fri, 12 Sep 2025 19:59:16 +0300, Ioana Ciornei wrote:
> In case the trivial-gpio schema is referenced through a $ref like
> /schemas/trivial-gpio.yaml to match its current schema ID, the following
> error message is displayed:
> 
> Error in referenced schema matching $id: http://devicetree.org/schemas/trivial-gpio.yaml
> Tried these paths (check schema $id if path is wrong):
> /path/to/linux/Documentation/devicetree/bindings/trivial-gpio.yaml
> /path/to/dtchema/schemas/trivial-gpio.yaml
> 
> [...]

Applied, thanks!

[1/1] dt-bindings: gpio: fix trivial-gpio's schema id
      https://git.kernel.org/brgl/linux/c/17628f1abbf4bd4162c655f3260d68bc1934ec73

Best regards,
-- 
Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Re: [PATCH] dt-bindings: gpio: fix trivial-gpio's schema id
Posted by Krzysztof Kozlowski 2 weeks, 5 days ago
On 12/09/2025 18:59, Ioana Ciornei wrote:
> In case the trivial-gpio schema is referenced through a $ref like
> /schemas/trivial-gpio.yaml to match its current schema ID, the following
> error message is displayed:
> 
> Error in referenced schema matching $id: http://devicetree.org/schemas/trivial-gpio.yaml
> Tried these paths (check schema $id if path is wrong):
> /path/to/linux/Documentation/devicetree/bindings/trivial-gpio.yaml
> /path/to/dtchema/schemas/trivial-gpio.yaml
> 
> Fix this by adding the 'gpio' folder to the schema's ID to match its
> file path.
> 
> Fixes: f03a7f20b23c ("dt-bindings: gpio: Create a trivial GPIO schema")
> Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>

I swear I saw this fix somewhere already, but now I cannot find it...
well, looks correct:

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


Best regards,
Krzysztof