1/*
2 * Copyright (c) 2018 qianfan Zhao
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#include <st/f0/stm32f0.dtsi>
8
9/ {
10	soc {
11		flash-controller@40022000 {
12			flash0: flash@8000000 {
13				erase-block-size = <2048>;
14			};
15		};
16
17		spi2: spi@40003800 {
18			compatible = "st,stm32-spi-fifo", "st,stm32-spi";
19			#address-cells = <1>;
20			#size-cells = <0>;
21			reg = <0x40003800 0x400>;
22			clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00004000>;
23			interrupts = <26 3>;
24			status = "disabled";
25			label = "SPI_2";
26		};
27
28		usb: usb@40005c00 {
29			compatible = "st,stm32-usb";
30			reg = <0x40005c00 0x400>;
31			interrupts = <31 0>;
32			interrupt-names = "usb";
33			num-bidir-endpoints = <8>;
34			ram-size = <1024>;
35			phys = <&usb_fs_phy>;
36			clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00800000>;
37			status = "disabled";
38			label= "USB";
39		};
40	};
41
42	usb_fs_phy: usbphy {
43		compatible = "usb-nop-xceiv";
44		#phy-cells = <0>;
45		label = "USB_FS_PHY";
46	};
47};
48