Skip to contentSkip to conversation

Fixes for dt-bindings verification

PATCH In review Alexandre Torgue 3 participants 9 messages Oct 7, 2019

Subsystems (8)
lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

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.

Fixes c5e8f4ccd775 ("media: dt-bindings: media: Add Allwinner A10 CSI binding")
Documentation/devicetree/bindings/media/allwinner,sun4i-a10-csi.yaml +1 -1
index 27f38eed389e..5dd1cf490cd9 100644
@@ -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
maintainer
#2 lore raw

Re: [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")

I just merged a patch addressing the same issue earlier today.

Thanks!
Maxime

#3 lore raw

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")

I just merged a patch addressing the same issue earlier today.

Ok. Thanks Maxime.

Regards
Alex

Quoted 3 lines

Thanks!
Maxime

#4 lore raw

PATCH 2/3 dt-bindings: net: adi: Fix yaml verification issue

In reply to 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"

Fixes 767078132ff9 ("dt-bindings: net: add bindings for ADIN PHY driver")
Documentation/devicetree/bindings/net/adi,adin.yaml +6 -0
index d95cc691a65f..23e8597acda6 100644
@@ -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
#5 lore raw

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

#6 lore raw

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

#7 lore raw

PATCH 3/3 dt-bindings: regulator: Fix yaml verification for fixed-regulator schema

In reply to 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'"

Fixes 9c86d003d620 ("dt-bindings: regulator: add regulator-fixed-clock binding")
Documentation/devicetree/bindings/regulator/fixed-regulator.yaml +7 -3
index a78150c47aa2..7725cedf1538 100644
@@ -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
#8 lore raw

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")

There's already a fix queued up.

Rob