[PATCH dt-schema 0/2] dt-schema: Add percentage

STALE2012d

4 messages, 2 authors, 2021-01-27 · open the first message on its own page

[PATCH dt-schema 0/2] dt-schema: Add percentage

From: Geert Uytterhoeven <geert+renesas@glider.be>
Date: 2021-01-26 18:54:31

	Hi Rob,

This patch series adds percentages to the lists of recognized
properties, as requested in[1].

Thanks!

[1] "Re: [PATCH v2] dt-bindings: clk: versaclock5: Miscellaneous fixes
     and improvements:"
    https://lore.kernel.org/linux-devicetree/20210125212442.GA1019390@robh.at.kernel.org/

Geert Uytterhoeven (2):
  schemas: property-units: Add percentage
  meta-schemas: vendor-props: Add percentage

 meta-schemas/vendor-props.yaml | 2 +-
 schemas/property-units.yaml    | 5 +++++
 2 files changed, 6 insertions(+), 1 deletion(-)

-- 
2.25.1

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds

[PATCH dt-schema 2/2] meta-schemas: vendor-props: Add percentage

From: Geert Uytterhoeven <geert+renesas@glider.be>
Date: 2021-01-26 18:54:31

Add percentages to the list of recognized vendor properties.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 meta-schemas/vendor-props.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta-schemas/vendor-props.yaml b/meta-schemas/vendor-props.yaml
index c620490d220a4518..35092ab5fef8d231 100644
--- a/meta-schemas/vendor-props.yaml
+++ b/meta-schemas/vendor-props.yaml
@@ -14,7 +14,7 @@ patternProperties:
   '^linux,.*$': true
   '-(gpio|gpios)$': true
   '-supply$': true
-  '-(bits|mhz|hz|sec|ms|us|ns|ps|mm)$': true
+  '-(bits|percent|mhz|hz|sec|ms|us|ns|ps|mm)$': true
   '-(microamp|microamp-hours|ohms|micro-ohms|microwatt-hours)$': true
   '-(microvolt|picofarads|celsius|millicelsius|kpascal)$': true
 
-- 
2.25.1

[PATCH dt-schema 1/2] schemas: property-units: Add percentage

From: Geert Uytterhoeven <geert+renesas@glider.be>
Date: 2021-01-26 18:54:32

Add percentages to the list of recognized units.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 schemas/property-units.yaml | 5 +++++
 1 file changed, 5 insertions(+)
diff --git a/schemas/property-units.yaml b/schemas/property-units.yaml
index 20e6f6ebf06b8d93..655e9eec615319e1 100644
--- a/schemas/property-units.yaml
+++ b/schemas/property-units.yaml
@@ -26,6 +26,11 @@ patternProperties:
   "-bits$":
     $ref: "types.yaml#/definitions/uint32-array"
     description: Number of bits
+
+  "-percent$":
+    $ref: "types.yaml#/definitions/uint32-array"
+    description: percentage
+
   # Time/Frequency
   "-mhz$":
     $ref: "types.yaml#/definitions/uint32-array"
-- 
2.25.1

Re: [PATCH dt-schema 0/2] dt-schema: Add percentage

From: Rob Herring <robh@kernel.org>
Date: 2021-01-27 16:38:27

On Tue, Jan 26, 2021 at 05:27:54PM +0100, Geert Uytterhoeven wrote:
	Hi Rob,

This patch series adds percentages to the lists of recognized
properties, as requested in[1].

Thanks!

[1] "Re: [PATCH v2] dt-bindings: clk: versaclock5: Miscellaneous fixes
     and improvements:"
    https://lore.kernel.org/linux-devicetree/20210125212442.GA1019390@robh.at.kernel.org/

Geert Uytterhoeven (2):
  schemas: property-units: Add percentage
  meta-schemas: vendor-props: Add percentage
Applied, thanks.

Rob
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help