1/* 2 * Copyright (c) 2021 Tilmann Unte 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7#include <zephyr/dt-bindings/pwm/pwm.h> 8 9/ { 10 pwm_loopback_0 { 11 compatible = "test-pwm-loopback"; 12 /* first index must be a 32-Bit timer */ 13 pwms = <&pwm2 1 0 PWM_POLARITY_NORMAL>, 14 <&pwm15 1 0 PWM_POLARITY_NORMAL>; 15 }; 16}; 17 18/* 32-Bit timers */ 19&timers2 { 20 status = "okay"; 21 pwm2: pwm { 22 status = "okay"; 23 pinctrl-0 = <&tim2_ch1_pa5>; /* CN1 D13 */ 24 pinctrl-names = "default"; 25 }; 26}; 27 28&timers5 { 29 status = "okay"; 30 pwm5: pwm { 31 status = "okay"; 32 pinctrl-0 = <&tim5_ch1_pa0>; /* CN3 D1 */ 33 pinctrl-names = "default"; 34 }; 35}; 36 37/* 16-Bit timers */ 38&timers3 { 39 status = "okay"; 40 st,prescaler = <255>; 41 pwm3: pwm { 42 status = "okay"; 43 pinctrl-0 = <&tim3_ch1_pa6>; /* CN1 D12 */ 44 pinctrl-names = "default"; 45 }; 46}; 47 48&timers15 { 49 status = "okay"; 50 st,prescaler = <255>; 51 pwm15: pwm { 52 status = "okay"; 53 pinctrl-0 = <&tim15_ch1_pa2>; /* CN1 D10 */ 54 pinctrl-names = "default"; 55 }; 56}; 57