brintos

brintos / linux-shallow public Read only

0
0
Text · 2.6 KiB · e3d6430 Raw
112 lines · yaml
1# SPDX-License-Identifier: GPL-2.02%YAML 1.23---4$id: http://devicetree.org/schemas/mfd/ricoh,rn5t618.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Ricoh RN5T567/RN5T618/RC5T619 PMIC8 9maintainers:10  - Andreas Kemnade <andreas@kemnade.info>11 12description: |13  Ricoh RN5T567/RN5T618/RC5T619 is a power management IC family which14  integrates 3 to 5 step-down DCDC converters, 7 to 10 low-dropout regulators,15  GPIOs, and a watchdog timer. It can be controlled through an I2C interface.16  The RN5T618/RC5T619 provides additionally a Li-ion battery charger,17  fuel gauge, and an ADC.18  The RC5T619 additionally includes USB charger detection and an RTC.19 20allOf:21  - if:22      properties:23        compatible:24          contains:25            const: ricoh,rn5t56726    then:27      properties:28        regulators:29          patternProperties:30            "^(DCDC[1-4]|LDO[1-5]|LDORTC[12])$":31              $ref: /schemas/regulator/regulator.yaml32          additionalProperties: false33  - if:34      properties:35        compatible:36          contains:37            const: ricoh,rn5t61838    then:39      properties:40        regulators:41          patternProperties:42            "^(DCDC[1-3]|LDO[1-5]|LDORTC[12])$":43              $ref: /schemas/regulator/regulator.yaml44          additionalProperties: false45  - if:46      properties:47        compatible:48          contains:49            const: ricoh,rc5t61950    then:51      properties:52        regulators:53          patternProperties:54            "^(DCDC[1-5]|LDO[1-9]|LDO10|LDORTC[12])$":55              $ref: /schemas/regulator/regulator.yaml56          additionalProperties: false57 58properties:59  compatible:60    enum:61      - ricoh,rn5t56762      - ricoh,rn5t61863      - ricoh,rc5t61964 65  reg:66    maxItems: 167 68  interrupts:69    maxItems: 170 71  system-power-controller:72    type: boolean73    description: |74      See Documentation/devicetree/bindings/power/power-controller.txt75 76  regulators:77    type: object78 79additionalProperties: false80 81required:82  - compatible83  - reg84 85examples:86  - |87    #include <dt-bindings/interrupt-controller/irq.h>88    i2c {89      #address-cells = <1>;90      #size-cells = <0>;91 92      pmic@32 {93        compatible = "ricoh,rn5t618";94        reg = <0x32>;95        interrupt-parent = <&gpio5>;96        interrupts = <11 IRQ_TYPE_EDGE_FALLING>;97        system-power-controller;98 99        regulators {100          DCDC1 {101            regulator-min-microvolt = <1050000>;102            regulator-max-microvolt = <1050000>;103          };104 105          DCDC2 {106            regulator-min-microvolt = <1175000>;107            regulator-max-microvolt = <1175000>;108          };109        };110      };111    };112