Skip to content

Drivers for MAX34407 and MAX34417 #50

Open

Description

@qzed

The Surface devices seem to use MAX34407 (up to Pro 6) and MAX34417 (later) to measure power consumption for various components / part of the system (see e.g. https://github.com/linux-surface/acpidumps/blob/master/surface_book_2/dsdt.dsl#L18219-L18226).

Datasheets:

The missing drivers don't impact system performance, so this is a low priority issue.

Activity

  1. kasperk81 commented on Jul 25, 2021

    @kasperk81

    Related upstream proposed patch: https://lists.sr.ht/~postmarketos/upstreaming/patches/10202 (regulator: max77826: Add MAX77826 support). There could be some commonalities to MAX34407 and MAX34417?

  2. qzed commented on Jul 25, 2021

    @qzed
    MemberAuthor

    Maybe, that thing looks like a full-blown regulator, i.e. for controlling voltages, whereas (I think) the ones used on the Surface devices are for measuring only.

  3. kasperk81 commented on Jul 25, 2021

    @kasperk81

    Ah, I see. The regulator patch is upstream, maybe closer one is https://github.com/torvalds/linux/blob/master/drivers/hwmon/pmbus/max34440.c (pressed T in GitHub file list aka "go to file" and typed drivers/max to get these results).

  4. jglathe commented on Sep 12, 2023

    @jglathe
    Contributor

    Hmm. My search regarding MAX34417 revealed there appears to be a driver from Maxim https://github.com/MaximIntegratedAI/powermonitor/blob/main/max34417.c Also https://github.com/DanielJeongADI/LKD has one, and IMO a few more (Surface Duo has references to it, too). Searched in GitHub for MAX34417. Integration into max34440.c doesn't seem to fit to well.
    I have 3x MAX34417 in the Windows Dev Kit 2023, and I'd like to use hem to find ot which regulators are what power domain, to make the dts better, and get a handle on power management.

  5. andy-shev commented on Apr 21, 2025

    @andy-shev
    Contributor

    Most likely this driver(s) should be located at drivers/iio/adc, as the max34408/9 are. They are current monitors, this one is voltage monitor. Seems like semantically it's related.

    P.S. Wondering if you can assign this (for the max34407) to me. It's the only device which seem has no driver in upstream as of v6.14 is out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions