brintos

brintos / linux-shallow public Read only

0
0
Text · 2.3 KiB · 7394c0a Raw
108 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/regulator/maxim,max20086.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Maxim Integrated MAX20086-MAX20089 Camera Power Protector8 9maintainers:10  - Laurent Pinchart <laurent.pinchart@ideasonboard.com>11 12description: |13  The MAX20086-MAX20089 are dual/quad camera power protectors, designed to14  deliver power over coax for radar and camera modules. They support15  software-configurable output switching and monitoring. The output voltage and16  current limit are fixed by the hardware design.17 18properties:19  compatible:20    enum:21      - maxim,max2008622      - maxim,max2008723      - maxim,max2008824      - maxim,max2008925 26  reg:27    maxItems: 128 29  enable-gpios:30    maxItems: 131    description: GPIO connected to the EN pin, active high32 33  in-supply:34    description: Input supply for the camera outputs (IN pin, 3.0V to 15.0V)35 36  vdd-supply:37    description: Input supply for the device (VDD pin, 3.0V to 5.5V)38 39  regulators:40    type: object41 42    patternProperties:43      "^OUT[1-4]$":44        type: object45        $ref: regulator.yaml#46        unevaluatedProperties: false47 48    additionalProperties: false49 50required:51  - compatible52  - reg53  - in-supply54  - vdd-supply55  - regulators56 57allOf:58  - if:59      properties:60        compatible:61          contains:62            enum:63              - maxim,max2008864              - maxim,max2008965    then:66      properties:67        regulators:68          properties:69            OUT3: false70            OUT4: false71 72additionalProperties: false73 74examples:75  - |76    #include <dt-bindings/gpio/gpio.h>77 78    i2c {79        #address-cells = <1>;80        #size-cells = <0>;81 82        regulator@28 {83            compatible = "maxim,max20087";84            reg = <0x28>;85 86            in-supply = <&reg_12v0>;87            vdd-supply = <&reg_3v3>;88 89            enable-gpios = <&gpio 108 GPIO_ACTIVE_HIGH>;90 91            regulators {92                OUT1 {93                    regulator-name = "VOUT1";94                };95                OUT2 {96                    regulator-name = "VOUT2";97                };98                OUT3 {99                    regulator-name = "VOUT3";100                };101                OUT4 {102                    regulator-name = "VOUT4";103                };104            };105        };106    };107...108