Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
93 commits
Select commit Hold shift + click to select a range
5874f61
fix UBC delta address setting
Oct 13, 2025
f875ad4
sb: rb: Version commit for sb-rb-20254201
Oct 13, 2025
5442f92
add 3v3 VR update
Oct 14, 2025
0df6d24
modified shell_throttle_switch command hint
Oct 14, 2025
ca2f315
filtered 3v3 vr update when board version is not EVB
Oct 15, 2025
42fcdb9
add cpld eeprom read value functions
Oct 15, 2025
7f4fd93
update 3v3 version get
Oct 15, 2025
eaac190
add new pwr step on
Oct 20, 2025
e1cf8b7
add get cached sensor reading value by sensor number
Oct 20, 2025
9f3188a
add smbus alert cpld error log and black box, fix power fault error d…
Oct 20, 2025
c074d05
add smbus alert gpio isr trigger
Oct 20, 2025
01be9da
sb: rb: add some shell commands and fix shell command issue
Oct 22, 2025
416b274
fix cpp check error
Oct 23, 2025
9d303d1
sb: rb: Version commit for sb-rb-20254301
Oct 23, 2025
c78842c
add gpio isr function immediate function
Oct 29, 2025
8bae9ad
delete debug msg
Oct 30, 2025
cfbd11d
add shell prompt string
Oct 30, 2025
a0fd91f
sb: rb: update sensor threshold and some new funcitons
Nov 6, 2025
2c87ec3
set i2c smbus speed 400K(BMC 6a, 100K)
Nov 6, 2025
b3b851e
add U200051_IO init and reading data base on dc on/off
Nov 7, 2025
d3c125b
sb: rb: Version commit for sb-rb-20254501
Nov 7, 2025
0e72256
sb: rb: update sensor threshold and some new funcitons
Nov 3, 2025
5c181c7
add fan control setting to cool down ASIC(EVB only)
Nov 3, 2025
6eb36e2
add new i2c target 0x88, 0x89 functions
Nov 6, 2025
bdbf1ae
update SENSOR_NUM_ASIC_P0V4_VDDQL_HBM0246_VOLT_V threshold
Nov 6, 2025
f387d6f
tmp
Nov 10, 2025
58c6e52
add function
Nov 12, 2025
e16c575
sb: sb-rb: add soc_pwron_reset bit control support
S-J-Tang Nov 20, 2025
49cccfb
sb: sb-rb: add PCIe PERST control shell command
S-J-Tang Nov 21, 2025
d0550f5
sb: sb-rb: add CPLD power capping control shell command
S-J-Tang Nov 21, 2025
1233468
sb: rb: add shell commands for delay_asic_rst and delay_module_pg
Nov 21, 2025
f6e351b
sb: sb-rb: update VQPS shell command with unified control & status
S-J-Tang Nov 21, 2025
ca23a44
tmp
HungYi-Li Nov 21, 2025
02c3a5a
tmp
Nov 21, 2025
4d008d9
fix step pwr
Nov 21, 2025
0da72a4
merge all branch
Nov 21, 2025
49307b3
version commit
Nov 21, 2025
0cf355d
fix error
Nov 21, 2025
a08ea59
fix bug
Nov 21, 2025
6b36a29
sb: rb: Version commit for sb-rb-20254701
Nov 21, 2025
d854f1b
sb: rb: spimux: update command name and add reset control in enable flow
S-J-Tang Nov 26, 2025
3c60f82
sb: rb: modify tmp431 and tmp75 drivers to support negative temperature
Nov 26, 2025
6c6880b
sb: rb: add tca6424a for bootstrap
HungYi-Li Nov 27, 2025
98a754c
reduce malloc size and fix issue
HungYi-Li Nov 27, 2025
69e705f
sb: rb: add shell command bootstrap_MFIO16 and strap_control_manual
Nov 27, 2025
91c99a3
sb: rb: pcie_perst cmd: simplify logic and reduce memory use
S-J-Tang Nov 27, 2025
a723994
sb: rb: add power-related functions
Nov 25, 2025
e254ed3
add steps on pwrgd
Nov 26, 2025
3313e9e
modify soc_pcie_rerst time base on 10ms
Nov 26, 2025
7d5cc95
steps on 3v3 clk first when clk is on
Nov 26, 2025
69f0d4e
sb: rb: add power-related functions & add iris smbus alert
Nov 27, 2025
f1eb8be
set PLAT_MCTP_MSG_MAX_SIZE to 64
Nov 27, 2025
55eeee0
sb: rb: add get all sensor function for shell command "temp_status"
Nov 28, 2025
8627638
fix pwrgd name, rm aegis name, fix iris smbus address and reduce mall…
Nov 28, 2025
16d9ae6
sb: rb: Version commit for sb-rb-20254801
Nov 28, 2025
bfc3be5
sb: rb: fix VQPS get all output and simplify shell
S-J-Tang Dec 1, 2025
4827a26
sb: rb: add iris temp sensor black box event and checking thread
Dec 2, 2025
ef3cb8a
modified power steps and add 4V2 pwrgd
Dec 2, 2025
12bf7ac
sb:rb: modify soc_pcie_perst command function
Dec 3, 2025
6f59948
sb:rb: vqps: add autocomplete for get/set commands
S-J-Tang Dec 3, 2025
27f2483
sb:rb: power_capping: enable autocomplete and simplify shell logic
S-J-Tang Dec 3, 2025
3730320
sb: rb: modified adc function and update temperature threshold
Dec 3, 2025
c34ebe3
sb: rb: modify tca6424a only in EVB
HungYi-Li Dec 3, 2025
546276b
sb: rb: clock_status: add autocomplete, all option, and CLK_GEN_100M_U86
S-J-Tang Dec 3, 2025
1270d24
sb: rb: modify get_fw_version asic to get version from asic
Dec 3, 2025
cc03d1a
sb: rb: modify bootstrap default
HungYi-Li Dec 4, 2025
1be573a
sb: rb: add error log in get_fw_version_asic for debug
Dec 3, 2025
2b05330
sb: rb: modify bootstrap default
HungYi-Li Dec 4, 2025
c830b0b
sb: rb: add shell command "bmc_sensor get" to get P52V_ASIC_SENSE_PWR
Dec 4, 2025
64f81cd
sb: rb: fix tca6424a mapping
HungYi-Li Dec 4, 2025
0976f6c
sb: rb: vqps: refine dynamic cmd logic
S-J-Tang Dec 4, 2025
8e944aa
sb: rb: power_capping_control: add VR_HOT IO exp support on EVB
S-J-Tang Dec 4, 2025
0986b94
sb: rb: clock_status: refactor status read and add success/fail flag
S-J-Tang Dec 4, 2025
8bb2ac0
sb: rb: reorder power good sequence to match power-on flow
Dec 4, 2025
6228fe2
sb: rb: ioexp: add pca6416a_init to set HAMSA_MFIO19 default low
S-J-Tang Dec 4, 2025
148be0c
sb: rb: thermal: update VR_HOT handling for temperature alert event
S-J-Tang Dec 4, 2025
fc3a9f8
sb: rb: thermal: move board_id init out of loop
S-J-Tang Dec 4, 2025
a339938
sb: rb: fix delay pcie reset perm setting
YoungLi123 Dec 4, 2025
d7ae30d
sb: rb: ioexp: move VR_HOT_EVB default init to tca6424a_init
S-J-Tang Dec 5, 2025
f700e49
sb: rb: fix power good sequence
Dec 5, 2025
2b37dbc
sb: rb: add "get" for shell cmd "strap_control_manual"
Dec 5, 2025
07b4f0e
sb: rb: fix strap pin mapping
HungYi-Li Dec 5, 2025
00837d7
sb: rb: add ioexp and add 3v3osfp(EVB only)
Dec 5, 2025
b1d4dce
sb: rb: vqps: add P1V8_OWL_EW_VQPS_EN support for EVB revs
S-J-Tang Dec 5, 2025
2305378
sb: rb: add TRAY_INFO_REG response for slot and tray location
S-J-Tang Dec 5, 2025
3dd7b1b
sb: rb: fix strap table write tca6424a issue
HungYi-Li Dec 5, 2025
ee74227
sb: rb: add more VR power reading in i2c target
Dec 5, 2025
f2d4082
sb: rb: add U200070_IO support and set default IO directions/values
S-J-Tang Dec 5, 2025
8e5a12a
sb: rb: update VQPS shell cmd for U200070 and EVT-specific bit mapping
S-J-Tang Dec 5, 2025
89ee68a
rb: add shell vr version get will check p3v3 and p5v pwrgd before get…
Dec 5, 2025
397d9b9
fix adc shell cmd and add clear clock
Dec 5, 2025
0966e88
sb: rb: Version commit for sb-rb-20254901
Dec 5, 2025
d0e6a66
fix clang-format
Jan 16, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion common/dev/include/tmp431.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ enum TMP431_REIGSTER_MAP {
};

