Following other drivers, Kconfig based instances are now entirely removed. In order to do this change, PWM nodes in board DT files have been given a pwm{N} label so that both: - DT API checks such as #if DT_HAS_NODE(DT_NODELABEL(pwmN)) can be used (N being PWM instance number). - DT references can be written as pwms = <&pwmN x y>; instead of pwms = <&{/soc/timers@XXXXXXXX/pwm} x y>; This approach is also used on the Linux Kernel. Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
68 lines
947 B
Plaintext
68 lines
947 B
Plaintext
/*
|
|
* Copyright (c) 2019, Kwon Tae-young <tykwon@m2i.co.kr>
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/dts-v1/;
|
|
#include <st/f4/stm32f415Rg.dtsi>
|
|
|
|
/ {
|
|
model = "Mikroe MINI-M4 for STM32 board";
|
|
compatible = "mikroe,mini-m4-for-stm32", "st,stm32f415rg";
|
|
|
|
chosen {
|
|
zephyr,console = &usart2;
|
|
zephyr,shell-uart = &usart2;
|
|
zephyr,sram = &sram0;
|
|
zephyr,flash = &flash0;
|
|
zephyr,ccm = &ccm0;
|
|
};
|
|
|
|
leds {
|
|
compatible = "gpio-leds";
|
|
orange_led_1: led_1 {
|
|
gpios = <&gpioc 12 GPIO_ACTIVE_HIGH>;
|
|
label = "DATA LD1";
|
|
};
|
|
red_led_2: led_2 {
|
|
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
|
|
label = "STAT LD2";
|
|
};
|
|
};
|
|
|
|
aliases {
|
|
led0 = &orange_led_1;
|
|
led1 = &red_led_2;
|
|
};
|
|
};
|
|
|
|
&usart2 {
|
|
current-speed = <115200>;
|
|
status = "okay";
|
|
};
|
|
|
|
&i2c2 {
|
|
status = "okay";
|
|
};
|
|
|
|
&spi1 {
|
|
status = "okay";
|
|
};
|
|
|
|
&timers3 {
|
|
status = "okay";
|
|
|
|
pwm3: pwm {
|
|
status = "okay";
|
|
};
|
|
};
|
|
|
|
&usbotg_fs {
|
|
status = "okay";
|
|
};
|
|
|
|
&cryp {
|
|
status = "okay";
|
|
};
|