| | 152 | |
| | 153 | == FSA Card Power Enable |
| | 154 | Power enable allows the power to be completely removed from the Mini-PCIe or M.2 card from a Linux GPIO. This can be useful for resetting devices and/or power saving. |
| | 155 | |
| | 156 | If an FSA adapter and baseboard supports power enable for an FSA socket, the GPIO will be named 'fsa<n>_card_pen' and can be accessed in both Linux and U-Boot. For example: |
| | 157 | * disable and re-enable card power on FSA2: |
| | 158 | - In U-Boot: |
| | 159 | {{{#!bash |
| | 160 | gpio clr fsa2_card_pen # drive low to disable |
| | 161 | gpio set fsa2_card_pen # drive high to enable |
| | 162 | }}} |
| | 163 | - In Linux: |
| | 164 | {{{#!bash |
| | 165 | gpioset --mode exit $(gpiofind "fsa2_card_pen")=0 # drive low to disable |
| | 166 | gpioset --mode exit $(gpiofind "fsa2_card_pen")=1 # drive high to enable |
| | 167 | }}} |
| | 168 | |
| | 169 | Note that card power enable is available on all current FSA adapters and on the GW82xx-C (C Revision) baseboard. |
| | 170 | |
| 152 | 171 | == GW82xx Baseboard |
| 153 | 172 | The GW82xx has two FSA sockets: |
| 154 | 173 | * FSA1 (J29): USB2.0, USB3.0, PCIE3.0 (2x 1x lanes), SPI, GPIO (3x), Power Enable |
| 155 | 174 | * FSA2 (J30): USB2.0, USB3.0, PCIE3.0 (2x 1x lanes), PCM, UART (4-wire), SPI, SDIO (1.8V), GPIO (3x), Power Enable |
| 156 | | |
| 157 | | |
| 158 | | === FSA Card Power Enable |
| 159 | | Power enable allows the power to be completely removed from the Mini-PCIe or M.2 card from a Linux GPIO. This can be useful for resetting devices and/or power saving. |
| 160 | | |
| 161 | | If an FSA adapter and baseboard supports power enable for an FSA socket, the GPIO will be named 'fsa<n>_card_pen' and can be accessed in both Linux and U-Boot. For example: |
| 162 | | * disable and re-enable card power on FSA2: |
| 163 | | - In U-Boot: |
| 164 | | {{{#!bash |
| 165 | | gpio clr fsa2_card_pen # drive low to disable |
| 166 | | gpio set fsa2_card_pen # drive high to enable |
| 167 | | }}} |
| 168 | | - In Linux: |
| 169 | | {{{#!bash |
| 170 | | gpioset --mode exit $(gpiofind "fsa2_card_pen")=0 # drive low to disable |
| 171 | | gpioset --mode exit $(gpiofind "fsa2_card_pen")=1 # drive high to enable |
| 172 | | }}} |
| 173 | | |
| 174 | | Note that card power enable is available on all current FSA adapters and on the GW82xx-C (C Revision) baseboard. |