Skip to content

Commit d30cbe9

Browse files
dnltznashif
authored andcommitted
dts: arm: ti: Add dtsi for AM64x M4
This file is basically a copy of the AM62x M4 dtsi but an additional mcu_uart1 interface. The internal clock frequency feeded into the UART IP is 96 MHz instead of 48 MHz, which is different to the AM62x. Signed-off-by: Daniel Schultz <[email protected]>
1 parent 59de472 commit d30cbe9

File tree

1 file changed

+86
-0
lines changed

1 file changed

+86
-0
lines changed

dts/arm/ti/am64x_m4.dtsi

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
/*
2+
* Copyright (c) 2024 PHYTEC Messtechnik GmbH
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <mem.h>
8+
#include <freq.h>
9+
#include <arm/armv7-m.dtsi>
10+
#include <zephyr/dt-bindings/pinctrl/ti-k3-pinctrl.h>
11+
#include <zephyr/dt-bindings/gpio/gpio.h>
12+
13+
/ {
14+
15+
cpus {
16+
#address-cells = <1>;
17+
#size-cells = <0>;
18+
19+
cpu0: cpu@0 {
20+
device_type = "cpu";
21+
compatible = "arm,cortex-m4f";
22+
reg = <0>;
23+
};
24+
};
25+
26+
sram0: memory@0 {
27+
compatible = "mmio-sram";
28+
reg = <0x0 DT_SIZE_K(192)>; /* 192 KB of SRAM (I-Code) */
29+
};
30+
31+
sram1: memory1@40000 {
32+
compatible = "mmio-sram";
33+
reg = <0x40000 DT_SIZE_K(64)>; /* 64 KB of SRAM (D-Code) */
34+
};
35+
36+
sysclk: system-clock {
37+
compatible = "fixed-clock";
38+
clock-frequency = <DT_FREQ_M(400)>;
39+
#clock-cells = <0>;
40+
};
41+
42+
pinctrl: pinctrl@4084000 {
43+
compatible = "ti,k3-pinctrl";
44+
reg = <0x04084000 0x88>;
45+
status = "okay";
46+
};
47+
48+
uart0: serial@4a00000 {
49+
compatible = "ns16550";
50+
reg = <0x04a00000 0x200>;
51+
interrupts = <24 4>;
52+
interrupt-parent = <&nvic>;
53+
clock-frequency = <DT_FREQ_M(96)>;
54+
current-speed = <115200>;
55+
reg-shift = <2>;
56+
status = "disabled";
57+
};
58+
59+
uart1: serial@4a10000 {
60+
compatible = "ns16550";
61+
reg = <0x04a10000 0x200>;
62+
interrupts = <25 4>;
63+
interrupt-parent = <&nvic>;
64+
clock-frequency = <DT_FREQ_M(96)>;
65+
current-speed = <115200>;
66+
reg-shift = <2>;
67+
status = "disabled";
68+
};
69+
70+
gpio0: gpio@4201010 {
71+
compatible = "ti,davinci-gpio";
72+
reg = <0x4201010 0x100>;
73+
gpio-controller;
74+
#gpio-cells = <2>;
75+
ngpios = <24>;
76+
status = "disabled";
77+
};
78+
};
79+
80+
&nvic {
81+
arm,num-irq-priority-bits = <3>;
82+
};
83+
84+
&systick {
85+
status = "okay";
86+
};

0 commit comments

Comments
 (0)