On Fri, Aug 02, 2013 at 12:38:25PM +0200, Markus Pargmann wrote: > Signed-off-by: Markus Pargmann <mpa@xxxxxxxxxxxxxx> > --- > arch/arm/boot/dts/imx27-pinfunc.h | 520 ++++++++++++++++++++++++++++++++++++++ > 1 file changed, 520 insertions(+) > create mode 100644 arch/arm/boot/dts/imx27-pinfunc.h > > diff --git a/arch/arm/boot/dts/imx27-pinfunc.h b/arch/arm/boot/dts/imx27-pinfunc.h > new file mode 100644 > index 0000000..f3b4c55 > --- /dev/null > +++ b/arch/arm/boot/dts/imx27-pinfunc.h > @@ -0,0 +1,520 @@ > +/* > + * Copyright 2013 Freescale Semiconductor, Inc. > + * > + * This program is free software; you can redistribute it and/or modify > + * it under the terms of the GNU General Public License version 2 as > + * published by the Free Software Foundation. > + * > + */ > + > +#ifndef __DTS_IMX27_PINFUNC_H > +#define __DTS_IMX27_PINFUNC_H > + > +/* > + * The pin function ID is a tuple of > + * <pin mux_config> > + * mux_config consists of > + * function + (direction << 2) + (gpio_oconf << 4) + (gpio_iconfa << 8) + (gpio_iconfb << 10) > + * > + * function: 0 - Primary function > + * 1 - Alternate function > + * 2 - GPIO > + * direction: 0 - Input > + * 1 - Output > + * gpio_oconf: 0 - A_IN > + * 1 - B_IN > + * 2 - C_IN > + * 3 - Data Register > + * gpio_iconfa/b: 0 - GPIO_IN > + * 1 - Interrupt Status Register > + * 2 - 0 > + * 3 - 1 This should be documented in bindings doc as well. Shawn > + */ -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html