Skip to contentSkip to conversation

hw/sensor: added MAX16600 device model

PATCH Superseded Nabih Estefan 2 participants 2 messages Sep 2, 2025 Arm/Amlogic Meson SoC support

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hw/sensor: added MAX16600 device model

From: Shengtan Mao <[email protected]>

Change-Id I5947e071fc27fd0d01c2d365545a81fda8131d32
---
 hw/arm/Kconfig               |   1 +
 hw/sensor/Kconfig            |   4 +
 hw/sensor/max16600.c         | 196 ++++++++++++++++++++++++++++
 hw/sensor/meson.build        |   1 +
 include/hw/sensor/max16600.h |  45 +++++++
 tests/qtest/max16600-test.c  | 240 +++++++++++++++++++++++++++++++++++
 tests/qtest/meson.build      |   1 +
 7 files changed, 488 insertions(+)
 create mode 100644 hw/sensor/max16600.c
 create mode 100644 include/hw/sensor/max16600.h
 create mode 100644 tests/qtest/max16600-test.c
hw/arm/Kconfig +1 -0
index 2aa4b5d778..4ab0a93ba6 100644
@@ -480,6 +480,7 @@ config NPCM7XX
     select AT24C  # EEPROM
     select MAX34451
     select ISL_PMBUS_VR
+    select MAX_16600
     select PL310  # cache controller
     select PMBUS
     select SERIAL_MM
hw/sensor/Kconfig +4 -0
index bc6331b4ab..ef7b3262a8 100644
@@ -43,3 +43,7 @@ config ISL_PMBUS_VR
 config MAX31785
     bool
     depends on PMBUS
+
+config MAX_16600
+    bool
+    depends on I2C
hw/sensor/max16600.c new file +196 -0

196 lines not on this page · raw message

hw/sensor/meson.build +1 -0
index 420fdc3359..85c2c73c99 100644
@@ -8,3 +8,4 @@ system_ss.add(when: 'CONFIG_MAX34451', if_true: files('max34451.c'))
 system_ss.add(when: 'CONFIG_LSM303DLHC_MAG', if_true: files('lsm303dlhc_mag.c'))
 system_ss.add(when: 'CONFIG_ISL_PMBUS_VR', if_true: files('isl_pmbus_vr.c'))
 system_ss.add(when: 'CONFIG_MAX31785', if_true: files('max31785.c'))
+system_ss.add(when: 'CONFIG_MAX_16600', if_true: files('max16600.c'))
include/hw/sensor/max16600.h new file +45 -0

45 lines not on this page · raw message

tests/qtest/max16600-test.c new file +240 -0

240 lines not on this page · raw message

tests/qtest/meson.build +1 -0
index 669d07c06b..459cf41985 100644
@@ -295,6 +295,7 @@ qos_test_ss.add(
   'es1370-test.c',
   'lsm303dlhc-mag-test.c',
   'isl_pmbus_vr-test.c',
+  'max16600-test.c',
   'max34451-test.c',
   'megasas-test.c',
   'ne2000-test.c',
Signature · 1 line
2.51.0.355.g5224444f11-goog