2023-07-11 13:43:37 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2023 Texas Instruments Incorporated
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <mem.h>
|
|
|
|
#include <freq.h>
|
|
|
|
#include <arm/armv7-m.dtsi>
|
|
|
|
#include <zephyr/dt-bindings/pinctrl/ti-k3-pinctrl.h>
|
2023-09-05 00:55:44 +08:00
|
|
|
#include <zephyr/dt-bindings/gpio/gpio.h>
|
2023-07-11 13:43:37 +08:00
|
|
|
|
|
|
|
/ {
|
|
|
|
|
|
|
|
cpus {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
|
|
|
cpu0: cpu@0 {
|
|
|
|
device_type = "cpu";
|
|
|
|
compatible = "arm,cortex-m4f";
|
|
|
|
reg = <0>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
sram0: memory@0 {
|
|
|
|
compatible = "mmio-sram";
|
|
|
|
reg = <0x0 DT_SIZE_K(192)>; /* 192 KB of SRAM (I-Code) */
|
|
|
|
};
|
|
|
|
|
|
|
|
sram1: memory1@40000 {
|
|
|
|
compatible = "mmio-sram";
|
|
|
|
reg = <0x40000 DT_SIZE_K(64)>; /* 64 KB of SRAM (D-Code) */
|
|
|
|
};
|
|
|
|
|
|
|
|
sysclk: system-clock {
|
|
|
|
compatible = "fixed-clock";
|
|
|
|
clock-frequency = <400000000>;
|
|
|
|
#clock-cells = <0>;
|
|
|
|
};
|
|
|
|
|
|
|
|
pinctrl: pinctrl@4084000 {
|
|
|
|
compatible = "ti,k3-pinctrl";
|
|
|
|
reg = <0x04084000 0x88>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
uart0: serial@4a00000 {
|
|
|
|
compatible = "ns16550";
|
|
|
|
reg = <0x04a00000 0x200>;
|
|
|
|
interrupts = <24 4>;
|
|
|
|
interrupt-parent = <&nvic>;
|
|
|
|
clock-frequency = <48000000>;
|
|
|
|
current-speed = <115200>;
|
|
|
|
reg-shift = <2>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
2023-09-05 00:55:44 +08:00
|
|
|
|
|
|
|
gpio0: gpio@4201010 {
|
|
|
|
compatible = "ti,davinci-gpio";
|
|
|
|
reg = <0x4201010 0x100>;
|
|
|
|
#address-cells = <2>;
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
ngpios = <24>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
2023-07-11 13:43:37 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
&nvic {
|
|
|
|
arm,num-irq-priority-bits = <3>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&systick {
|
|
|
|
status = "okay";
|
|
|
|
};
|