1/*
2 * Copyright (c) 2024 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 = <&pwm0 0 0 PWM_POLARITY_NORMAL>,
15			<&pwm6 0 0 PWM_POLARITY_NORMAL>;
16	};
17};
18
19&pinctrl {
20	pwm6_default: pwm6_default {
21		group1 {
22			/* GTIOC6A GTIOC6B */
23			psels = <RA_PSEL(RA_PSEL_GPT1, 3, 4)>,
24				<RA_PSEL(RA_PSEL_GPT1, 3, 3)>;
25		};
26	};
27};
28
29&pwm6 {
30	pinctrl-0 = <&pwm6_default>;
31	pinctrl-names = "default";
32	interrupts = <20 1>, <21 1>;
33	interrupt-names = "gtioca", "overflow";
34	status = "okay";
35};
36