Robert: I tried it. What should I see? It looks like I get yet another ordering of the aliases.
# universaln # 0 lrwxrwxrwx 1 root root 0 Feb 8 19:32 pwmchip0 -> ../../devices/platform/ocp/48300000.epwmss/48300200.ehrpwm/pwm/pwmchip0 # 0 lrwxrwxrwx 1 root root 0 Feb 8 19:32 pwmchip2 -> ../../devices/platform/ocp/48302000.epwmss/48302200.ehrpwm/pwm/pwmchip2 # 0 lrwxrwxrwx 1 root root 0 Feb 8 19:32 pwmchip4 -> ../../devices/platform/ocp/48300000.epwmss/48300100.ecap/pwm/pwmchip4 # 0 lrwxrwxrwx 1 root root 0 Feb 8 19:32 pwmchip5 -> ../../devices/platform/ocp/48304000.epwmss/48304100.ecap/pwm/pwmchip5 # 0 lrwxrwxrwx 1 root root 0 Feb 8 19:32 pwmchip6 -> ../../devices/platform/ocp/48304000.epwmss/48304200.ehrpwm/pwm/pwmchip6 # cape-emmc # 0 lrwxrwxrwx 1 root root 0 Feb 8 19:01 pwmchip0 -> ../../devices/platform/ocp/48300000.epwmss/48300100.ecap/pwm/pwmchip0 # 0 lrwxrwxrwx 1 root root 0 Feb 8 19:01 pwmchip1 -> ../../devices/platform/ocp/48304000.epwmss/48304100.ecap/pwm/pwmchip1 # 0 lrwxrwxrwx 1 root root 0 Feb 8 19:01 pwmchip2 -> ../../devices/platform/ocp/48300000.epwmss/48300200.ehrpwm/pwm/pwmchip2 # 0 lrwxrwxrwx 1 root root 0 Feb 8 19:01 pwmchip4 -> ../../devices/platform/ocp/48302000.epwmss/48302200.ehrpwm/pwm/pwmchip4 # 0 lrwxrwxrwx 1 root root 0 Feb 8 19:01 pwmchip6 -> ../../devices/platform/ocp/48304000.epwmss/48304200.ehrpwm/pwm/pwmchip6 # New universaln (4.1-ti-pwm) # 0 lrwxrwxrwx 1 root root 0 Feb 9 08:57 pwmchip0 -> ../../devices/platform/ocp/48300000.epwmss/48300200.ehrpwm/pwm/pwmchip0 # 0 lrwxrwxrwx 1 root root 0 Feb 9 08:57 pwmchip2 -> ../../devices/platform/ocp/48302000.epwmss/48302200.ehrpwm/pwm/pwmchip2 # 0 lrwxrwxrwx 1 root root 0 Feb 9 08:57 pwmchip4 -> ../../devices/platform/ocp/48300000.epwmss/48300100.ecap/pwm/pwmchip4 # 0 lrwxrwxrwx 1 root root 0 Feb 9 08:57 pwmchip5 -> ../../devices/platform/ocp/48304000.epwmss/48304200.ehrpwm/pwm/pwmchip5 # 0 lrwxrwxrwx 1 root root 0 Feb 9 08:57 pwmchip7 -> ../../devices/platform/ocp/48304000.epwmss/48304100.ecap/pwm/pwmchip7 --Mark On Monday, February 8, 2016 at 7:58:39 PM UTC-5, RobertCNelson wrote: > > On Mon, Feb 8, 2016 at 6:50 PM, Robert Nelson <[email protected] > <javascript:>> wrote: > > On Mon, Feb 8, 2016 at 6:36 PM, Mark A. Yoder <[email protected] > <javascript:>> wrote: > >> Yup, here's the mappings depending on which dts file is used: > >> > >> # universaln > >> # 0 lrwxrwxrwx 1 root root 0 Feb 8 19:32 pwmchip0 -> > >> ../../devices/platform/ocp/48300000.epwmss/48300200.ehrpwm/pwm/pwmchip0 > >> # 0 lrwxrwxrwx 1 root root 0 Feb 8 19:32 pwmchip2 -> > >> ../../devices/platform/ocp/48302000.epwmss/48302200.ehrpwm/pwm/pwmchip2 > >> # 0 lrwxrwxrwx 1 root root 0 Feb 8 19:32 pwmchip4 -> > >> ../../devices/platform/ocp/48300000.epwmss/48300100.ecap/pwm/pwmchip4 > >> # 0 lrwxrwxrwx 1 root root 0 Feb 8 19:32 pwmchip5 -> > >> ../../devices/platform/ocp/48304000.epwmss/48304100.ecap/pwm/pwmchip5 > >> # 0 lrwxrwxrwx 1 root root 0 Feb 8 19:32 pwmchip6 -> > >> ../../devices/platform/ocp/48304000.epwmss/48304200.ehrpwm/pwm/pwmchip6 > >> > >> > >> # cape-emmc > >> # 0 lrwxrwxrwx 1 root root 0 Feb 8 19:01 pwmchip0 -> > >> ../../devices/platform/ocp/48300000.epwmss/48300100.ecap/pwm/pwmchip0 > >> # 0 lrwxrwxrwx 1 root root 0 Feb 8 19:01 pwmchip1 -> > >> ../../devices/platform/ocp/48304000.epwmss/48304100.ecap/pwm/pwmchip1 > >> # 0 lrwxrwxrwx 1 root root 0 Feb 8 19:01 pwmchip2 -> > >> ../../devices/platform/ocp/48300000.epwmss/48300200.ehrpwm/pwm/pwmchip2 > >> # 0 lrwxrwxrwx 1 root root 0 Feb 8 19:01 pwmchip4 -> > >> ../../devices/platform/ocp/48302000.epwmss/48302200.ehrpwm/pwm/pwmchip4 > >> # 0 lrwxrwxrwx 1 root root 0 Feb 8 19:01 pwmchip6 -> > >> ../../devices/platform/ocp/48304000.epwmss/48304200.ehrpwm/pwm/pwmchip6 > >> > >> Yes, the addresses are there, so I need to find a place that maps the > >> addresses to the header pin numbers. > > > > We could also add the alias to the am33xx.dtsi: > > > > > https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/arch/arm/boot/dts/am33xx.dtsi#n20 > > > > > like: > > > > > https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=70f97128a158a596aeb82140ffacc8c18657baee > > > give this a shot: > > > https://github.com/RobertCNelson/dtb-rebuilder/commit/27b496e93853a210fb79bc95681c54e69f20d494 > > > git clone https://github.com/RobertCNelson/dtb-rebuilder > cd ./dtb-rebuilder/ > git checkout origin/4.1-ti-pwm -b tmp > make > sudo make install > > sudo reboot > > Regards, > > -- > Robert Nelson > https://rcn-ee.com/ > -- 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]. For more options, visit https://groups.google.com/d/optout.
