brintos

brintos / linux-shallow public Read only

0
0
Text · 3.3 KiB · 534cf03 Raw
128 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/mfd/rohm,bd9571mwv.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: ROHM BD9571MWV/BD9574MWF Power Management Integrated Circuit (PMIC)8 9maintainers:10  - Marek Vasut <marek.vasut@gmail.com>11 12properties:13  compatible:14    enum:15      - rohm,bd9571mwv16      - rohm,bd9574mwf17 18  reg:19    maxItems: 120 21  interrupts:22    maxItems: 123 24  interrupt-controller: true25 26  '#interrupt-cells':27    const: 228 29  gpio-controller: true30 31  '#gpio-cells':32    const: 233 34  rohm,ddr-backup-power:35    $ref: /schemas/types.yaml#/definitions/uint3236    minimum: 0x037    maximum: 0xf38    description: |39      Value to use for DDR-Backup Power (default 0).40      This is a bitmask that specifies which DDR power rails need to be kept41      powered when backup mode is entered, for system suspend:42        - bit 0: DDR043        - bit 1: DDR144        - bit 2: DDR0C45        - bit 3: DDR1C46      These bits match the KEEPON_DDR* bits in the documentation for the "BKUP47      Mode Cnt" register.48 49  rohm,rstbmode-level:50    $ref: /schemas/types.yaml#/definitions/flag51    description:52      The RSTB signal is configured for level mode, to accommodate a toggle53      power switch (the RSTBMODE pin is strapped low).54 55  rohm,rstbmode-pulse:56    $ref: /schemas/types.yaml#/definitions/flag57    description:58      The RSTB signal is configured for pulse mode, to accommodate a momentary59      power switch (the RSTBMODE pin is strapped high).60 61  regulators:62    type: object63    description:64      List of child nodes that specify the regulator initialization data.65      Child nodes must be named after their hardware counterparts.66 67    patternProperties:68      "^(vd09|vd18|vd25|vd33|dvfs)$":69        type: object70        $ref: /schemas/regulator/regulator.yaml#71 72        properties:73          regulator-name:74            pattern: "^(vd09|vd18|vd25|vd33|dvfs)$"75 76        unevaluatedProperties: false77 78    additionalProperties: false79 80additionalProperties: false81 82required:83  - compatible84  - reg85  - interrupts86  - interrupt-controller87  - '#interrupt-cells'88  - gpio-controller89  - '#gpio-cells'90 91oneOf:92  - required:93      - rohm,rstbmode-level94  - required:95      - rohm,rstbmode-pulse96 97examples:98  - |99    #include <dt-bindings/interrupt-controller/irq.h>100 101    i2c {102          #address-cells = <1>;103          #size-cells = <0>;104 105          pmic: pmic@30 {106                  compatible = "rohm,bd9571mwv";107                  reg = <0x30>;108                  interrupt-parent = <&gpio2>;109                  interrupts = <0 IRQ_TYPE_LEVEL_LOW>;110                  interrupt-controller;111                  #interrupt-cells = <2>;112                  gpio-controller;113                  #gpio-cells = <2>;114                  rohm,ddr-backup-power = <0xf>;115                  rohm,rstbmode-pulse;116 117                  regulators {118                          dvfs: dvfs {119                                  regulator-name = "dvfs";120                                  regulator-min-microvolt = <750000>;121                                  regulator-max-microvolt = <1030000>;122                                  regulator-boot-on;123                                  regulator-always-on;124                          };125                  };126          };127    };128