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>
|
2020-10-06 15:27:13 +02:00
|
|
|
#include <st/f4/stm32f412c(e-g)ux-pinctrl.dtsi>
|
2023-08-03 10:52:22 +00:00
|
|
|
#include <zephyr/dt-bindings/input/input-event-codes.h>
|
2018-02-23 10:24:36 +01:00
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "Tocoding Argonkey 96boards";
|
2020-09-25 14:57:24 +02:00
|
|
|
compatible = "tocoding,argonkey";
|
2018-02-23 10:24:36 +01:00
|
|
|
|
|
|
|
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>;
|
2023-08-03 10:52:22 +00:00
|
|
|
zephyr,code = <INPUT_KEY_0>;
|
2017-11-24 10:08:03 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
aliases {
|
|
|
|
led0 = &green_led_0;
|
|
|
|
led1 = &green_led_1;
|
|
|
|
sw0 = &user_button;
|
2022-07-23 14:58:54 +09:00
|
|
|
accel0 = &lsm6dsl;
|
2017-11-24 10:08:03 +01:00
|
|
|
};
|
2018-02-23 10:24:36 +01:00
|
|
|
};
|
|
|
|
|
2022-09-07 09:13:35 +02:00
|
|
|
&clk_lsi {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2021-05-03 17:12:20 +02:00
|
|
|
&clk_hse {
|
|
|
|
clock-frequency = <DT_FREQ_M(16)>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&pll {
|
|
|
|
div-m = <8>;
|
|
|
|
mul-n = <84>;
|
|
|
|
div-p = <2>;
|
|
|
|
div-q = <8>;
|
|
|
|
clocks = <&clk_hse>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2023-03-22 10:45:22 +01:00
|
|
|
&plli2s {
|
|
|
|
div-m = <8>;
|
|
|
|
mul-n = <192>;
|
|
|
|
div-r = <3>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2021-05-03 17:12:20 +02:00
|
|
|
&rcc {
|
|
|
|
clocks = <&pll>;
|
|
|
|
clock-frequency = <DT_FREQ_M(84)>;
|
|
|
|
ahb-prescaler = <1>;
|
|
|
|
apb1-prescaler = <2>;
|
|
|
|
/* APB2 clock is fixed at 42MHz to prevent known SPI/I2S bug */
|
|
|
|
apb2-prescaler = <2>;
|
|
|
|
};
|
|
|
|
|
2018-02-23 10:24:36 +01:00
|
|
|
&usart1 {
|
2020-10-06 15:27:13 +02:00
|
|
|
pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>;
|
2021-09-07 16:38:13 +02:00
|
|
|
pinctrl-names = "default";
|
2018-02-23 10:24:36 +01:00
|
|
|
current-speed = <115200>;
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-02-23 10:24:36 +01:00
|
|
|
};
|
|
|
|
|
2020-10-15 17:03:11 +02:00
|
|
|
&spi1_nss_pa4 { slew-rate = "very-high-speed"; };
|
|
|
|
|
2018-10-02 20:28:17 +05:30
|
|
|
&spi1 {
|
2020-10-15 17:03:11 +02:00
|
|
|
pinctrl-0 = <&spi1_nss_pa4 &spi1_sck_pa5
|
|
|
|
&spi1_miso_pa6 &spi1_mosi_pa7>;
|
2021-11-08 12:23:47 +01:00
|
|
|
pinctrl-names = "default";
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-10-02 20:28:17 +05:30
|
|
|
};
|
|
|
|
|
2020-10-15 17:03:11 +02:00
|
|
|
&spi2_nss_pb12 { slew-rate = "very-high-speed"; };
|
|
|
|
|
2018-02-23 10:24:36 +01:00
|
|
|
&spi2 {
|
2020-10-15 17:03:11 +02:00
|
|
|
pinctrl-0 = <&spi2_nss_pb12 &spi2_sck_pb13
|
|
|
|
&spi2_miso_pb14 &spi2_mosi_pb15>;
|
2021-11-08 12:23:47 +01:00
|
|
|
pinctrl-names = "default";
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-04-20 14:54:40 +02:00
|
|
|
|
|
|
|
/* ST Microelectronics LSM6DSL accel/gyro sensor */
|
2022-07-23 14:58:54 +09:00
|
|
|
lsm6dsl: 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-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";
|
2020-10-23 15:10:05 +02:00
|
|
|
pinctrl-0 = <&i2s5_ck_pb0 &i2s5_sd_pb8>;
|
2021-11-08 11:13:31 +01:00
|
|
|
pinctrl-names = "default";
|
2018-11-13 10:14:33 +01:00
|
|
|
|
|
|
|
mp34dt05@0 {
|
|
|
|
compatible = "st,mpxxdtyy";
|
|
|
|
reg = <0>;
|
|
|
|
};
|
2018-06-15 10:46:13 +02:00
|
|
|
};
|
|
|
|
|
2018-02-23 10:24:36 +01:00
|
|
|
&i2c1 {
|
2020-10-12 17:53:50 +02:00
|
|
|
pinctrl-0 = <&i2c1_scl_pb6 &i2c1_sda_pb7>;
|
2021-11-08 10:59:17 +01:00
|
|
|
pinctrl-names = "default";
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-02-23 10:24:36 +01:00
|
|
|
clock-frequency = <I2C_BITRATE_FAST>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&i2c2 {
|
2020-10-12 17:53:50 +02:00
|
|
|
pinctrl-0 = <&i2c2_scl_pb10 &i2c2_sda_pb9>;
|
2021-11-08 10:59:17 +01:00
|
|
|
pinctrl-names = "default";
|
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>;
|
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>;
|
|
|
|
};
|
|
|
|
|
|
|
|
vl53l0x@29 {
|
|
|
|
compatible = "st,vl53l0x";
|
|
|
|
reg = <0x29>;
|
|
|
|
};
|
2018-02-23 10:24:36 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
&i2c3 {
|
2020-10-12 17:53:50 +02:00
|
|
|
pinctrl-0 = <&i2c3_scl_pa8 &i2c3_sda_pb4>;
|
2021-11-08 10:59:17 +01:00
|
|
|
pinctrl-names = "default";
|
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>;
|
|
|
|
};
|
2018-02-23 10:24:36 +01:00
|
|
|
};
|
2018-06-20 19:51:42 +03:00
|
|
|
|
|
|
|
&rtc {
|
2022-09-07 09:13:35 +02:00
|
|
|
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x10000000>,
|
|
|
|
<&rcc STM32_SRC_LSI RTC_SEL(2)>;
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-06-20 19:51:42 +03:00
|
|
|
};
|