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 }; 13}; 14 15&pinctrl { 16 ledc0_default: ledc0_default { 17 group1 { 18 pinmux = <LEDC_CH0_GPIO2>; 19 output-enable; 20 }; 21 }; 22}; 23 24&ledc0 { 25 pinctrl-0 = <&ledc0_default>; 26 pinctrl-names = "default"; 27 status = "okay"; 28 #address-cells = <1>; 29 #size-cells = <0>; 30 channel0@0 { 31 reg = <0x0>; 32 timer = <0>; 33 }; 34}; 35