blob: ec95d6ecf8599a620e71b14e3e8ec285b0e4f818 [file] [log] [blame]
Neil Armstrong6256c992017-04-28 14:33:36 +02001/*
2 * Copyright (c) 2017 Linaro Limited
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/dts-v1/;
Kumar Gala46592e62018-09-27 08:21:55 -05008#include <st/l4/stm32l432Xc.dtsi>
Gerard Marull-Paretasef6579b2020-10-03 18:56:31 +02009#include <st/l4/stm32l432k(b-c)ux-pinctrl.dtsi>
Neil Armstrong6256c992017-04-28 14:33:36 +020010
11/ {
12 model = "STMicroelectronics STM32L432KC-NUCLEO board";
Erwan Gouriou8efd1d72020-09-25 14:57:24 +020013 compatible = "st,stm32l432kc-nucleo";
Neil Armstrong6256c992017-04-28 14:33:36 +020014
15 chosen {
16 zephyr,console = &usart2;
Jakub Rzeszutkof8178dc2018-11-27 12:11:04 +010017 zephyr,shell-uart = &usart2;
Neil Armstrong6256c992017-04-28 14:33:36 +020018 zephyr,sram = &sram0;
19 zephyr,flash = &flash0;
Kumar Gala3f236f22020-04-28 07:33:18 -050020 zephyr,can-primary = &can1;
Neil Armstrong6256c992017-04-28 14:33:36 +020021 };
Erwan Gouriou7c6cf202017-11-24 10:08:03 +010022
23 leds {
24 compatible = "gpio-leds";
Sebastian Bøefdae1172018-10-02 16:36:43 +020025 green_led: led_0 {
Erwan Gouriou31ed7e92019-10-03 18:30:21 +020026 gpios = <&gpiob 3 GPIO_ACTIVE_HIGH>;
Aurelien Jarnofa153a02018-05-18 00:12:53 +020027 label = "User LD3";
Erwan Gouriou7c6cf202017-11-24 10:08:03 +010028 };
29 };
30
31 aliases {
Aurelien Jarnofa153a02018-05-18 00:12:53 +020032 led0 = &green_led;
Erwan Gouriou7c6cf202017-11-24 10:08:03 +010033 };
Neil Armstrong6256c992017-04-28 14:33:36 +020034};
35
Erwan Gouriou9bd248f2017-07-25 09:27:44 +020036&usart1 {
Jeremy LOCHE3caba2d52020-10-07 12:55:51 +020037 pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>;
Erwan Gouriou9bd248f2017-07-25 09:27:44 +020038 current-speed = <115200>;
Erwan Gouriou9bd248f2017-07-25 09:27:44 +020039};
40
Neil Armstrong6256c992017-04-28 14:33:36 +020041&usart2 {
Jeremy LOCHE3caba2d52020-10-07 12:55:51 +020042 pinctrl-0 = <&usart2_tx_pa2 &usart2_rx_pa15>;
Neil Armstrong6256c992017-04-28 14:33:36 +020043 current-speed = <115200>;
Ulf Magnussona84ded72019-06-14 19:31:16 +020044 status = "okay";
Neil Armstrong6256c992017-04-28 14:33:36 +020045};
Daniel Wagenknecht1f43e7b2018-01-28 02:37:58 +010046
47&spi1 {
Ulf Magnussona84ded72019-06-14 19:31:16 +020048 status = "okay";
Daniel Wagenknecht1f43e7b2018-01-28 02:37:58 +010049};
Florian Vaussard5c6ccf42018-02-28 22:20:00 +010050
51&timers2 {
Ulf Magnussona84ded72019-06-14 19:31:16 +020052 status = "okay";
Florian Vaussard5c6ccf42018-02-28 22:20:00 +010053
Gerard Marull-Paretasc6b13752020-05-01 16:13:37 +020054 pwm2: pwm {
Ulf Magnussona84ded72019-06-14 19:31:16 +020055 status = "okay";
Gerard Marull-Paretasef6579b2020-10-03 18:56:31 +020056 pinctrl-0 = <&tim2_ch1_pwm_pa0>;
Florian Vaussard5c6ccf42018-02-28 22:20:00 +010057 };
58};
Alexander Wachterc601f3b2018-05-23 11:04:12 +020059
60&can1 {
Alexander Wachtera2ddfe92019-02-05 16:47:47 +010061 bus-speed = <125000>;
Ulf Magnussona84ded72019-06-14 19:31:16 +020062 status = "okay";
Alexander Wachterc601f3b2018-05-23 11:04:12 +020063};
Kiril Zyapkov78a9daa2018-06-19 16:21:36 +030064
65&rtc {
Ulf Magnussona84ded72019-06-14 19:31:16 +020066 status = "okay";
Kiril Zyapkov78a9daa2018-06-19 16:21:36 +030067};
Aurelien Jarnoc73f15a2018-08-28 09:55:11 +020068
Aurelien Jarnof16e7b32020-03-29 19:11:41 +020069&lptim1 {
70 status = "okay";
71};
72
Aurelien Jarnoc73f15a2018-08-28 09:55:11 +020073&flash0 {
74 partitions {
75 compatible = "fixed-partitions";
76 #address-cells = <1>;
77 #size-cells = <1>;
78
Aurelien Jarnoc73f15a2018-08-28 09:55:11 +020079 /*
Erwan Gouriouf0cac352019-02-14 11:52:31 +010080 * Reserve the final 16 KiB for file system partition
Aurelien Jarnoc73f15a2018-08-28 09:55:11 +020081 */
82 storage_partition: partition@3c000 {
83 label = "storage";
84 reg = <0x0003c000 0x00004000>;
85 };
Aurelien Jarnoc73f15a2018-08-28 09:55:11 +020086 };
87};