I need to configure a bunch of pins in a device tree, and I'm unclear of how many fragments I need and how to name them. Specifically, I want the PRU to control some GPIO pins, PRU pins, and PWM pins.
Looking at a typical overlay <https://github.com/beagleboard/devicetree-source/blob/master/arch/arm/boot/dts/BB-BONE-PRU-02-00A0.dts>, it has: __overlay__ { pru_gpio_pins: pinmux_pru_gpio_pins { pinctrl-single,pins = < 0x1a4 0x0f >; }; pru_pru_pins: pinmux_pru_pru_pins { pinctrl-single,pins = < 0x1a4 0x25 >; }; }; In the line "pru_gpio_pins: pinmux_pru_gpio_pins", am I correct that " pru_gpio_pins" is an arbitrary name that gets used in pinctrl-0? What about "pinmux_pru_gpio_pins" - is that arbitrary, or does this need to match something else? (And if it needs to match something, where is that defined?) Also, do I need to handle GPIO pins and PRU pins separately, as above? Or is that for convenience / convention? And if I want to configure ehrpwm pins, do I need a third section, or can I lump it in with the rest? I looked at a bunch of documentation but couldn't find an explanation of this. Instead of randomly cutting-and-pasting, I figured it would be good to get a bit of conceptual understanding so I'm asking here. Thanks, Ken -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/4a4590b2-a724-4013-acc0-4e680d4cf16f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
