Hi & Happy Holiday shutdown
On the Zynq UltraScale+ MPSoC ZCU102 Evaluation Kit from AMD/Xilinx - there are multiple MAX15301 and MAX15303 devices. (whjich is great - it looks like they work well, and is great advertising for ADI).
There is a Linux hwmon driver for the MAX15301, there is not for the MAX15303.
My question is if (from a PMBus standpoint) - are the two devices similar enough to use the same driver for both? From a top level look - it looks like it to me, but I though I would ask a product expert.
I added it to the list of device IDs in the MAX15301 driver:
diff --git a/drivers/hwmon/pmbus/max15301.c b/drivers/hwmon/pmbus/max15301.c
index 0b6f88428ea8..112a67cc0271 100644
--- a/drivers/hwmon/pmbus/max15301.c
+++ b/drivers/hwmon/pmbus/max15301.c
@@ -25,6 +25,7 @@
static const struct i2c_device_id max15301_id[] = {
{"bmr461", 0},
{"max15301", 0},
+ {"max15303", 0},
{}
};
MODULE_DEVICE_TABLE(i2c, max15301_id);
and it seems to work/be recognized...
root@analog:/sys/class/hwmon# cat */name | grep max15303 max15303 max15303 max15303 max15303 max15303 max15303 max15303 max15303
but I was wondering if there were any other subtle pitfalls I might not have noticed.
