Skip to content

Commit 7a198e0

Browse files
geertubroonie
authored andcommitted
dt-bindings: regulator: dlg,da9210: Convert to json-schema
Convert the Dialog Semiconductor DA9210 Multi-Phase 12A DC-DC Buck Converter Device Tree binding documentation to json-schema. Signed-off-by: Geert Uytterhoeven <[email protected]> Reviewed-by: Conor Dooley <[email protected]> Link: https://lore.kernel.org/r/bfd1cf9d620a8229f5a5e62e6fe9e59c153d0830.1698051619.git.geert+renesas@glider.be Signed-off-by: Mark Brown <[email protected]>
1 parent ff5f76b commit 7a198e0

File tree

2 files changed

+52
-29
lines changed

2 files changed

+52
-29
lines changed

Documentation/devicetree/bindings/regulator/da9210.txt

Lines changed: 0 additions & 29 deletions
This file was deleted.
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/regulator/dlg,da9210.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Dialog Semiconductor DA9210 Multi-Phase 12A DC-DC Buck Converter
8+
9+
maintainers:
10+
- Support Opensource <[email protected]>
11+
12+
allOf:
13+
- $ref: regulator.yaml#
14+
15+
properties:
16+
compatible:
17+
const: dlg,da9210
18+
19+
reg:
20+
maxItems: 1
21+
22+
interrupts:
23+
maxItems: 1
24+
25+
required:
26+
- compatible
27+
- reg
28+
29+
unevaluatedProperties: false
30+
31+
examples:
32+
- |
33+
#include <dt-bindings/interrupt-controller/irq.h>
34+
35+
i2c {
36+
#address-cells = <1>;
37+
#size-cells = <0>;
38+
39+
regulator@68 {
40+
compatible = "dlg,da9210";
41+
reg = <0x68>;
42+
43+
interrupt-parent = <&irqc0>;
44+
interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
45+
46+
regulator-min-microvolt = <300000>;
47+
regulator-max-microvolt = <1570000>;
48+
regulator-min-microamp = <1600000>;
49+
regulator-max-microamp = <4600000>;
50+
regulator-boot-on;
51+
};
52+
};

0 commit comments

Comments
 (0)