1/* 2 * Copyright (c) 2024 Joel Guittet 3 * SPDX-License-Identifier: Apache-2.0 4 */ 5 6/{ 7 aliases { 8 pwm-led0 = &pwm_led0; 9 }; 10 11 pwmleds { 12 compatible = "pwm-leds"; 13 pwm_led0: pwm_led_0 { 14 pwms = <&tcc1 3 PWM_MSEC(500)>; 15 label = "Blue PWM LED"; 16 }; 17 }; 18}; 19 20&tcc1 { 21 status = "okay"; 22 compatible = "atmel,sam0-tcc-pwm"; 23 prescaler = <4>; 24 #pwm-cells = <2>; 25 26 pinctrl-0 = <&pwm_default>; 27 pinctrl-names = "default"; 28}; 29 30&pinctrl { 31 pwm_default: pwm_default { 32 group1 { 33 pinmux = <PA15G_TCC1_WO3>; 34 }; 35 }; 36}; 37