2017-09-08 21:59:38 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2017 BayLibre, SAS
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
2018-09-26 11:06:34 +08:00
|
|
|
#include <st/f0/stm32f072Xb.dtsi>
|
2017-09-08 21:59:38 +08:00
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "STMicroelectronics STM32F072-EVAL board";
|
|
|
|
compatible = "st,stm32f072-eval", "st,stm32f072";
|
|
|
|
|
|
|
|
chosen {
|
|
|
|
zephyr,console = &usart2;
|
2018-11-27 19:11:04 +08:00
|
|
|
zephyr,shell-uart = &usart2;
|
2017-09-08 21:59:38 +08:00
|
|
|
zephyr,sram = &sram0;
|
|
|
|
zephyr,flash = &flash0;
|
|
|
|
};
|
2017-11-24 17:08:03 +08:00
|
|
|
|
|
|
|
|
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
2018-09-19 01:45:43 +08:00
|
|
|
green_led_1: led_1 {
|
2017-11-24 17:08:03 +08:00
|
|
|
gpios = <&gpiod 8 GPIO_INT_ACTIVE_HIGH>;
|
|
|
|
label = "User LD1";
|
|
|
|
};
|
2018-09-19 01:45:43 +08:00
|
|
|
orange_led_2: led_2 {
|
2017-11-24 17:08:03 +08:00
|
|
|
gpios = <&gpiod 9 GPIO_INT_ACTIVE_HIGH>;
|
|
|
|
label = "User LD2";
|
|
|
|
};
|
2018-09-19 01:45:43 +08:00
|
|
|
red_led_3: led_3 {
|
2017-11-24 17:08:03 +08:00
|
|
|
gpios = <&gpiod 10 GPIO_INT_ACTIVE_HIGH>;
|
|
|
|
label = "User LD3";
|
|
|
|
};
|
2018-09-19 01:45:43 +08:00
|
|
|
blue_led_4: led_4 {
|
2017-11-24 17:08:03 +08:00
|
|
|
gpios = <&gpiod 11 GPIO_INT_ACTIVE_HIGH>;
|
|
|
|
label = "User LD4";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio_keys {
|
|
|
|
compatible = "gpio-keys";
|
2018-09-18 21:44:58 +08:00
|
|
|
tamper: tamper_button {
|
2017-11-24 17:08:03 +08:00
|
|
|
label = "tamper button";
|
|
|
|
gpios = <&gpioc 13 GPIO_INT_ACTIVE_LOW>;
|
|
|
|
};
|
2018-09-18 21:44:58 +08:00
|
|
|
joy_sel: joystick_selection {
|
2017-11-24 17:08:03 +08:00
|
|
|
label = "joystick selection";
|
|
|
|
gpios = <&gpioa 0 GPIO_INT_ACTIVE_LOW>;
|
|
|
|
};
|
2018-09-18 21:44:58 +08:00
|
|
|
joy_down: joystick_down {
|
2017-11-24 17:08:03 +08:00
|
|
|
label = "joystick down";
|
|
|
|
gpios = <&gpiof 10 GPIO_INT_ACTIVE_LOW>;
|
|
|
|
};
|
2018-09-18 21:44:58 +08:00
|
|
|
joy_up: joystick_up {
|
2017-11-24 17:08:03 +08:00
|
|
|
label = "joystick up";
|
|
|
|
gpios = <&gpiof 9 GPIO_INT_ACTIVE_LOW>;
|
|
|
|
};
|
2018-09-18 21:44:58 +08:00
|
|
|
joy_left: joystick_left {
|
2017-11-24 17:08:03 +08:00
|
|
|
label = "joystick left";
|
|
|
|
gpios = <&gpiof 2 GPIO_INT_ACTIVE_LOW>;
|
|
|
|
};
|
2018-09-18 21:44:58 +08:00
|
|
|
joy_right: joystick_right {
|
2017-11-24 17:08:03 +08:00
|
|
|
label = "joystick right";
|
|
|
|
gpios = <&gpioe 3 GPIO_INT_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
aliases {
|
|
|
|
led0 = &green_led_1;
|
|
|
|
led1 = &orange_led_2;
|
|
|
|
led2 = &red_led_3;
|
|
|
|
led3 = &blue_led_4;
|
|
|
|
sw0 = &joy_sel;
|
|
|
|
};
|
2017-09-08 21:59:38 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
&usart2 {
|
|
|
|
current-speed = <115200>;
|
|
|
|
pinctrl-0 = <&usart2_pins_d>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
status = "ok";
|
|
|
|
};
|