zephyr/boards/xtensa/odroid_go/odroid_go.dts
Mohamed ElShahawi fef3ebaa69 drivers: gpio_esp32: update to use new GPIO API
- Updates gpio driver and device tree files to the new GPIO Config flags
- Implements the new port_* APIs
- Update I2C and PWM Drivers to use new GPIO config
- Add esp32.overlay to gpio_basic_api test
- refactor convert_int_type, regs struct
- remove config_polarity
- add kConfig notes

Tests:
- samples/basic/blinky
- samples/basic/button
- tests/drivers/gpio/gpio_basic_api
- tests/drivers/gpio/gpio_api_1pin

Board:
- esp32 DevKitC V4

Note about interrupts:
The ESP32 requires specifying a CPU interrupt to be used for GPIO
interrupt signals.  CPU interrupts can be either level or edge (or
special) triggered, but not both.
Please check gpio/Kconfig.esp32 for more info.

Signed-off-by: Mohamed ElShahawi <ExtremeGTX@hotmail.com>
2020-02-05 12:00:36 +01:00

84 lines
1.3 KiB
Plaintext

/*
* Copyright (c) 2019 Yannis Damigos
*
* SPDX-License-Identifier: Apache-2.0
*/
/dts-v1/;
#include "espressif/esp32.dtsi"
/ {
model = "ODROID-GO Game Kit";
compatible = "hardkernel,odroid-go", "espressif,esp32";
chosen {
zephyr,sram = &sram0;
zephyr,console = &uart0;
zephyr,shell-uart = &uart0;
};
leds {
compatible = "gpio-leds";
blue_led: led {
gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
label = "Status Led";
};
};
gpio_keys {
compatible = "gpio-keys";
menu_button: menu_button {
label = "Menu";
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
};
select_button: select_button {
label = "Select";
gpios = <&gpio0 27 GPIO_ACTIVE_LOW>;
};
a_button: a_button {
label = "A";
gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
};
b_button: b_button {
label = "B";
gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
};
start_button: start_button {
label = "Start";
gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
};
};
aliases {
uart-0 = &uart0;
led0 = &blue_led;
sw0 = &menu_button;
};
};
&cpu0 {
clock-frequency = <40000000>;
};
&cpu1 {
clock-frequency = <40000000>;
};
&uart0 {
status = "okay";
current-speed = <115200>;
tx-pin = <1>;
rx-pin = <3>;
};
&i2c0 {
status = "okay";
clock-frequency = <I2C_BITRATE_FAST>;
sda-pin = <4>;
scl-pin = <15>;
};
&trng0 {
status = "okay";
};