diff --git a/dts/arm/ti/j722s_main_r5.dtsi b/dts/arm/ti/j722s_main_r5.dtsi index 42206068eb4..fe1457780de 100644 --- a/dts/arm/ti/j722s_main_r5.dtsi +++ b/dts/arm/ti/j722s_main_r5.dtsi @@ -10,6 +10,7 @@ #include #include +#include "j722s_mcu.dtsi" #include "j722s_main.dtsi" / { diff --git a/dts/arm/ti/j722s_mcu.dtsi b/dts/arm/ti/j722s_mcu.dtsi new file mode 100644 index 00000000000..df67bb8b279 --- /dev/null +++ b/dts/arm/ti/j722s_mcu.dtsi @@ -0,0 +1,34 @@ +/* + * Copyright (c) 2024 Texas Instruments Incorporated + * Andrew Davis + * + * SPDX-License-Identifier: Apache-2.0 + */ + +#include +#include +#include + +/ { + #address-cells = <1>; + #size-cells = <1>; + + mcu_gpio0: gpio@4201010 { + compatible = "ti,davinci-gpio"; + reg = <0x4201010 0x100>; + gpio-controller; + #gpio-cells = <2>; + ngpios = <24>; + status = "disabled"; + }; + + mcu_uart0: uart@4a00000 { + compatible = "ns16550"; + reg = <0x04a00000 0x100>; + clock-frequency = <48000000>; + interrupts = <0 217 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>; + interrupt-parent = <&vim>; + reg-shift = <2>; + status = "disabled"; + }; +}; diff --git a/dts/arm/ti/j722s_mcu_r5.dtsi b/dts/arm/ti/j722s_mcu_r5.dtsi new file mode 100644 index 00000000000..a348c2dc43d --- /dev/null +++ b/dts/arm/ti/j722s_mcu_r5.dtsi @@ -0,0 +1,61 @@ +/* + * Copyright (c) 2024 Texas Instruments Incorporated + * Andrew Davis + * + * SPDX-License-Identifier: Apache-2.0 + */ + +#include +#include +#include +#include + +#include "j722s_mcu.dtsi" +#include "j722s_main.dtsi" + +/ { + #address-cells = <1>; + #size-cells = <1>; + + cpus { + #address-cells = <1>; + #size-cells = <0>; + + cpu0: cpu@0 { + device_type = "cpu"; + compatible = "arm,cortex-r5"; + reg = <0>; + }; + }; + + atcm: memory@0 { + device_type = "memory"; + compatible = "zephyr,memory-region", "mmio-sram"; + reg = <0x00000000 DT_SIZE_K(32)>; + zephyr,memory-region = "ATCM"; + }; + + btcm: memory@41010000 { + device_type = "memory"; + compatible = "zephyr,memory-region", "mmio-sram"; + reg = <0x41010000 DT_SIZE_K(32)>; + zephyr,memory-region = "BTCM"; + }; + + vim: interrupt-controller@7ff0000 { + #address-cells = <1>; + compatible = "ti,vim"; + reg = <0x07ff0000 0x2800>; + interrupt-controller; + #interrupt-cells = <4>; /* {IRQ/FIQ, IRQ_NUM, IRQ_TYPE, IRQ_PRIO} */ + status = "okay"; + }; + + systick_timer: timer@4800000 { + compatible = "ti,am654-timer"; + reg = <0x04800000 0x70>; + interrupts = <0 28 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>; + interrupt-parent = <&vim>; + status = "disabled"; + }; +}; diff --git a/soc/ti/k3/am6x/Kconfig.soc b/soc/ti/k3/am6x/Kconfig.soc index 3872f243efe..82c56f200b8 100644 --- a/soc/ti/k3/am6x/Kconfig.soc +++ b/soc/ti/k3/am6x/Kconfig.soc @@ -43,6 +43,10 @@ config SOC_J722S_MAIN_R5F0_0 bool select SOC_SERIES_AM6X_R5 +config SOC_J722S_MCU_R5F0_0 + bool + select SOC_SERIES_AM6X_R5 + config SOC_SERIES default "am6x" if SOC_SERIES_AM6X @@ -50,4 +54,4 @@ config SOC default "am6234" if SOC_AM6234_M4 || SOC_AM6234_A53 default "am6442" if SOC_AM6442_M4 default "j721e" if SOC_J721E_MAIN_R5F0_0 - default "j722s" if SOC_J722S_MAIN_R5F0_0 + default "j722s" if SOC_J722S_MAIN_R5F0_0 || SOC_J722S_MCU_R5F0_0 diff --git a/soc/ti/k3/soc.yml b/soc/ti/k3/soc.yml index 9627669e940..44e530703a8 100644 --- a/soc/ti/k3/soc.yml +++ b/soc/ti/k3/soc.yml @@ -16,3 +16,4 @@ family: - name: j722s cpuclusters: - name: main_r5f0_0 + - name: mcu_r5f0_0