Skip to content

Commit

Permalink
[platform/questone2bd] Support CPU and RAM voltag monitor via ADC (#197)
Browse files Browse the repository at this point in the history
* [platform/questone2bd] FPGA_I2C_MASTER_6 now use i2c driver.

 * To support max11617 driver, which requires the adapter to support plain I2C functionality.

* [platform/questone2bd] Init max11617 IIO device when system start.
  • Loading branch information
pphuchar committed Jul 10, 2020
1 parent bbbf080 commit dabe204
Show file tree
Hide file tree
Showing 5 changed files with 995 additions and 65 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ start)
modprobe pmbus_core
modprobe i2c-imc allow_unsafe_access=1
modprobe baseboard_cpld
modprobe i2c-ocores-polling
modprobe switchboard_fpga allow_unsafe_i2c_access=1
modprobe mc24lc64t
modprobe i2c_dev_sysfs
Expand Down Expand Up @@ -51,6 +52,9 @@ start)
echo lm75b 0x48 > /sys/bus/i2c/devices/i2c-9/new_device
echo lm75b 0x4d > /sys/bus/i2c/devices/i2c-67/new_device

# Populate voltage sensors reading
echo max11617 0x35 > /sys/bus/i2c/devices/i2c-71/new_device

# Populate EEPROM
## FAN
echo 24lc64t 0x50 > /sys/bus/i2c/devices/i2c-2/new_device
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
obj-m := mc24lc64t.o baseboard_cpld.o switchboard_fpga.o i2c-imc.o
obj-m := mc24lc64t.o baseboard_cpld.o switchboard_fpga.o i2c-imc.o i2c-ocores-polling.o
obj-m += i2c_dev_sysfs.o syscpld.o fancpld.o dps1100.o
Loading

0 comments on commit dabe204

Please sign in to comment.