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 soc { 15 compatible = "st,stm32l072", "st,stm32l0", "simple-bus"; 16 17 clocks { 18 clk_hsi48: clk-hsi48 { 19 #clock-cells = <0>; 20 compatible = "fixed-clock"; 21 clock-frequency = <DT_FREQ_M(48)>; 22 status = "disabled"; 23 }; 24 }; 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_BUS_APB1 0x00800000>, 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_BUS_AHB1 0x00100000>; 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_BUS_APB1 0x20000000>; 58 status = "disabled"; 59 #io-channel-cells = <1>; 60 }; 61}; 62