| /* |
| * Copyright (c) 2021 Denx Software Engineering GmbH |
| * |
| * SPDX-License-Identifier: Apache-2.0 |
| */ |
| |
| #include <dt-bindings/pwm/pwm.h> |
| |
| / { |
| pwm_loopback_0 { |
| compatible = "test-pwm-loopback"; |
| /* first index must be a 32-Bit timer */ |
| pwms = <&pwm2 4 0 PWM_POLARITY_NORMAL>, |
| <&pwm5 1 0 PWM_POLARITY_NORMAL>; |
| }; |
| }; |
| |
| /* 32-Bit timers */ |
| &timers2 { |
| status = "okay"; |
| pwm2: pwm { |
| status = "okay"; |
| pinctrl-0 = <&tim2_ch4_pa3>; /* CN9 PIN1 A0 */ |
| pinctrl-names = "default"; |
| }; |
| }; |
| |
| &timers5 { |
| status = "okay"; |
| pwm5: pwm { |
| status = "okay"; |
| pinctrl-0 = <&tim5_ch1_pa0>; /* CN11 PIN28 */ |
| pinctrl-names = "default"; |
| }; |
| }; |