Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5161

Device Tree • Re: PWM driver questions

$
0
0
Oh sorry, PWM0_0 on GPIO12 is ALT0

Code:

..#include <dt-bindings/gpio/gpio.h>#include <dt-bindings/pinctrl/bcm2835.h>..    fragment@0 {        target = <&gpio>;        __overlay__ {            pwm_pins: pwm_pins {                brcm,pins = <12>;                brcm,function = <BCM2835_FSEL_ALT0>;                brcm,pull = <0>;            };        };    };
I'm always referring to bcm2835.h in my overlays.

Statistics: Posted by aBUGSworstnightmare — Mon Mar 04, 2024 7:28 am



Viewing all articles
Browse latest Browse all 5161

Trending Articles