From 32fe3619b5b6f9428f7ec58f2241cf4d47524111 Mon Sep 17 00:00:00 2001 From: YuLong Yao Date: Sun, 10 Sep 2023 12:06:19 +0800 Subject: [PATCH] tests: drivers: pwm: add esp32s3_luatos_core add overlay for esp32s3_luatos_core board Signed-off-by: YuLong Yao --- .../boards/esp32s3_luatos_core.overlay | 35 +++++++++++++++++++ .../boards/esp32s3_luatos_core_usb.overlay | 35 +++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 tests/drivers/pwm/pwm_api/boards/esp32s3_luatos_core.overlay create mode 100644 tests/drivers/pwm/pwm_api/boards/esp32s3_luatos_core_usb.overlay diff --git a/tests/drivers/pwm/pwm_api/boards/esp32s3_luatos_core.overlay b/tests/drivers/pwm/pwm_api/boards/esp32s3_luatos_core.overlay new file mode 100644 index 0000000000..23fd331d41 --- /dev/null +++ b/tests/drivers/pwm/pwm_api/boards/esp32s3_luatos_core.overlay @@ -0,0 +1,35 @@ +/* + * SPDX-License-Identifier: Apache-2.0 + * + * Copyright (c) 2023 Espressif Systems (Shanghai) Co., Ltd. + */ + +#include +#include + +/ { + aliases { + pwm-0 = &ledc0; + }; +}; + +&pinctrl { + ledc0_default: ledc0_default { + group1 { + pinmux = ; + output-enable; + }; + }; +}; + +&ledc0 { + pinctrl-0 = <&ledc0_default>; + pinctrl-names = "default"; + status = "okay"; + #address-cells = <1>; + #size-cells = <0>; + channel0@0 { + reg = <0x0>; + timer = <0>; + }; +}; diff --git a/tests/drivers/pwm/pwm_api/boards/esp32s3_luatos_core_usb.overlay b/tests/drivers/pwm/pwm_api/boards/esp32s3_luatos_core_usb.overlay new file mode 100644 index 0000000000..23fd331d41 --- /dev/null +++ b/tests/drivers/pwm/pwm_api/boards/esp32s3_luatos_core_usb.overlay @@ -0,0 +1,35 @@ +/* + * SPDX-License-Identifier: Apache-2.0 + * + * Copyright (c) 2023 Espressif Systems (Shanghai) Co., Ltd. + */ + +#include +#include + +/ { + aliases { + pwm-0 = &ledc0; + }; +}; + +&pinctrl { + ledc0_default: ledc0_default { + group1 { + pinmux = ; + output-enable; + }; + }; +}; + +&ledc0 { + pinctrl-0 = <&ledc0_default>; + pinctrl-names = "default"; + status = "okay"; + #address-cells = <1>; + #size-cells = <0>; + channel0@0 { + reg = <0x0>; + timer = <0>; + }; +};