From cdefc8270d59d8a620935130bb9edc909dda199e Mon Sep 17 00:00:00 2001 From: Laxman Dewangan Date: Sun, 9 Apr 2023 17:37:58 +0000 Subject: [PATCH] tegra234: Move aon and hsp node from base to overlay The AON and HSP nodes are not upstreamed yet and so it needs to be added from the overlay file instead of base file. Bug 4057304 Change-Id: Ib4f1c2dc7d8124002172dcd34b6dd18360fcecbd Signed-off-by: Laxman Dewangan Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2884844 Reviewed-by: Bitan Biswas GVS: Gerrit_Virtual_Submit --- overlay/tegra234-soc-overlay.dtsi | 59 +++++++++++++++++++++++++++++++ tegra234.dtsi | 55 ---------------------------- 2 files changed, 59 insertions(+), 55 deletions(-) diff --git a/overlay/tegra234-soc-overlay.dtsi b/overlay/tegra234-soc-overlay.dtsi index 1696570..c8a6204 100644 --- a/overlay/tegra234-soc-overlay.dtsi +++ b/overlay/tegra234-soc-overlay.dtsi @@ -5,6 +5,7 @@ #include #include +#include #include #include #include @@ -731,6 +732,64 @@ #mbox-cells = <2>; status = "disabled"; }; + + hsp_top1: hsp@3d00000 { + compatible = "nvidia,tegra234-hsp", "nvidia,tegra194-hsp"; + reg = <0x0 0x03d00000 0x0 0x000a0000>; + interrupts = , + , + , + ; + interrupt-names = "shared0", "shared1", "shared2", "shared3"; + #mbox-cells = <2>; + status = "disabled"; + }; + + aon: aon@c000000 { + compatible = "nvidia,tegra234-aon"; + iommus = <&smmu_niso0 TEGRA234_SID_AON>; + dma-coherent; + + /* common mailbox binding property, should be 1. */ + #mbox-cells = <1>; + reg = <0 0xc000000 0 0x800000>; + nvidia,ivc-carveout-base-ss = <0>; + nvidia,ivc-carveout-size-ss = <1>; + nvidia,ivc-rx-ss = <2>; + nvidia,ivc-tx-ss = <3>; + + /* mailbox for debugging */ + mboxes = <&aon 0>; + + status = "disabled"; + + hsp { + compatible = "nvidia,tegra-aon-hsp"; + mboxes = + <&hsp_top1 TEGRA_HSP_MBOX_TYPE_SM TEGRA_HSP_SM_TX(5)>, + <&hsp_top1 TEGRA_HSP_MBOX_TYPE_SM TEGRA_HSP_SM_RX(4)>; + mbox-names = "ivc-tx", "ivc-rx"; + }; + + ivc-channels@80000000 { + #address-cells = <1>; + #size-cells = <0>; + + ivc_aon_aondbg@0 { + reg = <0x0000>, <0x10000>; + reg-names = "rx", "tx"; + nvidia,frame-count = <2>; + nvidia,frame-size = <64>; + }; + + ivc_aon_echo@100 { + reg = <0x0100>, <0x10100>; + reg-names = "rx", "tx"; + nvidia,frame-count = <16>; + nvidia,frame-size = <64>; + }; + }; + }; }; hsp_rce: tegra-hsp@b950000 { diff --git a/tegra234.dtsi b/tegra234.dtsi index 31eaee6..b4f7caa 100644 --- a/tegra234.dtsi +++ b/tegra234.dtsi @@ -1176,17 +1176,6 @@ #mbox-cells = <2>; }; - hsp_top1: tegra-hsp@3d00000 { - compatible = "nvidia,tegra234-hsp", "nvidia,tegra194-hsp"; - reg = <0x0 0x03d00000 0x0 0x000a0000>; - interrupts = , - , - , - ; - interrupt-names = "shared0", "shared1", "shared2", "shared3"; - #mbox-cells = <2>; - }; - p2u_hsio_0: phy@3e00000 { compatible = "nvidia,tegra234-p2u"; reg = <0x0 0x03e00000 0x0 0x10000>; @@ -3000,50 +2989,6 @@ }; }; - aon: aon@c000000 { - compatible = "nvidia,tegra234-aon"; - iommus = <&smmu_niso0 TEGRA234_SID_AON>; - dma-coherent; - - /* common mailbox binding property, should be 1. */ - #mbox-cells = <1>; - reg = <0 0xc000000 0 0x800000>; - nvidia,ivc-carveout-base-ss = <0>; - nvidia,ivc-carveout-size-ss = <1>; - nvidia,ivc-rx-ss = <2>; - nvidia,ivc-tx-ss = <3>; - - /* mailbox for debugging */ - mboxes = <&aon 0>; - - hsp { - compatible = "nvidia,tegra-aon-hsp"; - mboxes = - <&hsp_top1 TEGRA_HSP_MBOX_TYPE_SM TEGRA_HSP_SM_TX(5)>, - <&hsp_top1 TEGRA_HSP_MBOX_TYPE_SM TEGRA_HSP_SM_RX(4)>; - mbox-names = "ivc-tx", "ivc-rx"; - }; - - ivc-channels@80000000 { - #address-cells = <1>; - #size-cells = <0>; - - ivc_aon_aondbg@0 { - reg = <0x0000>, <0x10000>; - reg-names = "rx", "tx"; - nvidia,frame-count = <2>; - nvidia,frame-size = <64>; - }; - - ivc_aon_echo@100 { - reg = <0x0100>, <0x10100>; - reg-names = "rx", "tx"; - nvidia,frame-count = <16>; - nvidia,frame-size = <64>; - }; - }; - }; - cpus { #address-cells = <1>; #size-cells = <0>;