Skip to contentSkip to conversation

Add support for Maxim Integrated MAX77705 PMIC

PATCH Applied Dzmitry Sankouski 5 participants 19 messages Jan 23, 2025 – Mar 20, 2025

Subsystems (7)
lore
Share & tools
lore
#0 lore raw

v17 cover Add support for Maxim Integrated MAX77705 PMIC

The Maxim MAX77705 is a Companion Power Management and Type-C interface IC which includes charger, fuelgauge, LED, haptic motor driver and Type-C management IC. It's used in Samsung S series smart phones starting from S9 model.

Add features:
  - charger
  - fuelgauge
  - haptic
  - led

---
Changes in v17:
- update trailers
- fix led driver regmap creation
- rebase on latest linux-power-supply
- Link to v16: https://lore.kernel.org/r/20250117-starqltechn_integration_upstream-v16-0-11afa877276c@gmail.com

Changes in v16:
- cleanup review fixes
- Link to v15: https://lore.kernel.org/r/20250116-starqltechn_integration_upstream-v15-0-cf229de9f758@gmail.com

Changes in v15:
- update copyright year
- fix mA/mV in charing driver
- rebase on latest linux-power-supply tree
- various formatting and optimization review comments fixes
- Link to v14: https://lore.kernel.org/r/20250108-starqltechn_integration_upstream-v14-0-f6e84ec20d96@gmail.com

Changes in v14:
- binding review fixes
- add trailers
- Link to v13: https://lore.kernel.org/r/20241223-starqltechn_integration_upstream-v13-0-fbc610c70832@gmail.com

Changes in v13:
- revert: max17042 binding: split in 2 files, so its binding code can be reused
- include previously removed patch:
'dt-bindings: power: supply: max17042: add max77705 support'
- use same of_node for matching simple-mfd-i2c and setting max17042
driver
- Link to v12: https://lore.kernel.org/r/20241217-starqltechn_integration_upstream-v12-0-ed840944f948@gmail.com

Changes in v12:
- charger: move out of mfd because separate device
- charger: add it's own binding file
- fuel gauge: move to simple-mfd-i2c along with additional measurement
capabilities, which will be implemented in max77705-hwmon driver
- fix review comments
- reorder commits to stick mfd together
- Link to v11: https://lore.kernel.org/r/20241209-starqltechn_integration_upstream-v11-0-dc0598828e01@gmail.com

Changes in v11:
- charger: code review fixes
- max17042 binding: split in 2 files, so its binding code can be reused
in MFD bindings
- Link to v10: https://lore.kernel.org/r/20241204-starqltechn_integration_upstream-v10-0-7de85e48e562@gmail.com

Changes in v10:
- drop NACKed 'dt-bindings: power: supply: max17042: remove reg from
required' patch
- review fixes
- use dev_err_probe for errors in probe functions
- Link to v9: https://lore.kernel.org/r/20241202-starqltechn_integration_upstream-v9-0-a1adc3bae2b8@gmail.com

Changes in v9:
- fuel gauge: use max17042 driver instead of separate max77705
- fix kernel bot error
- charger: enable interrupt after power supply registration
- add dependency on max17042 patch series
- Link to v8: https://lore.kernel.org/r/20241031-starqltechn_integration_upstream-v8-0-2fa666c2330e@gmail.com

Changes in v8:
- Fix comment style
- join line where possible to fit in 100 chars
- Link to v7: https://lore.kernel.org/r/20241023-starqltechn_integration_upstream-v7-0-9bfaa3f4a1a0@gmail.com

Changes in v7:
- Fix review comments
- Link to v6: https://lore.kernel.org/r/20241007-starqltechn_integration_upstream-v6-0-0d38b5090c57@gmail.com

Changes in v6:
- fix binding review comments
- update trailers
- Link to v5: https://lore.kernel.org/r/20240617-starqltechn_integration_upstream-v5-0-e0033f141d17@gmail.com

Changes in v5:
- Split patchset per subsystem
- Link to v4: https://lore.kernel.org/r/20240913-starqltechn_integration_upstream-v4-0-2d2efd5c5877@gmail.com

Changes in v4:
- Rewrite max77705, max77705_charger, max77705_fuel_gauge from scratch
- Reorder patches:
- squash max77705 subdevice bindings in core file because
no resources there
- split device tree changes
- Use _ as space for filenames in power/supply like the majority
- Link to v3: https://lore.kernel.org/r/20240618-starqltechn_integration_upstream-v3-0-e3f6662017ac@gmail.com

---
Dzmitry Sankouski (7):
dt-bindings: power: supply: add maxim,max77705 charger
dt-bindings: mfd: add maxim,max77705
power: supply: max77705: Add charger driver for Maxim 77705
mfd: simple-mfd-i2c: Add MAX77705 support
mfd: Add new driver for MAX77705 PMIC
input: max77693: add max77705 haptic support
leds: max77705: Add LEDs support

 Documentation/devicetree/bindings/mfd/maxim,max77705.yaml          | 158 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 Documentation/devicetree/bindings/power/supply/maxim,max77705.yaml |  50 ++++++++++++++++++++++++
 MAINTAINERS                                                        |   4 ++
 drivers/input/misc/Kconfig                                         |   6 +--
 drivers/input/misc/max77693-haptic.c                               |  13 ++++++-
 drivers/leds/Kconfig                                               |   8 ++++
 drivers/leds/Makefile                                              |   1 +
 drivers/leds/leds-max77705.c                                       | 275 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 drivers/mfd/Kconfig                                                |  13 +++++++
 drivers/mfd/Makefile                                               |   1 +
 drivers/mfd/max77705.c                                             | 182 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 drivers/mfd/simple-mfd-i2c.c                                       |  11 ++++++
 drivers/power/supply/Kconfig                                       |   6 +++
 drivers/power/supply/Makefile                                      |   1 +
 drivers/power/supply/max77705_charger.c                            | 581 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 include/linux/mfd/max77693-common.h                                |   4 +-
 include/linux/mfd/max77705-private.h                               | 195 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 include/linux/power/max77705_charger.h                             | 195 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 18 files changed, 1699 insertions(+), 5 deletions(-)

---
base-commit: b4a95b8fd3e67c1222c76bdd1078d43c9a11d132
change-id: 20240617-starqltechn_integration_upstream-bc86850b2fe3

Best regards,

Signature · 1 line
Dzmitry Sankouski <[email protected]>
#1 lore raw

PATCH v17 1/7 dt-bindings: power: supply: add maxim,max77705 charger

Add maxim,max77705 charger binding.

---
Changes in v14:
- fix required children nodes order: reverse reg and compatible
- add reviewed trailers

---
 Documentation/devicetree/bindings/power/supply/maxim,max77705.yaml | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)
