1/* 2 * Copyright (c) 2025 Renesas Electronics Corporation 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7#include <zephyr/dt-bindings/pwm/pwm.h> 8#include <zephyr/dt-bindings/pwm/ra_pwm.h> 9 10/ { 11 pwm_loopback_0 { 12 compatible = "test-pwm-loopback"; 13 /* first index must be a 32-Bit timer */ 14 pwms = <&pwm2 0 0 PWM_POLARITY_NORMAL>, 15 <&pwm4 0 0 PWM_POLARITY_NORMAL>; 16 }; 17}; 18 19&pinctrl { 20 pwm2_default: pwm2_default { 21 group1 { 22 /* GTIOC2A GTIOC2B */ 23 psels = <RA_PSEL(RA_PSEL_GPT1, 1, 3)>, 24 <RA_PSEL(RA_PSEL_GPT1, 1, 2)>; 25 }; 26 }; 27 28 pwm4_default: pwm4_default { 29 group1 { 30 /* GTIOC4A*/ 31 psels = <RA_PSEL(RA_PSEL_GPT1, 3, 2)>; 32 }; 33 }; 34}; 35 36&pwm2 { 37 pinctrl-0 = <&pwm2_default>; 38 pinctrl-names = "default"; 39 interrupts = <63 1>, <64 1>; 40 interrupt-names = "gtioca", "overflow"; 41 status = "okay"; 42}; 43 44&pwm4 { 45 pinctrl-0 = <&pwm4_default>; 46 pinctrl-names = "default"; 47 interrupts = <65 1>, <66 1>; 48 interrupt-names = "gtioca", "overflow"; 49 status = "okay"; 50}; 51