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 = <&pwm7 0 0 PWM_POLARITY_NORMAL>, 14 <&pwm9 0 0 PWM_POLARITY_NORMAL>; 15 }; 16}; 17 18&pinctrl { 19 pwm9_default: pwm9_default { 20 group1 { 21 /* GTIOC9A */ 22 psels = <RA_PSEL(RA_PSEL_GPT1, 4, 11)>; 23 }; 24 group2 { 25 /* GTIOC9B */ 26 psels = <RA_PSEL(RA_PSEL_GPT1, 4, 10)>; 27 }; 28 }; 29}; 30 31&pwm9 { 32 pinctrl-0 = <&pwm9_default>; 33 pinctrl-names = "default"; 34 interrupts = <50 1>, <51 1>; 35 interrupt-names = "gtioca", "overflow"; 36 status = "okay"; 37}; 38