1/* 2 * Copyright (c) 2024 Renesas Electronics Corporation 3 * SPDX-License-Identifier: Apache-2.0 4 */ 5 6#include <zephyr/dt-bindings/pwm/pwm.h> 7#include <zephyr/dt-bindings/pwm/ra_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 0 0 PWM_POLARITY_NORMAL>, 14 <&pwm5 0 0 PWM_POLARITY_NORMAL>; 15 }; 16}; 17 18&pinctrl { 19 pwm5_default: pwm5_default { 20 group1 { 21 /* GTIOC5A */ 22 psels = <RA_PSEL(RA_PSEL_GPT1, 1, 15)>; 23 }; 24 group2 { 25 /* GTIOC5B */ 26 psels = <RA_PSEL(RA_PSEL_GPT1, 6, 9)>; 27 }; 28 }; 29}; 30 31&pwm5 { 32 pinctrl-0 = <&pwm5_default>; 33 pinctrl-names = "default"; 34 interrupts = <50 1>, <51 1>; 35 interrupt-names = "gtioca", "overflow"; 36 status = "okay"; 37}; 38