2018-02-03 00:13:05 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2018 Endre Karlson <endre.karlson@gmail.com>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
2018-09-27 21:22:08 +08:00
|
|
|
#include <st/l0/stm32l0.dtsi>
|
2018-03-14 00:23:08 +08:00
|
|
|
|
|
|
|
/ {
|
|
|
|
soc {
|
2018-04-24 21:32:10 +08:00
|
|
|
pinctrl: pin-controller@50000000 {
|
2018-03-28 15:48:31 +08:00
|
|
|
|
|
|
|
gpioe: gpio@50001000 {
|
|
|
|
compatible = "st,stm32-gpio";
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
2019-07-04 16:23:41 +08:00
|
|
|
reg = <0x50001000 0x400>;
|
2018-03-28 15:48:31 +08:00
|
|
|
clocks = <&rcc STM32_CLOCK_BUS_IOP 0x00000010>;
|
|
|
|
label = "GPIOE";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-03-14 00:23:08 +08:00
|
|
|
i2c2: i2c@40005800 {
|
|
|
|
compatible = "st,stm32-i2c-v2";
|
|
|
|
clock-frequency = <I2C_BITRATE_STANDARD>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
reg = <0x40005800 0x400>;
|
2018-07-03 23:00:40 +08:00
|
|
|
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00400000>;
|
2018-03-14 00:23:08 +08:00
|
|
|
interrupts = <24 0>;
|
|
|
|
interrupt-names = "combined";
|
|
|
|
status = "disabled";
|
|
|
|
label= "I2C_2";
|
|
|
|
};
|
|
|
|
|
|
|
|
i2c3: i2c@40007800 {
|
|
|
|
compatible = "st,stm32-i2c-v2";
|
|
|
|
clock-frequency = <I2C_BITRATE_STANDARD>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
reg = <0x40007800 0x400>;
|
2018-07-06 14:10:02 +08:00
|
|
|
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x40000000>;
|
2018-03-14 00:23:08 +08:00
|
|
|
interrupts = <21 0>;
|
|
|
|
interrupt-names = "combined";
|
|
|
|
status = "disabled";
|
|
|
|
label= "I2C_3";
|
|
|
|
};
|
2018-03-15 20:23:10 +08:00
|
|
|
|
|
|
|
spi2: spi@40003800 {
|
|
|
|
compatible = "st,stm32-spi";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
reg = <0x40003800 0x400>;
|
2018-06-22 19:54:24 +08:00
|
|
|
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00004000>;
|
2018-03-15 20:23:10 +08:00
|
|
|
interrupts = <26 3>;
|
|
|
|
status = "disabled";
|
|
|
|
label = "SPI_2";
|
|
|
|
};
|
2018-05-13 01:00:19 +08:00
|
|
|
|
|
|
|
usb: usb@40005c00 {
|
|
|
|
compatible = "st,stm32-usb";
|
|
|
|
reg = <0x40005c00 0x400>;
|
|
|
|
interrupts = <31 0>;
|
|
|
|
interrupt-names = "usb";
|
|
|
|
num-bidir-endpoints = <8>;
|
|
|
|
ram-size = <1024>;
|
2018-10-03 22:19:59 +08:00
|
|
|
phys = <&otgfs_phy>;
|
2019-07-15 19:56:46 +08:00
|
|
|
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00800000>;
|
2018-05-13 01:00:19 +08:00
|
|
|
status = "disabled";
|
|
|
|
label= "USB";
|
|
|
|
};
|
2018-03-14 00:23:08 +08:00
|
|
|
};
|
2018-12-14 02:38:33 +08:00
|
|
|
|
|
|
|
otgfs_phy: otgfs_phy {
|
|
|
|
compatible = "usb-nop-xceiv";
|
|
|
|
#phy-cells = <0>;
|
|
|
|
label = "OTGFS_PHY";
|
|
|
|
};
|
2018-03-14 00:23:08 +08:00
|
|
|
};
|