Skip to contentSkip to conversation

Add support for MAX77675 device

PATCH Superseded Joan-Na-adi 3 participants 6 messages Oct 21, 2025 – Dec 18, 2025

Subsystems (2)

v4 of 8 Superseded Latest is v8 →

lore
Share & tools
lore
#0 lore raw

v4 cover Add support for MAX77675 device

From: Joan Na <[email protected]>

MAX77675 regulator driver and device tree bindings

---
Changes in v4:
- Remove the 'maxim,max77675-regulator.h' file as it is no longer used for bindings
- Eliminate unnecessary '|' characters where they are not needed
- Add and modify code to drop references that are no longer used
- Remove dead code
- Add detailed descriptions for each mode of 'maxim,en-mode'
- Rename 'maxim,latency-mode' to 'maxim,voltage-change-latency-us' for clearer meaning
- Update max77675_parse_latency_mode function to max77675_parse_voltage_change_latency accordingly
- Fix errors detected by running make dt_binding_check
- Fix incorrect indentation in the YAML file

Changes in v3:
- Removed unused variable 'value'
- Removed duplicate .list_voltage initializer
- Wrapped of_match_table with of_match_ptr() to fix build failure when CONFIG_OF is not set
- Updated driver code to match new DT binding schema
- Changed regmap_config from REGCACHE_NONE to REGCACHE_MAPLE for improved performance
- Added volatile_reg() to mark status registers as non-cacheable
- Missing explanation of maxim,fps-slot default value
- Updated DT binding enums to use string values (e.g., "low", "high") instead of integers
- Converted several binary properties to boolean typei
- Renamed time-based properties to use standard unit suffixes (e.g., "-sec", "-us")
- Added default values for properties
- Removed unused macros
- Renamed macros for clarity

Changes in v2:
- Fixed build error due to missing 'max77675_of_match' declaration
- Removed duplicate '.list_voltage' initialization
- Corrected value usage in regmap_update_bits call
- Added CONFIG_OF guards and used of_match_ptr()
---

Joan Na (2):
dt-bindings: regulator: Add MAX77675 regulator binding
regulator: max77675: Add MAX77675 regulator driver

 .../bindings/regulator/maxim,max77675.yaml    | 195 ++++
 drivers/regulator/Kconfig                     |   9 +
 drivers/regulator/Makefile                    |   1 +
 drivers/regulator/max77675-regulator.c        | 863 ++++++++++++++++++
 drivers/regulator/max77675-regulator.h        | 260 ++++++
 5 files changed, 1328 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/regulator/maxim,max77675.yaml
 create mode 100644 drivers/regulator/max77675-regulator.c
 create mode 100644 drivers/regulator/max77675-regulator.h

base-commit: 6548d364a3e850326831799d7e3ea2d7bb97ba08 --
2.34.1

#1 lore raw

PATCH v4 1/2 dt-bindings: regulator: Add MAX77675 regulator binding

From: Joan Na <[email protected]>

Add device tree binding YAML schema for the Maxim MAX77675 PMIC regulator. This defines the node properties and supported regulator names for use in device tree sources.

---
 .../bindings/regulator/maxim,max77675.yaml    | 195 ++++++++++++++++++
 1 file changed, 195 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/regulator/maxim,max77675.yaml
