Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: GPL-2.0-only
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/mfd/maxim,max77843.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Maxim MAX77843 MicroUSB and Companion Power Management IC
0008 
0009 maintainers:
0010   - Krzysztof Kozlowski <krzk@kernel.org>
0011 
0012 description: |
0013   This is a part of device tree bindings for Maxim MAX77843 MicroUSB
0014   Integrated Circuit (MUIC).
0015 
0016   The Maxim MAX77843 is a MicroUSB and Companion Power Management IC which
0017   includes voltage current regulators, charger, fuel-gauge, haptic motor driver
0018   and MicroUSB management IC.
0019 
0020 properties:
0021   compatible:
0022     const: maxim,max77843
0023 
0024   interrupts:
0025     maxItems: 1
0026 
0027   reg:
0028     maxItems: 1
0029 
0030   extcon:
0031     $ref: /schemas/extcon/maxim,max77843.yaml
0032 
0033   motor-driver:
0034     type: object
0035     properties:
0036       compatible:
0037         const: maxim,max77843-haptic
0038 
0039       haptic-supply:
0040         description: Power supply to the haptic motor
0041 
0042       pwms:
0043         maxItems: 1
0044 
0045     required:
0046       - compatible
0047       - haptic-supply
0048       - pwms
0049 
0050   regulators:
0051     $ref: /schemas/regulator/maxim,max77843.yaml
0052 
0053 required:
0054   - compatible
0055   - interrupts
0056   - reg
0057 
0058 additionalProperties: false
0059 
0060 examples:
0061   - |
0062     #include <dt-bindings/interrupt-controller/irq.h>
0063 
0064     i2c {
0065         #address-cells = <1>;
0066         #size-cells = <0>;
0067 
0068         pmic@66 {
0069             compatible = "maxim,max77843";
0070             interrupt-parent = <&gpa1>;
0071             interrupts = <5 IRQ_TYPE_EDGE_FALLING>;
0072             reg = <0x66>;
0073 
0074             extcon {
0075                 compatible = "maxim,max77843-muic";
0076 
0077                 connector {
0078                     compatible = "samsung,usb-connector-11pin",
0079                                  "usb-b-connector";
0080                     label = "micro-USB";
0081                     type = "micro";
0082 
0083                     ports {
0084                         #address-cells = <1>;
0085                         #size-cells = <0>;
0086 
0087                         port@0 {
0088                             /*
0089                              * TODO: The DTS this is based on does not have
0090                              * port@0 which is a required property. The ports
0091                              * look incomplete and need fixing.
0092                              * Add a disabled port just to satisfy dtschema.
0093                              */
0094                             reg = <0>;
0095                             status = "disabled";
0096                         };
0097 
0098                         port@3 {
0099                             reg = <3>;
0100                             endpoint {
0101                                 remote-endpoint = <&mhl_to_musb_con>;
0102                             };
0103                         };
0104                     };
0105                 };
0106 
0107                 ports {
0108                     port {
0109                         endpoint {
0110                             remote-endpoint = <&usb_to_muic>;
0111                         };
0112                     };
0113                 };
0114             };
0115 
0116             regulators {
0117                 compatible = "maxim,max77843-regulator";
0118 
0119                 SAFEOUT1 {
0120                     regulator-name = "SAFEOUT1";
0121                     regulator-min-microvolt = <3300000>;
0122                     regulator-max-microvolt = <4950000>;
0123                 };
0124 
0125                 SAFEOUT2 {
0126                     regulator-name = "SAFEOUT2";
0127                     regulator-min-microvolt = <3300000>;
0128                     regulator-max-microvolt = <4950000>;
0129                 };
0130 
0131                 CHARGER {
0132                     regulator-name = "CHARGER";
0133                     regulator-min-microamp = <100000>;
0134                     regulator-max-microamp = <3150000>;
0135                 };
0136             };
0137 
0138             motor-driver {
0139                 compatible = "maxim,max77843-haptic";
0140                 haptic-supply = <&ldo38_reg>;
0141                 pwms = <&pwm 0 33670 0>;
0142             };
0143         };
0144     };