Browse Source
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>pull/67636/head
1 changed files with 36 additions and 0 deletions
@ -0,0 +1,36 @@
@@ -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>; |
||||
}; |
||||
}; |
||||
}; |
Loading…
Reference in new issue