Skip to content
Branch: master
Find file History
Latest commit 10edee5 Apr 19, 2017
Type Name Latest commit message Commit time
Failed to load latest commit information.
src fix typo Apr 7, 2017
Makefile cleaning Apr 7, 2017 Update Apr 19, 2017

Misc GPIO stuff OpenWRT

This Git contains miscellaneous stuff for GPIO handling and testing


simple GPIO kernel module


simple GPIO IRQ kernel module testing 0047-GPIO-MIPS-ralink-add-gpio-driver-for-ralink-SoC.patch_patch obsolet


simple GPIO toggling test (RT3052 & AR933x only)

 void __iomem *gpio_addr = NULL;
 void __iomem *gpio_setdataout_addr = NULL;
 void __iomem *gpio_cleardataout_addr = NULL;

 gpio_addr = ioremap(GPIO_START_ADDR, GPIO_SIZE);

 gpio_setdataout_addr   = gpio_addr + GPIO_OFFS_SET;
 gpio_cleardataout_addr = gpio_addr + GPIO_OFFS_CLEAR;
 mask = 1 << gpio;

 for(repeat=0;repeat<NR_REPEAT;repeat++) {
     __raw_writel(mask, gpio_setdataout_addr);
     __raw_writel(mask, gpio_cleardataout_addr);
CPU toggle speed
RT3052@320MHz 6.67 MHz
AR9331@400MHz 7.69 MHz
AR9341@533MHz 7.69 MHz
MT7688@580MHz 7.69 MHz


simple GPIO IRQ latency test



adds GPIO IRQ stuff for ATH79 based SoCs like AR933x, AR934x, QCA9533

You can’t perform that action at this time.