esp32_devkitc_wroom.overlay 698 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright (c) 2022 Espressif Systems (Shanghai) Co., Ltd.
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #include <zephyr/dt-bindings/pinctrl/esp-pinctrl-common.h>
  7. #include <dt-bindings/pinctrl/esp32-pinctrl.h>
  8. #include <zephyr/dt-bindings/pinctrl/esp32-gpio-sigmap.h>
  9. / {
  10. aliases {
  11. en = &en_button;
  12. boot = &boot_button;
  13. uart = &uart1;
  14. };
  15. gpio_keys {
  16. compatible = "gpio-keys";
  17. en_button: en_button {
  18. gpios = <&gpio0 2 (GPIO_PULL_UP | GPIO_ACTIVE_HIGH)>;
  19. };
  20. boot_button: boot_button {
  21. gpios = <&gpio0 4 (GPIO_PULL_UP | GPIO_ACTIVE_HIGH)>;
  22. };
  23. };
  24. };
  25. &uart1 {
  26. status = "okay";
  27. current-speed = <115200>;
  28. pinctrl-0 = <&uart1_default>;
  29. pinctrl-names = "default";
  30. };