From nobody Fri Jul 24 05:21:56 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3318435DA78; Thu, 23 Jul 2026 02:46:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784774816; cv=none; b=PZs/mxLBVKT0sniw17HYrABrwCWOul3tsO91lCpoorjXMCrybS5u85ALuZmOKZ1QEHVPZVnQmhEzki1kInsmPtms4dr/naXp348raNs8MHbWeS4JDGwkWWszEd0VQNYZqoFgabpGJ2MlemA1nI/7Lwmo5WjMiMROB5ngbWCreLU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784774816; c=relaxed/simple; bh=z7y0OqKWQHRkAmpiXbkzZisXX3IcOL0u+hBa3ZmEwDE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ciCMkb1fvqJneE9cfSr/+e9krpBWoMlzD8DOx+4zerKH50cXCR2DRg2LxMsrKMf+nEtLsH6s09JCz9mRm2GRLT7GTfR4WZpsroNbmdlvXifwKhodLAGihcVEmnQr958P22M+PgiH+4saFqxhpC+AxYtUaaAQTsh0FVR6Wg/nev0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=S74YrDv4; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="S74YrDv4" Received: by smtp.kernel.org (Postfix) with ESMTPS id 96E23C19425; Thu, 23 Jul 2026 02:46:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1784774815; bh=z7y0OqKWQHRkAmpiXbkzZisXX3IcOL0u+hBa3ZmEwDE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=S74YrDv4TPGy1jQ/dslMNyn7Mlm0KlHwC4mWQRzWN3IdEkoVIy+3YlqOAp0j5xpu2 YnyWDZ6bYvYRPqKAtlmXvD4ZK5i09KTJyrfoIFcse6iPPmFyD9GUa6bt8tvX0UbfwT fXXYfZryh60FIwUOEcT1vgVDu9Er2irCNOkMON8MFd3ofNy2u5r33yuxFaCGEBvoyh 1g6LdKb7TEioKbE/NngkFdiInHP5bkrDvQLRGjDgkneEEaah714wnIfLsMmGe+bUz+ 2HIAJfto5L+wdu78n6NQvcX3ma889ZhIU6nuCLam9QErRO1fYYUmE63ozBXLcsktRI fCngN3amC7wwA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 76AF5C531C9; Thu, 23 Jul 2026 02:46:55 +0000 (UTC) From: Aaron Kling via B4 Relay Date: Wed, 22 Jul 2026 21:46:47 -0500 Subject: [PATCH v3 1/2] dt-bindings: soc: tegra: pmc: Document Tegra210B01 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260722-t210b01-pmc-v3-1-1c5b970788f2@gmail.com> References: <20260722-t210b01-pmc-v3-0-1c5b970788f2@gmail.com> In-Reply-To: <20260722-t210b01-pmc-v3-0-1c5b970788f2@gmail.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thierry Reding , Jonathan Hunter Cc: Thierry Reding , devicetree@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, Aaron Kling X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1784774814; l=1197; i=webgeek1234@gmail.com; s=20250217; h=from:subject:message-id; bh=yRm/f+3SzoxTxtTfaa81bdhigcB8fmUxP2kKtIxqiLM=; b=txDgun87iW4pToVMkZEvm8YopArM8oO+f50PpeF8biTV95ViyEE7XvT9I6nUWP/ozsclF39i6 Q5IQYDRPiukAEjtGdgx35w3Nw3lP5VVX0dZyhwlTIdArN9wwRrvYSdR X-Developer-Key: i=webgeek1234@gmail.com; a=ed25519; pk=TQwd6q26txw7bkK7B8qtI/kcAohZc7bHHGSD7domdrU= X-Endpoint-Received: by B4 Relay for webgeek1234@gmail.com/20250217 with auth_id=342 X-Original-From: Aaron Kling Reply-To: webgeek1234@gmail.com From: Aaron Kling The PMC in Tegra210B01 is very similar to the one in the original Tegra210, but has a few powergate differences. Document this soc. Acked-by: Rob Herring (Arm) Signed-off-by: Aaron Kling --- Documentation/devicetree/bindings/soc/tegra/nvidia,tegra20-pmc.yaml | 5 ++= ++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/soc/tegra/nvidia,tegra20-pmc= .yaml b/Documentation/devicetree/bindings/soc/tegra/nvidia,tegra20-pmc.yaml index f516960dbbefb..8ec36c49f9594 100644 --- a/Documentation/devicetree/bindings/soc/tegra/nvidia,tegra20-pmc.yaml +++ b/Documentation/devicetree/bindings/soc/tegra/nvidia,tegra20-pmc.yaml @@ -18,6 +18,7 @@ properties: - nvidia,tegra114-pmc - nvidia,tegra124-pmc - nvidia,tegra210-pmc + - nvidia,tegra210b01-pmc =20 reg: maxItems: 1 @@ -346,7 +347,9 @@ allOf: properties: compatible: contains: - const: nvidia,tegra210-pmc + enum: + - nvidia,tegra210-pmc + - nvidia,tegra210b01-pmc then: properties: pinmux: --=20 2.54.0 From nobody Fri Jul 24 05:21:56 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2D9B4267B07; Thu, 23 Jul 2026 02:46:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784774816; cv=none; b=AvxuIKRvR17t2unNWmQ8dUR1uGIM3w5zTn64A6t2bOl7kDqwBt2q0mtNPsVNSfmYEfSBqg4piVZFBljmg5gqbHAq9j/1UjBBZyXvZputBqhBZFCfr279MjqLncwk2OnCN4AQzlieEqzoy11qyaZyZkFMfjbJhocgb1IT+61Lyis= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784774816; c=relaxed/simple; bh=YdvKTHtsWdGlW0Sjxw0NjwckSvfgTwzFyzB+oIPY2a4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=BSw30WjoNo5AlahMjJDY6i9QFtKVFxP580DlcNB6JE7s9Q80H7SvVawUCHJuo7cGIFuWVpXUVhMTTi/oDsUJzrWyYHKwDg0wL8Fo5WnC/y1UMXZP1Fon8okJBdsjwbf1LA9YOcfGE5hQHa5OzLSubvYNTlQu1wnzM4zVm74c4zs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=kgoOTJKm; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="kgoOTJKm" Received: by smtp.kernel.org (Postfix) with ESMTPS id A5B0EC2BCC6; Thu, 23 Jul 2026 02:46:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1784774815; bh=YdvKTHtsWdGlW0Sjxw0NjwckSvfgTwzFyzB+oIPY2a4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=kgoOTJKmy+27AkDnUlAUG0J2Qb44l8ZSAOcYUxQ8V3Xxax05dsDL+12rPoluAMK5w zYRyIp+K5UkMAe3d5rdCQd/dqO8TM9fYn19T23zg6lfy2n1CJ+rSVGBGuZTKTu7Kf0 EckBGMSXGubpUuE/nCznUMZp3oRO1vRQ3DcEiykvxuArlD7Nx9OWfsIDXgaD03IXjs DkFyZIdWQ51A7Tsnyni4mm6UVidIIDjcsicT0RyeIadEHiEDgYrhIcQwPLR5vVO+YE 6x9X2i4VK7a1YrWocWKHsvXnw+YfYA/Yj9gF9Lyp1ACwZl9Zp8lBxkmF9ok/oNSAJN ubYzKDXw2QDHA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 86F40C531CA; Thu, 23 Jul 2026 02:46:55 +0000 (UTC) From: Aaron Kling via B4 Relay Date: Wed, 22 Jul 2026 21:46:48 -0500 Subject: [PATCH v3 2/2] soc/tegra: pmc: Add Tegra210B01 support Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260722-t210b01-pmc-v3-2-1c5b970788f2@gmail.com> References: <20260722-t210b01-pmc-v3-0-1c5b970788f2@gmail.com> In-Reply-To: <20260722-t210b01-pmc-v3-0-1c5b970788f2@gmail.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thierry Reding , Jonathan Hunter Cc: Thierry Reding , devicetree@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, Aaron Kling , Alexandre Hamamdjian , Thomas Makin X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1784774814; l=3862; i=webgeek1234@gmail.com; s=20250217; h=from:subject:message-id; bh=Y1pHP7vg6I2QmRiAaP+rGxaAo7nCvhZmwdrLipCbgNI=; b=6iwi7CxRktYp4fke9ya21qJEIFqPOeABdP5l/JWtOSbgOBAR0VNvZKeWKgFu/3FnW9rLsbd6M yToDu3QzuKQCkEJ8HBBhScxB4LyzeD0z7uqqYXM6jOgk6fONC6ulnnt X-Developer-Key: i=webgeek1234@gmail.com; a=ed25519; pk=TQwd6q26txw7bkK7B8qtI/kcAohZc7bHHGSD7domdrU= X-Endpoint-Received: by B4 Relay for webgeek1234@gmail.com/20250217 with auth_id=342 X-Original-From: Aaron Kling Reply-To: webgeek1234@gmail.com From: Alexandre Hamamdjian The PMC in Tegra210B01 is very similar to the one in the original Tegra210, but has a few powergate differences. Specifically sata, venc, and ve2 are removed. Signed-off-by: Alexandre Hamamdjian Co-developed-by: Thomas Makin Signed-off-by: Thomas Makin Co-developed-by: Aaron Kling Signed-off-by: Aaron Kling Reviewed-by: Mikko Perttunen --- drivers/soc/tegra/pmc.c | 61 +++++++++++++++++++++++++++++++++++++++++++++= ++++ 1 file changed, 61 insertions(+) diff --git a/drivers/soc/tegra/pmc.c b/drivers/soc/tegra/pmc.c index f419a5395545f..d133f445e4ec4 100644 --- a/drivers/soc/tegra/pmc.c +++ b/drivers/soc/tegra/pmc.c @@ -3897,6 +3897,66 @@ static const struct tegra_pmc_soc tegra210_pmc_soc = =3D { .has_single_mmio_aperture =3D true, }; =20 +static const char * const tegra210b01_powergates[] =3D { + [TEGRA_POWERGATE_CPU] =3D "crail", + [TEGRA_POWERGATE_3D] =3D "3d", + [TEGRA_POWERGATE_PCIE] =3D "pcie", + [TEGRA_POWERGATE_MPE] =3D "mpe", + [TEGRA_POWERGATE_CPU1] =3D "cpu1", + [TEGRA_POWERGATE_CPU2] =3D "cpu2", + [TEGRA_POWERGATE_CPU3] =3D "cpu3", + [TEGRA_POWERGATE_CPU0] =3D "cpu0", + [TEGRA_POWERGATE_C0NC] =3D "c0nc", + [TEGRA_POWERGATE_SOR] =3D "sor", + [TEGRA_POWERGATE_DIS] =3D "dis", + [TEGRA_POWERGATE_DISB] =3D "disb", + [TEGRA_POWERGATE_XUSBA] =3D "xusba", + [TEGRA_POWERGATE_XUSBB] =3D "xusbb", + [TEGRA_POWERGATE_XUSBC] =3D "xusbc", + [TEGRA_POWERGATE_VIC] =3D "vic", + [TEGRA_POWERGATE_IRAM] =3D "iram", + [TEGRA_POWERGATE_NVDEC] =3D "nvdec", + [TEGRA_POWERGATE_NVJPG] =3D "nvjpg", + [TEGRA_POWERGATE_AUD] =3D "aud", + [TEGRA_POWERGATE_DFD] =3D "dfd", +}; + +static const struct tegra_pmc_soc tegra210b01_pmc_soc =3D { + .supports_core_domain =3D false, + .num_powergates =3D ARRAY_SIZE(tegra210b01_powergates), + .powergates =3D tegra210b01_powergates, + .num_cpu_powergates =3D ARRAY_SIZE(tegra210_cpu_powergates), + .cpu_powergates =3D tegra210_cpu_powergates, + .has_tsense_reset =3D true, + .has_gpu_clamps =3D true, + .needs_mbist_war =3D false, + .has_io_pad_wren =3D true, + .maybe_tz_only =3D true, + .num_io_pads =3D ARRAY_SIZE(tegra210_io_pads), + .io_pads =3D tegra210_io_pads, + .num_io_pad_vctrls =3D ARRAY_SIZE(tegra210_io_pad_vctrls), + .io_pad_vctrls =3D tegra210_io_pad_vctrls, + .num_pin_descs =3D ARRAY_SIZE(tegra210_pin_descs), + .pin_descs =3D tegra210_pin_descs, + .regs =3D &tegra20_pmc_regs, + .init =3D tegra20_pmc_init, + .setup_irq_polarity =3D tegra20_pmc_setup_irq_polarity, + .powergate_set =3D tegra114_powergate_set, + .irq_set_wake =3D tegra210_pmc_irq_set_wake, + .irq_set_type =3D tegra210_pmc_irq_set_type, + .reset_sources =3D tegra210_reset_sources, + .num_reset_sources =3D ARRAY_SIZE(tegra210_reset_sources), + .reset_levels =3D NULL, + .num_reset_levels =3D 0, + .num_wake_events =3D ARRAY_SIZE(tegra210_wake_events), + .wake_events =3D tegra210_wake_events, + .pmc_clks_data =3D tegra_pmc_clks_data, + .num_pmc_clks =3D ARRAY_SIZE(tegra_pmc_clks_data), + .has_blink_output =3D true, + .has_usb_sleepwalk =3D true, + .has_single_mmio_aperture =3D true, +}; + static const struct tegra_io_pad_soc tegra186_io_pads[] =3D { TEGRA_IO_PAD(TEGRA_IO_PAD_CSIA, 0, 0x74, 0x78, "csia"), TEGRA_IO_PAD(TEGRA_IO_PAD_CSIB, 1, 0x74, 0x78, "csib"), @@ -4824,6 +4884,7 @@ static const struct of_device_id tegra_pmc_match[] = =3D { { .compatible =3D "nvidia,tegra194-pmc", .data =3D &tegra194_pmc_soc }, { .compatible =3D "nvidia,tegra186-pmc", .data =3D &tegra186_pmc_soc }, { .compatible =3D "nvidia,tegra210-pmc", .data =3D &tegra210_pmc_soc }, + { .compatible =3D "nvidia,tegra210b01-pmc", .data =3D &tegra210b01_pmc_so= c }, { .compatible =3D "nvidia,tegra132-pmc", .data =3D &tegra124_pmc_soc }, { .compatible =3D "nvidia,tegra124-pmc", .data =3D &tegra124_pmc_soc }, { .compatible =3D "nvidia,tegra114-pmc", .data =3D &tegra114_pmc_soc }, --=20 2.54.0