Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
DIOT Zynq Ultrascale-based System Board
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
9
Issues
9
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Projects
DIOT Zynq Ultrascale-based System Board
Commits
84dce5c1
Commit
84dce5c1
authored
Feb 25, 2022
by
Adam Wujek
Committed by
Grzegorz Daniluk
Mar 09, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw/petalinux: fix i2c addresses and busses for PSU, fantray and PB
Signed-off-by:
Adam Wujek
<
dev_public@wujek.eu
>
parent
15cc9958
Pipeline
#3307
passed with stage
in 32 minutes and 19 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
17 deletions
+17
-17
diot_util_gpio.c
...c/meta-user/recipes-apps/diot-util/files/diot_util_gpio.c
+3
-3
diot_util_sensors.c
...eta-user/recipes-apps/diot-util/files/diot_util_sensors.c
+9
-9
hartmann_psu.conf
.../meta-user/recipes-bsp/lm_sensors/hw_v2/hartmann_psu.conf
+3
-3
monimod_fantray.conf
...ta-user/recipes-bsp/lm_sensors/hw_v2/monimod_fantray.conf
+2
-2
No files found.
sw/petalinux/project-spec/meta-user/recipes-apps/diot-util/files/diot_util_gpio.c
View file @
84dce5c1
...
...
@@ -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
...
...
sw/petalinux/project-spec/meta-user/recipes-apps/diot-util/files/diot_util_sensors.c
View file @
84dce5c1
...
...
@@ -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
)
};
...
...
sw/petalinux/project-spec/meta-user/recipes-bsp/lm_sensors/hw_v2/hartmann_psu.conf
View file @
84dce5c1
# 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"
...
...
sw/petalinux/project-spec/meta-user/recipes-bsp/lm_sensors/hw_v2/monimod_fantray.conf
View file @
84dce5c1
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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment