* [PATCH] dt-bindings: usb: dwc2: switch to unevaluatedProperties
@ 2024-06-24 8:58 Neil Armstrong
2024-06-24 16:23 ` Conor Dooley
0 siblings, 1 reply; 2+ messages in thread
From: Neil Armstrong @ 2024-06-24 8:58 UTC (permalink / raw)
To: Greg Kroah-Hartman, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Fabrice Gasnier
Cc: linux-usb, devicetree, linux-kernel, Neil Armstrong
Define "unevaluatedProperties" instead of "additionalProperties"
to allow properties from common schemas but still disallow undefined
properties.
This allow defining a device subnode and fixes:
meson-gxbb-odroidc2.dtb: usb@c9100000: '#address-cells', '#size-cells', 'hub@1' do not match any of the regexes: 'p
inctrl-[0-9]+'
from schema $id: http://devicetree.org/schemas/usb/dwc2.yaml#
Fixes: bb88dbbee2c9 ("dt-bindings: usb: dwc2: Add reference to usb-drd.yaml")
Fixes: 54bd6c9a3b7b ("dt-bindings: usb: dwc2: document TPL support")
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
---
Documentation/devicetree/bindings/usb/dwc2.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/usb/dwc2.yaml b/Documentation/devicetree/bindings/usb/dwc2.yaml
index 4f36a22aa6d7..a5f2e3442a0e 100644
--- a/Documentation/devicetree/bindings/usb/dwc2.yaml
+++ b/Documentation/devicetree/bindings/usb/dwc2.yaml
@@ -188,7 +188,7 @@ required:
- clocks
- clock-names
-additionalProperties: false
+unevaluatedProperties: false
examples:
- |
---
base-commit: f76698bd9a8ca01d3581236082d786e9a6b72bb7
change-id: 20240624-topic-amlogic-upstream-bindings-fixes-dwc2-subnodes-f88620bca1fa
Best regards,
--
Neil Armstrong <neil.armstrong@linaro.org>
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] dt-bindings: usb: dwc2: switch to unevaluatedProperties
2024-06-24 8:58 [PATCH] dt-bindings: usb: dwc2: switch to unevaluatedProperties Neil Armstrong
@ 2024-06-24 16:23 ` Conor Dooley
0 siblings, 0 replies; 2+ messages in thread
From: Conor Dooley @ 2024-06-24 16:23 UTC (permalink / raw)
To: Neil Armstrong
Cc: Greg Kroah-Hartman, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Fabrice Gasnier, linux-usb, devicetree,
linux-kernel
[-- Attachment #1: Type: text/plain, Size: 760 bytes --]
On Mon, Jun 24, 2024 at 10:58:23AM +0200, Neil Armstrong wrote:
> Define "unevaluatedProperties" instead of "additionalProperties"
> to allow properties from common schemas but still disallow undefined
> properties.
>
> This allow defining a device subnode and fixes:
> meson-gxbb-odroidc2.dtb: usb@c9100000: '#address-cells', '#size-cells', 'hub@1' do not match any of the regexes: 'p
> inctrl-[0-9]+'
> from schema $id: http://devicetree.org/schemas/usb/dwc2.yaml#
>
> Fixes: bb88dbbee2c9 ("dt-bindings: usb: dwc2: Add reference to usb-drd.yaml")
> Fixes: 54bd6c9a3b7b ("dt-bindings: usb: dwc2: document TPL support")
> Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-06-24 16:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-24 8:58 [PATCH] dt-bindings: usb: dwc2: switch to unevaluatedProperties Neil Armstrong
2024-06-24 16:23 ` Conor Dooley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox