1/* 2 * Copyright (c) 2018 Endre Karlson <endre.karlson@gmail.com> 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7#include <st/l0/stm32l071.dtsi> 8 9/ { 10 chosen { 11 zephyr,entropy = &rng; 12 }; 13 14 clocks { 15 clk_hsi48: clk-hsi48 { 16 #clock-cells = <0>; 17 compatible = "fixed-clock"; 18 clock-frequency = <DT_FREQ_M(48)>; 19 status = "disabled"; 20 }; 21 }; 22 23 soc { 24 compatible = "st,stm32l072", "st,stm32l0", "simple-bus"; 25 26 usb: usb@40005c00 { 27 compatible = "st,stm32-usb"; 28 reg = <0x40005c00 0x400>; 29 interrupts = <31 0>; 30 interrupt-names = "usb"; 31 num-bidir-endpoints = <8>; 32 ram-size = <1024>; 33 maximum-speed = "full-speed"; 34 phys = <&otgfs_phy>; 35 clocks = <&rcc STM32_CLOCK(APB1, 23U)>, 36 <&rcc STM32_SRC_HSI48 HSI48_SEL(1)>; 37 status = "disabled"; 38 }; 39 40 rng: rng@40025000 { 41 compatible = "st,stm32-rng"; 42 reg = <0x40025000 0x400>; 43 interrupts = <29 0>; 44 clocks = <&rcc STM32_CLOCK(AHB1, 20U)>; 45 status = "disabled"; 46 }; 47 }; 48 49 otgfs_phy: otgfs_phy { 50 compatible = "usb-nop-xceiv"; 51 #phy-cells = <0>; 52 }; 53 54 dac1: dac@40007400 { 55 compatible = "st,stm32-dac"; 56 reg = <0x40007400 0x400>; 57 clocks = <&rcc STM32_CLOCK(APB1, 29U)>; 58 status = "disabled"; 59 #io-channel-cells = <1>; 60 }; 61}; 62