The patch titled Documentation/ABI: /sys/class/gpio has been added to the -mm tree. Its filename is documentation-abi-sys-class-gpio.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: Documentation/ABI: /sys/class/gpio From: David Brownell <dbrownell@xxxxxxxxxxxxxxxxxxxxx> Provide summary ABI docs about the /sys/class/gpio files. Signed-off-by: David Brownell <dbrownell@xxxxxxxxxxxxxxxxxxxxx> Cc: Greg Kroah-Hartman <gregkh@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- Documentation/ABI/testing/sysfs-gpio | 26 +++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff -puN /dev/null Documentation/ABI/testing/sysfs-gpio --- /dev/null +++ a/Documentation/ABI/testing/sysfs-gpio @@ -0,0 +1,26 @@ +What: /sys/class/gpio/ +Date: July 2008 +KernelVersion: 2.6.27 +Contact: David Brownell <dbrownell@xxxxxxxxxxxxxxxxxxxxx> +Description: + + As a Kconfig option, individual GPIO signals may be accessed from + userspace. GPIOs are only made available to userspace by an explicit + "export" operation. If a given GPIO is not claimed for use by + kernel code, it may be exported by userspace (and unexported later). + Kernel code may export it for complete or partial access. + + GPIOs are identified as they are inside the kernel, using integers in + the range 0..INT_MAX. See Documentation/gpio.txt for more information. + + /sys/class/gpio + /export ... asks the kernel to export a GPIO to userspace + /unexport ... to return a GPIO to the kernel + /gpioN ... for each exported GPIO #N + /value ... always readable, writes fail for input GPIOs + /direction ... r/w as: in, out (default low); write: high, low + /gpiochipN ... for each gpiochip; #N is its first GPIO + /base ... (r/o) same as N + /label ... (r/o) descriptive, not necessarily unique + /ngpio ... (r/o) number of GPIOs; numbered N to N + (ngpio - 1) + _ Patches currently in -mm which might be from dbrownell@xxxxxxxxxxxxxxxxxxxxx are origin.patch spi_mpc83xx-fix-clockrate-calculation-for-low-speed.patch spi_mpc83xx-reject-invalid-transfer-sizes.patch pxa2xx_spi-chipselect-bugfixes.patch pxa2xx_spi-dma-bugfixes.patch documentation-abi-sys-class-gpio.patch linux-next.patch spi-simplify-spi_write_then_read.patch spi_s3c24xx-pin-configuration-updates.patch pxa2xx_spi-minor-cleanup.patch pxa2xx_spi-fix-chip_info-defaults-and-documentation.patch rtc-ds1307-alarm-support-for-ds1337-ds1339.patch rtc-remove-some-nop-open-release-methods.patch legacy-rtc-remove-needless-confusing-hpet_rtc_irq-option.patch rtc-file-close-consistently-disables-repeating-irqs.patch rtc-cmos-strongly-avoid-hpet-emulation.patch make-gpiochip-label-const.patch genirq-record-trigger-type.patch genirq-record-trigger-type-fix.patch irq-warn-about-irqf_disabledirqf_shared.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html