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"; };