0001 # SPDX-License-Identifier: GPL-2.0
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/mfd/max77650.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: MAX77650 ultra low-power PMIC from Maxim Integrated.
0008
0009 maintainers:
0010 - Bartosz Golaszewski <bgolaszewski@baylibre.com>
0011
0012 description: |
0013 MAX77650 is an ultra-low power PMIC providing battery charging and power
0014 supply for low-power IoT and wearable applications.
0015
0016 The GPIO-controller module is represented as part of the top-level PMIC
0017 node. The device exposes a single GPIO line.
0018
0019 For device-tree bindings of other sub-modules (regulator, power supply,
0020 LEDs and onkey) refer to the binding documents under the respective
0021 sub-system directories.
0022
0023 properties:
0024 compatible:
0025 const: maxim,max77650
0026
0027 reg:
0028 description:
0029 I2C device address.
0030 maxItems: 1
0031
0032 interrupts:
0033 maxItems: 1
0034
0035 interrupt-controller: true
0036
0037 "#interrupt-cells":
0038 const: 2
0039 description:
0040 The first cell is the IRQ number, the second cell is the trigger type.
0041
0042 gpio-controller: true
0043
0044 "#gpio-cells":
0045 const: 2
0046 description:
0047 The first cell is the pin number and the second cell is used to specify
0048 the gpio active state.
0049
0050 gpio-line-names:
0051 maxItems: 1
0052 description:
0053 Single string containing the name of the GPIO line.
0054
0055 regulators:
0056 $ref: ../regulator/max77650-regulator.yaml
0057
0058 charger:
0059 $ref: ../power/supply/max77650-charger.yaml
0060
0061 leds:
0062 $ref: ../leds/leds-max77650.yaml
0063
0064 onkey:
0065 $ref: ../input/max77650-onkey.yaml
0066
0067 required:
0068 - compatible
0069 - reg
0070 - interrupts
0071 - interrupt-controller
0072 - "#interrupt-cells"
0073 - gpio-controller
0074 - "#gpio-cells"
0075
0076 additionalProperties: false
0077
0078 examples:
0079 - |
0080 #include <dt-bindings/interrupt-controller/irq.h>
0081 #include <dt-bindings/input/linux-event-codes.h>
0082 i2c {
0083 #address-cells = <1>;
0084 #size-cells = <0>;
0085
0086 pmic@48 {
0087 compatible = "maxim,max77650";
0088 reg = <0x48>;
0089
0090 interrupt-controller;
0091 interrupt-parent = <&gpio2>;
0092 #interrupt-cells = <2>;
0093 interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
0094
0095 gpio-controller;
0096 #gpio-cells = <2>;
0097 gpio-line-names = "max77650-charger";
0098
0099 regulators {
0100 compatible = "maxim,max77650-regulator";
0101
0102 max77650_ldo: regulator-ldo {
0103 regulator-compatible = "ldo";
0104 regulator-name = "max77650-ldo";
0105 regulator-min-microvolt = <1350000>;
0106 regulator-max-microvolt = <2937500>;
0107 };
0108
0109 max77650_sbb0: regulator-sbb0 {
0110 regulator-compatible = "sbb0";
0111 regulator-name = "max77650-sbb0";
0112 regulator-min-microvolt = <800000>;
0113 regulator-max-microvolt = <1587500>;
0114 };
0115 };
0116
0117 charger {
0118 compatible = "maxim,max77650-charger";
0119 input-voltage-min-microvolt = <4200000>;
0120 input-current-limit-microamp = <285000>;
0121 };
0122
0123 leds {
0124 compatible = "maxim,max77650-led";
0125 #address-cells = <1>;
0126 #size-cells = <0>;
0127
0128 led@0 {
0129 reg = <0>;
0130 label = "blue:usr0";
0131 };
0132
0133 led@1 {
0134 reg = <1>;
0135 label = "red:usr1";
0136 linux,default-trigger = "heartbeat";
0137 };
0138
0139 led@2 {
0140 reg = <2>;
0141 label = "green:usr2";
0142 };
0143 };
0144
0145 onkey {
0146 compatible = "maxim,max77650-onkey";
0147 linux,code = <KEY_END>;
0148 maxim,onkey-slide;
0149 };
0150 };
0151 };