0001 # SPDX-License-Identifier: GPL-2.0-only
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/mfd/maxim,max77693.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Maxim MAX77693 MicroUSB and Companion Power Management IC
0008
0009 maintainers:
0010 - Chanwoo Choi <cw00.choi@samsung.com>
0011 - Krzysztof Kozlowski <krzk@kernel.org>
0012
0013 description: |
0014 This is a part of device tree bindings for Maxim MAX77693 MicroUSB
0015 Integrated Circuit (MUIC).
0016
0017 The Maxim MAX77693 is a MicroUSB and Companion Power Management IC which
0018 includes voltage current regulators, charger, LED/flash, haptic motor driver
0019 and MicroUSB management IC.
0020
0021 properties:
0022 compatible:
0023 const: maxim,max77693
0024
0025 interrupts:
0026 maxItems: 1
0027
0028 reg:
0029 maxItems: 1
0030
0031 charger:
0032 $ref: /schemas/power/supply/maxim,max77693.yaml
0033
0034 led:
0035 $ref: /schemas/leds/maxim,max77693.yaml
0036
0037 max77693-muic:
0038 type: object
0039 additionalProperties: false
0040
0041 properties:
0042 compatible:
0043 const: maxim,max77693-muic
0044
0045 required:
0046 - compatible
0047
0048 motor-driver:
0049 type: object
0050 additionalProperties: false
0051
0052 properties:
0053 compatible:
0054 const: maxim,max77693-haptic
0055
0056 haptic-supply:
0057 description: Power supply to the haptic motor
0058
0059 pwms:
0060 maxItems: 1
0061
0062 required:
0063 - compatible
0064 - haptic-supply
0065 - pwms
0066
0067 regulators:
0068 $ref: ../regulator/maxim,max77693.yaml
0069 description:
0070 List of child nodes that specify the regulators.
0071
0072 required:
0073 - compatible
0074 - interrupts
0075 - reg
0076
0077 additionalProperties: false
0078
0079 examples:
0080 - |
0081 #include <dt-bindings/interrupt-controller/irq.h>
0082 #include <dt-bindings/leds/common.h>
0083
0084 i2c {
0085 #address-cells = <1>;
0086 #size-cells = <0>;
0087
0088 pmic@66 {
0089 compatible = "maxim,max77693";
0090 reg = <0x66>;
0091 interrupt-parent = <&gpx1>;
0092 interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
0093
0094 regulators {
0095 ESAFEOUT1 {
0096 regulator-name = "ESAFEOUT1";
0097 };
0098
0099 ESAFEOUT2 {
0100 regulator-name = "ESAFEOUT2";
0101 };
0102
0103 CHARGER {
0104 regulator-name = "CHARGER";
0105 regulator-min-microamp = <60000>;
0106 regulator-max-microamp = <2580000>;
0107 };
0108 };
0109
0110 motor-driver {
0111 compatible = "maxim,max77693-haptic";
0112 haptic-supply = <&ldo26_reg>;
0113 pwms = <&pwm 0 38022 0>;
0114 };
0115
0116 charger {
0117 compatible = "maxim,max77693-charger";
0118
0119 maxim,constant-microvolt = <4350000>;
0120 maxim,min-system-microvolt = <3600000>;
0121 maxim,thermal-regulation-celsius = <100>;
0122 maxim,battery-overcurrent-microamp = <3500000>;
0123 maxim,charge-input-threshold-microvolt = <4300000>;
0124 };
0125
0126 led {
0127 compatible = "maxim,max77693-led";
0128 maxim,boost-mode = <LEDS_BOOST_FIXED>;
0129 maxim,boost-mvout = <5000>;
0130 maxim,mvsys-min = <2400>;
0131
0132 flash-led {
0133 label = "max77693-flash";
0134 function = LED_FUNCTION_FLASH;
0135 color = <LED_COLOR_ID_WHITE>;
0136 led-sources = <0>, <1>;
0137 led-max-microamp = <500000>;
0138 flash-max-microamp = <1250000>;
0139 flash-max-timeout-us = <1000000>;
0140 };
0141 };
0142 };
0143 };