bool tmp432_get_temp_threshold(sensor_cfg *cfg, uint8_t temp_threshold_index,
uint32_t *millidegree_celsius);
int32_t *millidegree_celsius);
bool tmp432_set_temp_threshold(sensor_cfg *cfg, uint8_t temp_threshold_index,
uint32_t *millidegree_celsius);
bool tmp432_set_thermal_mode(sensor_cfg *cfg);
Expand Down
2 changes: 1 addition & 1 deletion common/dev/include/tmp75.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ enum TMP75_REIGSTER_MAP {
};

bool tmp75_get_temp_threshold(sensor_cfg *cfg, uint8_t temp_threshold_index,
uint32_t *millidegree_celsius);
int32_t *millidegree_celsius);
bool tmp75_set_temp_threshold(sensor_cfg *cfg, uint8_t temp_threshold_index,
uint32_t *millidegree_celsius);
uint8_t tmp75_init(sensor_cfg *cfg);
Expand Down
16 changes: 8 additions & 8 deletions common/dev/tmp431.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ temp_mapping_register tmp432_temp_register_map[] = {
};

bool get_tmp432_two_byte_limit(sensor_cfg *cfg, uint8_t temp_threshold_index,
uint32_t *millidegree_celsius)
int32_t *millidegree_celsius)
{
CHECK_NULL_ARG_WITH_RETURN(cfg, false);
CHECK_NULL_ARG_WITH_RETURN(millidegree_celsius, false);
Expand All @@ -84,8 +84,8 @@ bool get_tmp432_two_byte_limit(sensor_cfg *cfg, uint8_t temp_threshold_index,
return false;
}

uint32_t limit_high_byte_val = (uint32_t)msg.data[0] * 1000;
uint32_t limit_low_byte_val = ((msg.data[1] >> 4) * 625) / 10;
int32_t limit_high_byte_val = (int8_t)msg.data[0] * 1000;
int32_t limit_low_byte_val = (((int8_t)msg.data[1] >> 4) * 625) / 10;
*millidegree_celsius = limit_high_byte_val + limit_low_byte_val;

return true;
Expand Down Expand Up @@ -119,7 +119,7 @@ bool get_tmp432_one_byte_limit(sensor_cfg *cfg, uint8_t temp_threshold_index,
}

bool tmp432_get_temp_threshold(sensor_cfg *cfg, uint8_t temp_threshold_index,
uint32_t *millidegree_celsius)
int32_t *millidegree_celsius)
{
CHECK_NULL_ARG_WITH_RETURN(cfg, false);
CHECK_NULL_ARG_WITH_RETURN(millidegree_celsius, false);
Expand Down Expand Up @@ -165,7 +165,7 @@ bool tmp432_get_temp_threshold(sensor_cfg *cfg, uint8_t temp_threshold_index,
}

bool set_tmp432_two_byte_limit(sensor_cfg *cfg, uint8_t temp_threshold_index,
uint32_t *millidegree_celsius)
int32_t *millidegree_celsius)
{
CHECK_NULL_ARG_WITH_RETURN(cfg, false);
CHECK_NULL_ARG_WITH_RETURN(millidegree_celsius, false);
Expand All @@ -177,10 +177,10 @@ bool set_tmp432_two_byte_limit(sensor_cfg *cfg, uint8_t temp_threshold_index,
msg.target_addr = cfg->target_addr;
msg.tx_len = 3;
msg.data[0] = register_high;
msg.data[1] = (uint8_t)(*millidegree_celsius / 1000);
msg.data[1] = (int8_t)(*millidegree_celsius / 1000);

uint32_t remainder = *millidegree_celsius % 1000;
uint8_t low_byte_val = (uint8_t)((remainder * 16) / 1000);
int32_t remainder = *millidegree_celsius % 1000;
int8_t low_byte_val = (int8_t)((remainder * 16) / 1000);
msg.data[2] = (low_byte_val << 4);

if (i2c_master_write(&msg, retry)) {
Expand Down
20 changes: 10 additions & 10 deletions common/dev/tmp75.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
LOG_MODULE_REGISTER(tmp75);

bool get_tmp75_two_byte_limit(sensor_cfg *cfg, uint8_t temp_threshold_index,
uint32_t *millidegree_celsius)
int32_t *millidegree_celsius)
{
CHECK_NULL_ARG_WITH_RETURN(cfg, false);
CHECK_NULL_ARG_WITH_RETURN(millidegree_celsius, false);
Expand All @@ -43,16 +43,16 @@ bool get_tmp75_two_byte_limit(sensor_cfg *cfg, uint8_t temp_threshold_index,
return false;
}

float limit_byte_1_val = (float)msg.data[0] * 1000.0;
float limit_byte_2_val = (float)(msg.data[1] >> 4) * 0.0625;
int32_t limit_byte_1_val = (int8_t)msg.data[0] * 1000.0;
int32_t limit_byte_2_val = ((int8_t)msg.data[1] >> 4) * 62.5;

*millidegree_celsius = (uint32_t)limit_byte_1_val + limit_byte_2_val;
*millidegree_celsius = limit_byte_1_val + limit_byte_2_val;

return true;
}

bool tmp75_get_temp_threshold(sensor_cfg *cfg, uint8_t temp_threshold_index,
uint32_t *millidegree_celsius)
int32_t *millidegree_celsius)
{
CHECK_NULL_ARG_WITH_RETURN(cfg, false);
CHECK_NULL_ARG_WITH_RETURN(millidegree_celsius, false);
Expand All @@ -76,7 +76,7 @@ bool tmp75_get_temp_threshold(sensor_cfg *cfg, uint8_t temp_threshold_index,
}

bool set_tmp75_two_byte_limit(sensor_cfg *cfg, uint8_t temp_threshold_index,
uint32_t *millidegree_celsius)
int32_t *millidegree_celsius)
{
CHECK_NULL_ARG_WITH_RETURN(cfg, false);
CHECK_NULL_ARG_WITH_RETURN(millidegree_celsius, false);
Expand All @@ -85,12 +85,12 @@ bool set_tmp75_two_byte_limit(sensor_cfg *cfg, uint8_t temp_threshold_index,
I2C_MSG msg = { 0 };
msg.bus = cfg->port;
msg.target_addr = cfg->target_addr;
msg.tx_len = 2;
msg.tx_len = 3;
msg.data[0] = ((temp_threshold_index == LOCAL_HIGH_LIMIT) ? TMP75_LOCAL_HIGH_LIMIT_REG :
TMP75_LOCAL_LOW_LIMIT_REG);
msg.data[1] = (uint8_t)(*millidegree_celsius / 1000.0);
uint32_t remainder = *millidegree_celsius % 1000;
uint8_t low_byte_val = (uint8_t)((remainder * 16) / 1000);
msg.data[1] = (int8_t)(*millidegree_celsius / 1000.0);
int32_t remainder = *millidegree_celsius % 1000;
int8_t low_byte_val = (int8_t)((remainder * 16) / 1000);
msg.data[2] = (low_byte_val << 4);

if (i2c_master_write(&msg, retry)) {
Expand Down
Loading
Loading