Documentation/devicetree/bindings/power/supply/maxim,max77705.yaml new file +50 -0
new file mode 100644
index 000000000000..bce7fabbd9d3
@@ -0,0 +1,50 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/power/supply/maxim,max77705.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Maxim MAX777705 charger
+
+maintainers:
+  - Dzmitry Sankouski <[email protected]>
+
+description: |
+  This is a device tree bindings for charger found in Maxim MAX77705 chip.
+
+allOf:
+  - $ref: power-supply.yaml#
+
+properties:
+  compatible:
+    const: maxim,max77705-charger
+
+  interrupts:
+    maxItems: 1
+
+  reg:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+  - monitored-battery
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/interrupt-controller/irq.h>
+
+    i2c {
+      #address-cells = <1>;
+      #size-cells = <0>;
+
+        charger@69 {
+            compatible = "maxim,max77705-charger";
+            reg = <0x69>;
+            monitored-battery = <&battery>;
+            interrupt-parent = <&pm8998_gpios>;
+            interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
+        };
+    };
Signature · 1 line
2.39.5
Acked-by on v17 1/7
#2 lore raw

Re: [PATCH v17 1/7] dt-bindings: power: supply: add maxim,max77705 charger

Hi,

Quoted 4 lines · Dzmitry Sankouski

Add maxim,max77705 charger binding.

-- Sebastian

Quoted 68 lines

---
Changes in v14:
- fix required children nodes order: reverse reg and compatible
- add reviewed trailers

---
 Documentation/devicetree/bindings/power/supply/maxim,max77705.yaml | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)
Documentation/devicetree/bindings/power/supply/maxim,max77705.yaml new file +50 -0
new file mode 100644
index 000000000000..bce7fabbd9d3
@@ -0,0 +1,50 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/power/supply/maxim,max77705.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Maxim MAX777705 charger
+
+maintainers:
+  - Dzmitry Sankouski <[email protected]>
+
+description: |
+  This is a device tree bindings for charger found in Maxim MAX77705 chip.
+
+allOf:
+  - $ref: power-supply.yaml#
+
+properties:
+  compatible:
+    const: maxim,max77705-charger
+
+  interrupts:
+    maxItems: 1
+
+  reg:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+  - monitored-battery
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/interrupt-controller/irq.h>
+
+    i2c {
+      #address-cells = <1>;
+      #size-cells = <0>;
+
+        charger@69 {
+            compatible = "maxim,max77705-charger";
+            reg = <0x69>;
+            monitored-battery = <&battery>;
+            interrupt-parent = <&pm8998_gpios>;
+            interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
+        };
+    };
Signature · 2 lines
-- 
2.39.5
#3 lore raw

PATCH v17 2/7 dt-bindings: mfd: add maxim,max77705

In reply to Dzmitry Sankouski

Add maxim,max77705 binding part, containing leds controller and haptics. Charger and fuel gauge are separate device, thus not included.

---
Changes in v14:
- add reviewed trailers
- move "patternProperties" after the "properties:" block

Changes in v13:
- drop unused address-cells and size-cells properties

Changes in v12:
- revert: description: mention this is a part
- adjust commit message

Changes in v12:
- move fuelgauge bindings to separate patch because separate device
- move charger bindings to separate patch because separate device
- description: mention this is a part

Changes in v11:
- remove reviewed tags because of major changes
- none of children are supposed to have addresses, all nodes are unit-less

Changes in v10:
- leds: replace label with color and function properties
- leds: add support for leds-class-multicolor
- move fuelgauge node to patternProperties "^fuel-gauge@[0-9a-f]+$" to comply with max17042 binding

Changes in v9:
- replace max77705 fuel gauge with max17042
- remove monitored battery because not supported by max17042

Changes in v8:
- fix leds compatible

Changes in v6:
- unevaluatedProperties must be false
- drop excessive sentence from description,
just describe the device
- change leds compatible to maxim,max77705-rgb

Changes in v5:
- formatting changes
- add unevaluatedProperties: false for nodes referencing common schemas
- remove additionalProperties on nodes with
unevaluatedProperties: false
- add min and max to led index
Changes in v4:
- change dts example intendation from tabs
to spaces
- remove interrupt-names property
- remove obvious reg description
- split long(>80) lines

---
 Documentation/devicetree/bindings/mfd/maxim,max77705.yaml | 158 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 MAINTAINERS                                               |   1 +
 2 files changed, 159 insertions(+)
Documentation/devicetree/bindings/mfd/maxim,max77705.yaml new file +158 -0
new file mode 100644
index 000000000000..0ec89f0adc64
@@ -0,0 +1,158 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/mfd/maxim,max77705.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Maxim MAX77705 Companion Power Management and USB Type-C interface
+
+maintainers:
+  - Dzmitry Sankouski <[email protected]>
+
+description: |
+  This is a part of device tree bindings for Maxim MAX77705.
+
+  Maxim MAX77705 is a Companion Power Management and Type-C
+  interface IC which includes charger, fuelgauge, LED, haptic motor driver and
+  Type-C management.
+
+properties:
+  compatible:
+    const: maxim,max77705
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  haptic:
+    type: object
+    additionalProperties: false
+
+    properties:
+      compatible:
+        const: maxim,max77705-haptic
+
+      haptic-supply: true
+
+      pwms:
+        maxItems: 1
+
+    required:
+      - compatible
+      - haptic-supply
+      - pwms
+
+  leds:
+    type: object
+    additionalProperties: false
+    description:
+      Up to 4 LED channels supported.
+
+    properties:
+      compatible:
+        const: maxim,max77705-rgb
+
+      "#address-cells":
+        const: 1
+
+      "#size-cells":
+        const: 0
+
+      multi-led:
+        type: object
+        $ref: /schemas/leds/leds-class-multicolor.yaml#
+        unevaluatedProperties: false
+
+        properties:
+          "#address-cells":
+            const: 1
+
+          "#size-cells":
+            const: 0
+
+        patternProperties:
+          "^led@[0-3]$":
+            type: object
+            $ref: /schemas/leds/common.yaml#
+            unevaluatedProperties: false
+
+            properties:
+              reg:
+                maxItems: 1
+
+            required:
+              - reg
+
+    patternProperties:
+      "^led@[0-3]$":
+        type: object
+        $ref: /schemas/leds/common.yaml#
+        unevaluatedProperties: false
+
+        properties:
+          reg:
+            maxItems: 1
+
+        required:
+          - reg
+
+    required:
+      - compatible
+
+required:
+  - compatible
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/interrupt-controller/irq.h>
+    #include <dt-bindings/leds/common.h>
+
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        pmic@66 {
+            compatible = "maxim,max77705";
+            reg = <0x66>;
+            interrupt-parent = <&pm8998_gpios>;
+            interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
+            pinctrl-0 = <&chg_int_default>;
+            pinctrl-names = "default";
+
+            leds {
+                compatible = "maxim,max77705-rgb";
+
+                multi-led {
+                    color = <LED_COLOR_ID_RGB>;
+                    function = LED_FUNCTION_STATUS;
+                    #address-cells = <1>;
+                    #size-cells = <0>;
+
+                    led@1 {
+                        reg = <1>;
+                        color = <LED_COLOR_ID_RED>;
+                    };
+
+                    led@2 {
+                        reg = <2>;
+                        color = <LED_COLOR_ID_GREEN>;
+                    };
+
+                    led@3 {
+                        reg = <3>;
+                        color = <LED_COLOR_ID_BLUE>;
+                    };
+                };
+            };
+
+            haptic {
+                compatible = "maxim,max77705-haptic";
+                haptic-supply = <&vib_regulator>;
+                pwms = <&vib_pwm 0 50000>;
+            };
+        };
+    };
MAINTAINERS +1 -0
index 6e04c83eb5cb..08a9548cd49c 100644
@@ -14184,6 +14184,7 @@ B:	mailto:[email protected]
 F:	Documentation/devicetree/bindings/*/maxim,max14577.yaml
 F:	Documentation/devicetree/bindings/*/maxim,max77686.yaml
 F:	Documentation/devicetree/bindings/*/maxim,max77693.yaml
+F:	Documentation/devicetree/bindings/*/maxim,max77705*.yaml
 F:	Documentation/devicetree/bindings/*/maxim,max77843.yaml
 F:	Documentation/devicetree/bindings/clock/maxim,max77686.txt
 F:	drivers/*/*max77843.c
