Jump to content

How to enable PWM


Recommended Posts

Can someone tell me how to enable PWM in cubieboard2.

 

I am using the latest ubuntu of armbian and vanilla kernel from this link.

http://www.armbian.com/cubieboard-2/

 

Looking at /sys/class, I cant find any pwm folder

root@cubieboard2:/sys/class# ls                                                 
ata_device   gpio              iscsi_iface      power_supply  scsi_host         
ata_link     graphics          iscsi_session    ppp           spidev            
ata_port     hwmon             iscsi_transport  pps           spi_master        
backlight    i2c-adapter       leds             ptp           thermal           
bdi          i2c-dev           mdio_bus         rc            tty               
block        ieee80211         mem              regulator     vc                
bluetooth    input             misc             rfkill        video4linux       
bsg          iscsi_connection  mmc_host         rtc           vtconsole         
devcoredump  iscsi_endpoint    net              scsi_device   watchdog          
dvb          iscsi_host        phy              scsi_disk

Appreciate any help.

Link to comment
Share on other sites

I never try PWM on vanilla but i guess it must work. It's disabled in device tree so you need to add it manually:

 

&pwm {
pinctrl-names = "default";
pinctrl-0 = <&pwm0_pins_a>, <&pwm1_pins_a>;
status = "okay";
};
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines