soc: arm: st_stm32: add support for STM32L422Xb

Add support for the STM32L422Xb SoC. Base stm32l422.dtsi on
stm32l412.dtsi to be able to add the crypto device later.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
Aurelien Jarno 2020-03-29 21:19:02 +02:00 committed by Ioannis Glaropoulos
commit 1134edd6ad
5 changed files with 80 additions and 0 deletions

View file

@ -0,0 +1,30 @@
/*
* Copyright (c) 2020 Aurelien Jarno
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <st/l4/stm32l4.dtsi>
/ {
soc {
usb: usb@40006800 {
compatible = "st,stm32-usb";
reg = <0x40006800 0x40000>;
interrupts = <67 0>;
interrupt-names = "usb";
num-bidir-endpoints = <8>;
ram-size = <1024>;
phys = <&usb_fs_phy>;
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x04000000>;
status = "disabled";
label = "USB";
};
};
usb_fs_phy: usbphy {
compatible = "usb-nop-xceiv";
#phy-cells = <0>;
label = "USB_FS_PHY";
};
};

View file

@ -0,0 +1,7 @@
/*
* Copyright (c) 2020 Aurelien Jarno
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <st/l4/stm32l412.dtsi>

View file

@ -0,0 +1,22 @@
/*
* Copyright (c) 2020 Aurelien Jarno
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <mem.h>
#include <st/l4/stm32l422.dtsi>
/ {
sram0: memory@20000000 {
reg = <0x20000000 DT_SIZE_K(40)>;
};
soc {
flash-controller@40022000 {
flash0: flash@8000000 {
reg = <0x08000000 DT_SIZE_K(128)>;
};
};
};
};

View file

@ -0,0 +1,18 @@
# ST Microelectronics STM32L422XX MCU
# Copyright (c) 2020 Aurelien Jarno
# SPDX-License-Identifier: Apache-2.0
if SOC_STM32L422XX
config SOC
default "stm32l422xx"
config NUM_IRQS
default 83
config GPIO_STM32_PORTH
default y
depends on GPIO_STM32
endif # SOC_STM32L422XX

View file

@ -16,6 +16,9 @@ config SOC_STM32L476XX
config SOC_STM32L496XX
bool "STM32L496XX"
config SOC_STM32L422XX
bool "STM32L422XX"
config SOC_STM32L432XX
bool "STM32L432XX"