Skip to content
GPIO PPS for Amlogic devices (ODROID C1)
C
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
pps-gpio.c

README.md

pps-gpio-amlogic

GPIO PPS for Amlogic devices (ODROID C1)

The PPS driver available in the kernel sources published by HardKernel for ODROID C1 (https://github.com/hardkernel/linux/tree/odroidc-3.10.y) lacks device tree support. I added devicetree support by pulling in support from a more recent kernel.

In addition, using GPIO devices on the ODROID C1 kernel sources, requires the user to call Amlogic-specific GPIO calls, instead of the default kernel GPIO lib.

To compile

Replace the upstream pps-gpio.c with this version and recompile your kernel.

To use

Add a similar snippet to your DTS file, and recreate a DTB for your board. This example uses header pin 12 for PPS. Refer to http://www.hardkernel.com/main/products/prdt_info.php?g_code=G141578608433&tab_idx=2 to find the correct gpios for your setup.

pps {
	compatible = "pps-gpio";
	gpios = "GPIOY_7";
};
You can’t perform that action at this time.