summaryrefslogtreecommitdiff
path: root/meta-facebook/meta-yosemite4/recipes-phosphor/gpio
AgeCommit message (Collapse)AuthorFilesLines
2024-04-23yosemite4: fix nic slot number from 0 to 3Potin Lai2-9/+9
Change the NIC slot number from 0 to 3 to meet with system definition. Change-Id: Ic7f10e8ca81c68ffe410ee2eae9e41b413986519 Signed-off-by: Potin Lai <potin.lai@quantatw.com>
2024-04-15meta-facebook: yosemite4: Rescan WF BIC and CXL EIDDelphine CC Chiu4-8/+57
The WF BIC and CXL might not ready when BMC setting up MCTP network. Add rescan mechanism to make sure it get the EIDs. Change-Id: I7d57f549a4b7c9441eadab08d4df0d1e4b46e4d1 Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
2024-03-13meta-facebook: yosemite4: Support NIC endpoint setupChris Wang5-8/+61
Setup the MCTP Endpoint for the NIC when inserted. Remove the MCTP Endpoint for the NIC when unplugged. Change-Id: I0c36cecda6509a64e4f26c70bf61590467571a7b Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
2024-02-06meta-facebook: remove excess override syntaxesPatrick Williams1-1/+1
When a bbappend file is already in a meta-machine layer, there is no reason for extra ":machine" override syntax usage. Remove them all. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I610e72633adb5bc36b63fe2b727e394c61070185
2024-01-20meta-facebook: reduce permissions on scriptsPatrick Williams1-2/+2
Scripts should be installed with 0755 permissions and not 0777, otherwise non-root users can potentially modify or delete them. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I41270a2bb3fb940d8ca49ed6230545d98efb2fea
2024-01-12meta-facebook: yosemite4: Support power policy after doing slot hot-plugDelphine CC Chiu3-0/+98
Add systemd service slot-hot-plug to recover host status by power policy Tested: plug out then in slot, check host status and journal Change-Id: I8168b32a40c34d787fbfdd6c6a0c944ace919514 Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
2024-01-05meta-facebook: yosemite4: support nic reseatDelphine CC Chiu1-0/+52
- Add config for phosphor-gpio-monitor to monitor nics' present. - If the NIC is plugged in, perform 12V cycle to the serving Hosts to let the Hosts reload new NIC's information. Change-Id: I178c5ca7d2bc6b25585e907bad7494c2bb90b961 Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
2023-11-29meta-facebook: yosemite4: rescan eeproms after chassis on/offDelphine CC Chiu4-16/+42
Add service for rescanning the eeproms after chassis on/off event detected by gpio-monitor. Tested: power on/off chassis and check dbus path on FruDevice. Change-Id: Ie85f1526bf14cd87f92f93e37839bc80cf9044a4 Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
2023-11-15yosemite4: Support gpio monitor for server board device probingDelphine CC Chiu4-0/+111
If 12v stby power state was off when bmc boot up, server board device driver will not be probed. so add gpio monitor support for server board device probing Tested: devices on server board were probed after 12v on or hot-pluged Change-Id: I9e2a6cee966dd1c64cbff53b368fa6686a8c3924 Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
2023-10-24yosemite4: phosphor-gpio-monitor: Support sled cycle from power buttonDelphine CC Chiu3-0/+40
Summary: Support sled cycle from power button through gpio monitor, which detecting interrupt for bmc gpiop1 Tested: Do sled cycle after pressing power button: pass root@bmc:~# /usr/bin/phosphor-multi-gpio-monitor --config /usr/share/phosphor-gpio-monitor/phosphor-multi-gpio-monitor.json ... <6> GPIO Line 121 monitoring started ... [press power button over 4 second] <6> GPIO Line 121 Asserted Change-Id: I9197bfabff8b7e1f7a7370c0ff37219440df45b7 Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>