1/*
2 * SPDX-License-Identifier: Apache-2.0
3 *
4 * Copyright (c) 2023 Espressif Systems (Shanghai) Co., Ltd.
5 */
6
7#include <zephyr/dt-bindings/pwm/pwm.h>
8
9/ {
10	aliases {
11		pwm-0 = &ledc0;
12		pwm-led0 = &pwm_led_blue;
13	};
14
15	pwmleds {
16		compatible = "pwm-leds";
17		pwm_led_blue: pwm_led_gpio0_21 {
18			label = "PWM LED0";
19			pwms = <&ledc0 0 1000 PWM_POLARITY_NORMAL>;
20		};
21	};
22};
23
24&pinctrl {
25	ledc0_default: ledc0_default {
26		group1 {
27			pinmux = <LEDC_CH0_GPIO21>;
28			output-enable;
29		};
30	};
31};
32
33&ledc0 {
34	pinctrl-0 = <&ledc0_default>;
35	pinctrl-names = "default";
36	status = "okay";
37	#address-cells = <1>;
38	#size-cells = <0>;
39	channel0@0 {
40		reg = <0x0>;
41		timer = <0>;
42	};
43};
44