blob: 773dd6840a497e68a3fd1e07cb6a0b827dbec67e [file] [log] [blame]
/*
* Copyright (c) 2017 BayLibre, SAS
*
* SPDX-License-Identifier: Apache-2.0
*/
/dts-v1/;
#include <st/stm32f072.dtsi>
/ {
model = "STMicroelectronics STM32F072-EVAL board";
compatible = "st,stm32f072-eval", "st,stm32f072";
chosen {
zephyr,console = &usart2;
zephyr,sram = &sram0;
zephyr,flash = &flash0;
};
leds {
compatible = "gpio-leds";
green_led_1: led@0 {
gpios = <&gpiod 8 GPIO_INT_ACTIVE_HIGH>;
label = "User LD1";
};
orange_led_2: led@1 {
gpios = <&gpiod 9 GPIO_INT_ACTIVE_HIGH>;
label = "User LD2";
};
red_led_3: led@2 {
gpios = <&gpiod 10 GPIO_INT_ACTIVE_HIGH>;
label = "User LD3";
};
blue_led_4: led@3 {
gpios = <&gpiod 11 GPIO_INT_ACTIVE_HIGH>;
label = "User LD4";
};
};
gpio_keys {
compatible = "gpio-keys";
tamper: tamper@0 {
label = "tamper button";
gpios = <&gpioc 13 GPIO_INT_ACTIVE_LOW>;
};
joy_sel: joystick@1 {
label = "joystick selection";
gpios = <&gpioa 0 GPIO_INT_ACTIVE_LOW>;
};
joy_down: joystick@2 {
label = "joystick down";
gpios = <&gpiof 10 GPIO_INT_ACTIVE_LOW>;
};
joy_up: joystick@3 {
label = "joystick up";
gpios = <&gpiof 9 GPIO_INT_ACTIVE_LOW>;
};
joy_left: joystick@4 {
label = "joystick left";
gpios = <&gpiof 2 GPIO_INT_ACTIVE_LOW>;
};
joy_right: joystick@5 {
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;
};
};
&usart2 {
current-speed = <115200>;
pinctrl-0 = <&usart2_pins_d>;
pinctrl-names = "default";
status = "ok";
};