Skip to content

fby3.5: rf: Support GPIO interrupt#312

Closed
DelphineChiu wants to merge 1 commit into
facebook:mainfrom
Wiwynn:Sara/fby3.5-rf-Support_gpio_interrupt
Closed

fby3.5: rf: Support GPIO interrupt#312
DelphineChiu wants to merge 1 commit into
facebook:mainfrom
Wiwynn:Sara/fby3.5-rf-Support_gpio_interrupt

Conversation

@DelphineChiu

Copy link
Copy Markdown

Summary:

  • Support monitor system DC state.
  • Support monitor MB reset.

Known issue:

  • HW: ASIC voltage is 1.8V, but it's too low to let GPIO high.

Test plan:

  1. Check system DC flag will change.
  • MB power on
    [BMC console]
    root@bmc-oob:# power-util slot2 on
    Powering fru 2 to ON state...
    root@bmc-oob:
    # power-util slot2 status
    Power status for fru 2 : ON

[RF BIC console]
uart:~$ [set_MB_DC_status] gpio number(32) status(1)
[control_power_on_sequence] power on success
[set_DC_status] gpio number(33) status(1)

  • MB power off
    [BMC console]
    root@bmc-oob:# power-util slot2 off
    Powering fru 2 to OFF state...
    root@bmc-oob:
    # power-util slot2 status
    Power status for fru 2 : OFF

[RF BIC console]
uart:~$ [set_MB_DC_status] gpio number(32) status(0)
[set_DC_status] gpio number(33) status(0)
[control_power_off_sequence] power off success

  1. Check ASIC_PERST0_N will change when host reset.
    [BMC console]
    root@bmc-oob:~# power-util slot2 reset

[RF BIC console]
uart:$ platform gpio get 1
[1 ] ASIC_PERST0_N : OD | output(I) | 0(0)
uart:
$ platform gpio get 1
[1 ] ASIC_PERST0_N : OD | output(O) | 0(0)
uart:~$ platform gpio get 1
[1 ] ASIC_PERST0_N : OD | output(I) | 0(0)

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 31, 2022
@facebook-github-bot

Copy link
Copy Markdown
Contributor

@GoldenBug has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Summary:
- Support monitor system DC state.
- Support monitor MB reset.

Known issue:
- HW: ASIC voltage is 1.8V, but it's too low to let GPIO high.

Test plan:
1. Check system DC flag will change.
- MB power on
[BMC console]
root@bmc-oob:~# power-util slot2 on
Powering fru 2 to ON state...
root@bmc-oob:~# power-util slot2 status
Power status for fru 2 : ON

[RF BIC console]
uart:~$ [set_MB_DC_status] gpio number(32) status(1)
[control_power_on_sequence] power on success
[set_DC_status] gpio number(33) status(1)

- MB power off
[BMC console]
root@bmc-oob:~# power-util slot2 off
Powering fru 2 to OFF state...
root@bmc-oob:~# power-util slot2 status
Power status for fru 2 : OFF

[RF BIC console]
uart:~$ [set_MB_DC_status] gpio number(32) status(0)
[set_DC_status] gpio number(33) status(0)
[control_power_off_sequence] power off success

2. Check ASIC_PERST0_N will change when host reset.
[BMC console]
root@bmc-oob:~# power-util slot2 reset

[RF BIC console]
uart:~$ platform gpio get 1
[1  ] ASIC_PERST0_N                      : OD  | output(I) | 0(0)
uart:~$ platform gpio get 1
[1  ] ASIC_PERST0_N                      : OD  | output(O) | 0(0)
uart:~$ platform gpio get 1
[1  ] ASIC_PERST0_N                      : OD  | output(I) | 0(0)
@SaraSYLin SaraSYLin force-pushed the Sara/fby3.5-rf-Support_gpio_interrupt branch from eeb3a7e to b3fc42a Compare June 2, 2022 08:44
@facebook-github-bot

Copy link
Copy Markdown
Contributor

@DelphineChiu has updated the pull request. You must reimport the pull request before landing.

@SaraSYLin

Copy link
Copy Markdown
Contributor

Hi @GoldenBug ,
Force update to rebase main.
Please help to review again, thank you.

@facebook-github-bot

Copy link
Copy Markdown
Contributor

@GoldenBug has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@SaraSYLin SaraSYLin deleted the Sara/fby3.5-rf-Support_gpio_interrupt branch June 9, 2022 03:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

3 participants