2017-02-20 02:01:30 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2017 I-SENSE group of ICCS
|
|
|
|
*
|
2017-04-06 00:22:20 +08:00
|
|
|
* SoC device tree include for STM32F103xB SoCs
|
|
|
|
* where 'x' is replaced for specific SoCs like {C,R,T,V}
|
|
|
|
*
|
2017-02-20 02:01:30 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
2018-09-26 08:20:22 +08:00
|
|
|
#include <mem.h>
|
|
|
|
#include <st/f1/stm32f1.dtsi>
|
2018-02-10 07:31:00 +08:00
|
|
|
|
|
|
|
/ {
|
2018-09-26 08:20:22 +08:00
|
|
|
flash0: flash@8000000 {
|
|
|
|
reg = <0x08000000 DT_SIZE_K(128)>;
|
|
|
|
};
|
|
|
|
|
|
|
|
sram0: memory@20000000 {
|
|
|
|
reg = <0x20000000 DT_SIZE_K(20)>;
|
|
|
|
};
|
2018-02-10 07:31:00 +08:00
|
|
|
soc {
|
|
|
|
/* spi2 is present on all STM32F103xB SoCs except
|
|
|
|
* STM32F103TB. Delete node in stm32f103tb.dtsi.
|
|
|
|
*/
|
|
|
|
spi2: spi@40003800 {
|
|
|
|
compatible = "st,stm32-spi";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
reg = <0x40003800 0x400>;
|
2018-06-22 19:54:24 +08:00
|
|
|
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00004000>;
|
2018-02-10 07:31:00 +08:00
|
|
|
interrupts = <36 5>;
|
|
|
|
status = "disabled";
|
|
|
|
label = "SPI_2";
|
|
|
|
};
|
2017-10-28 19:48:48 +08:00
|
|
|
|
|
|
|
usb: usb@40005c00 {
|
|
|
|
compatible = "st,stm32-usb";
|
|
|
|
reg = <0x40005c00 0x400>;
|
|
|
|
interrupts = <20 0>;
|
|
|
|
interrupt-names = "usb";
|
|
|
|
num-bidir-endpoints = <8>;
|
|
|
|
ram-size = <512>;
|
2018-10-03 22:19:59 +08:00
|
|
|
phys = <&usb_fs_phy>;
|
2017-10-28 19:48:48 +08:00
|
|
|
status = "disabled";
|
2019-07-17 23:37:58 +08:00
|
|
|
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00800000>;
|
2017-10-28 19:48:48 +08:00
|
|
|
label= "USB";
|
|
|
|
};
|
2018-02-10 07:31:00 +08:00
|
|
|
};
|
2018-12-14 02:38:33 +08:00
|
|
|
|
|
|
|
usb_fs_phy: usbphy {
|
|
|
|
compatible = "usb-nop-xceiv";
|
|
|
|
#phy-cells = <0>;
|
|
|
|
label = "USB_FS_PHY";
|
|
|
|
};
|
2018-02-10 07:31:00 +08:00
|
|
|
};
|