File Index
Files and directories
Sign in
FILE

dlg,da9211.yaml

File preview with syntax highlighting.

linux-6.19.14/Documentation/devicetree/bindings/regulator/dlg,da9211.yaml YAML
  1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
  2%YAML 1.2
  3---
  4$id: http://devicetree.org/schemas/regulator/dlg,da9211.yaml#
  5$schema: http://devicetree.org/meta-schemas/core.yaml#
  6
  7title:
  8  Dialog Semiconductor DA9211-9215, DA9223-9225 Voltage Regulators
  9
 10maintainers:
 11  - Ariel D'Alessandro <ariel.dalessandro@collabora.com>
 12
 13properties:
 14  compatible:
 15    enum:
 16      - dlg,da9211
 17      - dlg,da9212
 18      - dlg,da9213
 19      - dlg,da9214
 20      - dlg,da9215
 21      - dlg,da9223
 22      - dlg,da9224
 23      - dlg,da9225
 24
 25  reg:
 26    maxItems: 1
 27
 28  interrupts:
 29    maxItems: 1
 30
 31  regulators:
 32    type: object
 33    additionalProperties: false
 34    description:
 35      List of regulators provided by the device
 36
 37    patternProperties:
 38      "^BUCK([AB])$":
 39        type: object
 40        $ref: regulator.yaml#
 41        unevaluatedProperties: false
 42        description:
 43          Properties for a single BUCK regulator
 44
 45        properties:
 46          regulator-initial-mode:
 47            items:
 48              enum: [ 1, 2, 3 ]
 49            description:
 50              Defined in include/dt-bindings/regulator/dlg,da9211-regulator.h
 51
 52          regulator-allowed-modes:
 53            items:
 54              enum: [ 1, 2, 3 ]
 55            description:
 56              Defined in include/dt-bindings/regulator/dlg,da9211-regulator.h
 57
 58          enable-gpios:
 59            maxItems: 1
 60
 61required:
 62  - compatible
 63  - reg
 64  - interrupts
 65  - regulators
 66
 67additionalProperties: false
 68
 69examples:
 70  - |
 71    #include <dt-bindings/regulator/dlg,da9211-regulator.h>
 72
 73    i2c {
 74        #address-cells = <1>;
 75        #size-cells = <0>;
 76
 77        regulator@68 {
 78            compatible = "dlg,da9212";
 79            reg = <0x68>;
 80            interrupts = <3 27>;
 81
 82            regulators {
 83                BUCKA {
 84                    regulator-name = "VBUCKA";
 85                    regulator-min-microvolt = < 300000>;
 86                    regulator-max-microvolt = <1570000>;
 87                    regulator-min-microamp = <2000000>;
 88                    regulator-max-microamp = <5000000>;
 89                    enable-gpios = <&gpio 27 0>;
 90                };
 91                BUCKB {
 92                    regulator-name = "VBUCKB";
 93                    regulator-min-microvolt = < 300000>;
 94                    regulator-max-microvolt = <1570000>;
 95                    regulator-min-microamp = <2000000>;
 96                    regulator-max-microamp = <5000000>;
 97                    enable-gpios = <&gpio 17 0>;
 98                };
 99            };
100        };
101    };
102
103...
~/ Read-only file preview.