xref: /freebsd/sys/contrib/device-tree/Bindings/regulator/awinic,aw37503.yaml (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
1*aa1a8ff2SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2*aa1a8ff2SEmmanuel Vadot%YAML 1.2
3*aa1a8ff2SEmmanuel Vadot---
4*aa1a8ff2SEmmanuel Vadot$id: http://devicetree.org/schemas/regulator/awinic,aw37503.yaml#
5*aa1a8ff2SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*aa1a8ff2SEmmanuel Vadot
7*aa1a8ff2SEmmanuel Vadottitle: Awinic AW37503 Voltage Regulator
8*aa1a8ff2SEmmanuel Vadot
9*aa1a8ff2SEmmanuel Vadotmaintainers:
10*aa1a8ff2SEmmanuel Vadot  - Alec Li <like@awinic.com>
11*aa1a8ff2SEmmanuel Vadot
12*aa1a8ff2SEmmanuel Vadotdescription:
13*aa1a8ff2SEmmanuel Vadot  The AW37503 are dual voltage regulator, designed to support positive/negative
14*aa1a8ff2SEmmanuel Vadot  supply for driving TFT-LCD panels. It support software-configurable output
15*aa1a8ff2SEmmanuel Vadot  switching and monitoring. The output voltages can be programmed via an I2C
16*aa1a8ff2SEmmanuel Vadot  compatible interface.
17*aa1a8ff2SEmmanuel Vadot
18*aa1a8ff2SEmmanuel Vadotproperties:
19*aa1a8ff2SEmmanuel Vadot  compatible:
20*aa1a8ff2SEmmanuel Vadot    const: awinic,aw37503
21*aa1a8ff2SEmmanuel Vadot
22*aa1a8ff2SEmmanuel Vadot  reg:
23*aa1a8ff2SEmmanuel Vadot    maxItems: 1
24*aa1a8ff2SEmmanuel Vadot
25*aa1a8ff2SEmmanuel VadotpatternProperties:
26*aa1a8ff2SEmmanuel Vadot  "^out[pn]$":
27*aa1a8ff2SEmmanuel Vadot    type: object
28*aa1a8ff2SEmmanuel Vadot    $ref: regulator.yaml#
29*aa1a8ff2SEmmanuel Vadot    unevaluatedProperties: false
30*aa1a8ff2SEmmanuel Vadot    description:
31*aa1a8ff2SEmmanuel Vadot      Properties for single regulator.
32*aa1a8ff2SEmmanuel Vadot
33*aa1a8ff2SEmmanuel Vadot    properties:
34*aa1a8ff2SEmmanuel Vadot      enable-gpios:
35*aa1a8ff2SEmmanuel Vadot        maxItems: 1
36*aa1a8ff2SEmmanuel Vadot        description:
37*aa1a8ff2SEmmanuel Vadot          GPIO specifier to enable the GPIO control (on/off) for regulator.
38*aa1a8ff2SEmmanuel Vadot
39*aa1a8ff2SEmmanuel Vadot    required:
40*aa1a8ff2SEmmanuel Vadot      - regulator-name
41*aa1a8ff2SEmmanuel Vadot
42*aa1a8ff2SEmmanuel Vadotrequired:
43*aa1a8ff2SEmmanuel Vadot  - compatible
44*aa1a8ff2SEmmanuel Vadot  - reg
45*aa1a8ff2SEmmanuel Vadot  - outp
46*aa1a8ff2SEmmanuel Vadot  - outn
47*aa1a8ff2SEmmanuel Vadot
48*aa1a8ff2SEmmanuel VadotadditionalProperties: false
49*aa1a8ff2SEmmanuel Vadot
50*aa1a8ff2SEmmanuel Vadotexamples:
51*aa1a8ff2SEmmanuel Vadot  - |
52*aa1a8ff2SEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
53*aa1a8ff2SEmmanuel Vadot
54*aa1a8ff2SEmmanuel Vadot    i2c {
55*aa1a8ff2SEmmanuel Vadot        #address-cells = <1>;
56*aa1a8ff2SEmmanuel Vadot        #size-cells = <0>;
57*aa1a8ff2SEmmanuel Vadot
58*aa1a8ff2SEmmanuel Vadot        regulator@3e {
59*aa1a8ff2SEmmanuel Vadot            compatible = "awinic,aw37503";
60*aa1a8ff2SEmmanuel Vadot            reg = <0x3e>;
61*aa1a8ff2SEmmanuel Vadot
62*aa1a8ff2SEmmanuel Vadot            outp {
63*aa1a8ff2SEmmanuel Vadot                regulator-name = "outp";
64*aa1a8ff2SEmmanuel Vadot                regulator-boot-on;
65*aa1a8ff2SEmmanuel Vadot                regulator-always-on;
66*aa1a8ff2SEmmanuel Vadot                enable-gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
67*aa1a8ff2SEmmanuel Vadot            };
68*aa1a8ff2SEmmanuel Vadot
69*aa1a8ff2SEmmanuel Vadot            outn {
70*aa1a8ff2SEmmanuel Vadot                regulator-name = "outn";
71*aa1a8ff2SEmmanuel Vadot                regulator-boot-on;
72*aa1a8ff2SEmmanuel Vadot                regulator-always-on;
73*aa1a8ff2SEmmanuel Vadot                enable-gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
74*aa1a8ff2SEmmanuel Vadot            };
75*aa1a8ff2SEmmanuel Vadot        };
76*aa1a8ff2SEmmanuel Vadot    };
77*aa1a8ff2SEmmanuel Vadot...
78*aa1a8ff2SEmmanuel Vadot
79