phintegrator Posted January 20, 2016 Posted January 20, 2016 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.
Igor Posted January 20, 2016 Posted January 20, 2016 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"; };
zador.blood.stained Posted January 20, 2016 Posted January 20, 2016 PWM driver was not enabled in both vanilla kernels. It will be present in new kernel release, and it should work without DT modification.
Recommended Posts