Documentation/devicetree/bindings/regulator/maxim,max77675.yaml new file +195 -0
new file mode 100644
index 000000000000..0ec0844b6d64
@@ -0,0 +1,195 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/regulator/maxim,max77675.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Maxim MAX77675 PMIC Regulator
+
+maintainers:
+  - Joan Na <[email protected]>
+
+description: |
+  The MAX77675 is a PMIC providing multiple switching buck regulators
+  (SBB0–SBB3), accessible via I2C. Each SBB can be configured individually
+  in the Device Tree. Additional PMIC settings can be configured through
+  device-specific properties.
+
+properties:
+  compatible:
+    const: maxim,max77675
+
+  reg:
+    maxItems: 1
+
+  maxim,en-mode:
+    description: |
+      Enable mode configuration.
+      The debounce time set by 'maxim,en-debounce-time-us' applies to
+      both push-button and slide-switch modes.
+      "push-button"  - A long press triggers power-on or power-down
+      "slide-switch" - Low level powers on, high level powers down
+      "logic"        - Low level powers on, high level powers down (no debounce time)
+    $ref: /schemas/types.yaml#/definitions/string
+    enum: [push-button, slide-switch, logic]
+    default: slide-switch
+
+  maxim,voltage-change-latency-us:
+    description: |
+      Specifies the delay (in microseconds) between an output voltage change request
+      and the start of the SBB voltage ramp.
+      Use 10us for low-latency or 100us for high-latency (default).
+    enum: [10, 100]
+    default: 100
+
+  maxim,drv-sbb-strength:
+    description: |
+      SIMO Buck-Boost Drive Strength Trim.
+      Controls the drive strength of the SIMO regulator's power MOSFETs.
+      This setting affects the switching speed, which impacts power efficiency and EMI.
+      "max"  – Maximum drive strength (~0.6 ns transition time)
+      "high" – High drive strength (~1.2 ns transition time)
+      "low"  – Low drive strength (~1.8 ns transition time)
+      "min"  – Minimum drive strength (~8 ns transition time)
+    $ref: /schemas/types.yaml#/definitions/string
+    enum: [max, high, low, min]
+    default: max
+
+  maxim,dvs-slew-rate-mv-per-us:
+    description: |
+      Dynamic rising slew rate for output voltage transitions, in mV/μs.
+      This setting is only used when 'maxim,fixed-slew-rate' is not present.
+    enum: [5, 10]
+    default: 5
+
+  maxim,en-debounce-time-us:
+    description: Debounce time for the enable pin, in microseconds
+    enum: [100, 30000]
+    default: 100
+
+  maxim,manual-reset-time-sec:
+    description: Manual reset time in seconds
+    enum: [4, 8, 12, 16]
+    default: 4
+
+  maxim,en-pullup-disable:
+    type: boolean
+    description: |
+      Disable internal pull-up for EN pin.
+      When set, the internal pull-up is disabled.
+      Defaults to enabled if this property is not specified.
+    default: false
+
+  maxim,bias-low-power-request:
+    type: boolean
+    description: |
+      Request low-power bias mode.
+      When set, the device enters low-power bias mode.
+      Defaults to normal bias mode if this property is not specified.
+    default: false
+
+  maxim,simo-int-ldo-always-on:
+    type: boolean
+    description: |
+      Set internal LDO to always supply 1.8V
+      When set, the internal LDO always supplies 1.8V.
+      By default, the SIMO internal channel supplies 1.8V during low-power mode
+    default: false
+
+  regulators:
+    type: object
+    description: Regulator child nodes
+    patternProperties:
+      "^sbb[0-3]$":
+        type: object
+        $ref: regulator.yaml#
+        properties:
+          maxim,fps-slot:
+            description: |
+              FPS (Flexible Power Sequencer) slot selection.
+              The Flexible Power Sequencer allows resources to power up under hardware or software control
+              Additionally, each resource can power up independently or among a group of other regulators
+              with adjustable power-up and power-down slots.
+              This device's regulators provide an additional property to configure the FPS parameters,
+              allowing each regulator to be assigned to an FPS slot for proper power management control.
+              "slot0"   - Assign to FPS Slot 0
+              "slot1"   - Assign to FPS Slot 1
+              "slot2"   - Assign to FPS Slot 2
+              "slot3"   - Assign to FPS Slot 3
+              "default" - Use the default FPS slot value stored in OTP and read from the register
+            $ref: /schemas/types.yaml#/definitions/string
+            enum: [slot0, slot1, slot2, slot3, default]
+            default: default
+
+          maxim,fixed-slew-rate:
+            type: boolean
+            description: |
+              Use fixed slew rate of 2 mV/μs for output voltage transitions.
+              When this property is present, the device uses a constant 2 mV/μs slew rate
+              and ignores any dynamic slew rate configuration.
+              When absent, the device uses the dynamic slew rate specified
+              by 'maxim,dvs-slew-rate-mv-per-us'
+            default: true
+
+        unevaluatedProperties: false
+
+required:
+  - compatible
+  - reg
+  - regulators
+
+additionalProperties: false
+
+examples:
+  - |
+    i2c {
+      #address-cells = <1>;
+      #size-cells = <0>;
+
+      max77675: pmic@44 {
+        compatible = "maxim,max77675";
+        reg = <0x44>;
+
+        maxim,en-mode = "slide-switch";
+        maxim,voltage-change-latency-us = <100>;
+        maxim,drv-sbb-strength = "max";
+        maxim,dvs-slew-rate-mv-per-us = <5>;
+        maxim,manual-reset-time-sec = <4>;
+        maxim,en-debounce-time-us = <100>;
+
+        regulators {
+          sbb0: sbb0 {
+            regulator-name = "sbb0";
+            regulator-min-microvolt = <500000>;
+            regulator-max-microvolt = <5500000>;
+            maxim,fps-slot = "default";
+            maxim,fixed-slew-rate;
+          };
+
+          sbb1: sbb1 {
+            regulator-name = "sbb1";
+            regulator-min-microvolt = <500000>;
+            regulator-max-microvolt = <5500000>;
+            maxim,fps-slot = "default";
+            maxim,fixed-slew-rate;
+          };
+
+          sbb2: sbb2 {
+            regulator-name = "sbb2";
+            regulator-min-microvolt = <500000>;
+            regulator-max-microvolt = <5500000>;
+            maxim,fps-slot = "default";
+            maxim,fixed-slew-rate;
+          };
+
+          sbb3: sbb3 {
+            regulator-name = "sbb3";
+            regulator-min-microvolt = <500000>;
+            regulator-max-microvolt = <5500000>;
+            maxim,fps-slot = "default";
+            maxim,fixed-slew-rate;
+          };
+        };
+      };
+    };
+

