]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: tegra: Add NVIDIA Jetson Nano 2GB Developer Kit support
authorAaron Kling <webgeek1234@gmail.com>
Wed, 11 Jun 2025 18:53:38 +0000 (13:53 -0500)
committerThierry Reding <treding@nvidia.com>
Thu, 30 Oct 2025 19:32:03 +0000 (20:32 +0100)
This devkit is very similar to P3450, except it has less RAM, no display
port, and only 3 USB host ports. Derive from P3450 and disable the
hardware that is unavailable.

GPIO PA6 is used to control the HDMI power rail and needs to be on for
hotplug detect to work. This is mapped to the 3.3V USB hub on P3450.
That USB rail is not used here, so delete the regulator to avoid
conflicts.

Signed-off-by: Aaron Kling <webgeek1234@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm64/boot/dts/nvidia/Makefile
arch/arm64/boot/dts/nvidia/tegra210-p3541-0000.dts [new file with mode: 0644]

index 171e08c94d5a212b4ece0e6a782c9e7ad32b3835..b139cbd144422e8ba42527f5534a73cbcbfd38db 100644 (file)
@@ -3,6 +3,7 @@
 # Enables support for device-tree overlays
 DTC_FLAGS_tegra210-p2371-2180 := -@
 DTC_FLAGS_tegra210-p3450-0000 := -@
+DTC_FLAGS_tegra210-p3541-0000 := -@
 DTC_FLAGS_tegra186-p2771-0000 := -@
 DTC_FLAGS_tegra186-p3509-0000+p3636-0001 := -@
 DTC_FLAGS_tegra194-p2972-0000 := -@
@@ -19,6 +20,7 @@ dtb-$(CONFIG_ARCH_TEGRA_210_SOC) += tegra210-p2371-0000.dtb
 dtb-$(CONFIG_ARCH_TEGRA_210_SOC) += tegra210-p2371-2180.dtb
 dtb-$(CONFIG_ARCH_TEGRA_210_SOC) += tegra210-p2571.dtb
 dtb-$(CONFIG_ARCH_TEGRA_210_SOC) += tegra210-p3450-0000.dtb
+dtb-$(CONFIG_ARCH_TEGRA_210_SOC) += tegra210-p3541-0000.dtb
 dtb-$(CONFIG_ARCH_TEGRA_210_SOC) += tegra210-smaug.dtb
 dtb-$(CONFIG_ARCH_TEGRA_210_SOC) += tegra210-p2894-0050-a08.dtb
 dtb-$(CONFIG_ARCH_TEGRA_186_SOC) += tegra186-p2771-0000.dtb
diff --git a/arch/arm64/boot/dts/nvidia/tegra210-p3541-0000.dts b/arch/arm64/boot/dts/nvidia/tegra210-p3541-0000.dts
new file mode 100644 (file)
index 0000000..b86e271
--- /dev/null
@@ -0,0 +1,59 @@
+// SPDX-License-Identifier: GPL-2.0
+/dts-v1/;
+
+#include "tegra210-p3450-0000.dts"
+
+/ {
+       model = "NVIDIA Jetson Nano 2GB Developer Kit";
+       compatible = "nvidia,p3541-0000", "nvidia,p3450-0000", "nvidia,tegra210";
+
+       memory@80000000 {
+               reg = <0x0 0x80000000 0x0 0x80000000>;
+       };
+
+       host1x@50000000 {
+               sor@54540000 {
+                       status = "disabled";
+               };
+
+               dpaux@545c0000 {
+                       status = "disabled";
+               };
+       };
+
+       padctl@7009f000 {
+               ports {
+                       usb2-1 {
+                               vbus-supply = <&vdd_hub_5v0>;
+                       };
+
+                       usb2-2 {
+                               vbus-supply = <&vdd_hub_5v0>;
+                       };
+
+                       usb3-0 {
+                               /delete-property/ vbus-supply;
+                       };
+               };
+       };
+
+       regulator-vdd-hdmi-5v0 {
+               gpio = <&gpio TEGRA_GPIO(A, 6) GPIO_ACTIVE_HIGH>;
+               enable-active-high;
+       };
+
+       /delete-node/ regulator-vdd-hub-3v3;
+
+       vdd_hub_5v0: regulator-vdd-hub-5v0 {
+               compatible = "regulator-fixed";
+
+               regulator-name = "VDD_HUB_5V0";
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+
+               gpio = <&gpio TEGRA_GPIO(I, 2) GPIO_ACTIVE_HIGH>;
+               enable-active-high;
+
+               vin-supply = <&vdd_5v0_sys>;
+       };
+};