Problem with multiple PWM overlays

Hello,

I’m trying to use 3 PWM channels for RGB Led control – I can install one overlay successfully & drive a (single color) LED changing the period & duty cycle.

root@arm:~# sudo echo BB-PWM0 > /sys/devices/platform/bone_capemgr/slots
[ 162.833955] bone_capemgr bone_capemgr: part_number ‘BB-PWM0’, version 'N/A’
[ 162.841500] bone_capemgr bone_capemgr: slot #4: override
[ 162.847210] bone_capemgr bone_capemgr: Using override eeprom data at slot 4
[ 162.854545] bone_capemgr bone_capemgr: slot #4: 'Override Board Name,00A0,Override Manuf,BB-PWM0’
[ 162.897244] bone_capemgr bone_capemgr: slot #4: dtbo ‘BB-PWM0-00A0.dtbo’ loaded; overlay id #0
root@arm:~#

I next try to install another PWM overlay with the following results —

root@arm:~# sudo echo BB-PWM1 > /sys/devices/platform/bone_capemgr/slots
[ 424.900238] bone_capemgr bone_capemgr: part_number ‘BB-PWM1’, version 'N/A’
[ 424.907757] bone_capemgr bone_capemgr: slot #5: override
[ 424.913369] bone_capemgr bone_capemgr: Using override eeprom data at slot 5
[ 424.920787] bone_capemgr bone_capemgr: slot #5: 'Override Board Name,00A0,Override Manuf,BB-PWM1’
[ 424.954871] OF: changeset: add_property failed @/symbols/pinctrl_spec
[ 424.962243] OF: Error applying changeset (-17)
[ 424.971503] bone_capemgr bone_capemgr: slot #5: Failed to create overlay
echo: write error: File exists
root@arm:~#

Shouldn’t the configuration be separate between the overlays so they can operate independently? I get the same result with any combination.

Thanks for the help – rich…

Hey Rich, I’m having a similar problem with a modified SPI driver. Were you ever able to figure out what the issue was and fix it?

Thanks!