Commit 48c46179 authored by Thao Luong's avatar Thao Luong Committed by Benjamin Cabé
Browse files

tests: drivers: pwm: Add dts nodes for ek_ra4l1



Add dts nodes for ek_ra4l1 run on pwm_loopback

Signed-off-by: default avatarThao Luong <thao.luong.uw@renesas.com>
parent cf9aa0fd
Loading
Loading
Loading
Loading
+34 −0
Original line number Diff line number Diff line
/*
 * Copyright (c) 2025 Renesas Electronics Corporation
 *
 * SPDX-License-Identifier: Apache-2.0
 */

#include <zephyr/dt-bindings/pwm/pwm.h>
#include <zephyr/dt-bindings/pwm/ra_pwm.h>

/ {
	pwm_loopback_0 {
		compatible = "test-pwm-loopback";
		/* first index must be a 32-Bit timer */
		pwms = <&pwm1 0 0 PWM_POLARITY_NORMAL>,
			<&pwm4 0 0 PWM_POLARITY_NORMAL>;
	};
};

&pinctrl {
	pwm4_default: pwm4_default {
		group1 {
			/* GTIOC4A*/
			psels = <RA_PSEL(RA_PSEL_GPT1, 1, 15)>;
		};
	};
};

&pwm4 {
	pinctrl-0 = <&pwm4_default>;
	pinctrl-names = "default";
	interrupts = <63 1>, <62 1>;
	interrupt-names = "gtioca", "overflow";
	status = "okay";
};