lkml.org 
[lkml]   [2019]   [Oct]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 3/3] dt-bindings: regulator: Fix yaml verification for fixed-regulator schema
Date
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")
Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com>

diff --git a/Documentation/devicetree/bindings/regulator/fixed-regulator.yaml b/Documentation/devicetree/bindings/regulator/fixed-regulator.yaml
index a78150c47aa2..7725cedf1538 100644
--- a/Documentation/devicetree/bindings/regulator/fixed-regulator.yaml
+++ b/Documentation/devicetree/bindings/regulator/fixed-regulator.yaml
@@ -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

--
2.17.1
\
 
 \ /
  Last update: 2019-10-07 12:26    [W:0.057 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site