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#include <dt-bindings/pinctrl/esp32s3-pinctrl.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_21 {
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_GPIO21>;
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