1/*
2 * Copyright 2024 NXP
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#include <zephyr/dt-bindings/pwm/pwm.h>
8
9/ {
10	pwm_loopback_0 {
11		compatible = "test-pwm-loopback";
12		pwms = <&emios0_pwm 24 0 PWM_POLARITY_NORMAL>,
13			<&emios0_pwm 25 0 PWM_POLARITY_NORMAL>;
14	};
15};
16
17&pinctrl {
18	emios0_default: emios0_default {
19		group0 {
20			pinmux = <PK0_EMIOS_0_CH24_O>;
21			output-enable;
22		};
23		group1 {
24			pinmux = <PJ15_EMIOS_0_CH25_I>;
25			input-enable;
26		};
27	};
28};
29
30&emios0 {
31	clock-divider = <200>;
32	status = "okay";
33
34	emios0_pwm: pwm {
35		pinctrl-0 = <&emios0_default>;
36		pinctrl-names = "default";
37		status = "okay";
38
39		pwm_24 {
40			channel = <24>;
41			prescaler = <16>;
42			pwm-mode = "OPWFMB";
43		};
44
45		pwm_25 {
46			channel = <25>;
47			pwm-mode = "SAIC";
48			prescaler = <16>;
49		};
50	};
51};
52