Changes between Version 33 and Version 34 of gpio
- Timestamp:
- 02/27/2023 08:14:13 PM (21 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
gpio
v33 v34 28 28 * [wiki:newport/DigitalIO Newport Digital I/O] 29 29 * [wiki:ventana/DigitalIO Ventana Digital I/O] 30 * [wiki:laguna/DigitalIO Laguna Digital I/O]31 30 32 31 … … 65 64 * Newport: Linux kernel device-tree (ie [http://github.com/Gateworks/dts-newport]) 66 65 * 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]).68 66 69 67 ** Product Family specific notes: … … 86 84 - GSC_GPIO_P1![0-7]: gpio247-gpio255 87 85 - 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's90 - GPIOA![0-31]: gpio0-gpio3191 - GPIOB![0-31]: gpio32-gpio6392 - [wiki:gsc GSC] GPIOs:93 - GSC_GPIO_P0![0-7]: gpio100-gpio10794 - GSC_GPIO_P1![0-7]: gpio108-gpio11595 - additional i2c based GPIO port-expanders present on some boards would begin at gpio11696 86 97 87 Note 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. … … 99 89 When 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: 100 90 * 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-8102 * Laguna GPIOB1 would be the 2nd IO on the GPIOB controller thus map to gpio 32+2 = gpio-34103 91 * Ventana GPIO![1]:DIO16 is GPIO block 1 IO 16 thus maps to gpio0 + 16 (or 0*32+16) = gpio-16 104 92 * Ventana GPIO![2]:DIO9 is GPIO block 2 IO 9 thus maps to gpio32 + 9 (or 1*32+9) = gpio-41 … … 217 205 }}} 218 206 * 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 {{{#!bash221 # cat /sys/kernel/debug/gpio222 GPIOs 0-31, cns3xxx_gpio0:223 gpio-0 (GPS_PPS ) in hi224 gpio-3 (USB_FAULT# ) in hi225 gpio-6 (USB_VBUS_EN ) out hi226 gpio-7 (GSM_SEL0 ) out lo227 gpio-8 (GSM_SEL1 ) out lo228 gpio-9 (FP_SER_EN ) out lo229 230 GPIOs 32-63, cns3xxx_gpio1:231 232 GPIOs 100-115, i2c/0-0023, pca9555, can sleep:233 gpio-100 (USER_PB# ) in hi234 gpio-114 (user2 ) out hi235 gpio-115 (user1 ) out hi236 }}}237 - Laguna GW2387:238 {{{#!bash239 # cat /sys/kernel/debug/gpio240 GPIOs 0-31, cns3xxx_gpio0:241 gpio-0 (GPS_PPS ) in hi242 gpio-2 (USB_FAULT# ) in hi243 gpio-5 (USB_PCI_SEL ) out lo244 gpio-6 (USB_VBUS_EN ) out hi245 gpio-7 (GSM_SEL0 ) out lo246 gpio-8 (GSM_SEL1 ) out lo247 gpio-9 (FP_SER_EN ) out lo248 249 GPIOs 32-63, cns3xxx_gpio1:250 251 GPIOs 100-115, i2c/0-0023, pca9555, can sleep:252 gpio-100 (USER_PB# ) in hi253 gpio-114 (user2 ) out hi254 gpio-115 (user1 ) out hi255 }}}256 207 257 208 See also: … … 259 210 * [wiki:newport/DigitalIO Newport Digital IO Mapping Page] 260 211 * [wiki:ventana/DigitalIO Ventana Digital IO Mapping Page] 261 * [wiki:laguna/DigitalIO Laguna Digital IO Mapping Page]262 263 212 264 213