2019-06-16 18:19:28 +08:00
|
|
|
/*
|
|
|
|
* 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 {
|
2019-10-24 21:30:08 +08:00
|
|
|
gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
|
2019-06-16 18:19:28 +08:00
|
|
|
label = "Status Led";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio_keys {
|
|
|
|
compatible = "gpio-keys";
|
|
|
|
menu_button: menu_button {
|
|
|
|
label = "Menu";
|
2019-10-24 21:30:08 +08:00
|
|
|
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
|
2019-06-16 18:19:28 +08:00
|
|
|
};
|
|
|
|
select_button: select_button {
|
|
|
|
label = "Select";
|
2019-10-24 21:30:08 +08:00
|
|
|
gpios = <&gpio0 27 GPIO_ACTIVE_LOW>;
|
2019-06-16 18:19:28 +08:00
|
|
|
};
|
|
|
|
a_button: a_button {
|
|
|
|
label = "A";
|
2019-10-24 21:30:08 +08:00
|
|
|
gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
|
2019-06-16 18:19:28 +08:00
|
|
|
};
|
|
|
|
b_button: b_button {
|
|
|
|
label = "B";
|
2019-10-24 21:30:08 +08:00
|
|
|
gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
|
2019-06-16 18:19:28 +08:00
|
|
|
};
|
|
|
|
start_button: start_button {
|
|
|
|
label = "Start";
|
2019-10-24 21:30:08 +08:00
|
|
|
gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
|
2019-06-16 18:19:28 +08:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
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>;
|
|
|
|
};
|
2019-10-25 02:50:46 +08:00
|
|
|
|
|
|
|
&i2c0 {
|
|
|
|
status = "okay";
|
|
|
|
clock-frequency = <I2C_BITRATE_FAST>;
|
|
|
|
sda-pin = <4>;
|
|
|
|
scl-pin = <15>;
|
|
|
|
};
|
2019-10-28 23:20:55 +08:00
|
|
|
|
|
|
|
&trng0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|