Re: [PATCH v8 13/16] arm: dts: Introduce am69-sk u-boot dts files
On 22/01/24 18:28, Roger Quadros wrote: On 19/01/2024 19:50, Apurva Nandan wrote: From: Dasnavis Sabiya 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 Signed-off-by: Apurva Nandan --- arch/arm/dts/Makefile | 1 + arch/arm/dts/k3-am69-r5-sk.dts | 105 arch/arm/dts/k3-am69-sk-u-boot.dtsi | 48 + board/ti/j784s4/MAINTAINERS | 2 + 4 files changed, 156 insertions(+) create mode 100644 arch/arm/dts/k3-am69-r5-sk.dts create mode 100644 arch/arm/dts/k3-am69-sk-u-boot.dtsi diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index 876802b88e..1c5a6662f6 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -1412,6 +1412,7 @@ dtb-$(CONFIG_SOC_K3_J721S2) += k3-am68-sk-base-board.dtb\ k3-j721s2-r5-common-proc-board.dtb dtb-$(CONFIG_SOC_K3_J784S4) += k3-am69-sk.dtb \ + k3-am69-r5-sk.dtb \ k3-j784s4-evm.dtb \ k3-j784s4-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 index 00..d2e73bd1bf --- /dev/null +++ b/arch/arm/dts/k3-am69-r5-sk.dts @@ -0,0 +1,105 @@ +// 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 = _timer0; + }; + + aliases { + remoteproc0 = + remoteproc1 = _0; + }; + + a72_0: a72@0 { + compatible = "ti,am654-rproc"; + reg = <0x0 0x00a9 0x0 0x10>; + power-domains = <_pds 61 TI_SCI_PD_EXCLUSIVE>, + <_pds 202 TI_SCI_PD_EXCLUSIVE>; + resets = <_reset 202 0>; + clocks = <_clks 61 0>; + assigned-clocks = <_clks 61 0>, <_clks 202 0>; + assigned-clock-parents = <_clks 61 2>; + assigned-clock-rates = <2>, <20>; + ti,sci = <>; + 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= <_proxy_mcu 21>, <_proxy_mcu 23>; + bootph-pre-ram; + }; +}; + +_timer0 { + status = "okay"; + clock-frequency = <25000>; + bootph-pre-ram; +}; + +_proxy_sa3 { + status = "okay"; + bootph-pre-ram; +}; + +_proxy_mcu { + status = "okay"; + bootph-pre-ram; +}; + +_mcu_wakeup { + sysctrler: sysctrler { + compatible = "ti,am654-system-controller"; + mboxes= <_proxy_mcu 4>, + <_proxy_mcu 5>, + <_proxy_sa3 5>; + mbox-names = "tx", "rx", "boot_notify"; + bootph-pre-ram; + }; +}; + + { + mboxes= <_proxy_mcu 8>, <_proxy_mcu 6>, <_proxy_mcu 5>; + mbox-names = "tx", "rx", "notify"; + ti,host-id = <4>; + ti,secure-host; + bootph-pre-ram; +}; + +_uart0 { + bootph-pre-ram; + status = "okay"; In k3-am69-sk.dts this is marked as reserved. Why do you need to enable it here? Maybe a comment would help readers. Ohkay will fix. +}; + + { + reg = <0x0 0x4704 0x0 0x100>, + <0x0 0x5000 0x0 0x800>; +}; + + { + reg = <0x0 0x4705 0x0 0x100>, + <0x0 0x5800 0x0 0x800>; +}; + +_ringacc { + ti,sci = <_tifs>; +}; + +_udmap { + ti,sci = <_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 index 00..4f8c99a1e6 --- /dev/null +++ b/arch/arm/dts/k3-am69-sk-u-boot.dtsi @@ -0,0 +1,48 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Copyright (C) 2022-2023 Texas Instruments Incorporated - https://www.ti.com/ + */ + +#include "k3-j784s4-binman.dtsi" + +_udmap { + reg = <0x0 0x285c 0x0 0x100>, + <0x0 0x284c 0x0 0x4000>, + <0x0 0x2a80 0x0 0x4>, + <0x0 0x284a 0x0 0x4000>, + <0x0 0x2aa0 0x0 0x4>, + <0x0 0x2840 0x0 0x2000>; + reg-names = "gcfg", "rchan", "rchanrt", "tchan", + "tchanrt", "rflow"; + bootph-pre-ram; +}; + + { + k3_sysreset: sysreset-controller { + compatible = "ti,sci-sysreset"; + bootph-pre-ram; + }; +}; + +#ifdef
Re: [PATCH v8 13/16] arm: dts: Introduce am69-sk u-boot dts files
On 19/01/2024 19:50, Apurva Nandan wrote: > From: Dasnavis Sabiya > > 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 > Signed-off-by: Apurva Nandan > --- > arch/arm/dts/Makefile | 1 + > arch/arm/dts/k3-am69-r5-sk.dts | 105 > arch/arm/dts/k3-am69-sk-u-boot.dtsi | 48 + > board/ti/j784s4/MAINTAINERS | 2 + > 4 files changed, 156 insertions(+) > create mode 100644 arch/arm/dts/k3-am69-r5-sk.dts > create mode 100644 arch/arm/dts/k3-am69-sk-u-boot.dtsi > > diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile > index 876802b88e..1c5a6662f6 100644 > --- a/arch/arm/dts/Makefile > +++ b/arch/arm/dts/Makefile > @@ -1412,6 +1412,7 @@ dtb-$(CONFIG_SOC_K3_J721S2) += > k3-am68-sk-base-board.dtb\ > k3-j721s2-r5-common-proc-board.dtb > > dtb-$(CONFIG_SOC_K3_J784S4) += k3-am69-sk.dtb \ > +k3-am69-r5-sk.dtb \ > k3-j784s4-evm.dtb \ > k3-j784s4-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 > index 00..d2e73bd1bf > --- /dev/null > +++ b/arch/arm/dts/k3-am69-r5-sk.dts > @@ -0,0 +1,105 @@ > +// 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 = _timer0; > + }; > + > + aliases { > + remoteproc0 = > + remoteproc1 = _0; > + }; > + > + a72_0: a72@0 { > + compatible = "ti,am654-rproc"; > + reg = <0x0 0x00a9 0x0 0x10>; > + power-domains = <_pds 61 TI_SCI_PD_EXCLUSIVE>, > + <_pds 202 TI_SCI_PD_EXCLUSIVE>; > + resets = <_reset 202 0>; > + clocks = <_clks 61 0>; > + assigned-clocks = <_clks 61 0>, <_clks 202 0>; > + assigned-clock-parents = <_clks 61 2>; > + assigned-clock-rates = <2>, <20>; > + ti,sci = <>; > + 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= <_proxy_mcu 21>, <_proxy_mcu 23>; > + bootph-pre-ram; > + }; > +}; > + > +_timer0 { > + status = "okay"; > + clock-frequency = <25000>; > + bootph-pre-ram; > +}; > + > +_proxy_sa3 { > + status = "okay"; > + bootph-pre-ram; > +}; > + > +_proxy_mcu { > + status = "okay"; > + bootph-pre-ram; > +}; > + > +_mcu_wakeup { > + sysctrler: sysctrler { > + compatible = "ti,am654-system-controller"; > + mboxes= <_proxy_mcu 4>, > + <_proxy_mcu 5>, > + <_proxy_sa3 5>; > + mbox-names = "tx", "rx", "boot_notify"; > + bootph-pre-ram; > + }; > +}; > + > + { > + mboxes= <_proxy_mcu 8>, <_proxy_mcu 6>, > <_proxy_mcu 5>; > + mbox-names = "tx", "rx", "notify"; > + ti,host-id = <4>; > + ti,secure-host; > + bootph-pre-ram; > +}; > + > +_uart0 { > + bootph-pre-ram; > + status = "okay"; In k3-am69-sk.dts this is marked as reserved. Why do you need to enable it here? Maybe a comment would help readers. > +}; > + > + { > + reg = <0x0 0x4704 0x0 0x100>, > + <0x0 0x5000 0x0 0x800>; > +}; > + > + { > + reg = <0x0 0x4705 0x0 0x100>, > + <0x0 0x5800 0x0 0x800>; > +}; > + > +_ringacc { > + ti,sci = <_tifs>; > +}; > + > +_udmap { > + ti,sci = <_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 > index 00..4f8c99a1e6 > --- /dev/null > +++ b/arch/arm/dts/k3-am69-sk-u-boot.dtsi > @@ -0,0 +1,48 @@ > +// SPDX-License-Identifier: GPL-2.0-only > +/* > + * Copyright (C) 2022-2023 Texas Instruments Incorporated - > https://www.ti.com/ > + */ > + > +#include "k3-j784s4-binman.dtsi" > + > +_udmap { > + reg = <0x0 0x285c 0x0 0x100>, > + <0x0 0x284c 0x0 0x4000>, > + <0x0 0x2a80 0x0 0x4>, > + <0x0 0x284a 0x0 0x4000>, > + <0x0 0x2aa0 0x0 0x4>, > + <0x0 0x2840 0x0 0x2000>; > + reg-names = "gcfg", "rchan", "rchanrt", "tchan", > + "tchanrt", "rflow"; > + bootph-pre-ram; > +}; > + > + { > + k3_sysreset: sysreset-controller { > +
[PATCH v8 13/16] arm: dts: Introduce am69-sk u-boot dts files
From: Dasnavis Sabiya 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 Signed-off-by: Apurva Nandan --- arch/arm/dts/Makefile | 1 + arch/arm/dts/k3-am69-r5-sk.dts | 105 arch/arm/dts/k3-am69-sk-u-boot.dtsi | 48 + board/ti/j784s4/MAINTAINERS | 2 + 4 files changed, 156 insertions(+) create mode 100644 arch/arm/dts/k3-am69-r5-sk.dts create mode 100644 arch/arm/dts/k3-am69-sk-u-boot.dtsi diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index 876802b88e..1c5a6662f6 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -1412,6 +1412,7 @@ dtb-$(CONFIG_SOC_K3_J721S2) += k3-am68-sk-base-board.dtb\ k3-j721s2-r5-common-proc-board.dtb dtb-$(CONFIG_SOC_K3_J784S4) += k3-am69-sk.dtb \ + k3-am69-r5-sk.dtb \ k3-j784s4-evm.dtb \ k3-j784s4-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 index 00..d2e73bd1bf --- /dev/null +++ b/arch/arm/dts/k3-am69-r5-sk.dts @@ -0,0 +1,105 @@ +// 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 = _timer0; + }; + + aliases { + remoteproc0 = + remoteproc1 = _0; + }; + + a72_0: a72@0 { + compatible = "ti,am654-rproc"; + reg = <0x0 0x00a9 0x0 0x10>; + power-domains = <_pds 61 TI_SCI_PD_EXCLUSIVE>, + <_pds 202 TI_SCI_PD_EXCLUSIVE>; + resets = <_reset 202 0>; + clocks = <_clks 61 0>; + assigned-clocks = <_clks 61 0>, <_clks 202 0>; + assigned-clock-parents = <_clks 61 2>; + assigned-clock-rates = <2>, <20>; + ti,sci = <>; + 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= <_proxy_mcu 21>, <_proxy_mcu 23>; + bootph-pre-ram; + }; +}; + +_timer0 { + status = "okay"; + clock-frequency = <25000>; + bootph-pre-ram; +}; + +_proxy_sa3 { + status = "okay"; + bootph-pre-ram; +}; + +_proxy_mcu { + status = "okay"; + bootph-pre-ram; +}; + +_mcu_wakeup { + sysctrler: sysctrler { + compatible = "ti,am654-system-controller"; + mboxes= <_proxy_mcu 4>, + <_proxy_mcu 5>, + <_proxy_sa3 5>; + mbox-names = "tx", "rx", "boot_notify"; + bootph-pre-ram; + }; +}; + + { + mboxes= <_proxy_mcu 8>, <_proxy_mcu 6>, <_proxy_mcu 5>; + mbox-names = "tx", "rx", "notify"; + ti,host-id = <4>; + ti,secure-host; + bootph-pre-ram; +}; + +_uart0 { + bootph-pre-ram; + status = "okay"; +}; + + { + reg = <0x0 0x4704 0x0 0x100>, + <0x0 0x5000 0x0 0x800>; +}; + + { + reg = <0x0 0x4705 0x0 0x100>, + <0x0 0x5800 0x0 0x800>; +}; + +_ringacc { + ti,sci = <_tifs>; +}; + +_udmap { + ti,sci = <_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 index 00..4f8c99a1e6 --- /dev/null +++ b/arch/arm/dts/k3-am69-sk-u-boot.dtsi @@ -0,0 +1,48 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Copyright (C) 2022-2023 Texas Instruments Incorporated - https://www.ti.com/ + */ + +#include "k3-j784s4-binman.dtsi" + +_udmap { + reg = <0x0 0x285c 0x0 0x100>, + <0x0 0x284c 0x0 0x4000>, + <0x0 0x2a80 0x0 0x4>, + <0x0 0x284a 0x0 0x4000>, + <0x0 0x2aa0 0x0 0x4>, + <0x0 0x2840 0x0 0x2000>; + reg-names = "gcfg", "rchan", "rchanrt", "tchan", + "tchanrt", "rflow"; + bootph-pre-ram; +}; + + { + k3_sysreset: sysreset-controller { + compatible = "ti,sci-sysreset"; + bootph-pre-ram; + }; +}; + +#ifdef CONFIG_TARGET_J784S4_A72_EVM + +#define SPL_AM69_SK_DTB "spl/dts/k3-am69-sk.dtb" +#define AM69_SK_DTB "arch/arm/dts/k3-am69-sk.dtb" + +_j784s4_evm_dtb { + filename = SPL_AM69_SK_DTB; +}; + +_evm_dtb { + filename = AM69_SK_DTB; +}; +