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#include <dt-bindings/pinctrl/esp32s2-pinctrl.h>
10
11/ {
12	aliases {
13		pwm-0 = &ledc0;
14		pwm-led0 = &pwm_led_blue;
15	};
16
17	pwmleds {
18		compatible = "pwm-leds";
19		pwm_led_blue: pwm_led_gpio0_2 {
20			label = "PWM LED0";
21			pwms = <&ledc0 0 1000 PWM_POLARITY_NORMAL>;
22		};
23	};
24};
25
26&pinctrl {
27	ledc0_default: ledc0_default {
28		group1 {
29			pinmux = <LEDC_CH0_GPIO2>;
30			output-enable;
31		};
32	};
33};
34
35&ledc0 {
36	pinctrl-0 = <&ledc0_default>;
37	pinctrl-names = "default";
38	status = "okay";
39	#address-cells = <1>;
40	#size-cells = <0>;
41	channel0@0 {
42		reg = <0x0>;
43		timer = <0>;
44	};
45};
46