Fixes for dt-bindings verification
Subsystems (8)
cover Fixes for dt-bindings verification
Using "make dt_binding_check" on top v5.4-rc1 some errors are reported in several schemas. Those 3 patches allow to execute "make dt_binding_check" without issues. Most probably those patches have alread been sent.
regards
Alexandre
Alexandre Torgue (3):
dt-bindings: media: Fix id path for sun4i-a10-csi
dt-bindings: net: adi: Fix yaml verification issue
dt-bindings: regulator: Fix yaml verification for fixed-regulator
schema
.../bindings/media/allwinner,sun4i-a10-csi.yaml | 2 +- Documentation/devicetree/bindings/net/adi,adin.yaml | 6 ++++++ .../devicetree/bindings/regulator/fixed-regulator.yaml | 10 +++++++--- 3 files changed, 14 insertions(+), 4 deletions(-)
Signature · 1 line
2.17.1
PATCH 1/3 dt-bindings: media: Fix id path for sun4i-a10-csi
This commit fixes id path of allwinner,sun4i-a10-csi.yaml location.
Documentation/devicetree/bindings/media/allwinner,sun4i-a10-csi.yaml +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) %YAML 1.2 --- -$id: http://devicetree.org/schemas/arm/allwinner,sun4i-a10-csi.yaml# +$id: http://devicetree.org/schemas/media/allwinner,sun4i-a10-csi.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# title: Allwinner A10 CMOS Sensor Interface (CSI) Device Tree Bindings
Signature · 1 line
2.17.1
Maxime Ripard
maintainerRe: [PATCH 1/3] dt-bindings: media: Fix id path for sun4i-a10-csi
Hi Alexandre,
Quoted 4 lines · Alexandre Torgue
This commit fixes id path of allwinner,sun4i-a10-csi.yaml location.
Fixes c5e8f4ccd775 ("media: dt-bindings: media: Add Allwinner A10 CSI binding")Signed-off-by Alexandre Torgue <[email protected]>
I just merged a patch addressing the same issue earlier today.
Thanks!
Maxime
Re: [PATCH 1/3] dt-bindings: media: Fix id path for sun4i-a10-csi
Quoted 10 lines · Maxime Ripard
Hi Alexandre,
Quoted 4 lines · Alexandre Torgue
This commit fixes id path of allwinner,sun4i-a10-csi.yaml location.
Fixes c5e8f4ccd775 ("media: dt-bindings: media: Add Allwinner A10 CSI binding")Signed-off-by Alexandre Torgue <[email protected]>I just merged a patch addressing the same issue earlier today.
Ok. Thanks Maxime.
Regards
Alex
Quoted 3 lines
Thanks!
Maxime
PATCH 2/3 dt-bindings: net: adi: Fix yaml verification issue
In reply to Alexandre TorgueThis commit fixes an issue seen during yaml check ("make dt_binding_check"). Each enum were not declared as uint32.
"Documentation/devicetree/bindings/net/adi,adin.yaml:
properties:adi,rx-internal-delay-ps:
..., 'enum': [1600, 1800, 2000, 2200, 2400], 'default': 2000} is not valid under any of the given schemas"
Documentation/devicetree/bindings/net/adi,adin.yaml +6 -0
@@ -17,6 +17,8 @@ allOf: properties: adi,rx-internal-delay-ps: + allOf: + - $ref: "/schemas/types.yaml#/definitions/uint32" description: | RGMII RX Clock Delay used only when PHY operates in RGMII mode with internal delay (phy-mode is 'rgmii-id' or 'rgmii-rxid') in pico-seconds.
@@ -24,6 +26,8 @@ properties: default: 2000 adi,tx-internal-delay-ps: + allOf: + - $ref: "/schemas/types.yaml#/definitions/uint32" description: | RGMII TX Clock Delay used only when PHY operates in RGMII mode with internal delay (phy-mode is 'rgmii-id' or 'rgmii-txid') in pico-seconds.
@@ -31,6 +35,8 @@ properties: default: 2000 adi,fifo-depth-bits: + allOf: + - $ref: "/schemas/types.yaml#/definitions/uint32" description: | When operating in RMII mode, this option configures the FIFO depth. enum: [ 4, 8, 12, 16, 20, 24 ]
Signature · 1 line
2.17.1
Re: [PATCH 2/3] dt-bindings: net: adi: Fix yaml verification issue
Quoted 8 lines · Alexandre Torgue
This commit fixes an issue seen during yaml check ("make
dt_binding_check"). Each enum were not declared as uint32."
Documentation/devicetree/bindings/net/adi,adin.yaml:
properties:adi,rx-internal-delay-ps:
..., 'enum': [1600, 1800, 2000, 2200, 2400], 'default': 2000} is not valid under any of the given schemas"
You need to update dtschema. I fixed this in the meta-schema last week. Any property with a standard property unit suffix has a defined type already, so we don't need to define it again here.
I also added '-bits' to standard units.
Rob
Re: [PATCH 2/3] dt-bindings: net: adi: Fix yaml verification issue
Hi Rob
Quoted 10 lines · Rob Herring
Quoted 8 lines · Alexandre Torgue
This commit fixes an issue seen during yaml check ("make
dt_binding_check"). Each enum were not declared as uint32."
Documentation/devicetree/bindings/net/adi,adin.yaml:
properties:adi,rx-internal-delay-ps:
..., 'enum': [1600, 1800, 2000, 2200, 2400], 'default': 2000} is not valid under any of the given schemas"
Quoted 5 lines
You need to update dtschema. I fixed this in the meta-schema last week. Any property with a standard property unit suffix has a defined type already, so we don't need to define it again here.
I also added '-bits' to standard units.
Nice, I'm going to update my tools.
thanks
Alex
Quoted 3 lines
Rob
PATCH 3/3 dt-bindings: regulator: Fix yaml verification for fixed-regulator schema
In reply to Alexandre TorgueThis commit fixes an issue seen during yaml check ("make dt_binding_check"). Compatible didn't seem to be seen as a string.
Reported issue:
"properties:compatible:enum:0: {'const': 'regulator-fixed'} is not of type 'string'"
And
"properties:compatible:enum:1: {'const': 'regulator-fixed-clock'} is not of type 'string'"
Documentation/devicetree/bindings/regulator/fixed-regulator.yaml +7 -3
@@ -22,16 +22,20 @@ allOf: if: properties: compatible: + allOf: + - $ref: "/schemas/types.yaml#/definitions/string" contains: - const: regulator-fixed-clock + const: "regulator-fixed-clock" required: - clocks properties: compatible: + allOf: + - $ref: "/schemas/types.yaml#/definitions/string" enum: - - const: regulator-fixed - - const: regulator-fixed-clock + - "regulator-fixed" + - "regulator-fixed-clock" regulator-name: true
Signature · 1 line
2.17.1
Re: [PATCH 3/3] dt-bindings: regulator: Fix yaml verification for fixed-regulator schema
Quoted 11 lines · Alexandre Torgue
This commit fixes an issue seen during yaml check ("make
dt_binding_check"). Compatible didn't seem to be seen as a string.Reported issue:
"properties:compatible:enum:0: {'const': 'regulator-fixed'} is not of type 'string'"
And
"properties:compatible:enum:1: {'const': 'regulator-fixed-clock'} is not of type 'string'"
Quoted 2 lines
Fixes 9c86d003d620 ("dt-bindings: regulator: add regulator-fixed-clock binding")Signed-off-by Alexandre Torgue <[email protected]>
There's already a fix queued up.
Rob