Skip to content

Commit b1ee543

Browse files
committed
dts: add MSPM0 family to the devicetree
added TI MSPM0 device support to the devicetree Signed-off-by: Jackson Farley <[email protected]>
1 parent a957c92 commit b1ee543

File tree

3 files changed

+110
-0
lines changed

3 files changed

+110
-0
lines changed
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
/* SPDX-License-Identifier: Apache-2.0 */
2+
3+
#include <arm/armv6-m.dtsi>
4+
#include <zephyr/dt-bindings/gpio/gpio.h>
5+
6+
/ {
7+
8+
cpus {
9+
#address-cells = <1>;
10+
#size-cells = <0>;
11+
12+
cpu0: cpu@0 {
13+
compatible = "arm,cortex-m0plus";
14+
reg = <0>;
15+
};
16+
};
17+
18+
sram0: memory@20200000 {
19+
compatible = "mmio-sram";
20+
};
21+
22+
flash0: serial-flash@0 {
23+
compatible = "serial-flash";
24+
};
25+
26+
sysclk: system-clock {
27+
compatible = "fixed-clock";
28+
clock-frequency = <32000000>;
29+
#clock-cells = <0>;
30+
};
31+
32+
soc {
33+
34+
pinctrl: pin-controller@400a0000{
35+
compatible = "ti,mspm0-pinctrl";
36+
#address-cells = <1>;
37+
#size-cells = <1>;
38+
reg = <0x400a0000 0x4000>;
39+
40+
gpioa: gpio@400a0000 {
41+
compatible = "ti,mspm0-gpio";
42+
reg = <0x400a0000 0x2000>;
43+
interrupts = <1 0>;
44+
status = "disabled";
45+
gpio-controller;
46+
#gpio-cells = <2>;
47+
};
48+
49+
gpiob: gpio@400a2000 {
50+
compatible = "ti,mspm0-gpio";
51+
reg = <0x400a2000 0x2000>;
52+
interrupts = <1 0>;
53+
status = "disabled";
54+
gpio-controller;
55+
#gpio-cells = <2>;
56+
};
57+
58+
};
59+
60+
uart0: uart@40108000 {
61+
compatible = "ti,mspm0-uart";
62+
reg = <0x40108000 0x2000>;
63+
interrupts = <15 0>;
64+
current-speed = <115200>;
65+
clocks = <&sysclk>;
66+
status = "disabled";
67+
};
68+
69+
uart1: uart@40100000 {
70+
compatible = "ti,mspm0-uart";
71+
reg = <0x40100000 0x2000>;
72+
interrupts = <13 0>;
73+
current-speed = <115200>;
74+
clocks = <&sysclk>;
75+
status = "disabled";
76+
};
77+
78+
uart2: uart@40102000 {
79+
compatible = "ti,mspm0-uart";
80+
reg = <0x40102000 0x2000>;
81+
interrupts = <14 0>;
82+
current-speed = <115200>;
83+
clocks = <&sysclk>;
84+
status = "disabled";
85+
};
86+
87+
};
88+
};
89+
90+
&nvic {
91+
arm,num-irq-priority-bits = <2>;
92+
};
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/* SPDX-License-Identifier: Apache-2.0 */
2+
3+
#include <ti/mspm0g1x0x_g3x0x/mspm0g1x0x_g3x0x.dtsi>
4+
#include <ti/mspm0g1x0x_g3x0x/mspm0gxxx7.dtsi>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/* SPDX-License-Identifier: Apache-2.0 */
2+
3+
#include <mem.h>
4+
#include <ti/mspm0g1x0x_g3x0x/mspm0g1x0x_g3x0x.dtsi>
5+
6+
/ {
7+
sram0: memory@20200000 {
8+
reg = <0x20200000 DT_SIZE_K(32)>;
9+
};
10+
11+
flash0: serial-flash@0 {
12+
reg = <0x0 DT_SIZE_K(128)>;
13+
};
14+
};

0 commit comments

Comments
 (0)