2017-04-28 20:37:49 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2017 Linaro Limited
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <arm/armv7-m.dtsi>
|
|
|
|
#include <st/mem.h>
|
2017-07-25 22:04:15 +08:00
|
|
|
#include <dt-bindings/clock/stm32_clock.h>
|
2017-04-28 20:37:49 +08:00
|
|
|
|
|
|
|
/ {
|
2017-07-16 02:57:32 +08:00
|
|
|
cpus {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
|
|
|
cpu@0 {
|
|
|
|
device_type = "cpu";
|
|
|
|
compatible = "arm,cortex-m4f";
|
|
|
|
reg = <0>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2017-07-21 20:43:01 +08:00
|
|
|
flash0: flash@8000000 {
|
2017-04-28 20:37:49 +08:00
|
|
|
reg = <0x08000000 DT_FLASH_SIZE>;
|
|
|
|
};
|
|
|
|
|
2017-07-21 20:43:01 +08:00
|
|
|
sram0: memory@20000000 {
|
2017-07-21 23:57:58 +08:00
|
|
|
device_type = "memory";
|
2017-07-20 21:21:12 +08:00
|
|
|
compatible = "mmio-sram";
|
2017-04-28 20:37:49 +08:00
|
|
|
reg = <0x20000000 DT_SRAM_SIZE>;
|
|
|
|
};
|
|
|
|
|
|
|
|
soc {
|
2017-07-20 14:38:29 +08:00
|
|
|
rcc: rcc@40021000 {
|
|
|
|
compatible = "st,stm32-rcc";
|
|
|
|
clocks-controller;
|
|
|
|
#clocks-cells = <2>;
|
|
|
|
reg = <0x40021000 0x400>;
|
|
|
|
label = "STM32_CLK_RCC";
|
|
|
|
};
|
|
|
|
|
2017-05-17 23:16:52 +08:00
|
|
|
usart1: serial@40013800 {
|
2017-04-28 20:37:49 +08:00
|
|
|
compatible = "st,stm32-usart", "st,stm32-uart";
|
|
|
|
reg = <0x40013800 0x400>;
|
2017-07-25 22:04:15 +08:00
|
|
|
clocks = <&rcc STM32_CLOCK_BUS_APB2 0x00004000>;
|
2017-04-28 20:37:49 +08:00
|
|
|
interrupts = <37 0>;
|
|
|
|
status = "disabled";
|
2017-05-17 04:50:20 +08:00
|
|
|
label = "UART_1";
|
2017-04-28 20:37:49 +08:00
|
|
|
};
|
|
|
|
|
2017-05-17 23:16:52 +08:00
|
|
|
usart2: serial@40004400 {
|
2017-04-28 20:37:49 +08:00
|
|
|
compatible = "st,stm32-usart", "st,stm32-uart";
|
|
|
|
reg = <0x40004400 0x400>;
|
2017-07-25 22:04:15 +08:00
|
|
|
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00020000>;
|
2017-04-28 20:37:49 +08:00
|
|
|
interrupts = <38 0>;
|
|
|
|
status = "disabled";
|
2017-05-17 04:50:20 +08:00
|
|
|
label = "UART_2";
|
2017-04-28 20:37:49 +08:00
|
|
|
};
|
|
|
|
|
2017-05-17 23:16:52 +08:00
|
|
|
usart3: serial@40004800 {
|
2017-04-28 20:37:49 +08:00
|
|
|
compatible = "st,stm32-usart", "st,stm32-uart";
|
|
|
|
reg = <0x40004800 0x400>;
|
2017-07-25 22:04:15 +08:00
|
|
|
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00040000>;
|
2017-04-28 20:37:49 +08:00
|
|
|
interrupts = <39 0>;
|
|
|
|
status = "disabled";
|
2017-05-17 04:50:20 +08:00
|
|
|
label = "UART_3";
|
2017-04-28 20:37:49 +08:00
|
|
|
};
|
|
|
|
|
2017-05-17 23:16:52 +08:00
|
|
|
uart4: serial@40004c00 {
|
2017-04-28 20:37:49 +08:00
|
|
|
compatible = "st,stm32-uart";
|
|
|
|
reg = <0x40004c00 0x400>;
|
2017-07-25 22:04:15 +08:00
|
|
|
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00080000>;
|
2017-04-28 20:37:49 +08:00
|
|
|
interrupts = <52 0>;
|
|
|
|
status = "disabled";
|
2017-05-17 04:50:20 +08:00
|
|
|
label = "UART_4";
|
2017-04-28 20:37:49 +08:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&nvic {
|
|
|
|
arm,num-irq-priority-bits = <4>;
|
|
|
|
};
|