Commit 84dce5c1 authored by Adam Wujek's avatar Adam Wujek Committed by Grzegorz Daniluk

sw/petalinux: fix i2c addresses and busses for PSU, fantray and PB

Signed-off-by: 's avatarAdam Wujek <dev_public@wujek.eu>
parent 15cc9958
Pipeline #3307 passed with stage
in 32 minutes and 19 seconds
......@@ -30,11 +30,11 @@ char * psu_addr[] = {
};
#elif SB_VER == 2
#define PB_EEPROM_PATH "/sys/bus/i2c/drivers/at24/9-0050/eeprom"
#define PB_EEPROM_PATH "/sys/bus/i2c/drivers/at24/3-0050/eeprom"
#define PB_EEPROM_I2C_ADDR "3-0050"
char * psu_addr[] = {
[1] = "8-0018",
[2] = "8-0019",
[1] = "9-0018",
[2] = "9-0019",
};
#else
......
......@@ -42,7 +42,7 @@
#define MAX6639_I2C "8"
#define LM32_I2C "5"
#define IRPS5401_I2C "4"
#define PSU_I2C "8"
#define PSU_I2C "9"
#else
#error SB_VER not defined
#endif
......@@ -136,14 +136,14 @@ static struct hw_sensor hw_sensors_vcp_list[] = {
/* List of Fan sensors */
static struct hw_sensor hw_sensors_monimod_list[] = {
DECLARE_DIOT_SENSOR("FANTRAY", "monimod-i2c-3-12", "FANTRAY 12V Voltage"),
DECLARE_DIOT_SENSOR("FANTRAY", "monimod-i2c-3-12", "FANTRAY 5V Voltage"),
DECLARE_DIOT_SENSOR("FANTRAY", "monimod-i2c-3-12", "FAN1 Current"),
DECLARE_DIOT_SENSOR("FANTRAY", "monimod-i2c-3-12", "FAN2 Current"),
DECLARE_DIOT_SENSOR("FANTRAY", "monimod-i2c-3-12", "FAN3 Current"),
DECLARE_DIOT_SENSOR("FANTRAY", "monimod-i2c-3-12", "FAN1 RPM Slots S+P1-4"),
DECLARE_DIOT_SENSOR("FANTRAY", "monimod-i2c-3-12", "FAN2 RPM Slots P5-8"),
DECLARE_DIOT_SENSOR("FANTRAY", "monimod-i2c-3-12", "FAN3 RPM Power Supp"),
DECLARE_DIOT_SENSOR("FANTRAY", "monimod-i2c-" PSU_I2C "-12", "FANTRAY 12V Voltage"),
DECLARE_DIOT_SENSOR("FANTRAY", "monimod-i2c-" PSU_I2C "-12", "FANTRAY 5V Voltage"),
DECLARE_DIOT_SENSOR("FANTRAY", "monimod-i2c-" PSU_I2C "-12", "FAN1 Current"),
DECLARE_DIOT_SENSOR("FANTRAY", "monimod-i2c-" PSU_I2C "-12", "FAN2 Current"),
DECLARE_DIOT_SENSOR("FANTRAY", "monimod-i2c-" PSU_I2C "-12", "FAN3 Current"),
DECLARE_DIOT_SENSOR("FANTRAY", "monimod-i2c-" PSU_I2C "-12", "FAN1 RPM Slots S+P1-4"),
DECLARE_DIOT_SENSOR("FANTRAY", "monimod-i2c-" PSU_I2C "-12", "FAN2 RPM Slots P5-8"),
DECLARE_DIOT_SENSOR("FANTRAY", "monimod-i2c-" PSU_I2C "-12", "FAN3 RPM Power Supp"),
DECLARE_DIOT_SENSOR(NULL, NULL, NULL)
};
......
# DIOT HW v2
bus "i2c-8" "xiic-i2c"
bus "i2c-9" "i2c-1-mux (chan_id 5)"
chip "D57500520-i2c-8-18"
chip "D57500520-i2c-9-18"
label temp1 "PSU1 Temp1"
label temp2 "PSU1 Temp2"
label in1 "PSU1 12V Voltage"
label curr1 "PSU1 12V Current"
label power1 "PSU1 12V Power"
chip "D57500520-i2c-8-19"
chip "D57500520-i2c-9-19"
label temp1 "PSU2 Temp1"
label temp2 "PSU2 Temp2"
label in1 "PSU2 12V Voltage"
......
bus "i2c-3" "xiic-i2c"
bus "i2c-9" "i2c-1-mux (chan_id 5)"
chip "monimod-i2c-3-12"
chip "monimod-i2c-9-12"
label temp1 "FANTRAY Temp"
label in1 "FANTRAY 12V Voltage"
label in2 "FANTRAY 5V Voltage"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment