Changes between Version 6 and Version 7 of ventana/DigitalIO


Ignore:
Timestamp:
08/23/2019 06:11:37 PM (5 years ago)
Author:
Tim Harvey
Comment:

clarified sysfsgpio

Legend:

Unmodified
Added
Removed
Modified
  • ventana/DigitalIO

    v6 v7  
    1212
    1313Ventana GPIO Mapping:
    14 ||= Board      =||= DIO(1) =||= Connector(2) =||= IMX6_PAD(3) =||= IMX6 GPIO(4) =||= linux gpio(5) =||= linux PWM(6) =||= I2C(7) ||
     14||= Board      =||= DIO(1) =||= Connector(2) =||= IMX6_PAD(3) =||= IMX6 GPIO(4) =||= linux sysfsgpio(5) =||= linux PWM(6) =||= I2C(7) ||
    1515|| GW51xx       || DIO0 || J11.5        || PAD_SD1_DATA0        || GPIO1_IO16           || gpio-16      || -    || -
    1616|| GW51xx       || DIO1 || J11.7        || PAD_SD1_DATA2        || GPIO1_IO19           || gpio-19      || PWM2 || -
     
    74743. Consult the IMX6 Reference manuals for PAD info: ​[http://cache.freescale.com/files/32bit/doc/ref_manual/IMX6DQRM.pdf IMX6DQRM] [http://cache.freescale.com/files/32bit/doc/ref_manual/IMX6SDLRM.pdf IMX6SDLRM]
    75754. This is the GPIO block and IO the PAD is pinmux'd to when hwconfig is configured for GPIO
    76 5. This is the gpio mapped in linux accessible via /sys/class/gpio. Note that the pinmux and IO configuration are done by the [wiki:ventana/bootloader#DIOconfiguration bootloader], but you will need to manually export the GPIO to use it (see [wiki:gpio here] for details)
     765. This is the gpio mapped in the linux {{{sysfsgpio}}} API accessible via {{{/sys/class/gpio}}}. Note that the pinmux and IO configuration are done by the [wiki:ventana/bootloader#DIOconfiguration bootloader], but you will need to manually export the GPIO to use it (see [wiki:gpio here] for details)
    77776. This is the PWM that the PAD is pinmux'd to by the bootloader with hwconfig is conifgured for PWM. [wiki:ventana/bootloader#DIOconfiguration u-boot hwconfig to configure DIO pinmux/config]
    78787. GW54xx and GW53xx (revision B and above) can extend the 2nd CPU I2C bus (I2C3 available as /dev/i2c-2) out the DIO connector if gpio-101 is driven high. see below