From: Jon Hunter <jonathanh@nvidia.com>
To: Ashish Mhetre <amhetre@nvidia.com>,
krzk@kernel.org, robh@kernel.org, conor+dt@kernel.org,
=thierry.reding@kernel.org, sumitg@nvidia.com
Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
linux-tegra@vger.kernel.org
Subject: Re: [PATCH V2 1/2] dt-bindings: memory: tegra: Add nvidia,tegra238-mc compatible
Date: Wed, 29 Apr 2026 10:27:28 +0100 [thread overview]
Message-ID: <8e873293-0f56-4ec9-a469-ea5d0fddebd2@nvidia.com> (raw)
In-Reply-To: <20260427073419.567360-2-amhetre@nvidia.com>
On 27/04/2026 08:34, Ashish Mhetre wrote:
> Document the device tree binding for the Tegra238 memory controller.
> Tegra238 has 8 memory controller channels plus broadcast and stream-id
> registers.
>
> Add the stream ID header (nvidia,tegra238-mc.h) defining ISO and NISO
> stream IDs for SMMU configuration.
>
> Signed-off-by: Ashish Mhetre <amhetre@nvidia.com>
> ---
> .../nvidia,tegra186-mc.yaml | 31 ++++++++
> .../dt-bindings/memory/nvidia,tegra238-mc.h | 74 +++++++++++++++++++
> 2 files changed, 105 insertions(+)
> create mode 100644 include/dt-bindings/memory/nvidia,tegra238-mc.h
>
> diff --git a/Documentation/devicetree/bindings/memory-controllers/nvidia,tegra186-mc.yaml b/Documentation/devicetree/bindings/memory-controllers/nvidia,tegra186-mc.yaml
> index 7b03b589168b..6c374e2b1543 100644
> --- a/Documentation/devicetree/bindings/memory-controllers/nvidia,tegra186-mc.yaml
> +++ b/Documentation/devicetree/bindings/memory-controllers/nvidia,tegra186-mc.yaml
> @@ -32,6 +32,7 @@ properties:
> - nvidia,tegra186-mc
> - nvidia,tegra194-mc
> - nvidia,tegra234-mc
> + - nvidia,tegra238-mc
> - nvidia,tegra264-mc
>
> reg:
> @@ -266,6 +267,36 @@ allOf:
>
> interrupt-names: false
>
> + - if:
> + properties:
> + compatible:
> + const: nvidia,tegra238-mc
> + then:
> + properties:
> + reg:
> + minItems: 10
> + maxItems: 10
> + description: 9 memory controller channels and 1 for stream-id registers
> +
> + reg-names:
> + items:
> + - const: sid
> + - const: broadcast
> + - const: ch0
> + - const: ch1
> + - const: ch2
> + - const: ch3
> + - const: ch4
> + - const: ch5
> + - const: ch6
> + - const: ch7
> +
> + interrupts:
> + items:
> + - description: MC general interrupt
> +
> + interrupt-names: false
> +
> - if:
> properties:
> compatible:
> diff --git a/include/dt-bindings/memory/nvidia,tegra238-mc.h b/include/dt-bindings/memory/nvidia,tegra238-mc.h
> new file mode 100644
> index 000000000000..be24c0eb3f15
> --- /dev/null
> +++ b/include/dt-bindings/memory/nvidia,tegra238-mc.h
> @@ -0,0 +1,74 @@
> +/* SPDX-License-Identifier: (GPL-2.0 OR MIT) */
> +/* Copyright (c) 2026, NVIDIA CORPORATION. All rights reserved. */
> +
> +#ifndef DT_BINDINGS_MEMORY_TEGRA238_MC_H
> +#define DT_BINDINGS_MEMORY_TEGRA238_MC_H
> +
> +/* special clients */
> +#define TEGRA238_SID_INVALID 0x0
> +#define TEGRA238_SID_PASSTHROUGH 0x7f
> +
> +/* ISO stream IDs */
> +#define TEGRA238_SID_ISO_NVDISPLAY 0x1
> +#define TEGRA238_SID_ISO_APE0 0x2
> +#define TEGRA238_SID_ISO_APE1 0x3
> +
> +/* NISO stream IDs */
> +#define TEGRA238_SID_AON 0x1
> +#define TEGRA238_SID_BPMP 0x2
> +#define TEGRA238_SID_ETR 0x3
> +#define TEGRA238_SID_FDE 0x4
> +#define TEGRA238_SID_HC 0x5
> +#define TEGRA238_SID_HDA 0x6
> +#define TEGRA238_SID_NVDEC 0x7
> +#define TEGRA238_SID_NVDISPLAY 0x8
> +#define TEGRA238_SID_NVENC 0x9
> +#define TEGRA238_SID_OFA 0xa
> +#define TEGRA238_SID_PCIE0 0xb
> +#define TEGRA238_SID_PCIE1 0xc
> +#define TEGRA238_SID_PCIE2 0xd
> +#define TEGRA238_SID_PCIE3 0xe
> +#define TEGRA238_SID_HWMP_PMA 0xf
> +#define TEGRA238_SID_PSC 0x10
> +#define TEGRA238_SID_SDMMC1A 0x11
> +#define TEGRA238_SID_SDMMC4A 0x12
> +#define TEGRA238_SID_SES_SE0 0x13
> +#define TEGRA238_SID_SES_SE1 0x14
> +#define TEGRA238_SID_SES_SE2 0x15
> +#define TEGRA238_SID_SEU1_SE0 0x16
> +#define TEGRA238_SID_SEU1_SE1 0x17
> +#define TEGRA238_SID_SEU1_SE2 0x18
> +#define TEGRA238_SID_TSEC 0x19
> +#define TEGRA238_SID_UFSHC 0x1a
> +#define TEGRA238_SID_VIC 0x1b
> +#define TEGRA238_SID_XUSB_HOST 0x1c
> +#define TEGRA238_SID_XUSB_DEV 0x1d
> +#define TEGRA238_SID_GPCDMA_0 0x1e
> +#define TEGRA238_SID_SMMU_TEST 0x1f
> +
> +/* Host1x virtualization clients. */
> +#define TEGRA238_SID_HOST1X_CTX0 0x20
> +#define TEGRA238_SID_HOST1X_CTX1 0x21
> +#define TEGRA238_SID_HOST1X_CTX2 0x22
> +#define TEGRA238_SID_HOST1X_CTX3 0x23
> +#define TEGRA238_SID_HOST1X_CTX4 0x24
> +#define TEGRA238_SID_HOST1X_CTX5 0x25
> +#define TEGRA238_SID_HOST1X_CTX6 0x26
> +#define TEGRA238_SID_HOST1X_CTX7 0x27
> +
> +#define TEGRA238_SID_XUSB_VF0 0x28
> +#define TEGRA238_SID_XUSB_VF1 0x29
> +#define TEGRA238_SID_XUSB_VF2 0x2a
> +#define TEGRA238_SID_XUSB_VF3 0x2b
> +
> +/* Host1x command buffers */
> +#define TEGRA238_SID_HC_VM0 0x2c
> +#define TEGRA238_SID_HC_VM1 0x2d
> +#define TEGRA238_SID_HC_VM2 0x2e
> +#define TEGRA238_SID_HC_VM3 0x2f
> +#define TEGRA238_SID_HC_VM4 0x30
> +#define TEGRA238_SID_HC_VM5 0x31
> +#define TEGRA238_SID_HC_VM6 0x32
> +#define TEGRA238_SID_HC_VM7 0x33
> +
> +#endif
Reviewed-by: Jon Hunter <jonathanh@nvidia.com>
Thanks!
Jon
--
nvpublic
next prev parent reply other threads:[~2026-04-29 9:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-27 7:34 [PATCH V2 0/2] memory: tegra: Add Tegra238 memory controller support Ashish Mhetre
2026-04-27 7:34 ` [PATCH V2 1/2] dt-bindings: memory: tegra: Add nvidia,tegra238-mc compatible Ashish Mhetre
2026-04-29 9:27 ` Jon Hunter [this message]
2026-04-27 7:34 ` [PATCH V2 2/2] memory: tegra: Add T238 MC support Ashish Mhetre
2026-04-29 9:29 ` Jon Hunter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8e873293-0f56-4ec9-a469-ea5d0fddebd2@nvidia.com \
--to=jonathanh@nvidia.com \
--cc==thierry.reding@kernel.org \
--cc=amhetre@nvidia.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sumitg@nvidia.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox