0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/mfd/dlg,da9063.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Dialog DA9063/DA9063L Power Management Integrated Circuit (PMIC)
0008
0009 maintainers:
0010 - Steve Twiss <stwiss.opensource@diasemi.com>
0011
0012 description: |
0013 For device-tree bindings of other sub-modules refer to the binding documents
0014 under the respective sub-system directories.
0015
0016 properties:
0017 compatible:
0018 enum:
0019 - dlg,da9063
0020 - dlg,da9063l
0021
0022 reg:
0023 maxItems: 1
0024
0025 interrupts:
0026 maxItems: 1
0027
0028 interrupt-controller: true
0029
0030 "#interrupt-cells":
0031 const: 2
0032
0033 dlg,use-sw-pm:
0034 type: boolean
0035 description:
0036 Disable the watchdog during suspend.
0037 Only use this option if you can't use the watchdog automatic suspend
0038 function during a suspend (see register CONTROL_B).
0039
0040 watchdog:
0041 type: object
0042 $ref: /schemas/watchdog/watchdog.yaml#
0043 unevaluatedProperties: false
0044 properties:
0045 compatible:
0046 const: dlg,da9063-watchdog
0047
0048 rtc:
0049 type: object
0050 $ref: /schemas/rtc/rtc.yaml#
0051 unevaluatedProperties: false
0052 properties:
0053 compatible:
0054 const: dlg,da9063-rtc
0055
0056 onkey:
0057 type: object
0058 $ref: /schemas/input/input.yaml#
0059 unevaluatedProperties: false
0060 properties:
0061 compatible:
0062 const: dlg,da9063-onkey
0063
0064 dlg,disable-key-power:
0065 type: boolean
0066 description: |
0067 Disable power-down using a long key-press.
0068 If this entry does not exist then by default the key-press triggered
0069 power down is enabled and the OnKey will support both KEY_POWER and
0070 KEY_SLEEP.
0071
0072 regulators:
0073 type: object
0074 patternProperties:
0075 "^(ldo[1-11]|bcore[1-2]|bpro|bmem|bio|bperi)$":
0076 $ref: /schemas/regulator/regulator.yaml
0077 unevaluatedProperties: false
0078
0079 required:
0080 - compatible
0081 - reg
0082 - interrupts
0083 - interrupt-controller
0084
0085 additionalProperties: false
0086
0087 examples:
0088 - |
0089 #include <dt-bindings/interrupt-controller/irq.h>
0090 i2c {
0091 #address-cells = <1>;
0092 #size-cells = <0>;
0093 pmic@58 {
0094 compatible = "dlg,da9063";
0095 reg = <0x58>;
0096 #interrupt-cells = <2>;
0097 interrupt-parent = <&gpio6>;
0098 interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
0099 interrupt-controller;
0100
0101 rtc {
0102 compatible = "dlg,da9063-rtc";
0103 };
0104
0105 watchdog {
0106 compatible = "dlg,da9063-watchdog";
0107 };
0108
0109 onkey {
0110 compatible = "dlg,da9063-onkey";
0111 dlg,disable-key-power;
0112 };
0113
0114 regulators {
0115 regulator-bcore1 {
0116 regulator-name = "BCORE1";
0117 regulator-min-microvolt = <300000>;
0118 regulator-max-microvolt = <1570000>;
0119 regulator-min-microamp = <500000>;
0120 regulator-max-microamp = <2000000>;
0121 regulator-boot-on;
0122 };
0123 regulator-ldo11 {
0124 regulator-name = "LDO_11";
0125 regulator-min-microvolt = <900000>;
0126 regulator-max-microvolt = <3600000>;
0127 regulator-boot-on;
0128 };
0129 };
0130 };
0131 };
0132 ...