-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dts: arm: st: Add SOC support for STM32G483
This commit adds SOC support for STM32G483 MCUs Signed-off-by: Guðni Már Gilbert <gudni.m.g@gmail.com>
- Loading branch information
Showing
4 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Copyright (c) 2021 Guðni Már Gilbert | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#include <st/g4/stm32g4.dtsi> | ||
|
||
/ { | ||
soc { | ||
dma1: dma@40020000 { | ||
interrupts = <11 0 12 0 13 0 14 0 15 0 16 0 17 0 96 0>; | ||
dma-requests = <8>; | ||
}; | ||
|
||
dma2: dma@40020400 { | ||
interrupts = <56 0 57 0 58 0 59 0 60 0 97 0 98 0 99 0>; | ||
dma-requests = <8>; | ||
dma-offset = <8>; | ||
}; | ||
|
||
dmamux1: dmamux@40020800 { | ||
dma-channels = <16>; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
* Copyright (c) 2021 Guðni Már Gilbert | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#include <mem.h> | ||
#include <st/g4/stm32g483.dtsi> | ||
|
||
/ { | ||
sram0: memory@20000000 { | ||
reg = <0x20000000 DT_SIZE_K(128)>; | ||
}; | ||
|
||
soc { | ||
flash-controller@40022000 { | ||
flash0: flash@8000000 { | ||
reg = <0x08000000 DT_SIZE_K(512)>; | ||
}; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# STMicroelectronics STM32G483XX MCU | ||
|
||
# Copyright (c) 2021 Guðni Már Gilbert | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
if SOC_STM32G483XX | ||
|
||
config SOC | ||
default "stm32g483xx" | ||
|
||
config NUM_IRQS | ||
default 102 | ||
|
||
endif # SOC_STM32G483XX |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters