]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: dts: Introduce am69-sk u-boot dts files
authorDasnavis Sabiya <sabiya.d@ti.com>
Fri, 23 Feb 2024 20:21:50 +0000 (01:51 +0530)
committerTom Rini <trini@konsulko.com>
Mon, 4 Mar 2024 18:41:03 +0000 (13:41 -0500)
Introduce the base dts files needed for u-boot or to augment the linux
dtbs for use in the u-boot-spl and u-boot binaries.

Signed-off-by: Dasnavis Sabiya <sabiya.d@ti.com>
Signed-off-by: Apurva Nandan <a-nandan@ti.com>
Reviewed-by: Neha Malcom Francis <n-francis@ti.com>
Tested-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> # AM69-SK
arch/arm/dts/Makefile
arch/arm/dts/k3-am69-r5-sk.dts [new file with mode: 0644]
arch/arm/dts/k3-am69-sk-u-boot.dtsi [new file with mode: 0644]
board/ti/j784s4/MAINTAINERS

index cf0f28a2bcd0d115fbe079466d64bd11634b7a9d..971a4065faff41e14c7a8af73a503d1b3bed38cb 100644 (file)
@@ -1414,7 +1414,8 @@ dtb-$(CONFIG_SOC_K3_J721S2) += k3-am68-sk-base-board.dtb\
                               k3-j721s2-common-proc-board.dtb\
                               k3-j721s2-r5-common-proc-board.dtb
 
-dtb-$(CONFIG_SOC_K3_J784S4) += k3-j784s4-r5-evm.dtb
+dtb-$(CONFIG_SOC_K3_J784S4) += k3-am69-r5-sk.dtb \
+                              k3-j784s4-r5-evm.dtb
 
 dtb-$(CONFIG_SOC_K3_AM642) += k3-am642-evm.dtb \
                              k3-am642-r5-evm.dtb \
