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 11 clocks { 12 clk_hsi48: clk-hsi48 { 13 #clock-cells = <0>; 14 compatible = "fixed-clock"; 15 clock-frequency = <DT_FREQ_M(48)>; 16 status = "disabled"; 17 }; 18 }; 19 20 soc { 21 compatible = "st,stm32l053", "st,stm32l0", "simple-bus"; 22 23 usb: usb@40005c00 { 24 compatible = "st,stm32-usb"; 25 reg = <0x40005c00 0x400>; 26 interrupts = <31 0>; 27 interrupt-names = "usb"; 28 num-bidir-endpoints = <8>; 29 ram-size = <1024>; 30 maximum-speed = "full-speed"; 31 phys = <&otgfs_phy>; 32 clocks = <&rcc STM32_CLOCK(APB1, 23U)>, 33 <&rcc STM32_SRC_HSI48 HSI48_SEL(1)>; 34 status = "disabled"; 35 }; 36 37 dac1: dac@40007400 { 38 compatible = "st,stm32-dac"; 39 reg = <0x40007400 0x400>; 40 clocks = <&rcc STM32_CLOCK(APB1, 29U)>; 41 status = "disabled"; 42 #io-channel-cells = <1>; 43 }; 44 }; 45 46 otgfs_phy: otgfs_phy { 47 compatible = "usb-nop-xceiv"; 48 #phy-cells = <0>; 49 }; 50}; 51