Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4924828934C; Wed, 7 May 2025 14:38:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746628700; cv=none; b=RmDjEB2IWL+leernHr2Bd2os0XnHxJFOrSE7F/rC1nsVIfvEAGseZ59fzxDqOPFLNCWgCptOvQJvk2yqo/DQo7Avu/TSQfLMECIQHZQCmdBsZg4CI3wNQlXcWPNlEcMnfYqaPc+4tRW/TJYlglJ1slG7yqUca5XKSzEy86tfHEY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746628700; c=relaxed/simple; bh=LWwI+/vQ8i0ZZwnap/CKlaUcQK/AA5iY1NLkDG5B3OU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=J2qrX5et6ZuFAIMLT/6gcEvGpPKkr3tsU2j9KN8Rl/VOteOB+W208hbdsZrM012kJjzH523OEx/z0y9vgl2NlgE7+Q4az8cD723JBvPOJNPib7Nzv9AJaMkacoYmxxbJa6YPpYpHiuIm1BBMZyvv2GEs/kGSKEKqjceAwzOQ9U0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=jGO4TUpy; arc=none smtp.client-ip=209.85.128.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="jGO4TUpy" Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-43edb40f357so37392925e9.0; Wed, 07 May 2025 07:38:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1746628696; x=1747233496; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=nSGmTJ59unapETJe2Z1nCeU9bCg9pHUXtpTUGyt/Iig=; b=jGO4TUpyVQmMv3PavXL0JA8sG7wzqFkyfSEAYr94flQ+P0yNFp/JDNXHGeYcbc/Zce XYs+4ZkabutZkT/DJYdOaKuTIXcwBJlVHDeySrIqlrv0A9xufFCOUUxxnOmBdFIyck5+ SHpqukbJ0vyqtV9DxBNI1pAGEYaueF6OfdTOem9yT3C4WpEo7E4t94/uvj6edxcARZSC UvqdTf1fcdb7gP9kQ47IJaNPvR7tCF/tfFujjNCpGtQMiejk5FfLvzLJaD5o/s794rhk llQaWi65K0TqbtoUstd3gS5Tz6p7FPnyFEIxw/wO/Ubqq20IrK1EW3AWQgCFERoL5r9v v9vA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746628696; x=1747233496; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nSGmTJ59unapETJe2Z1nCeU9bCg9pHUXtpTUGyt/Iig=; b=hiCZ54ya7AjluTVCqBJk8cYJQ+EINOVllfMBfeT86za22dWB2Un6C7/M28zCU+/3CM tGbsDjYrDWFfdNlUvUsmpxheHcEubxHI9rw1d7t2Kubn8L+eDN48O5TzP201QVenXgr3 rJUrmKaEMGtxnVC51nR4FgEmRyQ5nEgOBWR/Bv5ayq8NJ20+deiSGcEb2h6qv/GzEn6H gXEc1CXyzdhb4ufQL7mdmX+0GTRlDgI7VxRi9ZwNsRGY1RI14KqSsfx7xAXzr8FkPd/Q 4i2386ghiViRMZfguIh2TrarhA2XPbzeh286XkVIVHhNh1coEZmYVxTdQiNcmvknRY3f WNaQ== X-Forwarded-Encrypted: i=1; AJvYcCVfYiRQLvvDDswy+8A/Pc1n0U5TQRPKdPW1mM2BOfCIZtXaZkIvtpwao+qmg6ngGeNMEDLrNG2kCzf8EU4=@vger.kernel.org, AJvYcCXVTrJRL47fSVl0Msec8J6VdXl7u/Ly0GBvMB22/AmoawGgegQ0tkx1ZmSmYplJ0LrV8PA27uMiiF5j@vger.kernel.org X-Gm-Message-State: AOJu0Yxd4FU/8/I5AJngQwF/LOZzy3GNXPAtQZ2NvTWidYs/tYSp6gPI ZuCzwHSnZOptM2Fu/wSO1xVT4hLVpWJcHEwq8sFy69RPCy4UZcoe X-Gm-Gg: ASbGnct0qvZaFw6V0CXpNO8PuY+OMAfpHjoSw/pBR4r7ePZ9cWTPeNQP4ULL2I++7BX owzrYMnl/1Xg8f7yUbv4wrp6BsF0cr7fDZaF/0oqLvmaN8kj3OJ3eWLpYB9Ca+iY7TzzbB5KI7j nzP4pjrxGEAKIjUSOXQdzc3xeiscwoah2Zh0TPLSYjapFQMd9/l7UVsDJUJKRqtlHFt1ruU0aWO LkvjcgNdnoGMWHuKytta/i7OEcLy7e4F/XfFV+WER9HSYXrPklK94TWi+MzYpO1KUUstZrfIcOe U6yKvzJ4WXlh34D7BFKEYZdlSacDhXZ/bF2pdKLpz13yuntxPPaKHv3vFZVjTjMeTbixn3pPqwz 8LIJIjP7fdJ+SkfOtRwQr3WChaFOX2AZC X-Google-Smtp-Source: AGHT+IHBRYtQe8SyD5NaCFN5EWdwRdEZV+QQ8If4cEYb4IWVUbSinNDq0I7CjAEbqGTOySM4bt1pZQ== X-Received: by 2002:a05:600c:a47:b0:43c:e2dd:98ea with SMTP id 5b1f17b1804b1-441d44dc067mr28374845e9.22.1746628696289; Wed, 07 May 2025 07:38:16 -0700 (PDT) Received: from localhost (p200300e41f281b00f22f74fffe1f3a53.dip0.t-ipconnect.de. [2003:e4:1f28:1b00:f22f:74ff:fe1f:3a53]) by smtp.gmail.com with UTF8SMTPSA id ffacd0b85a97d-3a099b17096sm17605859f8f.96.2025.05.07.07.38.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 May 2025 07:38:15 -0700 (PDT) From: Thierry Reding To: Thierry Reding Cc: Jon Hunter , linux-tegra@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 6/8] arm64: tegra: Add Tegra264 support Date: Wed, 7 May 2025 16:38:00 +0200 Message-ID: <20250507143802.1230919-7-thierry.reding@gmail.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250507143802.1230919-1-thierry.reding@gmail.com> References: <20250507143802.1230919-1-thierry.reding@gmail.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Thierry Reding Add basic support for the Tegra264 SoC, sufficient for booting into an initial ramdisk. Signed-off-by: Thierry Reding --- arch/arm64/boot/dts/nvidia/tegra264.dtsi | 363 +++++++++++++++++++++++ 1 file changed, 363 insertions(+) create mode 100644 arch/arm64/boot/dts/nvidia/tegra264.dtsi diff --git a/arch/arm64/boot/dts/nvidia/tegra264.dtsi b/arch/arm64/boot/dts/nvidia/tegra264.dtsi new file mode 100644 index 000000000000..468c94137ef1 --- /dev/null +++ b/arch/arm64/boot/dts/nvidia/tegra264.dtsi @@ -0,0 +1,363 @@ +// SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause + +#include +#include +#include +#include +#include + +/ { + compatible = "nvidia,tegra264"; + interrupt-parent = <&gic>; + #address-cells = <2>; + #size-cells = <2>; + numa-node-id = <0>; + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + shmem_bpmp: shmem@86070000 { + compatible = "nvidia,tegra264-bpmp-shmem"; + reg = <0x0 0x86070000 0x0 0x2000>; + no-map; + }; + }; + + /* SYSTEM MMIO */ + bus@0 { + compatible = "simple-bus"; + + #address-cells = <2>; + #size-cells = <2>; + + ranges = <0x00 0x00000000 0x00 0x00000000 0x01 0x00000000>; + + misc@100000 { + compatible = "nvidia,tegra234-misc"; + reg = <0x0 0x00100000 0x0 0x0f000>, + <0x0 0x0c140000 0x0 0x10000>; + }; + + timer@8000000 { + compatible = "nvidia,tegra234-timer"; + reg = <0x0 0x08000000 0x0 0x140000>; + interrupts = , + , + , + ; + status = "disabled"; + }; + + gpcdma: dma-controller@8400000 { + compatible = "nvidia,tegra264-gpcdma", "nvidia,tegra186-gpcdma"; + reg = <0x0 0x08400000 0x0 0x210000>; + interrupts = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + #dma-cells = <1>; + iommus = <&smmu1 0x00000800>; + dma-coherent; + dma-channel-mask = <0xfffffffe>; + status = "disabled"; + }; + + hsp_top: hsp@8800000 { + compatible = "nvidia,tegra264-hsp"; + reg = <0x0 0x08800000 0x0 0xd0000>; + interrupts = , + , + , + , + , + , + , + , + ; + interrupt-names = "doorbell", "shared0", "shared1", "shared2", + "shared3", "shared4", "shared5", "shared6", + "shared7"; + #mbox-cells = <2>; + }; + + rtc: rtc@c2c0000 { + compatible = "nvidia,tegra264-rtc", "nvidia,tegra20-rtc"; + reg = <0x0 0x0c2c0000 0x0 0x10000>; + interrupt-parent = <&pmc>; + interrupts = <65 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&bpmp TEGRA264_CLK_CLK_S>; + clock-names = "rtc"; + status = "disabled"; + }; + + serial@c4e0000 { + compatible = "nvidia,tegra264-utc"; + reg = <0x0 0x0c4e0000 0x0 0x8000>, + <0x0 0x0c4e8000 0x0 0x8000>; + reg-names = "tx", "rx"; + interrupts = ; + rx-threshold = <4>; + tx-threshold = <4>; + status = "disabled"; + }; + + serial@c5a0000 { + compatible = "nvidia,tegra264-utc"; + reg = <0x0 0x0c5a0000 0x0 0x8000>, + <0x0 0x0c5a8000 0x0 0x8000>; + reg-names = "tx", "rx"; + interrupts = ; + rx-threshold = <4>; + tx-threshold = <4>; + status = "disabled"; + }; + + uart0: serial@c5f0000 { + compatible = "arm,sbsa-uart"; + reg = <0x0 0x0c5f0000 0x0 0x10000>; + interrupts = ; + status = "disabled"; + }; + + pmc: pmc@c800000 { + compatible = "nvidia,tegra264-pmc"; + reg = <0x0 0x0c800000 0x0 0x100000>, + <0x0 0x0c990000 0x0 0x10000>, + <0x0 0x0ca00000 0x0 0x10000>, + <0x0 0x0c980000 0x0 0x10000>, + <0x0 0x0c9c0000 0x0 0x40000>; + reg-names = "pmc", "wake", "aotag", "scratch", "misc"; + #interrupt-cells = <2>; + interrupt-controller; + }; + }; + + /* TOP_MMIO */ + bus@8100000000 { + compatible = "simple-bus"; + + #address-cells = <2>; + #size-cells = <2>; + + ranges = <0x00 0x00000000 0x81 0x00000000 0x01 0x00000000>, /* MMIO */ + <0x01 0x00000000 0x00 0x20000000 0x00 0x40000000>, /* non-prefetchable memory (32-bit) */ + <0x02 0x00000000 0xd0 0x00000000 0x08 0x80000000>; /* ECAM, prefetchable memory, I/O */ + + smmu1: iommu@5000000 { + compatible = "arm,smmu-v3"; + reg = <0x00 0x5000000 0x0 0x200000>; + interrupts = , + ; + interrupt-names = "eventq", "gerror"; + status = "disabled"; + + #iommu-cells = <1>; + dma-coherent; + }; + + smmu2: iommu@6000000 { + compatible = "arm,smmu-v3"; + reg = <0x00 0x6000000 0x0 0x200000>; + interrupts = , + ; + interrupt-names = "eventq", "gerror"; + status = "disabled"; + + #iommu-cells = <1>; + dma-coherent; + }; + + smmu0: iommu@a000000 { + compatible = "arm,smmu-v3"; + reg = <0x00 0xa000000 0x0 0x200000>; + interrupts = , + ; + interrupt-names = "eventq", "gerror"; + status = "disabled"; + + #iommu-cells = <1>; + dma-coherent; + }; + + smmu4: iommu@b000000 { + compatible = "arm,smmu-v3"; + reg = <0x00 0xb000000 0x0 0x200000>; + interrupts = , + ; + interrupt-names = "eventq", "gerror"; + status = "disabled"; + + #iommu-cells = <1>; + dma-coherent; + }; + + gic: interrupt-controller@46000000 { + compatible = "arm,gic-v3"; + reg = <0x00 0x46000000 0x0 0x010000>, /* GICD */ + <0x00 0x46080000 0x0 0x400000>; /* GICR */ + interrupt-parent = <&gic>; + interrupts = ; + + redistributor-stride = <0x0 0x40000>; + #redistributor-regions = <1>; + #interrupt-cells = <3>; + interrupt-controller; + + #address-cells = <2>; + #size-cells = <2>; + + ranges = <0x0 0x0 0x00 0x46000000 0x0 0x1000000>; + + its: msi-controller@40000 { + compatible = "arm,gic-v3-its"; + reg = <0x0 0x40000 0x0 0x40000>; + #msi-cells = <1>; + msi-controller; + }; + }; + }; + + /* DISP_USB MMIO */ + bus@8800000000 { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + + ranges = <0x00 0x00000000 0x88 0x00000000 0x01 0x00000000>; + + smmu3: iommu@6000000 { + compatible = "arm,smmu-v3"; + reg = <0x00 0x6000000 0x0 0x200000>; + interrupts = , + ; + interrupt-names = "eventq", "gerror"; + status = "disabled"; + + #iommu-cells = <1>; + dma-coherent; + }; + }; + + /* UPHY MMIO */ + bus@a800000000 { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + + ranges = <0x00 0x00000000 0xa8 0x00000000 0x40 0x00000000>, /* MMIO, ECAM, prefetchable memory, I/O */ + <0x80 0x00000000 0x00 0x20000000 0x00 0x40000000>; /* non-prefetchable memory (32-bit) */ + }; + + cpus { + #address-cells = <1>; + #size-cells = <0>; + + cpu0: cpu@0 { + compatible = "arm,armv8"; + device_type = "cpu"; + reg = <0x00000>; + status = "okay"; + + enable-method = "psci"; + numa-node-id = <0>; + + i-cache-size = <65536>; + i-cache-line-size = <64>; + i-cache-sets = <256>; + d-cache-size = <65536>; + d-cache-line-size = <64>; + d-cache-sets = <256>; + }; + + cpu1: cpu@1 { + compatible = "arm,armv8"; + device_type = "cpu"; + reg = <0x10000>; + status = "okay"; + + enable-method = "psci"; + numa-node-id = <0>; + + i-cache-size = <65536>; + i-cache-line-size = <64>; + i-cache-sets = <256>; + d-cache-size = <65536>; + d-cache-line-size = <64>; + d-cache-sets = <256>; + }; + }; + + bpmp: bpmp { + compatible = "nvidia,tegra264-bpmp", "nvidia,tegra186-bpmp"; + mboxes = <&hsp_top TEGRA_HSP_MBOX_TYPE_DB + TEGRA_HSP_DB_MASTER_BPMP>; + memory-region = <&shmem_bpmp>; + #clock-cells = <1>; + #reset-cells = <1>; + #power-domain-cells = <1>; + + i2c { + compatible = "nvidia,tegra186-bpmp-i2c"; + nvidia,bpmp-bus-id = <5>; + #address-cells = <1>; + #size-cells = <0>; + }; + + thermal { + compatible = "nvidia,tegra186-bpmp-thermal"; + #thermal-sensor-cells = <1>; + }; + }; + + pmu { + compatible = "arm,armv8-pmuv3"; + interrupts = ; + status = "okay"; + }; + + psci { + compatible = "arm,psci-1.0"; + status = "okay"; + method = "smc"; + }; + + timer { + compatible = "arm,armv8-timer"; + interrupts = , + , + , + , + ; + status = "okay"; + }; +}; -- 2.49.0