diff --git a/arch/arm/dts/k3-am69-r5-sk.dts b/arch/arm/dts/k3-am69-r5-sk.dts
new file mode 100644 (file)
index 0000000..f177f56
--- /dev/null
@@ -0,0 +1,106 @@
+// SPDX-License-Identifier: GPL-2.0-only
+/*
+ * Copyright (C) 2022-2023 Texas Instruments Incorporated - https://www.ti.com/
+ */
+
+/dts-v1/;
+
+#include "k3-am69-sk.dts"
+#include "k3-j784s4-ddr-evm-lp4-4266.dtsi"
+#include "k3-j784s4-ddr.dtsi"
+#include "k3-am69-sk-u-boot.dtsi"
+
+/ {
+       chosen {
+               tick-timer = &mcu_timer0;
+       };
+
+       aliases {
+               remoteproc0 = &sysctrler;
+               remoteproc1 = &a72_0;
+       };
+
+       a72_0: a72@0 {
+               compatible = "ti,am654-rproc";
+               reg = <0x0 0x00a90000 0x0 0x10>;
+               power-domains = <&k3_pds 61 TI_SCI_PD_EXCLUSIVE>,
+                               <&k3_pds 202 TI_SCI_PD_EXCLUSIVE>;
+               resets = <&k3_reset 202 0>;
+               clocks = <&k3_clks 61 0>;
+               assigned-clocks = <&k3_clks 61 0>, <&k3_clks 202 0>;
+               assigned-clock-parents = <&k3_clks 61 2>;
+               assigned-clock-rates = <200000000>, <2000000000>;
+               ti,sci = <&sms>;
+               ti,sci-proc-id = <32>;
+               ti,sci-host-id = <10>;
+               bootph-pre-ram;
+       };
+
+       dm_tifs: dm-tifs {
+               compatible = "ti,j721e-dm-sci";
+               ti,host-id = <3>;
+               ti,secure-host;
+               mbox-names = "rx", "tx";
+               mboxes= <&secure_proxy_mcu 21>, <&secure_proxy_mcu 23>;
+               bootph-pre-ram;
+       };
+};
+
+&mcu_timer0 {
+       status = "okay";
+       clock-frequency = <250000000>;
+       bootph-pre-ram;
+};
+
+&secure_proxy_sa3 {
+       status = "okay";
+       bootph-pre-ram;
+};
+
+&secure_proxy_mcu {
+       status = "okay";
+       bootph-pre-ram;
+};
+
+&cbass_mcu_wakeup {
+       sysctrler: sysctrler {
+               compatible = "ti,am654-system-controller";
+               mboxes= <&secure_proxy_mcu 4>,
+                       <&secure_proxy_mcu 5>,
+                       <&secure_proxy_sa3 5>;
+               mbox-names = "tx", "rx", "boot_notify";
+               bootph-pre-ram;
+       };
+};
+
+&sms {
+       mboxes= <&secure_proxy_mcu 8>, <&secure_proxy_mcu 6>, <&secure_proxy_mcu 5>;
+       mbox-names = "tx", "rx", "notify";
+       ti,host-id = <4>;
+       ti,secure-host;
+       bootph-pre-ram;
+};
+
+/* WKUP UART0 is used for DM firmware logs */
+&wkup_uart0 {
+       bootph-pre-ram;
+       status = "okay";
+};
+
+&ospi0 {
+       reg = <0x0 0x47040000 0x0 0x100>,
+             <0x0 0x50000000 0x0 0x8000000>;
+};
+
+&ospi1 {
+       reg = <0x0 0x47050000 0x0 0x100>,
+             <0x0 0x58000000 0x0 0x8000000>;
+};
+
+&mcu_ringacc {
+       ti,sci = <&dm_tifs>;
+};
+
+&mcu_udmap {
+       ti,sci = <&dm_tifs>;
+};
diff --git a/arch/arm/dts/k3-am69-sk-u-boot.dtsi b/arch/arm/dts/k3-am69-sk-u-boot.dtsi
new file mode 100644 (file)
index 0000000..bed330e
--- /dev/null
@@ -0,0 +1,54 @@
+// SPDX-License-Identifier: GPL-2.0-only
+/*
+ * Copyright (C) 2022-2023 Texas Instruments Incorporated - https://www.ti.com/
+ */
+
+#include "k3-j784s4-binman.dtsi"
+
+/ {
+       memory@80000000 {
+               bootph-all;
+       };
+};
+
+&mcu_udmap {
+       reg =   <0x0 0x285c0000 0x0 0x100>,
+               <0x0 0x284c0000 0x0 0x4000>,
+               <0x0 0x2a800000 0x0 0x40000>,
+               <0x0 0x284a0000 0x0 0x4000>,
+               <0x0 0x2aa00000 0x0 0x40000>,
+               <0x0 0x28400000 0x0 0x2000>;
+       reg-names = "gcfg", "rchan", "rchanrt", "tchan",
+                   "tchanrt", "rflow";
+       bootph-pre-ram;
+};
+
+&sms {
+       k3_sysreset: sysreset-controller {
+               compatible = "ti,sci-sysreset";
+               bootph-pre-ram;
+       };
+};
+
+#ifdef CONFIG_TARGET_J784S4_A72_EVM
+
+#define SPL_AM69_SK_DTB "spl/dts/ti/k3-am69-sk.dtb"
+#define AM69_SK_DTB "u-boot.dtb"
+
+&spl_j784s4_evm_dtb {
+       filename = SPL_AM69_SK_DTB;
+};
+
+&j784s4_evm_dtb {
+       filename = AM69_SK_DTB;
+};
+
+&spl_j784s4_evm_dtb_unsigned {
+       filename = SPL_AM69_SK_DTB;
+};
+
+&j784s4_evm_dtb_unsigned {
+       filename = AM69_SK_DTB;
+};
+
+#endif
index ff00cc60868b3b872301d63aee468258adabf9f2..8b03a7adb1edc58b59daa7d60fdaba8f7ea3a0af 100644 (file)
@@ -8,3 +8,9 @@ F:      arch/arm/dts/k3-j784s4-evm-u-boot.dtsi
 F:     arch/arm/dts/k3-j784s4-r5-evm.dts
 F:     arch/arm/dts/k3-j784s4-ddr.dtsi
 F:     arch/arm/dts/k3-j784s4-ddr-evm-lp4-4266.dtsi
+
+AM69 SK BOARD
+M:     Apurva Nandan <a-nandan@ti.com>
+S:     Maintained
+F:     arch/arm/dts/k3-am69-sk-u-boot.dtsi
+F:     arch/arm/dts/k3-am69-r5-sk.dts