After looking through the dts and dtsi files, I think my problem lies in
understanding how they all fit together.
The beaglebone default configurations appear
in am335x-bone-common-pinmux.dtsi.
It lacks OUTPUT configuration for the pins (except the PWM configurations)
So, you have to disable the default configuration for the output pins and
build your own.
Does this look correct?
/* configure output pins */
&am33xx_pinmux {
stepper_driver: stepper_driver_pins {
pinctrl-single,pins = <
0x030 (PIN_OUTPUT | MUX_MODE7) /* P8_12 */
0x034 (PIN_OUTPUT | MUX_MODE7) /* P8_11 */
0x038 (PIN_OUTPUT | MUX_MODE7) /* P8_16 */
0x03C (PIN_OUTPUT | MUX_MODE7) /* P8_15 */
0x040 (PIN_OUTPUT | MUX_MODE7) /* P9_15 */
0x044 (PIN_OUTPUT | MUX_MODE7) /* P9_23 */
0x078 (PIN_OUTPUT | MUX_MODE7) /* P9_12 */
0x07c (PIN_OUTPUT | MUX_MODE7) /* P8_26 */
>;
};
};
/* Modify default pin configurations defined in
am335x-bone-common-pinmux.dtsi */
&ocp {
/* Enable PWM mode for these pins */
P8_19_pinmux {
/* gpio0[22] */
mode = "P8_19_pwm_pin";
};
P8_13_pinmux {
/* gpio0[23] */
mode = "P8_13_pwm_pin";
};
P9_14_pinmux {
/* gpio1[18] */
mode = "P8_14_pwm_pin";
};
/* Enable input with pullups for these pins */
P8_14_pinmux {
/* gpio0[26] */
mode = "P8_14_gpio_pu_pin";
};
P8_17_pinmux {
/* gpio0[27] */
mode = "P8_17_gpio_pu_pin";
};
/* There is no output configuration - disable the default
configuration */
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";
};
};
/* Enable the output configuration defined above */
&stepper_driver {
status = "okay";
};
--
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.