You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
640 B
34 lines
640 B
/* |
|
* Copyright (c) 2025 TOKITA Hiroshi |
|
* |
|
* 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 = <&pwm0 0 0 PWM_POLARITY_NORMAL>, |
|
<&pwm7 0 0 PWM_POLARITY_NORMAL>; |
|
}; |
|
}; |
|
|
|
&pinctrl { |
|
pwm0_default: pwm0_default { |
|
group1 { |
|
/* GTIOC0A */ |
|
psels = <RA_PSEL(RA_PSEL_GPT1, 1, 7)>; |
|
}; |
|
}; |
|
}; |
|
|
|
&pwm0 { |
|
pinctrl-0 = <&pwm0_default>; |
|
pinctrl-names = "default"; |
|
interrupts = <30 1>, <31 1>; |
|
interrupt-names = "gtioca", "overflow"; |
|
status = "okay"; |
|
};
|
|
|