Add driver bind support for MAX34451
Devices with a type of MAX34451 will now trigger a bind.
Test:
Reboot the BMC with the patch applied and an appropriate board.json that
exposes the device with the correct address and bus with type=MAX34451.
e.g
"Exposes": [
{
"Address" : "0x14",
"Bus": 6,
"Name" : "example0",
"Name1" : "example1",
"Name2" : "example2",
"Name3" : "example3",
"Name4" : "example4",
"Name5" : "example5",
"Name6" : "example6",
"Name7" : "example7",
"Name8" : "example8",
"Name9" : "example9",
"Name10" : "example10",
"Name11" : "example11",
"Name12" : "example12",
"Name13" : "example13",
"Name14" : "example14",
"Name15" : "example15",
"Name16" : "example16",
"Labels": ["temp1", "temp2", "temp3", "temp4", "temp5",
"vout1", "vout13","vout16"],
"Type": "MAX34451"
},
Verify
cat /sys/bus/i2c/devices/i2c-6/6-0014/name
is
max34451.
Change-Id: Idd28ccf70dcf8ff9dcb92530a48f5d3e8a28c60e
Signed-off-by: Jason Ling <jasonling@google.com>
diff --git a/include/devices.hpp b/include/devices.hpp
index 0b22087..3250422 100644
--- a/include/devices.hpp
+++ b/include/devices.hpp
@@ -62,6 +62,9 @@
"/sys/bus/i2c/devices/i2c-$Bus/new_device")},
{"pmbus", ExportTemplate("pmbus $Address",
"/sys/bus/i2c/devices/i2c-$Bus/new_device")},
+ {"MAX34451",
+ ExportTemplate("max34451 $Address",
+ "/sys/bus/i2c/devices/i2c-$Bus/new_device")},
{"TMP75", ExportTemplate("tmp75 $Address",
"/sys/bus/i2c/devices/i2c-$Bus/new_device")},
{"TMP175", ExportTemplate("tmp175 $Address",