Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/mfd/rohm,bd9571mwv.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: ROHM BD9571MWV/BD9574MWF Power Management Integrated Circuit (PMIC)
0008 
0009 maintainers:
0010   - Marek Vasut <marek.vasut@gmail.com>
0011 
0012 properties:
0013   compatible:
0014     enum:
0015       - rohm,bd9571mwv
0016       - rohm,bd9574mwf
0017 
0018   reg:
0019     maxItems: 1
0020 
0021   interrupts:
0022     maxItems: 1
0023 
0024   interrupt-controller: true
0025 
0026   '#interrupt-cells':
0027     const: 2
0028 
0029   gpio-controller: true
0030 
0031   '#gpio-cells':
0032     const: 2
0033 
0034   rohm,ddr-backup-power:
0035     $ref: /schemas/types.yaml#/definitions/uint32
0036     minimum: 0x0
0037     maximum: 0xf
0038     description: |
0039       Value to use for DDR-Backup Power (default 0).
0040       This is a bitmask that specifies which DDR power rails need to be kept
0041       powered when backup mode is entered, for system suspend:
0042         - bit 0: DDR0
0043         - bit 1: DDR1
0044         - bit 2: DDR0C
0045         - bit 3: DDR1C
0046       These bits match the KEEPON_DDR* bits in the documentation for the "BKUP
0047       Mode Cnt" register.
0048 
0049   rohm,rstbmode-level:
0050     $ref: /schemas/types.yaml#/definitions/flag
0051     description:
0052       The RSTB signal is configured for level mode, to accommodate a toggle
0053       power switch (the RSTBMODE pin is strapped low).
0054 
0055   rohm,rstbmode-pulse:
0056     $ref: /schemas/types.yaml#/definitions/flag
0057     description:
0058       The RSTB signal is configured for pulse mode, to accommodate a momentary
0059       power switch (the RSTBMODE pin is strapped high).
0060 
0061   regulators:
0062     type: object
0063     description:
0064       List of child nodes that specify the regulator initialization data.
0065       Child nodes must be named after their hardware counterparts.
0066 
0067     patternProperties:
0068       "^(vd09|vd18|vd25|vd33|dvfs)$":
0069         type: object
0070         $ref: ../regulator/regulator.yaml#
0071 
0072         properties:
0073           regulator-name:
0074             pattern: "^(vd09|vd18|vd25|vd33|dvfs)$"
0075 
0076         unevaluatedProperties: false
0077 
0078     additionalProperties: false
0079 
0080 additionalProperties: false
0081 
0082 required:
0083   - compatible
0084   - reg
0085   - interrupts
0086   - interrupt-controller
0087   - '#interrupt-cells'
0088   - gpio-controller
0089   - '#gpio-cells'
0090 
0091 oneOf:
0092   - required:
0093       - rohm,rstbmode-level
0094   - required:
0095       - rohm,rstbmode-pulse
0096 
0097 examples:
0098   - |
0099     #include <dt-bindings/interrupt-controller/irq.h>
0100 
0101     i2c {
0102           #address-cells = <1>;
0103           #size-cells = <0>;
0104 
0105           pmic: pmic@30 {
0106                   compatible = "rohm,bd9571mwv";
0107                   reg = <0x30>;
0108                   interrupt-parent = <&gpio2>;
0109                   interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
0110                   interrupt-controller;
0111                   #interrupt-cells = <2>;
0112                   gpio-controller;
0113                   #gpio-cells = <2>;
0114                   rohm,ddr-backup-power = <0xf>;
0115                   rohm,rstbmode-pulse;
0116 
0117                   regulators {
0118                           dvfs: dvfs {
0119                                   regulator-name = "dvfs";
0120                                   regulator-min-microvolt = <750000>;
0121                                   regulator-max-microvolt = <1030000>;
0122                                   regulator-boot-on;
0123                                   regulator-always-on;
0124                           };
0125                   };
0126           };
0127     };