Commit 8debd851 authored by Dzmitry Sankouski's avatar Dzmitry Sankouski Committed by Guenter Roeck
Browse files

hwmon: (max77705) Add initial support



Maxim MAX77705 is a Companion Power Management and Type-C interface IC.
It includes charger and fuel gauge blocks, and is capable of measuring
charger input current, system bus volatage and current, and bypass
voltage.

Add support for mentioned measurements.

Signed-off-by: default avatarDzmitry Sankouski <dsankouski@gmail.com>
Link: https://lore.kernel.org/r/20250423-initial-support-for-max77705-sensors-v6-1-ff379e1b06c5@gmail.com


Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 3e749ce1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -163,6 +163,7 @@ Hardware Monitoring Kernel Drivers
   max6639
   max6650
   max6697
   max77705
   max8688
   mc13783-adc
   mc34vr500
+39 −0
Original line number Diff line number Diff line
.. SPDX-License-Identifier: GPL-2.0

Kernel driver max77705
======================

Supported chips:

  * Maxim Integrated MAX77705

    Prefix: 'max77705'

    Addresses scanned: none

    Datasheet: Not available

Authors:
      - Dzmitry Sankouski <dsankouski@gmail.com>

Description
-----------

The MAX77705 PMIC provides current and voltage measurements besides fuelgauge:
- chip input current
- system bus current and voltage
- VBYP voltage

Sysfs Attributes
----------------

================= ========================================
in1_label         "vbyp"
in1_input         Measured chip vbyp voltage
in2_label         "vsys"
in2_input         Measured chip system bus voltage
curr1_label       "iin"
curr1_input       Measured chip input current.
curr2_label       "isys"
curr2_input       Measured chip system bus current.
================= ========================================
+7 −0
Original line number Diff line number Diff line
@@ -18433,6 +18433,13 @@ S: Maintained
F:	Documentation/hwmon/pc87427.rst
F:	drivers/hwmon/pc87427.c
MAX77705 HARDWARE MONITORING DRIVER
M:	Dzmitry Sankouski <dsankouski@gmail.com>
L:	linux-hwmon@vger.kernel.org
S:	Maintained
F:	Documentation/hwmon/max77705.rst
F:	drivers/hwmon/max77705-hwmon.c
PCA9532 LED DRIVER
M:	Riku Voipio <riku.voipio@iki.fi>
S:	Maintained
+9 −0
Original line number Diff line number Diff line
@@ -1318,6 +1318,15 @@ config SENSORS_MAX31790
	  This driver can also be built as a module. If so, the module
	  will be called max31790.

config SENSORS_MAX77705
	tristate "MAX77705 current and voltage sensor"
	depends on MFD_MAX77705
	help
	  If you say yes here you get support for MAX77705 sensors connected with I2C.

	  This driver can also be built as a module. If so, the module
	  will be called max77705-hwmon.

config SENSORS_MC34VR500
	tristate "NXP MC34VR500 hardware monitoring driver"
	depends on I2C
+1 −0
Original line number Diff line number Diff line
@@ -162,6 +162,7 @@ obj-$(CONFIG_SENSORS_MAX6650) += max6650.o
obj-$(CONFIG_SENSORS_MAX6697)	+= max6697.o
obj-$(CONFIG_SENSORS_MAX31790)	+= max31790.o
obj-$(CONFIG_MAX31827) += max31827.o
obj-$(CONFIG_SENSORS_MAX77705) += max77705-hwmon.o
obj-$(CONFIG_SENSORS_MC13783_ADC)+= mc13783-adc.o
obj-$(CONFIG_SENSORS_MC34VR500)	+= mc34vr500.o
obj-$(CONFIG_SENSORS_MCP3021)	+= mcp3021.o
Loading