arm64: tegra: Add Jetson Orin NX support
Subsystems (2)
v2 cover arm64: tegra: Add Jetson Orin NX support
From: Thierry Reding <[email protected]>
Hi,
these patches introduce support for the Jetson Orin NX module (P3767) and the corresponding internal reference carrier (P3768).
Changes in v2:
- add a few nodes that UEFI requires
- fix system EEPROM I2C address
- enable HDA
Thierry Reding (4):
dt-bindings: tegra: Document Jetson Orin NX
dt-bindings: tegra: Document P3768+P3767 reference platform
arm64: tegra: Add Jetson Orin NX support
arm64: tegra: Add support for P3768+P3767
.../devicetree/bindings/arm/tegra.yaml | 8 + arch/arm64/boot/dts/nvidia/Makefile | 1 + .../boot/dts/nvidia/tegra234-p3767-0000.dtsi | 193 ++++++++++++++++++ .../nvidia/tegra234-p3768-0000+p3767-0000.dts | 133 ++++++++++++ .../boot/dts/nvidia/tegra234-p3768-0000.dtsi | 133 ++++++++++++ 5 files changed, 468 insertions(+) create mode 100644 arch/arm64/boot/dts/nvidia/tegra234-p3767-0000.dtsi create mode 100644 arch/arm64/boot/dts/nvidia/tegra234-p3768-0000+p3767-0000.dts create mode 100644 arch/arm64/boot/dts/nvidia/tegra234-p3768-0000.dtsi
Signature · 1 line
2.40.0
PATCH v2 1/4 dt-bindings: tegra: Document Jetson Orin NX
From: Thierry Reding <[email protected]>
The Jetson Orin NX is the latest iteration in the NX family of Jetson products. Document the compatible strings used for these devices.
--- Documentation/devicetree/bindings/arm/tegra.yaml | 4 ++++ 1 file changed, 4 insertions(+)
Documentation/devicetree/bindings/arm/tegra.yaml +4 -0
@@ -167,5 +167,9 @@ properties: - const: nvidia,p3737-0000+p3701-0000 - const: nvidia,p3701-0000 - const: nvidia,tegra234 + - description: Jetson Orin NX + items: + - const: nvidia,p3767-0000 + - const: nvidia,tegra234 additionalProperties: true
Signature · 1 line
2.40.0
PATCH v2 2/4 dt-bindings: tegra: Document P3768+P3767 reference platform
In reply to Thierry RedingFrom: Thierry Reding <[email protected]>
Document the combination of the P3768 carrier board with the P3767 (Jetson Orin NX) module.
--- Documentation/devicetree/bindings/arm/tegra.yaml | 4 ++++ 1 file changed, 4 insertions(+)
Documentation/devicetree/bindings/arm/tegra.yaml +4 -0
@@ -171,5 +171,9 @@ properties: items: - const: nvidia,p3767-0000 - const: nvidia,tegra234 + - items: + - const: nvidia,p3768-0000+p3767-0000 + - const: nvidia,p3767-0000 + - const: nvidia,tegra234 additionalProperties: true
Signature · 1 line
2.40.0
PATCH v2 3/4 arm64: tegra: Add Jetson Orin NX support
In reply to Thierry RedingFrom: Thierry Reding <[email protected]>
This adds a device tree for the Jetson Orin NX module, which is Jetson AGX Orin's little sibling with 6 or 8 ARM Cortex-A78AE cores, an Ampere GPU (1024 GPU and 32 tensor cores) and a number of accelerators for machine learning, image processing and more.
The Jetson Orin NX comes with either 8 or 16 GiB of 128-bit LPDDR5 and supports NVME for mass storage.
---
Changes in v2:
- add SPI flash and SD card to make UEFI happy
.../boot/dts/nvidia/tegra234-p3767-0000.dtsi | 193 ++++++++++++++++++ 1 file changed, 193 insertions(+) create mode 100644 arch/arm64/boot/dts/nvidia/tegra234-p3767-0000.dtsi
arch/arm64/boot/dts/nvidia/tegra234-p3767-0000.dtsi new file +193 -0
@@ -0,0 +1,193 @@ +// SPDX-License-Identifier: GPL-2.0 + +#include "tegra234.dtsi" + +/ { + model = "NVIDIA Jetson Orin NX"; + compatible = "nvidia,p3767-0000", "nvidia,tegra234"; + + bus@0 { + i2c@3160000 { + status = "okay"; + + eeprom@50 { + compatible = "atmel,24c02"; + reg = <0x50>; + + label = "module"; + vcc-supply = <&vdd_1v8_hs>; + address-width = <8>; + pagesize = <8>; + size = <256>; + read-only; + }; + }; + + spi@3270000 { + status = "okay"; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <136000000>; + spi-tx-bus-width = <4>; + spi-rx-bus-width = <4>; + }; + }; + + /* UEFI needs this but it's not there on all boards */ + mmc@3400000 { + status = "okay"; + bus-width = <4>; + cd-gpios = <&gpio TEGRA234_MAIN_GPIO(G, 7) GPIO_ACTIVE_HIGH>; + disable-wp; + }; + + padctl@3520000 { + vclamp-usb-supply = <&vdd_1v8_ao>; + avdd-usb-supply = <&vdd_3v3_ao>; + }; + + rtc@c2a0000 { + status = "okay"; + }; + + pmc@c360000 { + nvidia,invert-interrupt; + }; + }; + + vdd_5v0_sys: regulator-vdd-5v0-sys { + compatible = "regulator-fixed"; + regulator-name = "VDD_5V0_SYS"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-always-on; + }; + + vdd_1v8_hs: regulator-vdd-1v8-hs { + compatible = "regulator-fixed"; + regulator-name = "VDD_1V8_HS"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + }; + + vdd_1v8_ao: regulator-vdd-1v8-ao { + compatible = "regulator-fixed"; + regulator-name = "VDD_1V8_AO"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + vin-supply = <&vdd_5v0_sys>; + }; + + vdd_3v3_ao: regulator-vdd-3v3-ao { + compatible = "regulator-fixed"; + regulator-name = "VDD_3V3_AO"; + regulator-min-microvolt = <33000000>; + regulator-max-microvolt = <33000000>; + regulator-always-on; + vin-supply = <&vdd_5v0_sys>; + }; + + thermal-zones { + cpu-thermal { + polling-delay = <1000>; + polling-delay-passive = <1000>; + status = "okay"; + + trips { + critical { + temperature = <104500>; + hysteresis = <0>; + type = "critical"; + }; + + hot { + temperature = <99000>; + hysteresis = <1000>; + type = "hot"; + }; + + board_trip_passive: passive { + temperature = <95000>; + hysteresis = <2000>; + type = "passive"; + }; + + board_trip_active2: active-2 { + temperature = <80000>; + hysteresis = <4000>; + type = "active"; + }; + + board_trip_active1: active-1 { + temperature = <65000>; + hysteresis = <4000>; + type = "active"; + }; + + board_trip_active0: active-0 { + temperature = <50000>; + hysteresis = <4000>; + type = "active"; + }; + }; + + cooling-maps { + passive { + cooling-device = <&fan 3 3>; + trip = <&board_trip_passive>; + }; + + active2 { + cooling-device = <&fan 2 3>; + trip = <&board_trip_active2>; + }; + + active1 { + cooling-device = <&fan 1 2>; + trip = <&board_trip_active1>; + }; + + active0 { + cooling-device = <&fan 0 1>; + trip = <&board_trip_active0>; + }; + }; + }; + + gpu-thermal { + status = "okay"; + }; + + cv0-thermal { + status = "okay"; + }; + + cv1-thermal { + status = "okay"; + }; + + cv2-thermal { + status = "okay"; + }; + + soc0-thermal { + status = "okay"; + }; + + soc1-thermal { + status = "okay"; + }; + + soc2-thermal { + status = "okay"; + }; + + tj-thermal { + status = "okay"; + }; + }; +};
Signature · 1 line
2.40.0
PATCH v2 4/4 arm64: tegra: Add support for P3768+P3767
In reply to Thierry RedingFrom: Thierry Reding <[email protected]>
Add support for the combination of the NVIDIA Jetson Orin NX (P3767) module and the P3768 carrier board.
---
Changes in v2:
- fix system EEPROM I2C address
- enable HDA because why not
arch/arm64/boot/dts/nvidia/Makefile | 1 + .../nvidia/tegra234-p3768-0000+p3767-0000.dts | 133 ++++++++++++++++++ .../boot/dts/nvidia/tegra234-p3768-0000.dtsi | 133 ++++++++++++++++++ 3 files changed, 267 insertions(+) create mode 100644 arch/arm64/boot/dts/nvidia/tegra234-p3768-0000+p3767-0000.dts create mode 100644 arch/arm64/boot/dts/nvidia/tegra234-p3768-0000.dtsi
arch/arm64/boot/dts/nvidia/Makefile +1 -0
@@ -24,3 +24,4 @@ dtb-$(CONFIG_ARCH_TEGRA_194_SOC) += tegra194-p3509-0000+p3668-0000.dtb dtb-$(CONFIG_ARCH_TEGRA_194_SOC) += tegra194-p3509-0000+p3668-0001.dtb dtb-$(CONFIG_ARCH_TEGRA_234_SOC) += tegra234-sim-vdk.dtb dtb-$(CONFIG_ARCH_TEGRA_234_SOC) += tegra234-p3737-0000+p3701-0000.dtb +dtb-$(CONFIG_ARCH_TEGRA_234_SOC) += tegra234-p3768-0000+p3767-0000.dtb
arch/arm64/boot/dts/nvidia/tegra234-p3768-0000+p3767-0000.dts new file +133 -0
133 lines not on this page · raw message
arch/arm64/boot/dts/nvidia/tegra234-p3768-0000.dtsi new file +133 -0
133 lines not on this page · raw message
Signature · 1 line
2.40.0
Re: [PATCH v2 2/4] dt-bindings: tegra: Document P3768+P3767 reference platform
In reply to Thierry RedingQuoted 6 lines · Thierry Reding
From: Thierry Reding <[email protected]>
Document the combination of the P3768 carrier board with the P3767 (Jetson Orin NX) module.
Signed-off-by Thierry Reding <[email protected]>
Best regards,
Krzysztof