Skip to content

Commit

Permalink
change: change pins to match the esp32_example
Browse files Browse the repository at this point in the history
The commit changes the pins to match the esp32_example. Current pins
are used for SPI flash on some boards.
  • Loading branch information
Dzarda7 committed Nov 20, 2024
1 parent a6a0711 commit e5ca6f2
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
8 changes: 4 additions & 4 deletions examples/zephyr_example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
19 changes: 17 additions & 2 deletions examples/zephyr_example/socs/esp32_procpu.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -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 = <UART1_TX_GPIO4>;
input-enable;
};
group2 {
pinmux = <UART1_RX_GPIO5>;
output-enable;
};
};
};

&uart1 {
status = "okay";
pinctrl-0 = <&uart1_example>;
pinctrl-names = "default";
};

0 comments on commit e5ca6f2

Please sign in to comment.