--
2.34.1

#2 lore raw

Re: [PATCH v4 1/2] dt-bindings: regulator: Add MAX77675 regulator binding

Quoted 5 lines · Joan-Na-adi

From: Joan Na <[email protected]>

Add device tree binding YAML schema for the Maxim MAX77675 PMIC regulator. This defines the node properties and supported regulator names for use in device tree sources.

Subject: no improvements.

I also missed last time reversed prefixes:
Please use subject prefixes matching the subsystem. You can get them for example with 'git log --oneline -- DIRECTORY_OR_FILE' on the directory your patch is touching. For bindings, the preferred subjects are explained here:
https://www.kernel.org/doc/html/latest/devicetree/bindings/submitting-patches.html#i-for-patch-submitters

Quoted 15 lines
---
 .../bindings/regulator/maxim,max77675.yaml    | 195 ++++++++++++++++++
 1 file changed, 195 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/regulator/maxim,max77675.yaml
Documentation/devicetree/bindings/regulator/maxim,max77675.yaml new file +2 -0
new file mode 100644
index 000000000000..0ec0844b6d64
@@ -0,0 +1,195 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2

Documentation/devicetree/bindings/regulator/maxim,max77675.yaml line 12

Quoted 10 lines
Documentation/devicetree/bindings/regulator/maxim,max77675.yaml new file +10 -0
+---
+$id: http://devicetree.org/schemas/regulator/maxim,max77675.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Maxim MAX77675 PMIC Regulator
+
+maintainers:
+  - Joan Na <[email protected]>
+
+description: |

Do not need '|' unless you need to preserve formatting.

Documentation/devicetree/bindings/regulator/maxim,max77675.yaml line 15

Quoted 3 lines
Documentation/devicetree/bindings/regulator/maxim,max77675.yaml new file +3 -0
+  The MAX77675 is a PMIC providing multiple switching buck regulators
+  (SBB0–SBB3), accessible via I2C. Each SBB can be configured individually
+  in the Device Tree. Additional PMIC settings can be configured through

Drop the second sentence. You do not have to describe how DT works in DT. We all know it.