Signature · 1 line
2.39.5
#4 lore raw

PATCH v17 3/7 power: supply: max77705: Add charger driver for Maxim 77705

In reply to Dzmitry Sankouski

Add driver for Maxim 77705 switch-mode charger. It providing power supply class information to userspace.

The driver is configured through DTS (battery and system related settings).

---
Changes in v17:
- add Reviewed-by: Krzysztof Kozlowski <[email protected]>

Changes in v15:
- convert mA to uA in get_input_current, [s|g]et_fload_voltage, get_charge_current
- fix copyright year
- replace pscfg.of_node = dev->of_node to psycfg.fwnode = dev_fwnode(dev);
- drop unneeded else
- s/INIT_WORK/devm_work_autocancel
- move minimum current to MAX77705_CURRENT_CHGIN_MIN constant
- move current steps to constants
- tested with selftests/power_supply/test_power_supply_properties.sh - see output below the fold

Changes in v12:
- add missing new line
- reorder max77705_charger_enable and max77705_charger_disable action
- convert driver from platform to i2c, adjust commit msg accordingly

Changes in v11:
- remove multiple blank lines
- return dev_err_probe
- fit on one line where possible;

Changes in v10:
- never blank line between call and its error check
- replace remove function with devm_add_action_or_reset
- remove unused inline functions from header
- use dev_err_probe for error handling

Changes in v9:
- move power supply registration before interrupts to prevent NULL exceptions when handling interrupts

Changes for v8:
- join lines, where fits 100 chars
- change comment style C++ -> C
- remove author from 'based on' file header statement Changes for v6:
- add i2c init in driver
- replace remove_new back on remove
- handle IS_ERR(i2c_chg)
Changes for v5:
- remove const modifier from max77705_charger_irq_chip because it's modified with irq_drv_data in probe function
- fix license to GPL 2.0 only, where old vendor code used GPL 2.0 only
- move power header to power include dir
- use same hardware name in Kconfig and module descriptions

Changes for v4:
- start from scratch
- change word delimiters in filenames to '_'
- use GENMASK in header
- remove debugfs code
- migrate to regmap_add_irq_chip
- fix property getters to follow the same style

tools/testing/selftests/power_supply/test_power_supply_properties.sh:
# Testing device max77705-charger
ok 34 max77705-charger.exists
ok 35 max77705-charger.uevent.NAME
ok 36 max77705-charger.sysfs.type
ok 37 max77705-charger.uevent.TYPE
ok 38 max77705-charger.sysfs.usb_type # SKIP
# Reported: '1' ()
ok 39 max77705-charger.sysfs.online
# Reported: '1' ()
ok 40 max77705-charger.sysfs.present
# Reported: 'Charging'
ok 41 max77705-charger.sysfs.status
ok 42 max77705-charger.sysfs.capacity # SKIP
ok 43 max77705-charger.sysfs.capacity_level # SKIP
ok 44 max77705-charger.sysfs.model_name # SKIP
ok 45 max77705-charger.sysfs.manufacturer # SKIP
ok 46 max77705-charger.sysfs.serial_number # SKIP
ok 47 max77705-charger.sysfs.technology # SKIP
ok 48 max77705-charger.sysfs.cycle_count # SKIP
ok 49 max77705-charger.sysfs.scope # SKIP
# Reported: '900000' uA (900 mA)
ok 50 max77705-charger.sysfs.input_current_limit
ok 51 max77705-charger.sysfs.input_voltage_limit # SKIP
ok 52 max77705-charger.sysfs.voltage_now # SKIP
ok 53 max77705-charger.sysfs.voltage_min # SKIP
ok 54 max77705-charger.sysfs.voltage_max # SKIP
ok 55 max77705-charger.sysfs.voltage_min_design # SKIP
# Reported: '4350000' uV (4.35 V)
ok 56 max77705-charger.sysfs.voltage_max_design
ok 57 max77705-charger.sysfs.current_now # SKIP
ok 58 max77705-charger.sysfs.current_max # SKIP
ok 59 max77705-charger.sysfs.charge_now # SKIP
ok 60 max77705-charger.sysfs.charge_full # SKIP
ok 61 max77705-charger.sysfs.charge_full_design # SKIP
ok 62 max77705-charger.sysfs.power_now # SKIP
ok 63 max77705-charger.sysfs.energy_now # SKIP
ok 64 max77705-charger.sysfs.energy_full # SKIP
ok 65 max77705-charger.sysfs.energy_full_design # SKIP
ok 66 max77705-charger.sysfs.energy_full_design # SKIP
# Totals: pass:27 fail:0 xfail:0 xpass:0 skip:39 error:0

---
 drivers/power/supply/Kconfig            |   6 ++++
 drivers/power/supply/Makefile           |   1 +
 drivers/power/supply/max77705_charger.c | 581 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 include/linux/power/max77705_charger.h  | 195 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 783 insertions(+)
drivers/power/supply/Kconfig +6 -0
index 7b18358f194a..c120d8ed870f 100644
@@ -583,6 +583,12 @@ config CHARGER_MAX77693
 	help
 	  Say Y to enable support for the Maxim MAX77693 battery charger.
 
+config CHARGER_MAX77705
+	tristate "Maxim MAX77705 battery charger driver"
+	depends on MFD_MAX77705
+	help
+	  Say Y to enable support for the Maxim MAX77705 battery charger.
+
 config CHARGER_MAX77976
 	tristate "Maxim MAX77976 battery charger driver"
 	depends on I2C
