zephyr/boards/arm/stm32f072_eval/stm32f072_eval.dts
Erwan Gouriou 4dc303b99b dts: stm32: Remove pinctrl definitions
dts pinctrl definitions were pushed in tree without the code
available to deal with it. They have been kept waiting for the
code, but this is taking much more time than initially thought.

So in current zephyr tree, for all STM32 boards, we have pinmux.c
file which is used to configure pins and these files that are
basically no-op. This situation is creating a lot of confusion
especially to new comers, and create useless maintenance effort.

Remove these files for now.
When zephyr will ready to use them, this commit could be reverted.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2019-11-06 18:26:04 +01:00

87 lines
1.6 KiB
Plaintext

/*
* Copyright (c) 2017 BayLibre, SAS
*
* SPDX-License-Identifier: Apache-2.0
*/
/dts-v1/;
#include <st/f0/stm32f072Xb.dtsi>
/ {
model = "STMicroelectronics STM32F072-EVAL board";
compatible = "st,stm32f072-eval", "st,stm32f072";
chosen {
zephyr,console = &usart2;
zephyr,shell-uart = &usart2;
zephyr,sram = &sram0;
zephyr,flash = &flash0;
};
leds {
compatible = "gpio-leds";
green_led_1: led_1 {
gpios = <&gpiod 8 GPIO_INT_ACTIVE_HIGH>;
label = "User LD1";
};
orange_led_2: led_2 {
gpios = <&gpiod 9 GPIO_INT_ACTIVE_HIGH>;
label = "User LD2";
};
red_led_3: led_3 {
gpios = <&gpiod 10 GPIO_INT_ACTIVE_HIGH>;
label = "User LD3";
};
blue_led_4: led_4 {
gpios = <&gpiod 11 GPIO_INT_ACTIVE_HIGH>;
label = "User LD4";
};
};
gpio_keys {
compatible = "gpio-keys";
tamper: tamper_button {
label = "tamper button";
gpios = <&gpioc 13 GPIO_INT_ACTIVE_LOW>;
};
joy_sel: joystick_selection {
label = "joystick selection";
gpios = <&gpioa 0 GPIO_INT_ACTIVE_LOW>;
};
joy_down: joystick_down {
label = "joystick down";
gpios = <&gpiof 10 GPIO_INT_ACTIVE_LOW>;
};
joy_up: joystick_up {
label = "joystick up";
gpios = <&gpiof 9 GPIO_INT_ACTIVE_LOW>;
};
joy_left: joystick_left {
label = "joystick left";
gpios = <&gpiof 2 GPIO_INT_ACTIVE_LOW>;
};
joy_right: joystick_right {
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>;
status = "okay";
};
&iwdg {
status = "okay";
};