I know config-pin will solve a lot of the pain of mapping IO pins / 
features.
The BBIOConfig Qt GUI for allocating the pins looks very slick.
I'm looking forward to the release of the working versions. :)

The example you linked looks like the interface configuration for 
Microchip's RTC I2C module.  I've used them in a few projects before.
The RTC multi-purpose pin appears to be used for the alarm, so the GPIO pin 
on the am335x is configured for input, with an interrupt to wake up the CPU 
if in sleep.
So, based on that example, if I set up all the pins (I'll skip PWM for now 
and use them as output pins) it looks like I need an include file that 
looks like:

&ocp {
P8_19_pinmux {
/* gpio0[22] */
status = "disabled";
};
P8_13_pinmux {
/* gpio0[23] */
status = "disabled";
};
P9_14_pinmux {
/* gpio1[18] */
status = "disabled";
};
P8_14_pinmux {
/* gpio0[26] */
status = "disabled";
};
P8_17_pinmux {
/* gpio0[27] */
status = "disabled";
};
P8_12_pinmux {
/* gpio1[12] */
status = "disabled";
};
P8_11_pinmux {
/* gpio1[13] */
status = "disabled";
};
P8_16_pinmux {
/* gpio1[14] */
status = "disabled";
};
P8_15_pinmux {
/* gpio1[15] */
status = "disabled";
};
P9_15_pinmux {
/* gpio1[16] */
status = "disabled";
};
P9_23_pinmux {
/* gpio1[17] */
status = "disabled";
};
P9_12_pinmux {
/* gpio1[28] */
status = "disabled";
};
P8_26_pinmux {
/* gpio1[29] */
status = "disabled";
};
};



/ {
gpio_keys {
compatible = "gpio-keys";
pinctrl-names = "default";
pinctrl-0 = <&gpio0_22_pins>;
pinctrl-1 = <&gpio0_23_pins>;
pinctrl-2 = <&gpio1_18_pins>;
pinctrl-3 = <&gpio0_26_pins>;
pinctrl-4 = <&gpio0_27_pins>;
pinctrl-5 = <&gpio1_12_pins>;
pinctrl-6 = <&gpio1_13_pins>;
pinctrl-7 = <&gpio1_14_pins>;
pinctrl-8 = <&gpio1_15_pins>;
pinctrl-9 = <&gpio1_16_pins>;
pinctrl-10 = <&gpio1_17_pins>;
pinctrl-11 = <&gpio1_13_pins>;
pinctrl-12 = <&gpio1_28_pins>;
pinctrl-13 = <&gpio1_29_pins>;

};
};

I didn't see how to specify direction of default value.  Does it just 
default to input?
Can you group the pins together like that in the gpio_keys section?

Sorry for being such a noob.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to