drivers/power/supply/Makefile +1 -0
index b55cc48a4c86..a4669383d53e 100644
@@ -80,6 +80,7 @@ obj-$(CONFIG_CHARGER_MAX14577)	+= max14577_charger.o
 obj-$(CONFIG_CHARGER_DETECTOR_MAX14656)	+= max14656_charger_detector.o
 obj-$(CONFIG_CHARGER_MAX77650)	+= max77650-charger.o
 obj-$(CONFIG_CHARGER_MAX77693)	+= max77693_charger.o
+obj-$(CONFIG_CHARGER_MAX77705)	+= max77705_charger.o
 obj-$(CONFIG_CHARGER_MAX77976)	+= max77976_charger.o
 obj-$(CONFIG_CHARGER_MAX8997)	+= max8997_charger.o
 obj-$(CONFIG_CHARGER_MAX8998)	+= max8998_charger.o
drivers/power/supply/max77705_charger.c new file +581 -0

581 lines not on this page · raw message

include/linux/power/max77705_charger.h new file +195 -0

195 lines not on this page · raw message

Signature · 1 line
2.39.5
maintainer
#5 lore raw

Re: [PATCH v17 3/7] power: supply: max77705: Add charger driver for Maxim 77705

Quoted 8 lines · Dzmitry Sankouski

Add driver for Maxim 77705 switch-mode charger. It providing power supply class information to userspace.

The driver is configured through DTS (battery and system related settings).

Still needs an Ack from Sebastian.

Signature · 1 line
Lee Jones [李琼斯]
#6 lore raw

Re: [PATCH v17 3/7] power: supply: max77705: Add charger driver for Maxim 77705

Hi,

Quoted 5 lines · Lee Jones
Quoted 3 lines · Dzmitry Sankouski

Add driver for Maxim 77705 switch-mode charger. It providing power supply class information to userspace.

Quoted 7 lines
Quoted 5 lines

The driver is configured through DTS (battery and system related settings).

Still needs an Ack from Sebastian.

-- Sebastian

#7 lore raw

PATCH v17 4/7 mfd: simple-mfd-i2c: Add MAX77705 support

In reply to Dzmitry Sankouski

Add MAX77705 support - fuel gauge and hwmon devices. Hwmon provides charger input and system bus measurements.

---
Changes in v17:
- add Reviewed-by: Krzysztof Kozlowski <[email protected]>

Changes in v13:
- remove compatible from cells
- change mfd compatible to match max77705 fuel gauge node

---
 drivers/mfd/simple-mfd-i2c.c | 11 +++++++++++
 1 file changed, 11 insertions(+)
drivers/mfd/simple-mfd-i2c.c +11 -0
index 6eda79533208..22159913bea0 100644
@@ -83,11 +83,22 @@ static const struct simple_mfd_data maxim_max5970 = {
 	.mfd_cell_size = ARRAY_SIZE(max5970_cells),
 };
 
+static const struct mfd_cell max77705_sensor_cells[] = {
+	{ .name = "max77705-battery" },
+	{ .name = "max77705-hwmon", },
+};
+
+static const struct simple_mfd_data maxim_mon_max77705 = {
+	.mfd_cell = max77705_sensor_cells,
+	.mfd_cell_size = ARRAY_SIZE(max77705_sensor_cells),
+};
+
 static const struct of_device_id simple_mfd_i2c_of_match[] = {
 	{ .compatible = "kontron,sl28cpld" },
 	{ .compatible = "silergy,sy7636a", .data = &silergy_sy7636a},
 	{ .compatible = "maxim,max5970", .data = &maxim_max5970},
 	{ .compatible = "maxim,max5978", .data = &maxim_max5970},
+	{ .compatible = "maxim,max77705-battery", .data = &maxim_mon_max77705},
 	{}
 };
 MODULE_DEVICE_TABLE(of, simple_mfd_i2c_of_match);
Signature · 1 line
2.39.5
#8 lore raw

PATCH v17 5/7 mfd: Add new driver for MAX77705 PMIC

In reply to Dzmitry Sankouski

Add the core MFD driver for max77705 PMIC. Drivers for sub-devices will be added in subsequent patches.

---
Changes in v17:
- add Reviewed-by: Krzysztof Kozlowski <[email protected]>

Changes for v16:
- remove suppress_bind_attrs = true, because not core SoC components
- remove wrong unused s2dos05 entry in Makefile

Changes for v15:
- leave C++ style comments only for the SPDX
- update the copyright date
- Use MFD_CELL_OF()
- remove empty line
- remove the double spaces
- remove the superfluous tab
- reorder variables in max77705_i2c_probe
- do not populate max77705->dev and max77705->irq as they can be retrieved from i2c_client
- take the function all out of the if statement
- place dev into a local variable and save yourself lots of chars each time
- join lines in log statements
- s/irq/IRQ
- use i2c->irq instead of max77705->irq in suspend/resume
- move led regmap creation to LED driver