Quoted 16 lines
Documentation/devicetree/bindings/regulator/maxim,max77675.yaml new file +16 -0
+  device-specific properties.
+
+properties:
+  compatible:
+    const: maxim,max77675
+
+  reg:
+    maxItems: 1
+
+  maxim,en-mode:
+    description: |
+      Enable mode configuration.
+      The debounce time set by 'maxim,en-debounce-time-us' applies to
+      both push-button and slide-switch modes.
+      "push-button"  - A long press triggers power-on or power-down
+      "slide-switch" - Low level powers on, high level powers down

Documentation/devicetree/bindings/regulator/maxim,max77675.yaml line 41

Quoted 10 lines
Documentation/devicetree/bindings/regulator/maxim,max77675.yaml new file +10 -0
+      "logic"        - Low level powers on, high level powers down (no debounce time)
+    $ref: /schemas/types.yaml#/definitions/string
+    enum: [push-button, slide-switch, logic]
+    default: slide-switch
+
+  maxim,voltage-change-latency-us:
+    description: |
+      Specifies the delay (in microseconds) between an output voltage change request
+      and the start of the SBB voltage ramp.
+      Use 10us for low-latency or 100us for high-latency (default).

Drop sentence. Don't repeat constraints in free form text.

Quoted 8 lines
Documentation/devicetree/bindings/regulator/maxim,max77675.yaml new file +8 -0
+    enum: [10, 100]
+    default: 100
+
+  maxim,drv-sbb-strength:
+    description: |
+      SIMO Buck-Boost Drive Strength Trim.
+      Controls the drive strength of the SIMO regulator's power MOSFETs.
+      This setting affects the switching speed, which impacts power efficiency and EMI.

Documentation/devicetree/bindings/regulator/maxim,max77675.yaml line 59

Quoted 10 lines
Documentation/devicetree/bindings/regulator/maxim,max77675.yaml new file +10 -0
+      "max"  – Maximum drive strength (~0.6 ns transition time)
+      "high" – High drive strength (~1.2 ns transition time)
+      "low"  – Low drive strength (~1.8 ns transition time)
+      "min"  – Minimum drive strength (~8 ns transition time)
+    $ref: /schemas/types.yaml#/definitions/string
+    enum: [max, high, low, min]
+    default: max
+
+  maxim,dvs-slew-rate-mv-per-us:
+    description: |

Drop |

Documentation/devicetree/bindings/regulator/maxim,max77675.yaml line 65

Quoted 6 lines
Documentation/devicetree/bindings/regulator/maxim,max77675.yaml new file +6 -0
+      Dynamic rising slew rate for output voltage transitions, in mV/μs.
+      This setting is only used when 'maxim,fixed-slew-rate' is not present.
+    enum: [5, 10]
+    default: 5
+
+  maxim,en-debounce-time-us:

debounce-delay-us

Documentation/devicetree/bindings/regulator/maxim,max77675.yaml line 71

Quoted 6 lines
Documentation/devicetree/bindings/regulator/maxim,max77675.yaml new file +6 -0
+    description: Debounce time for the enable pin, in microseconds
+    enum: [100, 30000]
+    default: 100
+
+  maxim,manual-reset-time-sec:
+    description: Manual reset time in seconds

That's for the power button? If so, you have here few input properties - that's reset-time-sec from input.yaml, right? Reference that schema and provide here constraints.

Documentation/devicetree/bindings/regulator/maxim,max77675.yaml line 77

Quoted 6 lines
Documentation/devicetree/bindings/regulator/maxim,max77675.yaml new file +6 -0
+    enum: [4, 8, 12, 16]
+    default: 4
+
+  maxim,en-pullup-disable:
+    type: boolean
+    description: |

Drop |

Documentation/devicetree/bindings/regulator/maxim,max77675.yaml line 79

Quoted 2 lines
Documentation/devicetree/bindings/regulator/maxim,max77675.yaml new file +2 -0
+      Disable internal pull-up for EN pin.
+      When set, the internal pull-up is disabled.

These two repeat itself.

Documentation/devicetree/bindings/regulator/maxim,max77675.yaml line 80

