xref: /freebsd/sys/contrib/device-tree/Bindings/regulator/maxim,max20086.yaml (revision 84943d6f38e936ac3b7a3947ca26eeb27a39f938)
1e67e8565SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2e67e8565SEmmanuel Vadot%YAML 1.2
3e67e8565SEmmanuel Vadot---
4e67e8565SEmmanuel Vadot$id: http://devicetree.org/schemas/regulator/maxim,max20086.yaml#
5e67e8565SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6e67e8565SEmmanuel Vadot
7e67e8565SEmmanuel Vadottitle: Maxim Integrated MAX20086-MAX20089 Camera Power Protector
8e67e8565SEmmanuel Vadot
9e67e8565SEmmanuel Vadotmaintainers:
10e67e8565SEmmanuel Vadot  - Laurent Pinchart <laurent.pinchart@ideasonboard.com>
11e67e8565SEmmanuel Vadot
12e67e8565SEmmanuel Vadotdescription: |
13e67e8565SEmmanuel Vadot  The MAX20086-MAX20089 are dual/quad camera power protectors, designed to
14e67e8565SEmmanuel Vadot  deliver power over coax for radar and camera modules. They support
15e67e8565SEmmanuel Vadot  software-configurable output switching and monitoring. The output voltage and
16e67e8565SEmmanuel Vadot  current limit are fixed by the hardware design.
17e67e8565SEmmanuel Vadot
18e67e8565SEmmanuel Vadotproperties:
19e67e8565SEmmanuel Vadot  compatible:
20e67e8565SEmmanuel Vadot    enum:
21e67e8565SEmmanuel Vadot      - maxim,max20086
22e67e8565SEmmanuel Vadot      - maxim,max20087
23e67e8565SEmmanuel Vadot      - maxim,max20088
24e67e8565SEmmanuel Vadot      - maxim,max20089
25e67e8565SEmmanuel Vadot
26e67e8565SEmmanuel Vadot  reg:
27e67e8565SEmmanuel Vadot    maxItems: 1
28e67e8565SEmmanuel Vadot
29e67e8565SEmmanuel Vadot  enable-gpios:
30e67e8565SEmmanuel Vadot    maxItems: 1
31e67e8565SEmmanuel Vadot    description: GPIO connected to the EN pin, active high
32e67e8565SEmmanuel Vadot
33e67e8565SEmmanuel Vadot  in-supply:
34e67e8565SEmmanuel Vadot    description: Input supply for the camera outputs (IN pin, 3.0V to 15.0V)
35e67e8565SEmmanuel Vadot
36e67e8565SEmmanuel Vadot  vdd-supply:
37e67e8565SEmmanuel Vadot    description: Input supply for the device (VDD pin, 3.0V to 5.5V)
38e67e8565SEmmanuel Vadot
39e67e8565SEmmanuel Vadot  regulators:
40e67e8565SEmmanuel Vadot    type: object
41e67e8565SEmmanuel Vadot
42e67e8565SEmmanuel Vadot    patternProperties:
43e67e8565SEmmanuel Vadot      "^OUT[1-4]$":
44e67e8565SEmmanuel Vadot        type: object
45e67e8565SEmmanuel Vadot        $ref: regulator.yaml#
46*84943d6fSEmmanuel Vadot        unevaluatedProperties: false
47e67e8565SEmmanuel Vadot
48e67e8565SEmmanuel Vadot    additionalProperties: false
49e67e8565SEmmanuel Vadot
50e67e8565SEmmanuel Vadotrequired:
51e67e8565SEmmanuel Vadot  - compatible
52e67e8565SEmmanuel Vadot  - reg
53e67e8565SEmmanuel Vadot  - in-supply
54e67e8565SEmmanuel Vadot  - vdd-supply
55e67e8565SEmmanuel Vadot  - regulators
56e67e8565SEmmanuel Vadot
57e67e8565SEmmanuel VadotallOf:
58e67e8565SEmmanuel Vadot  - if:
59e67e8565SEmmanuel Vadot      properties:
60e67e8565SEmmanuel Vadot        compatible:
61e67e8565SEmmanuel Vadot          contains:
62e67e8565SEmmanuel Vadot            enum:
63e67e8565SEmmanuel Vadot              - maxim,max20088
64e67e8565SEmmanuel Vadot              - maxim,max20089
65e67e8565SEmmanuel Vadot    then:
66e67e8565SEmmanuel Vadot      properties:
67e67e8565SEmmanuel Vadot        regulators:
68e67e8565SEmmanuel Vadot          properties:
69e67e8565SEmmanuel Vadot            OUT3: false
70e67e8565SEmmanuel Vadot            OUT4: false
71e67e8565SEmmanuel Vadot
72e67e8565SEmmanuel VadotadditionalProperties: false
73e67e8565SEmmanuel Vadot
74e67e8565SEmmanuel Vadotexamples:
75e67e8565SEmmanuel Vadot  - |
76e67e8565SEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
77e67e8565SEmmanuel Vadot
78e67e8565SEmmanuel Vadot    i2c {
79e67e8565SEmmanuel Vadot        #address-cells = <1>;
80e67e8565SEmmanuel Vadot        #size-cells = <0>;
81e67e8565SEmmanuel Vadot
82e67e8565SEmmanuel Vadot        regulator@28 {
83e67e8565SEmmanuel Vadot            compatible = "maxim,max20087";
84e67e8565SEmmanuel Vadot            reg = <0x28>;
85e67e8565SEmmanuel Vadot
86e67e8565SEmmanuel Vadot            in-supply = <&reg_12v0>;
87e67e8565SEmmanuel Vadot            vdd-supply = <&reg_3v3>;
88e67e8565SEmmanuel Vadot
89e67e8565SEmmanuel Vadot            enable-gpios = <&gpio 108 GPIO_ACTIVE_HIGH>;
90e67e8565SEmmanuel Vadot
91e67e8565SEmmanuel Vadot            regulators {
92e67e8565SEmmanuel Vadot                OUT1 {
93e67e8565SEmmanuel Vadot                    regulator-name = "VOUT1";
94e67e8565SEmmanuel Vadot                };
95e67e8565SEmmanuel Vadot                OUT2 {
96e67e8565SEmmanuel Vadot                    regulator-name = "VOUT2";
97e67e8565SEmmanuel Vadot                };
98e67e8565SEmmanuel Vadot                OUT3 {
99e67e8565SEmmanuel Vadot                    regulator-name = "VOUT3";
100e67e8565SEmmanuel Vadot                };
101e67e8565SEmmanuel Vadot                OUT4 {
102e67e8565SEmmanuel Vadot                    regulator-name = "VOUT4";
103e67e8565SEmmanuel Vadot                };
104e67e8565SEmmanuel Vadot            };
105e67e8565SEmmanuel Vadot        };
106e67e8565SEmmanuel Vadot    };
107e67e8565SEmmanuel Vadot...
108