2018-02-23 10:24:36 +01:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2018 STMicroelectronics
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
2019-03-22 14:14:02 +01:00
|
|
|
#include <st/f4/stm32f412Xg.dtsi>
|
2018-02-23 10:24:36 +01:00
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "Tocoding Argonkey 96boards";
|
|
|
|
compatible = "tocoding,argonkey", "st,stm32f412";
|
|
|
|
|
|
|
|
chosen {
|
|
|
|
zephyr,console = &usart1;
|
2018-11-27 12:11:04 +01:00
|
|
|
zephyr,shell-uart = &usart1;
|
2018-02-23 10:24:36 +01:00
|
|
|
zephyr,sram = &sram0;
|
|
|
|
zephyr,flash = &flash0;
|
|
|
|
};
|
2017-11-24 10:08:03 +01:00
|
|
|
|
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
2018-10-02 16:36:43 +02:00
|
|
|
green_led_0: led_0 {
|
2019-10-03 18:30:21 +02:00
|
|
|
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
|
2017-11-24 10:08:03 +01:00
|
|
|
label = "USR0 LED";
|
|
|
|
};
|
2018-10-02 16:36:43 +02:00
|
|
|
green_led_1: led_1 {
|
2019-10-03 18:30:21 +02:00
|
|
|
gpios = <&gpiob 2 GPIO_ACTIVE_HIGH>;
|
2017-11-24 10:08:03 +01:00
|
|
|
label = "USR1 LED";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio_keys {
|
|
|
|
compatible = "gpio-keys";
|
2018-09-21 01:25:55 +02:00
|
|
|
user_button: button {
|
2017-11-24 10:08:03 +01:00
|
|
|
label = "User";
|
2019-10-03 18:30:21 +02:00
|
|
|
gpios = <&gpioa 2 GPIO_ACTIVE_LOW>;
|
2017-11-24 10:08:03 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
aliases {
|
|
|
|
led0 = &green_led_0;
|
|
|
|
led1 = &green_led_1;
|
|
|
|
sw0 = &user_button;
|
|
|
|
};
|
2018-02-23 10:24:36 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
&usart1 {
|
|
|
|
current-speed = <115200>;
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-02-23 10:24:36 +01:00
|
|
|
};
|
|
|
|
|
2018-10-02 20:28:17 +05:30
|
|
|
&spi1 {
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-10-02 20:28:17 +05:30
|
|
|
};
|
|
|
|
|
2018-02-23 10:24:36 +01:00
|
|
|
&spi2 {
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-04-20 14:54:40 +02:00
|
|
|
|
|
|
|
/* ST Microelectronics LSM6DSL accel/gyro sensor */
|
|
|
|
lsm6dsl@1 {
|
2018-12-04 16:23:18 -06:00
|
|
|
compatible = "st,lsm6dsl";
|
2018-04-20 14:54:40 +02:00
|
|
|
reg = <1>;
|
|
|
|
spi-max-frequency = <1000000>;
|
2019-12-05 12:24:31 +01:00
|
|
|
irq-gpios = <&gpiob 1 GPIO_ACTIVE_HIGH>;
|
2018-08-01 11:12:37 +02:00
|
|
|
label = "LSM6DSL_SPI";
|
2018-04-20 14:54:40 +02:00
|
|
|
};
|
2018-02-23 10:24:36 +01:00
|
|
|
};
|
|
|
|
|
2019-10-24 18:59:56 +08:00
|
|
|
&dma2 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2018-06-15 10:46:13 +02:00
|
|
|
&i2s5 {
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-11-13 10:14:33 +01:00
|
|
|
|
|
|
|
mp34dt05@0 {
|
|
|
|
compatible = "st,mpxxdtyy";
|
|
|
|
reg = <0>;
|
|
|
|
label = "MP34DT05";
|
|
|
|
};
|
2018-06-15 10:46:13 +02:00
|
|
|
};
|
|
|
|
|
2018-02-23 10:24:36 +01:00
|
|
|
&i2c1 {
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-02-23 10:24:36 +01:00
|
|
|
clock-frequency = <I2C_BITRATE_FAST>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&i2c2 {
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-02-23 10:24:36 +01:00
|
|
|
clock-frequency = <I2C_BITRATE_FAST>;
|
2018-04-20 14:54:40 +02:00
|
|
|
|
|
|
|
hts221@5f {
|
|
|
|
compatible = "st,hts221";
|
|
|
|
reg = <0x5f>;
|
|
|
|
label = "HTS221";
|
2019-10-15 08:53:18 -05:00
|
|
|
drdy-gpios = <&gpioa 2 GPIO_ACTIVE_HIGH>;
|
2018-04-20 14:54:40 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
lps22hb-press@5d {
|
|
|
|
compatible = "st,lps22hb-press";
|
|
|
|
reg = <0x5d>;
|
|
|
|
label = "LPS22HB";
|
|
|
|
};
|
|
|
|
|
|
|
|
vl53l0x@29 {
|
|
|
|
compatible = "st,vl53l0x";
|
|
|
|
reg = <0x29>;
|
|
|
|
label = "VL53L0X";
|
|
|
|
};
|
2018-02-23 10:24:36 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
&i2c3 {
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-11-14 16:13:47 +01:00
|
|
|
clock-frequency = <I2C_BITRATE_FAST>;
|
2018-07-03 17:11:36 +02:00
|
|
|
|
|
|
|
lp3943@60 {
|
|
|
|
compatible = "ti,lp3943";
|
|
|
|
reg = <0x60>;
|
|
|
|
label = "LP3943";
|
|
|
|
};
|
2018-02-23 10:24:36 +01:00
|
|
|
};
|
2018-06-20 19:51:42 +03:00
|
|
|
|
|
|
|
&rtc {
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-06-20 19:51:42 +03:00
|
|
|
};
|