-
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: mps2_an385: Initial device tree support
This patch adds the intial device tree support to V2M MPS2 AN385 platform. Signed-off-by: Vincenzo Frascino <[email protected]>
- Loading branch information
Showing
6 changed files
with
109 additions
and
21 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
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
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
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
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,72 @@ | ||
/dts-v1/; | ||
|
||
#include <arm/armv7-m.dtsi> | ||
#include "arm/mps2/soc_irq.h" | ||
|
||
/ { | ||
compatible = "arm,mps2"; | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
|
||
chosen { | ||
zephyr,console = &uart0; | ||
zephyr,sram = &sram0; | ||
zephyr,flash = &flash0; | ||
}; | ||
|
||
cpus { | ||
cpu@0 { | ||
compatible = "arm,cortex-m3"; | ||
}; | ||
}; | ||
|
||
sram0: memory { | ||
compatible = "sram"; | ||
reg = <0x20000000 0x400000>; | ||
}; | ||
|
||
flash0: flash { | ||
reg = <0 0x400000>; | ||
}; | ||
|
||
soc { | ||
uart0: uart@40004000 { | ||
compatible = "arm,cmsdk-uart"; | ||
reg = <0x40004000 0x14>; | ||
interrupts = <IRQ_UART_0_TX 3 IRQ_UART_0_RX 3>; | ||
current-speed = <115200>; | ||
}; | ||
|
||
uart1: uart@40005000 { | ||
compatible = "arm,cmsdk-uart"; | ||
reg = <0x40005000 0x14>; | ||
interrupts = <IRQ_UART_1_TX 3 IRQ_UART_1_RX 3>; | ||
current-speed = <115200>; | ||
}; | ||
|
||
uart2: uart@40006000 { | ||
compatible = "arm,cmsdk-uart"; | ||
reg = <0x40006000 0x14>; | ||
interrupts = <IRQ_UART_2_TX 3 IRQ_UART_2_RX 3>; | ||
current-speed = <115200>; | ||
}; | ||
|
||
uart3: uart@40007000 { | ||
compatible = "arm,cmsdk-uart"; | ||
reg = <0x40007000 0x14>; | ||
interrupts = <IRQ_UART_3_TX 3 IRQ_UART_3_RX 3>; | ||
current-speed = <115200>; | ||
}; | ||
|
||
uart4: uart@40009000 { | ||
compatible = "arm,cmsdk-uart"; | ||
reg = <0x40009000 0x14>; | ||
interrupts = <IRQ_UART_4_TX 3 IRQ_UART_4_RX 3>; | ||
current-speed = <115200>; | ||
}; | ||
}; | ||
}; | ||
|
||
&nvic { | ||
arm,num-irq-priority-bits = <3>; | ||
}; |
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 @@ | ||
#define CONFIG_NUM_IRQ_PRIO_BITS ARM_V7M_NVIC_E000E100_ARM_NUM_IRQ_PRIORITY_BITS | ||
|
||
#define CMSDK_APB_UART_0_IRQ_TX ARM_CMSDK_UART_40004000_IRQ_0 | ||
#define CMSDK_APB_UART_0_IRQ_RX ARM_CMSDK_UART_40004000_IRQ_1 | ||
#define CONFIG_UART_CMSDK_APB_PORT0_IRQ_PRI ARM_CMSDK_UART_40004000_IRQ_0_PRIORITY | ||
#define CONFIG_UART_CMSDK_APB_PORT0_BAUD_RATE ARM_CMSDK_UART_40004000_CURRENT_SPEED | ||
|
||
#define CMSDK_APB_UART_1_IRQ_TX ARM_CMSDK_UART_40005000_IRQ_0 | ||
#define CMSDK_APB_UART_1_IRQ_RX ARM_CMSDK_UART_40005000_IRQ_1 | ||
#define CONFIG_UART_CMSDK_APB_PORT1_IRQ_PRI ARM_CMSDK_UART_40005000_IRQ_0_PRIORITY | ||
#define CONFIG_UART_CMSDK_APB_PORT1_BAUD_RATE ARM_CMSDK_UART_40005000_CURRENT_SPEED | ||
|
||
#define CMSDK_APB_UART_2_IRQ_TX ARM_CMSDK_UART_40006000_IRQ_0 | ||
#define CMSDK_APB_UART_2_IRQ_RX ARM_CMSDK_UART_40006000_IRQ_1 | ||
#define CONFIG_UART_CMSDK_APB_PORT2_IRQ_PRI ARM_CMSDK_UART_40006000_IRQ_0_PRIORITY | ||
#define CONFIG_UART_CMSDK_APB_PORT2_BAUD_RATE ARM_CMSDK_UART_40006000_CURRENT_SPEED | ||
|
||
#define CMSDK_APB_UART_3_IRQ_TX ARM_CMSDK_UART_40007000_IRQ_0 | ||
#define CMSDK_APB_UART_3_IRQ_RX ARM_CMSDK_UART_40007000_IRQ_1 | ||
#define CONFIG_UART_CMSDK_APB_PORT3_IRQ_PRI ARM_CMSDK_UART_40007000_IRQ_0_PRIORITY | ||
#define CONFIG_UART_CMSDK_APB_PORT3_BAUD_RATE ARM_CMSDK_UART_40007000_CURRENT_SPEED | ||
|
||
#define CMSDK_APB_UART_4_IRQ_TX ARM_CMSDK_UART_40009000_IRQ_0 | ||
#define CMSDK_APB_UART_4_IRQ_RX ARM_CMSDK_UART_40009000_IRQ_1 | ||
#define CONFIG_UART_CMSDK_APB_PORT4_IRQ_PRI ARM_CMSDK_UART_40009000_IRQ_0_PRIORITY | ||
#define CONFIG_UART_CMSDK_APB_PORT4_BAUD_RATE ARM_CMSDK_UART_40009000_CURRENT_SPEED |