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