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
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
41	channel0@0 {
42		reg = <0x0>;
43		timer = <0>;
44	};
45};
46