1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/regulator/sgmicro,sgm3804.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: SG Micro SGM3804 Single Inductor Dual Output Buck/Boost Converter 8 9maintainers: 10 - Neil Armstrong <neil.armstrong@linaro.org> 11 12description: 13 The SGM3804 is a dual voltage regulator, designed to support positive/negative 14 supply for driving LCD panels. It support software-configurable output 15 switching. The output voltages can be programmed via an I2C compatible interface. 16 17properties: 18 compatible: 19 const: sgmicro,sgm3804 20 21 reg: 22 maxItems: 1 23 24 vin-supply: true 25 26patternProperties: 27 "^(pos|neg)$": 28 type: object 29 $ref: regulator.yaml# 30 31 properties: 32 enable-gpios: true 33 34 unevaluatedProperties: false 35 36 required: 37 - enable-gpios 38 39required: 40 - compatible 41 - reg 42 - pos 43 - neg 44 45additionalProperties: false 46 47examples: 48 - | 49 #include <dt-bindings/gpio/gpio.h> 50 51 i2c { 52 #address-cells = <1>; 53 #size-cells = <0>; 54 55 regulator@3e { 56 compatible = "sgmicro,sgm3804"; 57 reg = <0x3e>; 58 59 vin-supply = <&vin_reg>; 60 61 pos { 62 regulator-name = "outpos"; 63 regulator-min-microvolt = <5000000>; 64 regulator-max-microvolt = <5000000>; 65 enable-gpios = <&gpio 17 GPIO_ACTIVE_HIGH>; 66 }; 67 68 neg { 69 regulator-name = "outneg"; 70 regulator-min-microvolt = <5000000>; 71 regulator-max-microvolt = <5000000>; 72 enable-gpios = <&gpio 18 GPIO_ACTIVE_HIGH>; 73 }; 74 }; 75 }; 76... 77 78