fix dt_binding_check warnings
Subsystems (7)
cover fix dt_binding_check warnings
These patches is based on the latest linux-next code.
When I do dt_binding_check for any YAML file, below wanrings is always reported:
/root/linux-next/Documentation/devicetree/bindings/serial/litex,liteuart.yaml: 'additionalProperties' is a required property /root/linux-next/Documentation/devicetree/bindings/soc/mediatek/devapc.yaml: 'additionalProperties' is a required property /root/linux-next/Documentation/devicetree/bindings/soc/litex/litex,soc-controller.yaml: 'additionalProperties' is a required property /root/linux-next/Documentation/devicetree/bindings/media/coda.yaml: 'additionalProperties' is a required property /root/linux-next/Documentation/devicetree/bindings/media/coda.yaml: ignoring, error in schema:
warning: no schema found in file: ./Documentation/devicetree/bindings/media/coda.yaml /root/linux-next/Documentation/devicetree/bindings/serial/litex,liteuart.yaml: ignoring, error in schema:
warning: no schema found in file: ./Documentation/devicetree/bindings/serial/litex,liteuart.yaml /root/linux-next/Documentation/devicetree/bindings/soc/mediatek/devapc.yaml: ignoring, error in schema:
warning: no schema found in file: ./Documentation/devicetree/bindings/soc/mediatek/devapc.yaml /root/linux-next/Documentation/devicetree/bindings/soc/litex/litex,soc-controller.yaml: ignoring, error in schema:
warning: no schema found in file: ./Documentation/devicetree/bindings/soc/litex/litex,soc-controller.yaml /root/linux-next/Documentation/devicetree/bindings/mfd/iqs62x.example.dt.yaml: pwmleds: 'panel' does not match any of the regexes: '^led(-[0-9a-f]+)?$', 'pinctrl-[0-9]+'
From schema: /root/linux-next/Documentation/devicetree/bindings/leds/leds-pwm.yaml
I have done the dtbs_check for all 5 yaml files on both arm32 and arm64.
Zhen Lei (5):
media: dt-bindings: add the required property 'additionalProperties'
dt-bindings: serial: add the required property 'additionalProperties'
dt-bindings: soc: add the required property 'additionalProperties'
dt-bindings: devapc: add the required property 'additionalProperties'
dt-bindings: mfd: correct the node name of the panel led
Documentation/devicetree/bindings/media/coda.yaml | 6 ++++++ Documentation/devicetree/bindings/mfd/iqs62x.yaml | 2 +- Documentation/devicetree/bindings/serial/litex,liteuart.yaml | 2 ++ .../devicetree/bindings/soc/litex/litex,soc-controller.yaml | 2 ++ Documentation/devicetree/bindings/soc/mediatek/devapc.yaml | 2 ++ 5 files changed, 13 insertions(+), 1 deletion(-)
Signature · 8 lines
1.8.3 _______________________________________________ Linux-mediatek mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-mediatek
PATCH 1/5 media: dt-bindings: add the required property 'additionalProperties'
When I do dt_binding_check for any YAML file, below wanring is always reported:
xxx/media/coda.yaml: 'additionalProperties' is a required property xxx/media/coda.yaml: ignoring, error in schema:
warning: no schema found in file: xxx/media/coda.yaml
There are three properties defined in allOf, they should be explicitly declared. Otherwise, "additionalProperties: false" will prohibit them.
--- Documentation/devicetree/bindings/media/coda.yaml | 6 ++++++ 1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/media/coda.yaml +6 -0
@@ -52,6 +52,10 @@ properties: description: phandle pointing to the SRAM device node maxItems: 1 + interrupts: true + interrupt-names: true + power-domains: true + required: - compatible - reg
@@ -96,6 +100,8 @@ allOf: description: phandle pointing to the PU power domain maxItems: 1 +additionalProperties: false + examples: - | vpu: video-codec@63ff4000 {
Signature · 1 line
1.8.3
Philipp Zabel
maintainerRe: [PATCH 1/5] media: dt-bindings: add the required property 'additionalProperties'
Quoted 11 lines · Zhen Lei
When I do
dt_binding_checkfor any YAML file, below wanring is always reported:
xxx/media/coda.yaml: 'additionalProperties' is a required propertyxxx/media/coda.yaml: ignoring, error in schema:
warning: no schema found in file:xxx/media/coda.yamlThere are three properties defined in allOf, they should be explicitly declared. Otherwise, "additionalProperties: false" will prohibit them.
Signed-off-by Zhen Lei <[email protected]>
Thank you, there already is a patch to fix this:
https://lore.kernel.org/linux-media/[email protected]/
regards
Philipp
_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek
Re: [PATCH 1/5] media: dt-bindings: add the required property 'additionalProperties'
Quoted 8 lines · Philipp Zabel
Quoted 7 lines · Zhen Lei
When I do
dt_binding_checkfor any YAML file, below wanring is always reported:
xxx/media/coda.yaml: 'additionalProperties' is a required propertyxxx/media/coda.yaml: ignoring, error in schema:
warning: no schema found in file:xxx/media/coda.yaml
Quoted 8 lines
Quoted 4 lines
There are three properties defined in allOf, they should be explicitly declared. Otherwise, "additionalProperties: false" will prohibit them.
Signed-off-by Zhen Lei <[email protected]>Thank you, there already is a patch to fix this:
OK. I found it temporarily during do a JSON conversion,I have not subscribed the dt-binding maillist.
Quoted 6 lines
regards
Philipp.
_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek
PATCH 2/5 dt-bindings: serial: add the required property 'additionalProperties'
In reply to Zhen LeiWhen I do dt_binding_check for any YAML file, below wanring is always reported:
xxx/serial/litex,liteuart.yaml: 'additionalProperties' is a required property xxx/serial/litex,liteuart.yaml: ignoring, error in schema:
warning: no schema found in file: xxx/serial/litex,liteuart.yaml
--- Documentation/devicetree/bindings/serial/litex,liteuart.yaml | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/serial/litex,liteuart.yaml +2 -0
@@ -29,6 +29,8 @@ required: - compatible - reg +additionalProperties: false + examples: - | uart0: serial@e0001800 {
Signature · 8 lines
1.8.3 _______________________________________________ Linux-mediatek mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-mediatek
Re: [PATCH 2/5] dt-bindings: serial: add the required property 'additionalProperties'
Quoted 12 lines · Zhen Lei
When I do
dt_binding_checkfor any YAML file, below wanring is always reported:
xxx/serial/litex,liteuart.yaml: 'additionalProperties' is a required propertyxxx/serial/litex,liteuart.yaml: ignoring, error in schema:
warning: no schema found in file:xxx/serial/litex,liteuart.yamlSigned-off-by Zhen Lei <[email protected]>--- Documentation/devicetree/bindings/serial/litex,liteuart.yaml | 2 ++ 1 file changed, 2 insertions(+)
_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek
Re: [PATCH 2/5] dt-bindings: serial: add the required property 'additionalProperties'
In reply to Zhen LeiQuoted 12 lines · Zhen Lei
When I do
dt_binding_checkfor any YAML file, below wanring is always reported:
xxx/serial/litex,liteuart.yaml: 'additionalProperties' is a required propertyxxx/serial/litex,liteuart.yaml: ignoring, error in schema:
warning: no schema found in file:xxx/serial/litex,liteuart.yamlSigned-off-by Zhen Lei <[email protected]>--- Documentation/devicetree/bindings/serial/litex,liteuart.yaml | 2 ++ 1 file changed, 2 insertions(+)
Applied, thanks!
_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek
PATCH 3/5 dt-bindings: soc: add the required property 'additionalProperties'
In reply to Zhen LeiWhen I do dt_binding_check for any YAML file, below wanring is always reported:
xxx/soc/litex/litex,soc-controller.yaml: 'additionalProperties' is a required property xxx/soc/litex/litex,soc-controller.yaml: ignoring, error in schema:
warning: no schema found in file: xxx/soc/litex/litex,soc-controller.yaml
--- Documentation/devicetree/bindings/soc/litex/litex,soc-controller.yaml | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/soc/litex/litex,soc-controller.yaml +2 -0
@@ -28,6 +28,8 @@ required: - compatible - reg +additionalProperties: false + examples: - | soc_ctrl0: soc-controller@f0000000 {
Signature · 8 lines
1.8.3 _______________________________________________ Linux-mediatek mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-mediatek
Re: [PATCH 3/5] dt-bindings: soc: add the required property 'additionalProperties'
Quoted 12 lines · Zhen Lei
When I do
dt_binding_checkfor any YAML file, below wanring is always reported:
xxx/soc/litex/litex,soc-controller.yaml: 'additionalProperties' is a required propertyxxx/soc/litex/litex,soc-controller.yaml: ignoring, error in schema:
warning: no schema found in file:xxx/soc/litex/litex,soc-controller.yamlSigned-off-by Zhen Lei <[email protected]>--- Documentation/devicetree/bindings/soc/litex/litex,soc-controller.yaml | 2 ++ 1 file changed, 2 insertions(+)
_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek
Re: [PATCH 3/5] dt-bindings: soc: add the required property 'additionalProperties'
In reply to Zhen LeiQuoted 12 lines · Zhen Lei
When I do
dt_binding_checkfor any YAML file, below wanring is always reported:
xxx/soc/litex/litex,soc-controller.yaml: 'additionalProperties' is a required propertyxxx/soc/litex/litex,soc-controller.yaml: ignoring, error in schema:
warning: no schema found in file:xxx/soc/litex/litex,soc-controller.yamlSigned-off-by Zhen Lei <[email protected]>--- Documentation/devicetree/bindings/soc/litex/litex,soc-controller.yaml | 2 ++ 1 file changed, 2 insertions(+)
Applied, thanks!
_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek
Re: [PATCH 3/5] dt-bindings: soc: add the required property 'additionalProperties'
Quoted 8 lines · Rob Herring
Quoted 7 lines · Zhen Lei
When I do
dt_binding_checkfor any YAML file, below wanring is always reported:
xxx/soc/litex/litex,soc-controller.yaml: 'additionalProperties' is a required propertyxxx/soc/litex/litex,soc-controller.yaml: ignoring, error in schema:
warning: no schema found in file:xxx/soc/litex/litex,soc-controller.yaml
Quoted 7 lines
Quoted 5 lines
Signed-off-by Zhen Lei <[email protected]>--- Documentation/devicetree/bindings/soc/litex/litex,soc-controller.yaml | 2 ++ 1 file changed, 2 insertions(+)Applied, thanks!
Thank you!
-Stafford
_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek
PATCH 4/5 dt-bindings: devapc: add the required property 'additionalProperties'
In reply to Zhen LeiWhen I do dt_binding_check for any YAML file, below wanring is always reported:
xxx/soc/mediatek/devapc.yaml: 'additionalProperties' is a required property xxx/soc/mediatek/devapc.yaml: ignoring, error in schema:
warning: no schema found in file: xxx/soc/mediatek/devapc.yaml
--- Documentation/devicetree/bindings/soc/mediatek/devapc.yaml | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/soc/mediatek/devapc.yaml +2 -0
@@ -44,6 +44,8 @@ required: - clocks - clock-names +additionalProperties: false + examples: - | #include <dt-bindings/interrupt-controller/arm-gic.h>
Signature · 8 lines
1.8.3 _______________________________________________ Linux-mediatek mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-mediatek
Re: [PATCH 4/5] dt-bindings: devapc: add the required property 'additionalProperties'
Quoted 12 lines · Zhen Lei
When I do
dt_binding_checkfor any YAML file, below wanring is always reported:
xxx/soc/mediatek/devapc.yaml: 'additionalProperties' is a required propertyxxx/soc/mediatek/devapc.yaml: ignoring, error in schema:
warning: no schema found in file:xxx/soc/mediatek/devapc.yamlSigned-off-by Zhen Lei <[email protected]>--- Documentation/devicetree/bindings/soc/mediatek/devapc.yaml | 2 ++ 1 file changed, 2 insertions(+)
_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek
Re: [PATCH 4/5] dt-bindings: devapc: add the required property 'additionalProperties'
In reply to Zhen LeiQuoted 12 lines · Zhen Lei
When I do
dt_binding_checkfor any YAML file, below wanring is always reported:
xxx/soc/mediatek/devapc.yaml: 'additionalProperties' is a required propertyxxx/soc/mediatek/devapc.yaml: ignoring, error in schema:
warning: no schema found in file:xxx/soc/mediatek/devapc.yamlSigned-off-by Zhen Lei <[email protected]>--- Documentation/devicetree/bindings/soc/mediatek/devapc.yaml | 2 ++ 1 file changed, 2 insertions(+)
Applied, thanks!
_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek
PATCH 5/5 dt-bindings: mfd: correct the node name of the panel led
In reply to Zhen LeiAccording to the definition in leds-pwm.yaml, the node name of each led must match the regular expression "^led(-[0-9a-f]+)?$". "led" or "led-" followed by a decimal or hexadecimal ID number.
--- Documentation/devicetree/bindings/mfd/iqs62x.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/mfd/iqs62x.yaml +1 -1
@@ -93,7 +93,7 @@ examples: pwmleds { compatible = "pwm-leds"; - panel { + led-1 { pwms = <&iqs620a_pwm 0 1000000>; max-brightness = <255>; };
Signature · 8 lines
1.8.3 _______________________________________________ Linux-mediatek mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-mediatek
Re: [PATCH 5/5] dt-bindings: mfd: correct the node name of the panel led
Quoted 9 lines · Zhen Lei
According to the definition in
leds-pwm.yaml, the node name of each led must match the regular expression "^led(-[0-9a-f]+)?$". "led" or "led-" followed by a decimal or hexadecimal ID number.Signed-off-by Zhen Lei <[email protected]>--- Documentation/devicetree/bindings/mfd/iqs62x.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek
Lee Jones
AppliedRe: [PATCH 5/5] dt-bindings: mfd: correct the node name of the panel led
In reply to Zhen LeiQuoted 8 lines · Zhen Lei
According to the definition in
leds-pwm.yaml, the node name of each led must match the regular expression "^led(-[0-9a-f]+)?$". "led" or "led-" followed by a decimal or hexadecimal ID number.Signed-off-by Zhen Lei <[email protected]>--- Documentation/devicetree/bindings/mfd/iqs62x.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks.
Signature · 9 lines
Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog _______________________________________________ Linux-mediatek mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-mediatek