Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PWM on 4.4.6 #7

Open
julianhille opened this issue Apr 25, 2016 · 0 comments
Open

PWM on 4.4.6 #7

julianhille opened this issue Apr 25, 2016 · 0 comments

Comments

@julianhille
Copy link

My goal is to have 4 Pins enabled as PWMs. (P9_16, P9_14, P8_13, P8_19).
I only need to change the duty on them they could have all the same period.
Through Adafruit_BBIO on the 14.03 ubuntu image this worked fine,
now im trying to upgrade to 4.4.x but feel completely lost.

I flashed opne of your images:
https://rcn-ee.com/rootfs/2016-04-07/flasher/
BBB-eMMC-flasher-debian-8.4-console-armhf-2016-04-07-2gb.img.xz

And did install this repo and rebooted. This is my slots file after manually echoing the starts of the
dt into the slots file.

cat /sys/devices/platform/bone_capemgr/slots
 0: PF----  -1
 1: PF----  -1
 2: PF----  -1
 3: PF----  -1
 4: P-O-L-   0 Override Board Name,00A0,Override Manuf,am33xx_pwm
 8: P-O-L-   1 Override Board Name,00A0,Override Manuf,bone_pwm_P9_14

This creates here a folder

root@arm:/sys/firmware/devicetree/base/pwm_test_P9_14# ls -lah
total 0
drwxr-xr-x  2 root root  0 Apr 25 08:52 .
drwxr-xr-x 18 root root  0 Apr 25 08:52 ..
-r--r--r--  1 root root  9 Apr 25 08:52 compatible
-r--r--r--  1 root root  4 Apr 25 08:52 duty
-r--r--r--  1 root root  4 Apr 25 08:52 enabled
-r--r--r--  1 root root 15 Apr 25 08:52 name
-r--r--r--  1 root root  4 Apr 25 08:52 pinctrl-0
-r--r--r--  1 root root  8 Apr 25 08:52 pinctrl-names
-r--r--r--  1 root root 10 Apr 25 08:52 pwm-names
-r--r--r--  1 root root 16 Apr 25 08:52 pwms
-r--r--r--  1 root root  5 Apr 25 08:52 status

Im trying to enable this in any way:

root@arm:/sys/firmware/devicetree/base/pwm_test_P9_14# echo "1" > enabled
bash: enabled: Permission denied
root@arm:/sys/firmware/devicetree/base/pwm_test_P9_14# echo "10" > duty
bash: duty: Permission denied

root@arm:/sys/firmware/devicetree/base/pwm_test_P9_14# cat compatible
pwm_test

root@arm:/sys/firmware/devicetree/base/pwm_test_P9_14# cat duty

root@arm:/sys/firmware/devicetree/base/pwm_test_P9_14# cat enabled

root@arm:/sys/firmware/devicetree/base/pwm_test_P9_14# cat name
pwm_test_P9_14

root@arm:/sys/firmware/devicetree/base/pwm_test_P9_14# cat pinctrl-0
�

root@arm:/sys/firmware/devicetree/base/pwm_test_P9_14# cat pinctrl-names
default

root@arm:/sys/firmware/devicetree/base/pwm_test_P9_14# cat pwm-names
PWM_P9_14


root@arm:/sys/firmware/devicetree/base/pwm_test_P9_14# cat status
okay

How to start them? Or is this a bug?

I also tried to use the base of the bacone and compile my own device tree but still could not get all my 4 Pins working at the same time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant