1/*
2 * Copyright (c) 2020-2021 Vestas Wind Systems A/S
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#include <zephyr/dt-bindings/pwm/pwm.h>
8
9&pinctrl {
10	pwt_default: pwt_default {
11		group0 {
12			pinmux = <PWT_IN1_PTE11>;
13			drive-strength = "low";
14			slew-rate = "slow";
15		};
16	};
17
18	ftm2_default: ftm2_default {
19		group0 {
20			pinmux = <FTM2_CH6_PTE15>;
21			drive-strength = "low";
22			slew-rate = "slow";
23		};
24	};
25};
26
27/ {
28	pwm_loopback_0 {
29		compatible = "test-pwm-loopback";
30		pwms = <&ftm2 6 0 PWM_POLARITY_NORMAL>, /* PTE15, J20 pin 5 */
31		       <&pwt 1 0 PWM_POLARITY_NORMAL>;  /* PTE11, J20 pin 8 */
32	};
33};
34
35&pwt {
36	status = "okay";
37	prescaler = <32>;
38	pinctrl-0 = <&pwt_default>;
39	pinctrl-names = "default";
40};
41
42&ftm2 {
43	status = "okay";
44	compatible = "nxp,kinetis-ftm-pwm";
45	prescaler = <128>;
46	#pwm-cells = <3>;
47	pinctrl-0 = <&ftm2_default>;
48	pinctrl-names = "default";
49};
50