AI-64 - Overlay for pinmuxing

Hi Guys, I’m banging my head against the wall here.

I have tried two things, neither of which work:

Changing the defaults:

 &main_pmx0 {
 		BONE_PIN(P8_16, default, P8_16(PIN_OUTPUT, 0)) // pruout
 		BONE_PIN(P8_19, default, P8_19(PIN_OUTPUT, 6)) // pwm

And changing pinmux_dummy:

&main_pmx0 {
	cape_header: pinmux_dummy {
			compatible = "gpio-leds";
			pinctrl-names = "default";
			pinctrl-0 = <

What is the correct way of doing this?

Many Thanks


Rather than have one big cape_header definition for all the pins, I’m working on having a bone_PX_YY_pinmux definition for each of the pins:

That makes it where I can fairly easily create an overlay that changes the definition of bone_PX_YY_pinmux:

Very sorry for not getting this cleaned-up, debugged and pushed upstream on-time.

1 Like

That looks perfect :slight_smile:

Is that DTS ready to go if I download it and build it?

Haven’t played with it for a little while. I’d use with a bit of caution. Errors would likely be around building.

Thanks, until you get that version running do you have any idea how I would do this with the current setup, my understanding of dts and overlays is shall we say rubbish! I have tried everything I can think of.

A post was split to a new topic: BBAI-64, ROS2 Robotics SDK issues

useful information