PWM userspace access on custom board

Hi,

I followed the guide by Robert here:
https://eewiki.net/display/linuxonarm/BeagleBone+Black

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.