All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3] dt-bindings: regulator: Convert sy8824x to json-schema
@ 2020-08-03  6:44 Jisheng Zhang
  2020-08-12 19:23 ` Rob Herring
  2020-08-18 16:56 ` Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Jisheng Zhang @ 2020-08-03  6:44 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown, Rob Herring; +Cc: linux-kernel, devicetree

Convert the sy8824x binding to DT schema format using json-schema.

Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
---
Since v2:
 - add $ref to regulator.yaml
 - add unevaluatedProperties

Since v1:
 - It seems there's something wrong with my last email, so send out a v2 with
   another email account

 .../bindings/regulator/silergy,sy8824x.yaml   | 45 +++++++++++++++++++
 .../devicetree/bindings/regulator/sy8824x.txt | 24 ----------
 2 files changed, 45 insertions(+), 24 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/regulator/silergy,sy8824x.yaml
 delete mode 100644 Documentation/devicetree/bindings/regulator/sy8824x.txt

diff --git a/Documentation/devicetree/bindings/regulator/silergy,sy8824x.yaml b/Documentation/devicetree/bindings/regulator/silergy,sy8824x.yaml
new file mode 100644
index 000000000000..82af4d656177
--- /dev/null
+++ b/Documentation/devicetree/bindings/regulator/silergy,sy8824x.yaml
@@ -0,0 +1,45 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/regulator/silergy,sy8824x.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: silergy sy8824c,sy8824e,sy20276 and sy20278 PMIC
+
+maintainers:
+  - Jisheng Zhang <jszhang@kernel.org>
+
+allOf:
+  - $ref: regulator.yaml#
+
+properties:
+  compatible:
+    enum:
+      - silergy,sy8824c
+      - silergy,sy8824e
+      - silergy,sy20276
+      - silergy,sy20278
+
+  reg:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+        regulator@60 {
+          compatible = "silergy,sy8824c";
+          regulator-min-microvolt = <800000>;
+          regulator-max-microvolt = <1150000>;
+          reg = <0x60>;
+        };
+    };
+
+...
diff --git a/Documentation/devicetree/bindings/regulator/sy8824x.txt b/Documentation/devicetree/bindings/regulator/sy8824x.txt
deleted file mode 100644
index c5e95850c427..000000000000
--- a/Documentation/devicetree/bindings/regulator/sy8824x.txt
+++ /dev/null
@@ -1,24 +0,0 @@
-SY8824C/SY8824E/SY20276 Voltage regulator
-
-Required properties:
-- compatible: Must be one of the following.
-	"silergy,sy8824c"
-	"silergy,sy8824e"
-	"silergy,sy20276"
-	"silergy,sy20278"
-- reg: I2C slave address
-
-Any property defined as part of the core regulator binding, defined in
-./regulator.txt, can also be used.
-
-Example:
-
-	vcore: regulator@00 {
-		compatible = "silergy,sy8824c";
-		reg = <0x66>;
-		regulator-name = "vcore";
-		regulator-min-microvolt = <800000>;
-		regulator-max-microvolt = <1150000>;
-		regulator-boot-on;
-		regulator-always-on;
-	};
-- 
2.28.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v3] dt-bindings: regulator: Convert sy8824x to json-schema
  2020-08-03  6:44 [PATCH v3] dt-bindings: regulator: Convert sy8824x to json-schema Jisheng Zhang
@ 2020-08-12 19:23 ` Rob Herring
  2020-08-18 16:56 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Rob Herring @ 2020-08-12 19:23 UTC (permalink / raw)
  To: Jisheng Zhang
  Cc: Liam Girdwood, Mark Brown, linux-kernel, Rob Herring, devicetree

On Mon, 03 Aug 2020 14:44:36 +0800, Jisheng Zhang wrote:
> Convert the sy8824x binding to DT schema format using json-schema.
> 
> Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
> ---
> Since v2:
>  - add $ref to regulator.yaml
>  - add unevaluatedProperties
> 
> Since v1:
>  - It seems there's something wrong with my last email, so send out a v2 with
>    another email account
> 
>  .../bindings/regulator/silergy,sy8824x.yaml   | 45 +++++++++++++++++++
>  .../devicetree/bindings/regulator/sy8824x.txt | 24 ----------
>  2 files changed, 45 insertions(+), 24 deletions(-)
>  create mode 100644 Documentation/devicetree/bindings/regulator/silergy,sy8824x.yaml
>  delete mode 100644 Documentation/devicetree/bindings/regulator/sy8824x.txt
> 

Reviewed-by: Rob Herring <robh@kernel.org>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v3] dt-bindings: regulator: Convert sy8824x to json-schema
  2020-08-03  6:44 [PATCH v3] dt-bindings: regulator: Convert sy8824x to json-schema Jisheng Zhang
  2020-08-12 19:23 ` Rob Herring
@ 2020-08-18 16:56 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2020-08-18 16:56 UTC (permalink / raw)
  To: Jisheng Zhang, Rob Herring, Liam Girdwood; +Cc: linux-kernel, devicetree

On Mon, 3 Aug 2020 14:44:36 +0800, Jisheng Zhang wrote:
> Convert the sy8824x binding to DT schema format using json-schema.

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next

Thanks!

[1/1] regulator: Convert sy8824x to json-schema
      commit: aedf7451e7535bc93bb9cec0ebc91744934da95c

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-08-18 16:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-03  6:44 [PATCH v3] dt-bindings: regulator: Convert sy8824x to json-schema Jisheng Zhang
2020-08-12 19:23 ` Rob Herring
2020-08-18 16:56 ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.