Quoted 1 line
Documentation/devicetree/bindings/regulator/maxim,max77675.yaml new file +1 -0
+      Defaults to enabled if this property is not specified.

Don't repeat constraints in free form text.

Documentation/devicetree/bindings/regulator/maxim,max77675.yaml line 87

Quoted 7 lines
Documentation/devicetree/bindings/regulator/maxim,max77675.yaml new file +7 -0
+    default: false
+
+  maxim,bias-low-power-request:
+    type: boolean
+    description: |
+      Request low-power bias mode.
+      When set, the device enters low-power bias mode.

These two repeat itself.

Documentation/devicetree/bindings/regulator/maxim,max77675.yaml line 88

Quoted 1 line
Documentation/devicetree/bindings/regulator/maxim,max77675.yaml new file +1 -0
+      Defaults to normal bias mode if this property is not specified.

Don't repeat constraints in free form text.

Documentation/devicetree/bindings/regulator/maxim,max77675.yaml line 95

Quoted 7 lines
Documentation/devicetree/bindings/regulator/maxim,max77675.yaml new file +7 -0
+    default: false
+
+  maxim,simo-int-ldo-always-on:
+    type: boolean
+    description: |
+      Set internal LDO to always supply 1.8V
+      When set, the internal LDO always supplies 1.8V.

These two repeat itself.

Quoted 6 lines
Documentation/devicetree/bindings/regulator/maxim,max77675.yaml new file +6 -0
+      By default, the SIMO internal channel supplies 1.8V during low-power mode
+    default: false
+
+  regulators:
+    type: object
+    description: Regulator child nodes

Documentation/devicetree/bindings/regulator/maxim,max77675.yaml line 111

Quoted 10 lines
Documentation/devicetree/bindings/regulator/maxim,max77675.yaml new file +10 -0
+    patternProperties:
+      "^sbb[0-3]$":
+        type: object
+        $ref: regulator.yaml#
+        properties:
+          maxim,fps-slot:
+            description: |
+              FPS (Flexible Power Sequencer) slot selection.
+              The Flexible Power Sequencer allows resources to power up under hardware or software control
+              Additionally, each resource can power up independently or among a group of other regulators

Please wrap according to coding style (see coding style document, so at 80).

Documentation/devicetree/bindings/regulator/maxim,max77675.yaml line 114

Quoted 3 lines
Documentation/devicetree/bindings/regulator/maxim,max77675.yaml new file +3 -0
+              with adjustable power-up and power-down slots.
+              This device's regulators provide an additional property to configure the FPS parameters,
+              allowing each regulator to be assigned to an FPS slot for proper power management control.

Redundant statement. Please do not describe how to use Devicetree. Explain the hardware.

Documentation/devicetree/bindings/regulator/maxim,max77675.yaml line 127

Quoted 13 lines
Documentation/devicetree/bindings/regulator/maxim,max77675.yaml new file +13 -0
+              "slot0"   - Assign to FPS Slot 0
+              "slot1"   - Assign to FPS Slot 1
+              "slot2"   - Assign to FPS Slot 2
+              "slot3"   - Assign to FPS Slot 3
+              "default" - Use the default FPS slot value stored in OTP and read from the register
+            $ref: /schemas/types.yaml#/definitions/string
+            enum: [slot0, slot1, slot2, slot3, default]
+            default: default
+
+          maxim,fixed-slew-rate:
+            type: boolean
+            description: |
+              Use fixed slew rate of 2 mV/μs for output voltage transitions.

Drop. Please don't write two sentences which are repeating the same. Write concise yet informative descriptions.

Documentation/devicetree/bindings/regulator/maxim,max77675.yaml line 139

Quoted 12 lines
Documentation/devicetree/bindings/regulator/maxim,max77675.yaml new file +12 -0
+              When this property is present, the device uses a constant 2 mV/μs slew rate
+              and ignores any dynamic slew rate configuration.
+              When absent, the device uses the dynamic slew rate specified
+              by 'maxim,dvs-slew-rate-mv-per-us'
+            default: true
+
+        unevaluatedProperties: false
+
+required:
+  - compatible
+  - reg
+  - regulators

