File tree Expand file tree Collapse file tree 8 files changed +52
-78
lines changed
tests/drivers/pwm/pwm_api Expand file tree Collapse file tree 8 files changed +52
-78
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11/*
22 * SPDX-License-Identifier: Apache-2.0
33 *
4- * Copyright (c) 2023 Espressif Systems (Shanghai) Co., Ltd.
4+ * Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
55 */
66
77#include <zephyr/dt-bindings/pwm/pwm.h>
8+ #include <zephyr/dt-bindings/gpio/gpio.h>
9+ #include <zephyr/dt-bindings/gpio/espressif-esp32-gpio.h>
810
911/ {
1012 aliases {
1113 pwm-0 = &ledc0;
1214 };
15+
16+ resources {
17+ compatible = "test-pwm-api";
18+ in-gpios = <&gpio0 2 ESP32_GPIO_PIN_OUT_EN>;
19+ };
1320};
1421
1522&pinctrl {
1623 ledc0_default: ledc0_default {
1724 group1 {
1825 pinmux = <LEDC_CH0_GPIO2>;
19- output -enable;
26+ input -enable;
2027 };
2128 };
2229};
Original file line number Diff line number Diff line change 55 */
66
77#include <zephyr/dt-bindings/pwm/pwm.h>
8+ #include <zephyr/dt-bindings/gpio/gpio.h>
9+ #include <zephyr/dt-bindings/gpio/espressif-esp32-gpio.h>
810
911/ {
1012 aliases {
1113 pwm-0 = &ledc0;
1214 };
15+
16+ resources {
17+ compatible = "test-pwm-api";
18+ in-gpios = <&gpio0 2 ESP32_GPIO_PIN_OUT_EN>;
19+ };
1320};
1421
1522&pinctrl {
1623 ledc0_default: ledc0_default {
1724 group1 {
1825 pinmux = <LEDC_CH0_GPIO2>;
19- output -enable;
26+ input -enable;
2027 };
2128 };
2229};
Original file line number Diff line number Diff line change 55 */
66
77#include <zephyr/dt-bindings/pwm/pwm.h>
8+ #include <zephyr/dt-bindings/gpio/gpio.h>
9+ #include <zephyr/dt-bindings/gpio/espressif-esp32-gpio.h>
810
911/ {
1012 aliases {
1113 pwm-0 = &ledc0;
1214 };
15+
16+ resources {
17+ compatible = "test-pwm-api";
18+ in-gpios = <&gpio0 2 ESP32_GPIO_PIN_OUT_EN>;
19+ };
1320};
1421
1522&pinctrl {
1623 ledc0_default: ledc0_default {
1724 group1 {
1825 pinmux = <LEDC_CH0_GPIO2>;
19- output -enable;
26+ input -enable;
2027 };
2128 };
2229};
Original file line number Diff line number Diff line change 11/*
22 * SPDX-License-Identifier: Apache-2.0
33 *
4- * Copyright (c) 2023 Espressif Systems (Shanghai) Co., Ltd.
4+ * Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
55 */
66
77#include <zephyr/dt-bindings/pwm/pwm.h>
8+ #include <zephyr/dt-bindings/gpio/gpio.h>
9+ #include <zephyr/dt-bindings/gpio/espressif-esp32-gpio.h>
810
911/ {
1012 aliases {
1113 pwm-0 = &ledc0;
1214 };
15+
16+ resources {
17+ compatible = "test-pwm-api";
18+ in-gpios = <&gpio0 2 ESP32_GPIO_PIN_OUT_EN>;
19+ };
1320};
1421
1522&pinctrl {
1623 ledc0_default: ledc0_default {
1724 group1 {
1825 pinmux = <LEDC_CH0_GPIO2>;
19- output -enable;
26+ input -enable;
2027 };
2128 };
2229};
Original file line number Diff line number Diff line change 11/*
22 * SPDX-License-Identifier: Apache-2.0
33 *
4- * Copyright (c) 2023 Espressif Systems (Shanghai) Co., Ltd.
4+ * Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
55 */
66
77#include <zephyr/dt-bindings/pwm/pwm.h>
8+ #include <zephyr/dt-bindings/gpio/gpio.h>
9+ #include <zephyr/dt-bindings/gpio/espressif-esp32-gpio.h>
810
911/ {
1012 aliases {
1113 pwm-0 = &ledc0;
1214 };
15+
16+ resources {
17+ compatible = "test-pwm-api";
18+ in-gpios = <&gpio0 2 ESP32_GPIO_PIN_OUT_EN>;
19+ };
1320};
1421
1522&pinctrl {
1623 ledc0_default: ledc0_default {
1724 group1 {
1825 pinmux = <LEDC_CH0_GPIO2>;
19- output -enable;
26+ input -enable;
2027 };
2128 };
2229};
Original file line number Diff line number Diff line change 11/*
22 * SPDX-License-Identifier: Apache-2.0
33 *
4- * Copyright (c) 2023 Espressif Systems (Shanghai) Co., Ltd.
4+ * Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
55 */
66
77#include <zephyr/dt-bindings/pwm/pwm.h>
8+ #include <zephyr/dt-bindings/gpio/gpio.h>
9+ #include <zephyr/dt-bindings/gpio/espressif-esp32-gpio.h>
810
911/ {
1012 aliases {
1113 pwm-0 = &ledc0;
1214 };
15+
16+ resources {
17+ compatible = "test-pwm-api";
18+ in-gpios = <&gpio0 2 ESP32_GPIO_PIN_OUT_EN>;
19+ };
1320};
1421
1522&pinctrl {
1623 ledc0_default: ledc0_default {
1724 group1 {
1825 pinmux = <LEDC_CH0_GPIO2>;
19- output -enable;
26+ input -enable;
2027 };
2128 };
2229};
You can’t perform that action at this time.
0 commit comments