sb: sitv3: Initial Bring-Up for SantaBarbara SITV3 Platform#2433
sb: sitv3: Initial Bring-Up for SantaBarbara SITV3 Platform#2433S-J-Tang wants to merge 4 commits into
Conversation
|
@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this in D77712112. (Because this pull request was imported automatically, there will not be any future comments.) |
|
@S-J-Tang has updated the pull request. You must reimport the pull request before landing. |
|
@S-J-Tang has updated the pull request. You must reimport the pull request before landing. |
Summary: - Initialize SantaBrabara SITV3 BIC - Add project code in meta-facebook/sb-rb/ - Add sensor polling function for vr and temp sensor - Add ads7830 to common code Test Plan: - Build code: Pass
Summary: - Add platform function to communicate with BMC through I3C - Modify overlay for I3C - Modify sitv3 gpio and i2c config Test Plan: - Build code: Pass - Communicate with BMC correctly
Summary: - Enable PLDM BIC and VR FW update function - Add function to request hotjoin while reboot - Version Commit for 2025.26.01 Test Plan: - Build code: Pass - The BIC FW update function works normally - Check BIC version: Pass
|
@S-J-Tang has updated the pull request. You must reimport the pull request before landing. |
| // for (uint8_t i = 0; i < ARRAY_SIZE(smbus_port); i++) { | ||
| // mctp_port *p = smbus_port + i; | ||
| // LOG_DBG("smbus port %d", i); | ||
| // LOG_DBG("bus = %x, addr = %x", p->conf.smbus_conf.bus, p->conf.smbus_conf.addr); |
There was a problem hiding this comment.
why is this commented out? can we delete it?
There was a problem hiding this comment.
This is due to a missed deletion. The implementation was already removed in the latest commit — thanks for checking!
| // { SENSOR_NUM_ON_DIE_1_TEMP_C, ON_DIE_1_TEMP_EMC1413_ADDR, EMC1413_REMOTE_TEMPERATRUE_1 }, | ||
| // { SENSOR_NUM_ON_DIE_2_TEMP_C, ON_DIE_2_TEMP_EMC1413_ADDR, EMC1413_REMOTE_TEMPERATRUE_2 }, | ||
| // { SENSOR_NUM_ON_DIE_3_TEMP_C, ON_DIE_3_TEMP_EMC1413_ADDR, EMC1413_REMOTE_TEMPERATRUE_1 }, |
| // uint8_t addr; | ||
| // uint16_t offset; |
| // if (argc != 1) { | ||
| // shell_warn(shell, "Help: test get_fw_version cpld"); | ||
| // return; | ||
| // } | ||
|
|
||
| // uint8_t data[4] = { 0 }; | ||
| // uint32_t version = 0; | ||
| // if (!plat_i2c_read(I2C_BUS5, AEGIS_CPLD_ADDR, 0x44, data, 4)) { | ||
| // LOG_ERR("Failed to read cpld version from cpld"); | ||
| // return; | ||
| // } | ||
| // version = (data[0] << 24) | (data[1] << 16) | (data[2] << 8) | data[3]; | ||
| // shell_print(shell, "The cpld version: %08x", version); |
There was a problem hiding this comment.
is this missing an actual implementation?
There was a problem hiding this comment.
This is due to a missed deletion. The implementation was already removed in the latest commit — thanks for checking!
|
@S-J-Tang has updated the pull request. You must reimport the pull request before landing. |
jamesatha
left a comment
There was a problem hiding this comment.
Looks like there is at least one more spot of commented out code
| #include "plat_sensor_polling_shell.h" | ||
| #include "plat_pldm_fw_version_shell.h" | ||
|
|
||
| /* |
There was a problem hiding this comment.
Why is this file necessary?
There was a problem hiding this comment.
This file is necessary for managing the platform's shell and for future testing use.
There was a problem hiding this comment.
I deleted this file in the latest commit. Thanks!
|
@S-J-Tang For future, please raise the diffs as individual commits so they are easier to review. Thanks |
| 0x0000, //uint16_t entity_type; //Need to check | ||
| 0x0002, //uint16_t entity_instance_number; | ||
| 0x0000, //uint16_t container_id; | ||
| 0x00, //uint8_t sensor_init; //Need to check |
There was a problem hiding this comment.
@S-J-Tang There are lots of "Need to check" comments in the files. What's the plan for these?
There was a problem hiding this comment.
I removed the "Need to check" comments in the latest commit. They were originally added as reminders, but they’re no longer needed at this stage. Thanks!
| #include "plat_isr.h" | ||
| #include "plat_i2c.h" | ||
|
|
||
| // #define AEGIS_CPLD_ADDR (0x4C >> 1) |
There was a problem hiding this comment.
@S-J-Tang Please delete any commented out code.
There was a problem hiding this comment.
Sorry about that. I’ve reviewed the code again and removed the unused code.
|
@S-J-Tang has updated the pull request. You must reimport the pull request before landing. |
| /*** numeric sensor format ***/ | ||
| 0x0000, // uint16_t PLDM_terminus_handle; | ||
| SENSOR_NUM_ADC_P12V_SCALED, // uint16_t sensor_id; | ||
| 0x0000, // uint16_t entity_type; // Need to check |
There was a problem hiding this comment.
@S-J-Tang I still see 73 occurrences of "Need to check" in you patch. Are these needed?
There was a problem hiding this comment.
Thanks for pointing it out. I’ve double-checked and fixed them.
Summary: - Remove unused code to improve maintainability. - Version Commit for 2025.26.01 Test Plan: - Build code: Pass - Check BIC version: Pass
|
@S-J-Tang has updated the pull request. You must reimport the pull request before landing. |
|
This pull request has been merged in cc3e152. |
This pull request introduces the initial code bring-up for the SantaBarbara SITV3 platform.
Included are 3 commits:
Initial SITV3 platform code
Commit:
a741badSummary:
meta-facebook/sb-rb/Test Plan:
Enable MCTP communication with BMC via I3C
Commit:
00d5dd9Summary:
Test Plan:
Enable PLDM firmware update support
Commit:
f85168bSummary:
Test Plan: