PWM userspace access on custom board

12 views
Skip to first unread message

ferdster

unread,
Dec 2, 2016, 7:19:30 PM12/2/16
to BeagleBoard
Hi,

I followed the guide by Robert here:

I am having trouble getting PWM userspace access (/sys/class/pwm/). I don't have a 'pwmchip0' folder. In am335x-bone-common.dtsi I added:

ehrpwm2_pins: pinmux_ehrpwm2_pins {
pinctrl-single,pins = <
0xa0 ( PIN_OUTPUT | MUX_MODE3 ) /* (R1) lcd_data0.ehrpwm2A */
0xa4 ( PIN_OUTPUT | MUX_MODE3 ) /* (R2) lcd_data1.ehrpwm2B */
>;
};

&epwmss2 { 
status = "okay";
ehrpwm2 {
pinctrl-names = "default";
pinctrl-0 = <&ehrpwm2_pins>; 
status = "okay";
};
};

Should it make the pwmchip0 by itself? It did when I was running TI Linux. This is on a custom board that's based on a BBB.

Thanks.




Reply all
Reply to author
Forward
0 new messages