what does the compatibility string in your driver look like?I am trying to do what cleverca22 and aBUGSworstnightmare suggested and add compatible to the PWM in the device tree and then have the driver loaded via compatible value. The issue I have is when I add compatible to the overlay node target=<&pwm> the setting of pin12 and alt func 4 stop being applied.
In short how do I get my compatible set at the same time as redefining pin12 to alt func4?ThanksCode:
/dts-v1/;/plugin/;/ {compatible = "brcm,bcm2835";fragment@0 {target = <&gpio>;__overlay__ {pwm_pins: pwm_pins {brcm,pins = <12>;brcm,function = <4>;};};};fragment@1 {target = <&pwm>;__overlay__ {pinctrl-names = "default";/* I have tried this here with no luck *//* compatible = "williespwm"; */pinctrl-0 = <&pwm_pins>;assigned-clock-rates = <10000000>;status = "okay";};};};
The overlay fails , you should see from your logs for what reason.
No idea here you've not provided any details
Code:
sudo apt install pastebinitraspinfo | pastebinit
And the driver in question is needed for checking as well.
Statistics: Posted by aBUGSworstnightmare — Fri Mar 08, 2024 8:23 pm