Changes between Version 33 and Version 34 of gpio


Ignore:
Timestamp:
02/27/2023 08:14:13 PM (17 months ago)
Author:
Tim Harvey
Comment:

removed Laguna info (EOL)

Legend:

Unmodified
Added
Removed
Modified
  • gpio

    v33 v34  
    2828 * [wiki:newport/DigitalIO Newport Digital I/O]
    2929 * [wiki:ventana/DigitalIO Ventana Digital I/O]
    30  * [wiki:laguna/DigitalIO Laguna Digital I/O]
    3130
    3231
     
    6564* Newport: Linux kernel device-tree (ie [http://github.com/Gateworks/dts-newport])
    6665* Ventana: Linux kernel device-tree (ie [http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/arch/arm/boot/dts/imx6qdl-gw54xx.dtsi arch/arm/boot/dts/imx6qdl-gw54xx.dtsi])
    67 * Laguna: Linux kernel board-support files (ie [https://github.com/Gateworks/openwrt/blob/16.02/target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/laguna.c arch/arm/mach-cns3xxx/laguna.c]).
    6866
    6967** Product Family specific notes:
     
    8684   - GSC_GPIO_P1![0-7]: gpio247-gpio255
    8785  - additional i2c based GPIO port-expanders present on some boards would begin at gpio116
    88  * Laguna:
    89   - cns3xxx GPIOs: The CNS3xxx has 2 32bit GPIO controllers for a possible 64 fast ARM based GPIO's
    90    - GPIOA![0-31]: gpio0-gpio31
    91    - GPIOB![0-31]: gpio32-gpio63
    92   - [wiki:gsc GSC] GPIOs:
    93    - GSC_GPIO_P0![0-7]: gpio100-gpio107
    94    - GSC_GPIO_P1![0-7]: gpio108-gpio115
    95   - additional i2c based GPIO port-expanders present on some boards would begin at gpio116
    9686
    9787Note that the Linux gpio mapping is not guaranteed to remain constant across kernel versions. Care should be taken to consult {{{/sys/kernel/debug/gpio}}} and {{{/sys/class/gpio}}} when changing kernel versions.
     
    9989When referring to [http://www.gateworks.com/usermanuals Gateworks board user hardware manuals] you will need to translate the hardware pin name to a gpio using the information above. Some examples:
    10090 * Newport GPIO8 would be the 8th IO on the CN80XX GPIO controller thus map to gpio-472.
    101  * Laguna GPIOA8 would be the 9th IO on the GPIOA controller (the first is GPIOA0) thus map to gpio 0+8 = gpio-8
    102  * Laguna GPIOB1 would be the 2nd IO on the GPIOB controller thus map to gpio 32+2 = gpio-34
    10391 * Ventana GPIO![1]:DIO16 is GPIO block 1 IO 16 thus maps to gpio0 + 16 (or 0*32+16) = gpio-16
    10492 * Ventana GPIO![2]:DIO9 is GPIO block 2 IO 9 thus maps to gpio32 + 9 (or 1*32+9) = gpio-41
     
    217205}}}
    218206   * Note that this does not show GPIO's that are not used by Linux drivers such as USB HUB reset, Ethernet PHY reset, etc.
    219   - Laguna GW2388:
    220 {{{#!bash
    221 # cat /sys/kernel/debug/gpio
    222 GPIOs 0-31, cns3xxx_gpio0:
    223  gpio-0   (GPS_PPS             ) in  hi
    224  gpio-3   (USB_FAULT#          ) in  hi
    225  gpio-6   (USB_VBUS_EN         ) out hi
    226  gpio-7   (GSM_SEL0            ) out lo
    227  gpio-8   (GSM_SEL1            ) out lo
    228  gpio-9   (FP_SER_EN           ) out lo
    229 
    230 GPIOs 32-63, cns3xxx_gpio1:
    231 
    232 GPIOs 100-115, i2c/0-0023, pca9555, can sleep:
    233  gpio-100 (USER_PB#            ) in  hi
    234  gpio-114 (user2               ) out hi
    235  gpio-115 (user1               ) out hi
    236 }}}
    237   - Laguna GW2387:
    238 {{{#!bash
    239 # cat /sys/kernel/debug/gpio
    240 GPIOs 0-31, cns3xxx_gpio0:
    241  gpio-0   (GPS_PPS             ) in  hi
    242  gpio-2   (USB_FAULT#          ) in  hi
    243  gpio-5   (USB_PCI_SEL         ) out lo
    244  gpio-6   (USB_VBUS_EN         ) out hi
    245  gpio-7   (GSM_SEL0            ) out lo
    246  gpio-8   (GSM_SEL1            ) out lo
    247  gpio-9   (FP_SER_EN           ) out lo
    248 
    249 GPIOs 32-63, cns3xxx_gpio1:
    250 
    251 GPIOs 100-115, i2c/0-0023, pca9555, can sleep:
    252  gpio-100 (USER_PB#            ) in  hi
    253  gpio-114 (user2               ) out hi
    254  gpio-115 (user1               ) out hi
    255 }}}
    256207
    257208See also:
     
    259210 * [wiki:newport/DigitalIO Newport Digital IO Mapping Page]
    260211 * [wiki:ventana/DigitalIO Ventana Digital IO Mapping Page]
    261  * [wiki:laguna/DigitalIO Laguna Digital IO Mapping Page]
    262 
    263212
    264213