1/*
2 * Copyright (c) 2018 Anthony Kreft <anthony.kreft@gmail.com>
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#include <st/l0/stm32l051.dtsi>
8
9/ {
10	soc {
11		compatible = "st,stm32l053", "st,stm32l0", "simple-bus";
12
13		clocks {
14			clk_hsi48: clk-hsi48 {
15				#clock-cells = <0>;
16				compatible = "fixed-clock";
17				clock-frequency = <DT_FREQ_M(48)>;
18				status = "disabled";
19			};
20		};
21
22		usb: usb@40005c00 {
23			compatible = "st,stm32-usb";
24			reg = <0x40005c00 0x400>;
25			interrupts = <31 0>;
26			interrupt-names = "usb";
27			num-bidir-endpoints = <8>;
28			ram-size = <1024>;
29			maximum-speed = "full-speed";
30			phys = <&otgfs_phy>;
31			clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00800000>,
32				 <&rcc STM32_SRC_HSI48 HSI48_SEL(1)>;
33			status = "disabled";
34		};
35
36		dac1: dac@40007400 {
37			compatible = "st,stm32-dac";
38			reg = <0x40007400 0x400>;
39			clocks = <&rcc STM32_CLOCK_BUS_APB1 0x20000000>;
40			status = "disabled";
41			#io-channel-cells = <1>;
42		};
43	};
44
45	otgfs_phy: otgfs_phy {
46		compatible = "usb-nop-xceiv";
47		#phy-cells = <0>;
48	};
49};
50