Best regards,
Krzysztof

#3 lore raw

PATCH v4 2/2 regulator: max77675: Add MAX77675 regulator driver

In reply to Joan-Na-adi

From: Joan Na <[email protected]>

Add support for the Maxim Integrated MAX77675 PMIC regulator.

The MAX77675 is a compact, highly efficient SIMO (Single Inductor Multiple Output) power management IC that provides four programmable buck-boost switching regulators with only one inductor. It supports up to 700mA total output current and operates from a single-cell Li-ion battery.

An integrated power-up sequencer and I2C interface allow flexible startup configuration and runtime control.

---
 drivers/regulator/Kconfig              |   9 +
 drivers/regulator/Makefile             |   1 +
 drivers/regulator/max77675-regulator.c | 863 +++++++++++++++++++++++++
 drivers/regulator/max77675-regulator.h | 260 ++++++++
 4 files changed, 1133 insertions(+)
 create mode 100644 drivers/regulator/max77675-regulator.c
 create mode 100644 drivers/regulator/max77675-regulator.h
drivers/regulator/Kconfig +9 -0
index d84f3d054c59..93131446e402 100644
@@ -649,6 +649,15 @@ config REGULATOR_MAX77650
 	  Semiconductor. This device has a SIMO with three independent
 	  power rails and an LDO.
 
+config REGULATOR_MAX77675
+	tristate "Maxim MAX77675 regulator driver"
+	depends on I2C
+	select REGMAP_I2C
+	help
+	  This driver controls the Maxim MAX77675 power regulator via I2C.
+	  It supports four programmable buck-boost outputs.
+	  Say Y here to enable the regulator driver
+
 config REGULATOR_MAX77857
 	tristate "ADI MAX77857/MAX77831 regulator support"
 	depends on I2C
drivers/regulator/Makefile +1 -0
index b3101376029d..cdd99669cd24 100644
@@ -78,6 +78,7 @@ obj-$(CONFIG_REGULATOR_MAX77503) += max77503-regulator.o
 obj-$(CONFIG_REGULATOR_MAX77541) += max77541-regulator.o
 obj-$(CONFIG_REGULATOR_MAX77620) += max77620-regulator.o
 obj-$(CONFIG_REGULATOR_MAX77650) += max77650-regulator.o
+obj-$(CONFIG_REGULATOR_MAX77675) += max77675-regulator.o
 obj-$(CONFIG_REGULATOR_MAX8649)	+= max8649.o
 obj-$(CONFIG_REGULATOR_MAX8660) += max8660.o
 obj-$(CONFIG_REGULATOR_MAX8893) += max8893.o
drivers/regulator/max77675-regulator.c new file +863 -0

863 lines not on this page · raw message

drivers/regulator/max77675-regulator.h new file +260 -0

260 lines not on this page · raw message

--
2.34.1

#4 lore raw

Re: [PATCH v4 2/2] regulator: max77675: Add MAX77675 regulator driver

On Tue, Oct 21, 2025 at 02:08:30PM +0900, Joan-Na-adi wrote:
+

drivers/regulator/max77675-regulator.c line 820

Quoted 7 lines
drivers/regulator/max77675-regulator.c new file +7 -0
+		config.of_node = of_get_child_by_name(regulators_np, desc->name);
+		if (!config.of_node) {
+			dev_warn(maxreg->dev, "No DT node for regulator %s\n", desc->name);
+			continue;
+		}
+
+		rdev = devm_regulator_register(&client->dev, desc, &config);

You need to respond to the comments, not ignore them. I asked to drop the reference here.

Best regards,
Krzysztof

maintainer
#5 lore raw
In reply to Joan-Na-adi
Quoted 2 lines · Joan-Na-adi

MAX77675 regulator driver and device tree bindings

Applied to

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next

Thanks!

[1/2] dt-bindings: regulator: Add MAX77675 regulator binding
(no commit info)
[2/2] regulator: max77675: Add MAX77675 regulator driver

      commit: 9e92c559d49d6fb903af17a31a469aac51b1766d

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

Thanks,
Mark