samples: add Wio Terminal overlay to blinky pwm

Add overlay to the blinky pwm sample to run the application on the
Wio Terminal. The USER LED on PA15 is used to setup the PWM LED.

Signed-off-by: Joel Guittet <joelguittet@gmail.com>
This commit is contained in:
Joel Guittet 2024-01-02 22:08:37 +01:00 committed by Anas Nashif
commit 93b6a06bd1

View file

@ -0,0 +1,36 @@
/*
* Copyright (c) 2024 Joel Guittet
* SPDX-License-Identifier: Apache-2.0
*/
/{
aliases {
pwm-led0 = &pwm_led0;
};
pwmleds {
compatible = "pwm-leds";
pwm_led0: pwm_led_0 {
pwms = <&tcc1 3 PWM_MSEC(500)>;
label = "Blue PWM LED";
};
};
};
&tcc1 {
status = "okay";
compatible = "atmel,sam0-tcc-pwm";
prescaler = <4>;
#pwm-cells = <2>;
pinctrl-0 = <&pwm_default>;
pinctrl-names = "default";
};
&pinctrl {
pwm_default: pwm_default {
group1 {
pinmux = <PA15G_TCC1_WO3>;
};
};
};