Changes for v12:
- remove fuelgauge support (it's moved to simple-mfd-i2c, to reflect the fact it's a separate device with it's own i2c client)
- remove unneeded ending comma
- remove struct dev_pm_ops because defined by DEFINE_SIMPLE_DEV_PM_OPS
- Kconfig: select MFD_SIMPLE_MFD_I2C

Changes for v10:
- never blank line between call and its error check
- remove unnecessary line wrap
- revert wrong changes in max77693-common.h
- move max77705_pm_ops from header to c file
- fail probe, when fuelgauge is not found in sub device list
- remove fuelgauge compatible, because with compatible, platform matches using compatible, and platform_device id_entry is empty. With no compatible, platform matches by device id, and id_entry is populated.
- use dev_err_probe for error handling

Changes for v9:
- use max17042 as fuel gauge chip
- initialize max17042 i2c dummy device in mfd device, because bus can be used for reading additional values, not related to fuelgauge, like chip input current, system bus current
- fix pmic_rev kernel test robot error

Changes for v8:
- fix comment style C++ -> C
- remove unused pmic_ver

Changes for v6:
- add PMIC suffix in Kconfig
- remove filename from file header
- reorder headers alphabetically
- move out fg and chg adresses definitions
- rename led name and compatible
- remove overbracketing
- move charger and fuel gauge i2c initialization to their drivers
- fix max77705_i2c_driver tabbing
- formatting fixes
Changes for v5:
- license change to 2.0
- use same hardware name in Kconfig and module descriptions Changes for v4:
- rework driver from scratch
- migrate to regmap_add_irq_chip, remove max77705-irq.c, rename max77705-core.c to max77705.c
- cleanup headers
- remove debugfs code
- migrate to use max77693_dev structure
- remove max77705.h

---
 MAINTAINERS                          |   2 ++
 drivers/mfd/Kconfig                  |  13 +++++++++++++
 drivers/mfd/Makefile                 |   1 +
 drivers/mfd/max77705.c               | 182 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 include/linux/mfd/max77693-common.h  |   4 +++-
 include/linux/mfd/max77705-private.h | 178 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 6 files changed, 379 insertions(+), 1 deletion(-)
MAINTAINERS +2 -0
index 08a9548cd49c..705458b6e0ad 100644
@@ -14191,6 +14191,7 @@ F:	drivers/*/*max77843.c
 F:	drivers/*/max14577*.c
 F:	drivers/*/max77686*.c
 F:	drivers/*/max77693*.c
+F:	drivers/*/max77705*.c
 F:	drivers/clk/clk-max77686.c
 F:	drivers/extcon/extcon-max14577.c
 F:	drivers/extcon/extcon-max77693.c
@@ -14198,6 +14199,7 @@ F:	drivers/rtc/rtc-max77686.c
 F:	include/linux/mfd/max14577*.h
 F:	include/linux/mfd/max77686*.h
 F:	include/linux/mfd/max77693*.h
+F:	include/linux/mfd/max77705*.h
 
 MAXIRADIO FM RADIO RECEIVER DRIVER
 M:	Hans Verkuil <[email protected]>
drivers/mfd/Kconfig +13 -0
index ae23b317a64e..914b6992613e 100644
@@ -916,6 +916,19 @@ config MFD_MAX77693
 	  additional drivers must be enabled in order to use the functionality
 	  of the device.
 
+config MFD_MAX77705
+	tristate "Maxim MAX77705 PMIC Support"
+	depends on I2C
+	select MFD_CORE
+	select MFD_SIMPLE_MFD_I2C
+	help
+	  Say yes here to add support for Maxim Integrated MAX77705 PMIC.
+	  This is a Power Management IC with Charger, safe LDOs, Flash, Haptic
+	  and MUIC controls on chip.
+	  This driver provides common support for accessing the device;
+	  additional drivers must be enabled in order to use the functionality
+	  of the device.
+
 config MFD_MAX77714
 	tristate "Maxim Semiconductor MAX77714 PMIC Support"
 	depends on I2C
drivers/mfd/Makefile +1 -0
index e057d6d6faef..8247d655fd31 100644
@@ -168,6 +168,7 @@ obj-$(CONFIG_MFD_MAX77620)	+= max77620.o
 obj-$(CONFIG_MFD_MAX77650)	+= max77650.o
 obj-$(CONFIG_MFD_MAX77686)	+= max77686.o
 obj-$(CONFIG_MFD_MAX77693)	+= max77693.o
+obj-$(CONFIG_MFD_MAX77705)	+= max77705.o
 obj-$(CONFIG_MFD_MAX77714)	+= max77714.o
 obj-$(CONFIG_MFD_MAX77843)	+= max77843.o
 obj-$(CONFIG_MFD_MAX8907)	+= max8907.o
drivers/mfd/max77705.c new file +182 -0

182 lines not on this page · raw message

include/linux/mfd/max77693-common.h +3 -1
index a5bce099f1ed..ec2e1b2dceb8 100644
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0+ */
 /*
- * Common data shared between Maxim 77693 and 77843 drivers
+ * Common data shared between Maxim 77693, 77705 and 77843 drivers
  *
  * Copyright (C) 2015 Samsung Electronics
  */
@@ -11,6 +11,7 @@
 enum max77693_types {
 	TYPE_MAX77693_UNKNOWN,
 	TYPE_MAX77693,
+	TYPE_MAX77705,
 	TYPE_MAX77843,
 
 	TYPE_MAX77693_NUM,
@@ -32,6 +33,7 @@ struct max77693_dev {
 	struct regmap *regmap_muic;
 	struct regmap *regmap_haptic;	/* Only MAX77693 */
 	struct regmap *regmap_chg;	/* Only MAX77843 */
+	struct regmap *regmap_leds;	/* Only MAX77705 */
 
 	struct regmap_irq_chip_data *irq_data_led;
 	struct regmap_irq_chip_data *irq_data_topsys;
include/linux/mfd/max77705-private.h new file +178 -0

178 lines not on this page · raw message

Signature · 1 line
2.39.5
#9 lore raw

PATCH v17 6/7 input: max77693: add max77705 haptic support

In reply to Dzmitry Sankouski

Add support for haptic controller on MAX77705 Multifunction device.

This driver supports external pwm and LRA (Linear Resonant Actuator) motor. User can control the haptic device via force feedback framework.

---
Changes in v17:
- add Reviewed-by: Krzysztof Kozlowski <[email protected]>

Changes in v16:
- merge case statements in max77693_haptic_probe with TYPE_MAX77843
- add MAX77705 to config option summary
- remove useless statement from Kconfig

Changes in v4:
- add max77705 haptic support to max77693 driver
- delete max77705-haptic

---
 drivers/input/misc/Kconfig           |  6 +++---
 drivers/input/misc/max77693-haptic.c | 13 ++++++++++++-
 2 files changed, 15 insertions(+), 4 deletions(-)
drivers/input/misc/Kconfig +3 -3
index 6a852c76331b..fe7d821ad02f 100644
@@ -240,12 +240,12 @@ config INPUT_MAX77650_ONKEY
 	  will be called max77650-onkey.
 
 config INPUT_MAX77693_HAPTIC
-	tristate "MAXIM MAX77693/MAX77843 haptic controller support"
-	depends on (MFD_MAX77693 || MFD_MAX77843) && PWM
+	tristate "MAXIM MAX77693/MAX77705/MAX77843 haptic controller support"
+	depends on (MFD_MAX77693 || MFD_MAX77705 || MFD_MAX77843) && PWM
 	select INPUT_FF_MEMLESS
 	help
 	  This option enables support for the haptic controller on
-	  MAXIM MAX77693 and MAX77843 chips.
+	  MAXIM MAX77693, MAX77705 and MAX77843 chips.
 
 	  To compile this driver as module, choose M here: the
 	  module will be called max77693-haptic.
drivers/input/misc/max77693-haptic.c +12 -1
index 0e646f1b257b..849c16218b2e 100644
@@ -23,6 +23,7 @@
 #include <linux/mfd/max77693.h>
 #include <linux/mfd/max77693-common.h>
 #include <linux/mfd/max77693-private.h>
+#include <linux/mfd/max77705-private.h>
 #include <linux/mfd/max77843-private.h>
 
 #define MAX_MAGNITUDE_SHIFT	16
@@ -115,6 +116,13 @@ static int max77693_haptic_configure(struct max77693_haptic *haptic,
 			MAX77693_HAPTIC_PWM_DIVISOR_128);
 		config_reg = MAX77693_HAPTIC_REG_CONFIG2;
 		break;
+	case TYPE_MAX77705:
+		value = ((haptic->type << MAX77693_CONFIG2_MODE) |
+			(enable << MAX77693_CONFIG2_MEN) |
+			(haptic->mode << MAX77693_CONFIG2_HTYP) |
+			MAX77693_HAPTIC_PWM_DIVISOR_128);
+		config_reg = MAX77705_PMIC_REG_MCONFIG;
+		break;
 	case TYPE_MAX77843:
 		value = (haptic->type << MCONFIG_MODE_SHIFT) |
 			(enable << MCONFIG_MEN_SHIFT) |
@@ -312,6 +320,7 @@ static int max77693_haptic_probe(struct platform_device *pdev)
 	case TYPE_MAX77693:
 		haptic->regmap_haptic = max77693->regmap_haptic;
 		break;
+	case TYPE_MAX77705:
 	case TYPE_MAX77843:
 		haptic->regmap_haptic = max77693->regmap;
 		break;
@@ -407,6 +416,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(max77693_haptic_pm_ops,
 
 static const struct platform_device_id max77693_haptic_id[] = {
 	{ "max77693-haptic", },
+	{ "max77705-haptic", },
 	{ "max77843-haptic", },
 	{},
 };
@@ -414,6 +424,7 @@ MODULE_DEVICE_TABLE(platform, max77693_haptic_id);
 
 static const struct of_device_id of_max77693_haptic_dt_match[] = {
 	{ .compatible = "maxim,max77693-haptic", },
+	{ .compatible = "maxim,max77705-haptic", },
 	{ .compatible = "maxim,max77843-haptic", },
 	{ /* sentinel */ },
 };
@@ -432,5 +443,5 @@ module_platform_driver(max77693_haptic_driver);
 
 MODULE_AUTHOR("Jaewon Kim <[email protected]>");
 MODULE_AUTHOR("Krzysztof Kozlowski <[email protected]>");
-MODULE_DESCRIPTION("MAXIM 77693/77843 Haptic driver");
+MODULE_DESCRIPTION("MAXIM 77693/77705/77843 Haptic driver");
 MODULE_LICENSE("GPL");
Signature · 1 line
2.39.5
#10 lore raw

PATCH v17 7/7 leds: max77705: Add LEDs support

In reply to Dzmitry Sankouski

This adds basic support for LEDs for the max77705 PMIC.

---
Changes for v17:
- delete regmap reassign
- fetch i2c_client from parent device (this needed to provide valid i2c_client for devm_regmap_init_i2c call)
- add Acked-by: Krzysztof Kozlowski <[email protected]>

Changes for v14:
- s/led/LED
- move led regmap creation to LED driver
- update copyright year

Changes for v11:
- add dependency on led multicolor class

Changes for v10:
- remove multiple line break
- replace en_shift, reg_brightness values with macros
- add support for leds-class-multicolor (inspired from leds-qcom-lpg.c):
- replace max77705_to_led helper with container_of, because it's no longer covers all cases
- add max77705_add_led, max77705_parse_subled functions
to parse device tree
- split max77705_led_brightness_set into *multi and *single versions

Changes for v8:
- join line where possible to fit in 100 chars
- change comment style C++ -> C

Changes for v6:
- change compatible suffix to 'rgb'
- remove I2C dependency in Kconfig
- remove copyright and author from 'based on' header statement
- replace MFD abbreviation with PMIC
- MAINTAINERS: alphabetic order
- max77705_rgb_blink: replace ternary operators with if..else if sequence
- max77705_rgb_blink: move hardcoded numbers to constants
- max77705_led_brightness_set: move ret to the bottom
- s/map/regmap
- replace device_for_each_child_node with scoped version
- s/rv/ret
Changes for v5:
- use same hardware name in Kconfig and module descriptions
- remove copyrighter owner from module authors

Changes in v4:
- inline BLINK_(ON|OFF) macro
- remove camel case
- drop backwards compatibility(new driver)
- drop module alias

---
 MAINTAINERS                          |   1 +
 drivers/leds/Kconfig                 |   8 ++++++++
 drivers/leds/Makefile                |   1 +
 drivers/leds/leds-max77705.c         | 275 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 include/linux/mfd/max77705-private.h |  17 +++++++++++++++++
 5 files changed, 302 insertions(+)
MAINTAINERS +1 -0
index 705458b6e0ad..b3a894ddbf27 100644
@@ -14187,6 +14187,7 @@ F:	Documentation/devicetree/bindings/*/maxim,max77693.yaml
 F:	Documentation/devicetree/bindings/*/maxim,max77705*.yaml
 F:	Documentation/devicetree/bindings/*/maxim,max77843.yaml
 F:	Documentation/devicetree/bindings/clock/maxim,max77686.txt
+F:	drivers/leds/leds-max77705.c
 F:	drivers/*/*max77843.c
 F:	drivers/*/max14577*.c
 F:	drivers/*/max77686*.c
drivers/leds/Kconfig +8 -0
index b784bb74a837..4b69676d8206 100644
@@ -753,6 +753,14 @@ config LEDS_MAX77650
 	help
 	  LEDs driver for MAX77650 family of PMICs from Maxim Integrated.
 
+config LEDS_MAX77705
+	tristate "LED support for Maxim MAX77705 PMIC"
+	depends on MFD_MAX77705
+	depends on LEDS_CLASS
+	depends on LEDS_CLASS_MULTICOLOR
+	help
+	  LED driver for MAX77705 PMIC from Maxim Integrated.
+
 config LEDS_MAX8997
 	tristate "LED support for MAX8997 PMIC"
 	depends on LEDS_CLASS && MFD_MAX8997
drivers/leds/Makefile +1 -0
index 18afbb5a23ee..096bf244527d 100644
@@ -60,6 +60,7 @@ obj-$(CONFIG_LEDS_LP8860)		+= leds-lp8860.o
 obj-$(CONFIG_LEDS_LT3593)		+= leds-lt3593.o
 obj-$(CONFIG_LEDS_MAX5970)		+= leds-max5970.o
 obj-$(CONFIG_LEDS_MAX77650)		+= leds-max77650.o
+obj-$(CONFIG_LEDS_MAX77705)		+= leds-max77705.o
 obj-$(CONFIG_LEDS_MAX8997)		+= leds-max8997.o
 obj-$(CONFIG_LEDS_MC13783)		+= leds-mc13783.o
 obj-$(CONFIG_LEDS_MENF21BMC)		+= leds-menf21bmc.o
drivers/leds/leds-max77705.c new file +275 -0

275 lines not on this page · raw message

include/linux/mfd/max77705-private.h +17 -0
index 0c8b07abfb9d..214de7feeb8c 100644
@@ -33,6 +33,23 @@
 #define MAX77705_SYSTEM_IRQ_SYSOVLO_INT	BIT(5)
 #define MAX77705_SYSTEM_IRQ_TSHDN_INT	BIT(6)
 #define MAX77705_SYSTEM_IRQ_TM_INT	BIT(7)
+/* MAX77705_RGBLED_REG_LEDEN register */
+#define MAX77705_RGBLED_EN_WIDTH	2
+/* MAX77705_RGBLED_REG_LEDBLNK register */
+#define MAX77705_RGB_DELAY_100_STEP_LIM 500
+#define MAX77705_RGB_DELAY_100_STEP_COUNT 4
+#define MAX77705_RGB_DELAY_100_STEP 100
+#define MAX77705_RGB_DELAY_250_STEP_LIM 3250
+#define MAX77705_RGB_DELAY_250_STEP 250
+#define MAX77705_RGB_DELAY_500_STEP 500
+#define MAX77705_RGB_DELAY_500_STEP_COUNT 10
+#define MAX77705_RGB_DELAY_500_STEP_LIM 5000
+#define MAX77705_RGB_DELAY_1000_STEP_LIM 8000
+#define MAX77705_RGB_DELAY_1000_STEP_COUNT 13
+#define MAX77705_RGB_DELAY_1000_STEP 1000
+#define MAX77705_RGB_DELAY_2000_STEP 2000
+#define MAX77705_RGB_DELAY_2000_STEP_COUNT 13
+#define MAX77705_RGB_DELAY_2000_STEP_LIM 12000
 
 enum max77705_hw_rev {
 	MAX77705_PASS1 = 1,
Signature · 1 line
2.39.5
maintainer
#11 lore raw
In reply to Dzmitry Sankouski
Quoted 10 lines · Dzmitry Sankouski

The Maxim MAX77705 is a Companion Power Management and Type-C interface IC which includes charger, fuelgauge, LED, haptic motor driver and Type-C management IC. It's used in Samsung S series smart phones starting from S9 model.

Add features:
  - charger
  - fuelgauge
  - haptic
  - led

LGTM.

Once Sebastian provides an ACK, I can take the set.

Signature · 1 line
Lee Jones [李琼斯]
maintainer Applied
#12 lore raw
In reply to Dzmitry Sankouski
Quoted 5 lines · Dzmitry Sankouski

The Maxim MAX77705 is a Companion Power Management and Type-C interface IC which includes charger, fuelgauge, LED, haptic motor driver and Type-C management IC. It's used in Samsung S series smart phones starting from S9 model.

Quoted 7 lines

Add features:
  - charger
  - fuelgauge
  - haptic
  - led

[...]

Applied, thanks!

[1/7] dt-bindings: power: supply: add maxim,max77705 charger

      commit: af280f29f32c885942f67edacfeae7d9b6e897a4
[2/7] dt-bindings: mfd: add maxim,max77705
      commit: 2ae4ffff28bf48a7144591eed7081f746b98e130
[3/7] power: supply: max77705: Add charger driver for Maxim 77705
      commit: a6a494c8e3ce1fe84aac538b087a4cab868ed83f
[4/7] mfd: simple-mfd-i2c: Add MAX77705 support
      commit: 7b591ef98b3fc1ce20c3ccb86715429b72e2e6f0
[5/7] mfd: Add new driver for MAX77705 PMIC
      commit: c8d50f029748b73313838b64b829992b66ccb704
[6/7] input: max77693: add max77705 haptic support
      commit: eb79f3a5a51a1f484e2570d983dc9d8217e8f912
[7/7] leds: max77705: Add LEDs support
      commit: aebb5fc9a0d87916133b911e1ef2cc04a7996335

--
Lee Jones [李琼斯]

maintainer
#13 lore raw
Quoted 17 lines · Lee Jones
Quoted 5 lines · Dzmitry Sankouski

The Maxim MAX77705 is a Companion Power Management and Type-C interface IC which includes charger, fuelgauge, LED, haptic motor driver and Type-C management IC. It's used in Samsung S series smart phones starting from S9 model.

Quoted 7 lines

Add features:
  - charger
  - fuelgauge
  - haptic
  - led

[...]

Applied, thanks!

[1/7] dt-bindings: power: supply: add maxim,max77705 charger

Quoted 13 lines
      commit: af280f29f32c885942f67edacfeae7d9b6e897a4
[2/7] dt-bindings: mfd: add maxim,max77705
      commit: 2ae4ffff28bf48a7144591eed7081f746b98e130
[3/7] power: supply: max77705: Add charger driver for Maxim 77705
      commit: a6a494c8e3ce1fe84aac538b087a4cab868ed83f
[4/7] mfd: simple-mfd-i2c: Add MAX77705 support
      commit: 7b591ef98b3fc1ce20c3ccb86715429b72e2e6f0
[5/7] mfd: Add new driver for MAX77705 PMIC
      commit: c8d50f029748b73313838b64b829992b66ccb704
[6/7] input: max77693: add max77705 haptic support
      commit: eb79f3a5a51a1f484e2570d983dc9d8217e8f912
[7/7] leds: max77705: Add LEDs support
      commit: aebb5fc9a0d87916133b911e1ef2cc04a7996335

I'll send out a PR once the build tests are complete.

Note to self: ib-mfd-input-leds-power-6.15

Signature · 1 line
Lee Jones [李琼斯]
maintainer
#14 lore raw

[GIT PULL] Immutable branch between MFD, Input, LEDs and Power due for the v6.15 merge window

In reply to Dzmitry Sankouski

Enjoy!

The following changes since commit 2014c95afecee3e76ca4a56956a936e23283f05b:

Linux 6.14-rc1 (2025-02-02 15:39:26 -0800)

are available in the Git repository at:

ssh://[email protected]/pub/scm/linux/kernel/git/lee/mfd.git tags/ib-mfd-input-leds-power-v6.15

for you to fetch changes up to aebb5fc9a0d87916133b911e1ef2cc04a7996335:

leds: max77705: Add LEDs support (2025-02-20 16:38:37 +0000)

----------------------------------------------------------------
Immutable branch between MFD, Input, LEDs and Power due for the v6.15 merge window

----------------------------------------------------------------
Dzmitry Sankouski (7):
dt-bindings: power: supply: add maxim,max77705 charger
dt-bindings: mfd: Add maxim,max77705
power: supply: max77705: Add charger driver for Maxim 77705
mfd: simple-mfd-i2c: Add MAX77705 support
mfd: Add new driver for MAX77705 PMIC
Input: max77693 - add max77705 haptic support
leds: max77705: Add LEDs support

 .../devicetree/bindings/mfd/maxim,max77705.yaml    | 158 ++++++
 .../bindings/power/supply/maxim,max77705.yaml      |  50 ++
 MAINTAINERS                                        |   4 +
 drivers/input/misc/Kconfig                         |   6 +-
 drivers/input/misc/max77693-haptic.c               |  13 +-
 drivers/leds/Kconfig                               |   8 +
 drivers/leds/Makefile                              |   1 +
 drivers/leds/leds-max77705.c                       | 275 ++++++++++
 drivers/mfd/Kconfig                                |  13 +
 drivers/mfd/Makefile                               |   1 +
 drivers/mfd/max77705.c                             | 182 +++++++
 drivers/mfd/simple-mfd-i2c.c                       |  11 +
 drivers/power/supply/Kconfig                       |   6 +
 drivers/power/supply/Makefile                      |   1 +
 drivers/power/supply/max77705_charger.c            | 581 +++++++++++++++++++++
 include/linux/mfd/max77693-common.h                |   4 +-
 include/linux/mfd/max77705-private.h               | 195 +++++++
 include/linux/power/max77705_charger.h             | 195 +++++++
 18 files changed, 1699 insertions(+), 5 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/mfd/maxim,max77705.yaml
 create mode 100644 Documentation/devicetree/bindings/power/supply/maxim,max77705.yaml
 create mode 100644 drivers/leds/leds-max77705.c
 create mode 100644 drivers/mfd/max77705.c
 create mode 100644 drivers/power/supply/max77705_charger.c
 create mode 100644 include/linux/mfd/max77705-private.h
 create mode 100644 include/linux/power/max77705_charger.h
Signature · 1 line
Lee Jones [李琼斯]
maintainer
#15 lore raw

Re: [GIT PULL] Immutable branch between MFD, Input, LEDs and Power due for the v6.15 merge window

Quoted 18 lines · Lee Jones

Enjoy!

The following changes since commit 2014c95afecee3e76ca4a56956a936e23283f05b:

Linux 6.14-rc1 (2025-02-02 15:39:26 -0800)

are available in the Git repository at:

ssh://[email protected]/pub/scm/linux/kernel/git/lee/mfd.git tags/ib-mfd-input-leds-power-v6.15

for you to fetch changes up to aebb5fc9a0d87916133b911e1ef2cc04a7996335:

leds: max77705: Add LEDs support (2025-02-20 16:38:37 +0000)

----------------------------------------------------------------
Immutable branch between MFD, Input, LEDs and Power due for the v6.15 merge window

Quoted 9 lines

----------------------------------------------------------------
Dzmitry Sankouski (7):
dt-bindings: power: supply: add maxim,max77705 charger
dt-bindings: mfd: Add maxim,max77705
power: supply: max77705: Add charger driver for Maxim 77705
mfd: simple-mfd-i2c: Add MAX77705 support
mfd: Add new driver for MAX77705 PMIC
Input: max77693 - add max77705 haptic support
leds: max77705: Add LEDs support

None of this seems to be in linux-next, but now we have users in .dts files.

Rob

maintainer
#16 lore raw

Re: [GIT PULL] Immutable branch between MFD, Input, LEDs and Power due for the v6.15 merge window

Quoted 29 lines · Rob Herring
Quoted 18 lines · Lee Jones

Enjoy!

The following changes since commit 2014c95afecee3e76ca4a56956a936e23283f05b:

Linux 6.14-rc1 (2025-02-02 15:39:26 -0800)

are available in the Git repository at:

ssh://[email protected]/pub/scm/linux/kernel/git/lee/mfd.git tags/ib-mfd-input-leds-power-v6.15

for you to fetch changes up to aebb5fc9a0d87916133b911e1ef2cc04a7996335:

leds: max77705: Add LEDs support (2025-02-20 16:38:37 +0000)

----------------------------------------------------------------
Immutable branch between MFD, Input, LEDs and Power due for the v6.15 merge window

Quoted 9 lines

----------------------------------------------------------------
Dzmitry Sankouski (7):
dt-bindings: power: supply: add maxim,max77705 charger
dt-bindings: mfd: Add maxim,max77705
power: supply: max77705: Add charger driver for Maxim 77705
mfd: simple-mfd-i2c: Add MAX77705 support
mfd: Add new driver for MAX77705 PMIC
Input: max77693 - add max77705 haptic support
leds: max77705: Add LEDs support

Quoted 1 line

None of this seems to be in linux-next, but now we have users in .dts files.

None of what is in -next? All of these patches are applied and pushed.

Signature · 1 line
Lee Jones [李琼斯]
#17 lore raw

Re: [GIT PULL] Immutable branch between MFD, Input, LEDs and Power due for the v6.15 merge window

Quoted 31 lines · Lee Jones
Quoted 29 lines · Rob Herring
Quoted 27 lines · Lee Jones

Enjoy!

The following changes since commit 2014c95afecee3e76ca4a56956a936e23283f05b:

Linux 6.14-rc1 (2025-02-02 15:39:26 -0800)

are available in the Git repository at:

ssh://[email protected]/pub/scm/linux/kernel/git/lee/mfd.git tags/ib-mfd-input-leds-power-v6.15

for you to fetch changes up to aebb5fc9a0d87916133b911e1ef2cc04a7996335:

leds: max77705: Add LEDs support (2025-02-20 16:38:37 +0000)

----------------------------------------------------------------
Immutable branch between MFD, Input, LEDs and Power due for the v6.15 merge window

----------------------------------------------------------------
Dzmitry Sankouski (7):
dt-bindings: power: supply: add maxim,max77705 charger
dt-bindings: mfd: Add maxim,max77705
power: supply: max77705: Add charger driver for Maxim 77705
mfd: simple-mfd-i2c: Add MAX77705 support
mfd: Add new driver for MAX77705 PMIC
Input: max77693 - add max77705 haptic support
leds: max77705: Add LEDs support

Quoted 3 lines
Quoted 1 line

None of this seems to be in linux-next, but now we have users in .dts files.

None of what is in -next? All of these patches are applied and pushed.

Next from 17th March has them. Next from 14th Match did not have them, even though you sent this pull request on 21st Feb.

So report was correct - you did not update for-next that time.

Best regards,
Krzysztof

maintainer
#18 lore raw

Re: [GIT PULL] Immutable branch between MFD, Input, LEDs and Power due for the v6.15 merge window

Quoted 34 lines · Krzysztof Kozlowski
Quoted 33 lines · Lee Jones
Quoted 30 lines · Rob Herring
Quoted 18 lines · Lee Jones

Enjoy!

The following changes since commit 2014c95afecee3e76ca4a56956a936e23283f05b:

Linux 6.14-rc1 (2025-02-02 15:39:26 -0800)

are available in the Git repository at:

ssh://[email protected]/pub/scm/linux/kernel/git/lee/mfd.git tags/ib-mfd-input-leds-power-v6.15

for you to fetch changes up to aebb5fc9a0d87916133b911e1ef2cc04a7996335:

leds: max77705: Add LEDs support (2025-02-20 16:38:37 +0000)

----------------------------------------------------------------
Immutable branch between MFD, Input, LEDs and Power due for the v6.15 merge window

Quoted 9 lines

----------------------------------------------------------------
Dzmitry Sankouski (7):
dt-bindings: power: supply: add maxim,max77705 charger
dt-bindings: mfd: Add maxim,max77705
power: supply: max77705: Add charger driver for Maxim 77705
mfd: simple-mfd-i2c: Add MAX77705 support
mfd: Add new driver for MAX77705 PMIC
Input: max77693 - add max77705 haptic support
leds: max77705: Add LEDs support

None of this seems to be in linux-next, but now we have users in .dts files.

Quoted 7 lines
Quoted 1 line

None of what is in -next? All of these patches are applied and pushed.

Next from 17th March has them. Next from 14th Match did not have them, even though you sent this pull request on 21st Feb.

So report was correct - you did not update for-next that time.

Ah, gotcha. Yes, that's entirely possible.

The point of the PR is that anyone can pull and apply it.

In the worse case, all would have come good during the merge-window.

Signature · 1 line
Lee Jones [李琼斯]