Skip to contentSkip to conversation

regulator: dt-bindings: Convert fixed-regulator to json-schema

PATCH In review Rob Herring 2 participants 3 messages Jan 10, 2019 – Jan 14, 2019

Subsystems (2)
lore
Share & tools
lore

Rob Herring

author maintainer
#0 lore raw

PATCH 1/1 regulator: dt-bindings: Convert fixed-regulator to json-schema

Convert the fixed-regulator binding to DT schema format using json-schema.

Cc Liam Girdwood <[email protected]>
Cc Mark Brown <[email protected]>
---
 .../bindings/regulator/fixed-regulator.txt    | 35 ----------
 .../bindings/regulator/fixed-regulator.yaml   | 67 +++++++++++++++++++
 2 files changed, 67 insertions(+), 35 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/regulator/fixed-regulator.txt
 create mode 100644 Documentation/devicetree/bindings/regulator/fixed-regulator.yaml
Documentation/devicetree/bindings/regulator/fixed-regulator.txt deleted +0 -35
deleted file mode 100644
index 0c2a6c8a1536..000000000000
@@ -1,35 +0,0 @@
-Fixed Voltage regulators
-
-Required properties:
-- compatible: Must be "regulator-fixed";
-- regulator-name: Defined in regulator.txt as optional, but required here.
-
-Optional properties:
-- gpio: gpio to use for enable control
-- startup-delay-us: startup time in microseconds
-- enable-active-high: Polarity of GPIO is Active high
-If this property is missing, the default assumed is Active low.
-- gpio-open-drain: GPIO is open drain type.
-  If this property is missing then default assumption is false.
--vin-supply: Input supply name.
-
-Any property defined as part of the core regulator
-binding, defined in regulator.txt, can also be used.
-However a fixed voltage regulator is expected to have the
-regulator-min-microvolt and regulator-max-microvolt
-to be the same.
-
-Example:
-
-	abc: fixedregulator@0 {
-		compatible = "regulator-fixed";
-		regulator-name = "fixed-supply";
-		regulator-min-microvolt = <1800000>;
-		regulator-max-microvolt = <1800000>;
-		gpio = <&gpio1 16 0>;
-		startup-delay-us = <70000>;
-		enable-active-high;
-		regulator-boot-on;
-		gpio-open-drain;
-		vin-supply = <&parent_reg>;
-	};
Documentation/devicetree/bindings/regulator/fixed-regulator.yaml new file +67 -0

67 lines not on this page · raw message

Signature · 1 line
2.19.1
maintainer
#1 lore raw
Quoted 2 lines · Rob Herring

Convert the fixed-regulator binding to DT schema format using json-schema.

This looks good but has collided with some other changes from Linus, can you please respin against them?

maintainer
#2 lore raw
In reply to Rob Herring
Quoted 2 lines · Rob Herring

Convert the fixed-regulator binding to DT schema format using json-schema.

Actually I've had to drop the series this conflicted with since it broke a bunch of platforms so I'll go ahead and apply this instead, no need to respin!