board: adafruit: Enable PWM on the Adafruit feather
This enables PWM on the Adafruit feather m4 express Signed-off-by: Teresa Zepeda Ventura <teresa.zvent@gmail.com>
This commit is contained in:
parent
972c76bbf6
commit
9dbabd6fe9
@ -35,10 +35,10 @@
|
||||
pinmux = <PA22G_TCC0_WO2>;
|
||||
};
|
||||
};
|
||||
pwm1_default: pwm1_default {
|
||||
|
||||
tc0_default: tc0_default {
|
||||
group1 {
|
||||
pinmux = <PA18F_TCC1_WO2>,
|
||||
<PA19F_TCC1_WO3>;
|
||||
pinmux = <PA5E_TC0_WO1>;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@ -25,6 +25,7 @@
|
||||
aliases {
|
||||
led0 = &led0;
|
||||
pwm-0 = &tcc0;
|
||||
pwm-1 = &tc0;
|
||||
};
|
||||
|
||||
leds {
|
||||
@ -70,6 +71,17 @@
|
||||
pinctrl-names = "default";
|
||||
};
|
||||
|
||||
&tc0 {
|
||||
status = "okay";
|
||||
compatible = "atmel,sam0-tc-pwm";
|
||||
prescaler = <1024>;
|
||||
#pwm-cells = <2>;
|
||||
channels = <2>;
|
||||
counter-size = <16>;
|
||||
pinctrl-0 = <&tc0_default>;
|
||||
pinctrl-names = "default";
|
||||
};
|
||||
|
||||
zephyr_udc0: &usb0 {
|
||||
status = "okay";
|
||||
pinctrl-0 = <&usb_dc_default>;
|
||||
|
||||
@ -7,7 +7,7 @@ source [find target/atsame5x.cfg]
|
||||
|
||||
# TODO(http://openocd.zylin.com/#/c/5706/): lower the clock speed to workaround
|
||||
# an erase timeout.
|
||||
adapter_khz 500
|
||||
adapter speed 500
|
||||
reset_config srst_only
|
||||
|
||||
$_TARGETNAME configure -event gdb-attach {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user