Changes between Version 20 and Version 21 of FSA


Ignore:
Timestamp:
04/29/2025 05:13:54 PM (6 days ago)
Author:
Tim Harvey
Comment:

updated power enable section and linux gpio commands

Legend:

Unmodified
Added
Removed
Modified
  • FSA

    v20 v21  
    142142  - In U-Boot:
    143143{{{#!bash
    144 u-boot=> gpio clr fsa2_wdisable#
     144gpio clr fsa2_wdisable#
    145145}}}
    146146  - In Linux:
    147147{{{#!bash
    148 # gpioset --mode signal $(gpiofind "fsa2_wdisable#")=0
     148gpioset --mode exkt $(gpiofind fsa2_wdisable#)=0
    149149}}}
    150150
     
    155155 * FSA2 (J30): USB2.0, USB3.0, PCIE3.0 (2x 1x lanes), PCM, UART (4-wire), SPI, SDIO (1.8V), GPIO (3x), Power Enable
    156156
    157 === Power Enable
    158 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.
    159 
    160 To toggle the gpio, use the gpioinfo command from the Linux command line to see the assigned GPIO. For more GPIO instructions, read [wiki:gpio#LinuxGPIO]
    161 
     157
     158=== FSA Card Power Enable
     159Power 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
     161If 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
     165gpio clr fsa2_card_pen # drive low to disable
     166gpio set fsa2_card_pen # drive high to enable
     167}}}
     168  - In Linux:
     169{{{#!bash
     170gpioset --mode exit $(gpiofind "fsa2_card_pen")=0 # drive low to disable
     171gpioset --mode exit $(gpiofind "fsa2_card_pen")=1 # drive high to enable
     172}}}
     173
     174Note that card power enable is available on all current FSA adapters and on the GW82xx-C (C Revision) baseboard.
    162175
    163176== GW16FE0 FSA M.2 E-Key Adapter
     
    228241  - driving wdisable1# low in U-Boot
    229242{{{#!bash
    230 u-boot=> gpio clr fsa1_wdisable1#"
     243gpio clr fsa1_wdisable1#
    231244}}}
    232245 * M.2 E-Key card in FSA2:
    233246  - driving wdisable2# low in Linux:
    234247{{{#!bash
    235 # gpioset --mode signal $(gpiofind "fsa2_wdisable2#")=0
     248gpioset --mode exit $(gpiofind fsa2_wdisable2#)=0
    236249}}}
    237250
     
    20412054  - disable RF in Linux: drive fsa2_wdisable# low
    20422055{{{#!bash
    2043 # gpioset --mode signal $(gpiofind "fsa2_wdisable#")=0
    2044 }}}
    2045 
     2056gpioset --mode exit $(gpiofind fsa2_wdisable#)=0
     2057}}}
     2058