Skip to contentSkip to conversation

hwmon: (pmbus) Add support for Infineon XDP710

PATCH New Peter Yin 1 participant 2 messages May 6, 2024

Subsystems (3)
lore
Share & tools
lore

Peter Yin

author
#0 lore raw

PATCH 1/2 hwmon: (pmbus) Add support for Infineon XDP710

LORE Link: https://lore.kernel.org/all/[email protected]/
Add support for Infineon XDP710.This is a Hot-Swap Controller.

---
 Documentation/hwmon/index.rst  |   1 +
 Documentation/hwmon/xdp710.rst |  83 +++++++++++++++++++++
 drivers/hwmon/pmbus/Kconfig    |   9 +++
 drivers/hwmon/pmbus/Makefile   |   1 +
 drivers/hwmon/pmbus/xdp710.c   | 132 +++++++++++++++++++++++++++++++++
 5 files changed, 226 insertions(+)
 create mode 100644 Documentation/hwmon/xdp710.rst
 create mode 100644 drivers/hwmon/pmbus/xdp710.c
Documentation/hwmon/index.rst +1 -0
index 1ca7a4fe1f8f..b2546925fb15 100644
@@ -250,6 +250,7 @@ Hardware Monitoring Kernel Drivers
    wm831x
    wm8350
    xgene-hwmon
+   xdp710
    xdpe12284
    xdpe152c4
    zl6100
Documentation/hwmon/xdp710.rst new file +83 -0

83 lines not on this page · raw message

drivers/hwmon/pmbus/Kconfig +9 -0
index 557ae0c414b0..c775128c2ea7 100644
@@ -511,6 +511,15 @@ config SENSORS_UCD9200
 	  This driver can also be built as a module. If so, the module will
 	  be called ucd9200.
 
+config SENSORS_XDP710
+	tristate "Infineon XDP710 family"
+	help
+	  If you say yes here you get hardware monitoring support for Infineon
+	  XDP710.
+
+	  This driver can also be built as a module. If so, the module will
+	  be called xdp710.
+
 config SENSORS_XDPE152
 	tristate "Infineon XDPE152 family"
 	help
drivers/hwmon/pmbus/Makefile +1 -0
index f14ecf03ad77..4fe630793721 100644
@@ -51,6 +51,7 @@ obj-$(CONFIG_SENSORS_TPS53679)	+= tps53679.o
 obj-$(CONFIG_SENSORS_TPS546D24)	+= tps546d24.o
 obj-$(CONFIG_SENSORS_UCD9000)	+= ucd9000.o
 obj-$(CONFIG_SENSORS_UCD9200)	+= ucd9200.o
+obj-$(CONFIG_SENSORS_XDP710)	+= xdp710.o
 obj-$(CONFIG_SENSORS_XDPE122)	+= xdpe12284.o
 obj-$(CONFIG_SENSORS_XDPE152)	+= xdpe152c4.o
 obj-$(CONFIG_SENSORS_ZL6100)	+= zl6100.o
drivers/hwmon/pmbus/xdp710.c new file +132 -0

132 lines not on this page · raw message

Signature · 1 line
2.25.1
author
#1 lore raw

PATCH 2/2 dt-bindings: hwmon: Add infineon xdp710 driver bindings

LORE Link: https://lore.kernel.org/all/[email protected]/
Add a device tree bindings for xdp710 device

---
 Documentation/devicetree/bindings/trivial-devices.yaml | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/trivial-devices.yaml +2 -0
index e07be7bf8395..f982de168c4c 100644
@@ -134,6 +134,8 @@ properties:
           - infineon,irps5401
             # Infineon TLV493D-A1B6 I2C 3D Magnetic Sensor
           - infineon,tlv493d-a1b6
+            # Infineon Hot-swap controller xdp710
+          - infineon,xdp710
             # Infineon Multi-phase Digital VR Controller xdpe11280
           - infineon,xdpe11280
             # Infineon Multi-phase Digital VR Controller xdpe12254
Signature · 1 line
2.25.1