From e5ca6f2fdd364eb524474a0744ca07d309bc7eeb Mon Sep 17 00:00:00 2001 From: Jaroslav Burian Date: Mon, 23 Sep 2024 10:45:44 +0200 Subject: [PATCH] change: change pins to match the esp32_example The commit changes the pins to match the esp32_example. Current pins are used for SPI flash on some boards. --- examples/zephyr_example/README.md | 8 ++++---- .../zephyr_example/socs/esp32_procpu.overlay | 19 +++++++++++++++++-- 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/examples/zephyr_example/README.md b/examples/zephyr_example/README.md index 39d6d89..9715ebb 100644 --- a/examples/zephyr_example/README.md +++ b/examples/zephyr_example/README.md @@ -33,10 +33,10 @@ Table below shows connection between the two devices: | ESP32 (host) | Espressif SoC (target) | |:------------:|:----------------------:| -| IO4 | IO0 | -| IO2 | RESET | -| IO9 | TX0 | -| IO10 | RX0 | +| IO26 | IO0 | +| IO25 | RESET | +| IO4 | TX0 | +| IO5 | RX0 | ## Build and flash diff --git a/examples/zephyr_example/socs/esp32_procpu.overlay b/examples/zephyr_example/socs/esp32_procpu.overlay index b4e9a7e..c6573c5 100644 --- a/examples/zephyr_example/socs/esp32_procpu.overlay +++ b/examples/zephyr_example/socs/esp32_procpu.overlay @@ -14,14 +14,29 @@ gpio_keys { compatible = "gpio-keys"; en_button: en_button { - gpios = <&gpio0 2 (GPIO_PULL_UP | GPIO_ACTIVE_HIGH)>; + gpios = <&gpio0 25 (GPIO_PULL_UP | GPIO_ACTIVE_HIGH)>; }; boot_button: boot_button { - gpios = <&gpio0 4 (GPIO_PULL_UP | GPIO_ACTIVE_HIGH)>; + gpios = <&gpio0 26 (GPIO_PULL_UP | GPIO_ACTIVE_HIGH)>; + }; + }; +}; + +&pinctrl { + uart1_example: uart1_example { + group1 { + pinmux = ; + input-enable; + }; + group2 { + pinmux = ; + output-enable; }; }; }; &uart1 { status = "okay"; + pinctrl-0 = <&uart1_example>; + pinctrl-names = "default"; };