Skip to contentSkip to conversation

dt-bindings: opp: Convert to DT schema

PATCH Applied Rob Herring 2 participants 4 messages Jul 19, 2021 – Jul 20, 2021

Subsystems (4)
lore
Share & tools
lore

Rob Herring

author maintainer
#0 lore raw

PATCH v2 1/1 dt-bindings: opp: Convert to DT schema

Convert the OPP v1 and v2 bindings to DT schema format. As the OPPv2 binding can be extended by vendors, we need to split the common part out from the "operating-points-v2" conforming compatible.

---
v2:
- move opp-peak-kBps next to opp-avg-kBps. Also add a dependency schema.
- Correct the opp-microamp schemas. It's always a single value for each regulator.
- Add missing type for '^opp-microamp-'

---
 .../allwinner,sun50i-h6-operating-points.yaml |   4 +
 .../devicetree/bindings/opp/opp-v1.yaml       |  51 ++
 .../devicetree/bindings/opp/opp-v2-base.yaml  | 214 ++++++
 .../devicetree/bindings/opp/opp-v2.yaml       | 475 +++++++++++++
 Documentation/devicetree/bindings/opp/opp.txt | 622 ------------------
 5 files changed, 744 insertions(+), 622 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/opp/opp-v1.yaml
 create mode 100644 Documentation/devicetree/bindings/opp/opp-v2-base.yaml
 create mode 100644 Documentation/devicetree/bindings/opp/opp-v2.yaml
 delete mode 100644 Documentation/devicetree/bindings/opp/opp.txt
Documentation/devicetree/bindings/opp/allwinner,sun50i-h6-operating-points.yaml +4 -0
index aeff2bd774dd..729ae97b63d9 100644
@@ -18,6 +18,9 @@ description: |
   sun50i-cpufreq-nvmem driver reads the efuse value from the SoC to
   provide the OPP framework with required information.
 
+allOf:
+  - $ref: opp-v2-base.yaml#
+
 properties:
   compatible:
     const: allwinner,sun50i-h6-operating-points
@@ -43,6 +46,7 @@ patternProperties:
 
     properties:
       opp-hz: true
+      clock-latency-ns: true
 
     patternProperties:
       "opp-microvolt-.*": true
Documentation/devicetree/bindings/opp/opp-v1.yaml new file +51 -0

51 lines not on this page · raw message

Documentation/devicetree/bindings/opp/opp-v2-base.yaml new file +214 -0

214 lines not on this page · raw message

Documentation/devicetree/bindings/opp/opp-v2.yaml new file +475 -0

475 lines not on this page · raw message

Documentation/devicetree/bindings/opp/opp.txt deleted +0 -622

622 lines not on this page · raw message

Signature · 7 lines
2.27.0


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Applied
#1 lore raw
Quoted 13 lines · Rob Herring

Convert the OPP v1 and v2 bindings to DT schema format. As the OPPv2 binding can be extended by vendors, we need to split the common part out from the "operating-points-v2" conforming compatible.

Quoted 6 lines

---
v2:
- move opp-peak-kBps next to opp-avg-kBps. Also add a dependency schema.
- Correct the opp-microamp schemas. It's always a single value for each regulator.
- Add missing type for '^opp-microamp-'

Applied. Thanks.

Signature · 1 line
viresh
author maintainer
#2 lore raw
Quoted 21 lines · Viresh Kumar
Quoted 13 lines · Rob Herring

Convert the OPP v1 and v2 bindings to DT schema format. As the OPPv2 binding can be extended by vendors, we need to split the common part out from the "operating-points-v2" conforming compatible.

Quoted 6 lines

---
v2:
- move opp-peak-kBps next to opp-avg-kBps. Also add a dependency schema.
- Correct the opp-microamp schemas. It's always a single value for each regulator.
- Add missing type for '^opp-microamp-'

Quoted 1 line

Applied. Thanks.

I found some issues with it, can you drop it?

Rob

#3 lore raw
Quoted 22 lines · Rob Herring
Quoted 21 lines · Viresh Kumar
Quoted 19 lines · Rob Herring

Convert the OPP v1 and v2 bindings to DT schema format. As the OPPv2 binding can be extended by vendors, we need to split the common part out from the "operating-points-v2" conforming compatible.

---
v2:
- move opp-peak-kBps next to opp-avg-kBps. Also add a dependency schema.
- Correct the opp-microamp schemas. It's always a single value for each regulator.
- Add missing type for '^opp-microamp-'

Quoted 3 lines
Quoted 1 line

Applied. Thanks.

I found some issues with it, can you drop it?

Sure.

Signature · 1 line
viresh