4.9 kernels do not use slots everything's loaded in uboot via uEnv.txt with a dtbo file
On 2/16/2018 10:07 AM, Co M wrote: > Hi, (2018 Feb 16) > I went to many posts, but they look outdated from 1025 and beyond. > I am trying to enable the PWM on pin 14 and 16, EHRPWM1A P9.14 and > EHRPWM1B P9.16 > My system details are: > > | > BeagleBoard.org DebianImage2018-01-28 > Linuxbeaglebone 4.9.78-ti-r94 #1 SMP PREEMPT Fri Jan 26 21:26:24 > UTC 2018 armv7l GNU/Li > | > * > > The 2 dts's were compiled after they were generated using: > http://www.kilobaser.com/blog/2014-07-28-beaglebone-black-devicetreeoverlay-generator > > Here are my slots: > > | > bbg@beaglebone:~/dtoverlay$ cat /sys/devices/platform/bone_capemgr/slots > 0:PF---- -1 > 1:PF---- -1 > 2:PF---- -1 > 3:PF---- -1 > 4:P-O-L- 0OverrideBoardName,00A0,OverrideManuf,am33xx_pwm > 5:P-O-L- 1OverrideBoardName,00A0,OverrideManuf,bsana_AIN0_39 > 6:P-O-L- 2OverrideBoardName,00A0,OverrideManuf,bspwm_P9_14_6 > 7:P-O-L- 3OverrideBoardName,00A0,OverrideManuf,bspwm_P9_16_6 > | > > > Here are my sys files > > | > ./devices/platform/ocp/ocp:bs_pwm_test_P9_14 > ./devices/platform/ocp/48300000.epwmss > ./devices/platform/ocp/48304000.epwmss > ./devices/platform/ocp/48302000.epwmss > ./devices/platform/ocp/ocp:bs_pwm_test_P9_16 > ./firmware/devicetree/base/__symbols__/epwmss2 > ./firmware/devicetree/base/__symbols__/epwmss0 > ./firmware/devicetree/base/__symbols__/bs_pwm_P9_16_0x6 > ./firmware/devicetree/base/__symbols__/epwmss1 > ./firmware/devicetree/base/__symbols__/bs_pwm_P9_14_0x6 > ./firmware/devicetree/base/ocp/epwmss@48304000 > ./firmware/devicetree/base/ocp/bs_pwm_test_P9_16 > ./firmware/devicetree/base/ocp/epwmss@48300000 > ./firmware/devicetree/base/ocp/bs_pwm_test_P9_14 > ./firmware/devicetree/base/ocp/epwmss@48302000 > ./firmware/devicetree/base/ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_bs_pwm_P9_14_0x6 > ./firmware/devicetree/base/ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_bs_pwm_P9_16_0x6 > ./bus/platform/devices/ocp:bs_pwm_test_P9_14 > ./bus/platform/devices/48300000.epwmss > ./bus/platform/devices/48304000.epwmss > ./bus/platform/devices/48302000.epwmss > ./bus/platform/devices/ocp:bs_pwm_test_P9_16 > ./bus/platform/drivers/pwmss/48300000.epwmss > ./bus/platform/drivers/pwmss/48304000.epwmss > ./bus/platform/drivers/pwmss/48302000.epwmss > | > > > > > But > > | > root@beaglebone:/sys/devices/platform/ocp/ocp:bs_pwm_test_P9_14/of_node# > echo 500000 > duty > bash:duty:Permissiondenied > | > > > > And > > | > root@beaglebone:/sys/devices/platform/ocp/48302000.epwmss/48302200.pwm/pwm/pwmchip3# > ls > device export npwm power subsystem uevent unexport > > root@beaglebone:/sys/devices/platform/ocp/48302000.epwmss/48302200.pwm/pwm/pwmchip3# > echo 1 > export > root@beaglebone:/sys/devices/platform/ocp/48302000.epwmss/48302200.pwm/pwm/pwmchip3# > echo 0 > export > > # creates pwm0 and pwm1 > power/pwm0/ pwm1/ > root@beaglebone:/sys/devices/platform/ocp/48302000.epwmss/48302200.pwm/pwm/pwmchip3# > cd pwm0/ > root@beaglebone:/sys/devices/platform/ocp/48302000.epwmss/48302200.pwm/pwm/pwmchip3/pwm0# > ls > capture duty_cycle enable period polarity power uevent > root@beaglebone:/sys/devices/platform/ocp/48302000.epwmss/48302200.pwm/pwm/pwmchip3/pwm0# > echo 1 > period > bash:echo:write error:Invalidargument > root@beaglebone:/sys/devices/platform/ocp/48302000.epwmss/48302200.pwm/pwm/pwmchip3/pwm0# > echo 10 > period > bash:echo:write error:Invalidargument > root@beaglebone:/sys/devices/platform/ocp/48302000.epwmss/48302200.pwm/pwm/pwmchip3/pwm0# > echo 100 > period > bash:echo:write error:Invalidargument > root@beaglebone:/sys/devices/platform/ocp/48302000.epwmss/48302200.pwm/pwm/pwmchip3/pwm0# > echo 10000 > period > bash:echo:write error:Invalidargument > root@beaglebone:/sys/devices/platform/ocp/48302000.epwmss/48302200.pwm/pwm/pwmchip3/pwm0# > echo 100000 > period > bash:echo:write error:Invalidargument > root@beaglebone:/sys/devices/platform/ocp/48302000.epwmss/48302200.pwm/pwm/pwmchip3/pwm0# > echo 1000000 > period > > | > > > > Thank you. > > > > > -- > For more options, visit http://beagleboard.org/discuss > --- > You received this message because you are subscribed to the Google > Groups "BeagleBoard" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/beagleboard/aab3e397-6918-4171-ad3c-326169404314%40googlegroups.com > <https://groups.google.com/d/msgid/beagleboard/aab3e397-6918-4171-ad3c-326169404314%40googlegroups.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout. -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/74f9ece5-6bcd-c17c-3fab-ab5dae07321c%40gmail.com. For more options, visit https://groups.google.com/d/optout.
