dt-bindings: tegra: Document compatible for IGX
Subsystems (2)
PATCH 1/2 dt-bindings: tegra: Document compatible for IGX
Document the compatible strings used for Nvidia IGX Orin Development kit which uses P3701 SKU8 and P3740 carrier board.
--- Documentation/devicetree/bindings/arm/tegra.yaml | 5 +++++ 1 file changed, 5 insertions(+)
Documentation/devicetree/bindings/arm/tegra.yaml +5 -0
@@ -176,5 +176,10 @@ properties: - const: nvidia,p3768-0000+p3767-0000 - const: nvidia,p3767-0000 - const: nvidia,tegra234 + - description: NVIDIA IGX Orin Development Kit + items: + - const: nvidia,p3740-0002+p3701-0008 + - const: nvidia,p3701-0008 + - const: nvidia,tegra234 additionalProperties: true
Signature · 1 line
2.17.1
PATCH 2/2 arm64: tegra: Add support for IGX Orin
Add support for the NVIDIA IGX Orin development kit having P3701 module with P3740 carrier board.
--- arch/arm64/boot/dts/nvidia/Makefile | 2 + .../boot/dts/nvidia/tegra234-p3701-0008.dtsi | 111 +++++++++++++ .../nvidia/tegra234-p3740-0002+p3701-0008.dts | 155 ++++++++++++++++++ .../boot/dts/nvidia/tegra234-p3740-0002.dtsi | 137 ++++++++++++++++ 4 files changed, 405 insertions(+) create mode 100644 arch/arm64/boot/dts/nvidia/tegra234-p3701-0008.dtsi create mode 100644 arch/arm64/boot/dts/nvidia/tegra234-p3740-0002+p3701-0008.dts create mode 100644 arch/arm64/boot/dts/nvidia/tegra234-p3740-0002.dtsi
arch/arm64/boot/dts/nvidia/Makefile +2 -0
@@ -9,6 +9,7 @@ DTC_FLAGS_tegra194-p2972-0000 := -@ DTC_FLAGS_tegra194-p3509-0000+p3668-0000 := -@ DTC_FLAGS_tegra194-p3509-0000+p3668-0001 := -@ DTC_FLAGS_tegra234-p3737-0000+p3701-0000 := -@ +DTC_FLAGS_tegra234-p3740-0002+p3701-0008 := -@ DTC_FLAGS_tegra234-p3768-0000+p3767-0000 := -@ dtb-$(CONFIG_ARCH_TEGRA_132_SOC) += tegra132-norrin.dtb
@@ -25,4 +26,5 @@ 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-p3740-0002+p3701-0008.dtb dtb-$(CONFIG_ARCH_TEGRA_234_SOC) += tegra234-p3768-0000+p3767-0000.dtb
arch/arm64/boot/dts/nvidia/tegra234-p3701-0008.dtsi new file +111 -0
111 lines not on this page · raw message
arch/arm64/boot/dts/nvidia/tegra234-p3740-0002+p3701-0008.dts new file +155 -0
155 lines not on this page · raw message
arch/arm64/boot/dts/nvidia/tegra234-p3740-0002.dtsi new file +137 -0
137 lines not on this page · raw message
Signature · 1 line
2.17.1
Re: [PATCH v1 2/2] arm64: tegra: Add support for IGX Orin
On Tue, May 02, 2023 at 03:02:49PM +0000, Shubhi Garg wrote:
[...]
Quoted 118 lines
arch/arm64/boot/dts/nvidia/tegra234-p3740-0002+p3701-0008.dts new file +112
-0@@ -0,0 +1,155 @@ +// SPDX-License-Identifier: GPL-2.0 +/dts-v1/; + +#include <dt-bindings/input/linux-event-codes.h> +#include <dt-bindings/input/gpio-keys.h> +#include "tegra234-p3701-0008.dtsi" +#include "tegra234-p3740-0002.dtsi" + +/ { + model = "NVIDIA IGX Orin Development Kit"; + compatible = "nvidia,p3740-0002+p3701-0008", "nvidia,p3701-0008", "nvidia,tegra234"; + + bus@0 { + host1x@13e00000 { + nvdec@15480000 { + status = "okay"; + }; + }; + + pcie@140e0000 { + status = "okay"; + vddio-pex-ctl-supply = <&vdd_1v8_ls>; + phys = <&p2u_gbe_4>, <&p2u_gbe_5>; + phy-names = "p2u-0", "p2u-1"; + }; + + pcie@14100000 { + status = "okay"; + vddio-pex-ctl-supply = <&vdd_1v8_ao>; + phys = <&p2u_hsio_3>; + phy-names = "p2u-0"; + }; + + pcie@14160000 { + status = "okay"; + vddio-pex-ctl-supply = <&vdd_1v8_ao>; + phys = <&p2u_hsio_7>, <&p2u_hsio_6>, <&p2u_hsio_5>, + <&p2u_hsio_4>; + phy-names = "p2u-0", "p2u-1", "p2u-2", "p2u-3"; + }; + + pcie@141a0000 { + status = "okay"; + vddio-pex-ctl-supply = <&vdd_1v8_ls>; + phys = <&p2u_nvhs_0>, <&p2u_nvhs_1>, <&p2u_nvhs_2>, + <&p2u_nvhs_3>, <&p2u_nvhs_4>, <&p2u_nvhs_5>, + <&p2u_nvhs_6>, <&p2u_nvhs_7>; + phy-names = "p2u-0", "p2u-1", "p2u-2", "p2u-3", "p2u-4", + "p2u-5", "p2u-6", "p2u-7"; + }; + + pcie@141e0000 { + status = "okay"; + vddio-pex-ctl-supply = <&vdd_1v8_ls>; + phys = <&p2u_gbe_0>, <&p2u_gbe_1>; + phy-names = "p2u-0", "p2u-1"; + }; + + aconnect@2900000 { + status = "okay"; + }; + + serial@3100000 { + compatible = "nvidia,tegra194-hsuart"; + status = "okay"; + }; + + i2c@3160000 { + status = "okay"; + }; + + i2c@3180000 { + status = "okay"; + }; + + i2c@3190000 { + status = "okay"; + }; + + i2c@31b0000 { + status = "okay"; + }; + + i2c@31c0000 { + status = "okay"; + + }; + + i2c@31e0000 { + status = "okay"; + }; + + spi@3270000 { + status = "okay"; + }; + + hda@3510000 { + nvidia,model = "NVIDIA IGX HDA"; + status = "okay"; + }; + + fuse@3810000 { + status = "okay"; + }; + + i2c@c240000 { + status = "okay"; + }; + + i2c@c250000 { + status = "okay"; + };
arch/arm64/boot/dts/nvidia/tegra234-p3740-0002+p3701-0008.dts line 122
Quoted 10 lines
arch/arm64/boot/dts/nvidia/tegra234-p3740-0002+p3701-0008.dts new file +10
-0+ }; + + aliases { + serial0 = &tcu; + }; + + chosen { + bootargs = "console=ttyTCU0,115200n8"; + stdout-path = "serial0:115200n8"; + };
This is admittedly a little unintuitive, but "aliases" and "chosen" are special in that they are ordered at the top of the file (i.e. immediately before the bus@0 node, and then alphabetically). That's because they have special meaning, as opposed to the others below which are just devices that don't have an address region and therefore no unit-address.
Also, can you try testing this with the "bootargs" property dropped? I have done some testing on older platforms and that doesn't seem to be necessary since we have "stdout-path". It'd be good to confirm that it holds true on IGX and if so we can drop "bootargs". I have work in progress patches to do this on several other devices.
Thierry
Quoted 13 lines · Shubhi Garg
Document the compatible strings used for Nvidia IGX Orin Development kit which uses P3701 SKU8 and P3740 carrier board.
Signed-off-by Shubhi Garg <[email protected]>--- Documentation/devicetree/bindings/arm/tegra.yaml | 5 +++++ 1 file changed, 5 insertions(+)Documentation/devicetree/bindings/arm/tegra.yaml +0
-0
Documentation/devicetree/bindings/arm/tegra.yaml properties: · line 184
Quoted 9 lines
Documentation/devicetree/bindings/arm/tegra.yaml +5
-0@@ -176,5 +176,10 @@ properties: - const: nvidia,p3768-0000+p3767-0000 - const: nvidia,p3767-0000 - const: nvidia,tegra234 + - description: NVIDIA IGX Orin Development Kit + items: + - const: nvidia,p3740-0002+p3701-0008 + - const: nvidia,p3701-0008 + - const: nvidia,tegra234
Don't stuff things to the end, but put in some logical order. For example 'I' could be before 'N'.
Best regards,
Krzysztof
Quoted 18 lines · Krzysztof Kozlowski
Quoted 17 lines · Shubhi Garg
Document the compatible strings used for Nvidia IGX Orin Development kit which uses P3701 SKU8 and P3740 carrier board.
Signed-off-by Shubhi Garg <[email protected]>--- Documentation/devicetree/bindings/arm/tegra.yaml | 5 +++++ 1 file changed, 5 insertions(+)Documentation/devicetree/bindings/arm/tegra.yaml +1
-0@@ -176,5 +176,10 @@ properties: - const: nvidia,p3768-0000+p3767-0000 - const: nvidia,p3767-0000 - const: nvidia,tegra234 + - description: NVIDIA IGX Orin Development Kit
Quoted 8 lines
Documentation/devicetree/bindings/arm/tegra.yaml properties: · line 184
Quoted 5 lines
Documentation/devicetree/bindings/arm/tegra.yaml +4
-0+ items: + - const: nvidia,p3740-0002+p3701-0008 + - const: nvidia,p3701-0008 + - const: nvidia,tegra234Don't stuff things to the end, but put in some logical order. For example 'I' could be before 'N'.
Sorting these alphabetically doesn't work well because it's not very deterministic. So far we've always grouped these by SoC family and within each group they are sorted chronologically. Chronologically here being determined by the upstream activity. We could perhaps make that a bit more formal by sorting by part number. Those are usually assigned at design time (i.e. p3740 was designed prior to p3768), so in that case the IGX would be sorted after the AGX Orin.
The NVIDIA in the description is something we haven't been very strict about. It'd probably be a good idea to add that wherever relevant since other vendors make products with these modules.
We could also add comments to the list to visually separate the SoC family groups. That's something for another patch, though.
Would you agree with chronological (by part number) sorting? In practice this would tend towards new things getting added to the end, but I think it's the least confusing for people looking at these lists. For instance if I buy a very recent device, I would expect it to show up somewhere close to the end of a list rather than potentially very high up.
Thierry
Quoted 40 lines · Thierry Reding
Quoted 18 lines · Krzysztof Kozlowski
Quoted 17 lines · Shubhi Garg
Document the compatible strings used for Nvidia IGX Orin Development kit which uses P3701 SKU8 and P3740 carrier board.
Signed-off-by Shubhi Garg <[email protected]>--- Documentation/devicetree/bindings/arm/tegra.yaml | 5 +++++ 1 file changed, 5 insertions(+)Documentation/devicetree/bindings/arm/tegra.yaml +1
-0@@ -176,5 +176,10 @@ properties: - const: nvidia,p3768-0000+p3767-0000 - const: nvidia,p3767-0000 - const: nvidia,tegra234 + - description: NVIDIA IGX Orin Development KitQuoted 8 lines
Documentation/devicetree/bindings/arm/tegra.yaml properties: · line 184
Quoted 5 lines
Documentation/devicetree/bindings/arm/tegra.yaml +4
-0+ items: + - const: nvidia,p3740-0002+p3701-0008 + - const: nvidia,p3701-0008 + - const: nvidia,tegra234Don't stuff things to the end, but put in some logical order. For example 'I' could be before 'N'.
Sorting these alphabetically doesn't work well because it's not very deterministic. So far we've always grouped these by SoC family and within each group they are sorted chronologically. Chronologically here being determined by the upstream activity. We could perhaps make that a bit more formal by sorting by part number. Those are usually assigned at design time (i.e. p3740 was designed prior to p3768), so in that case the IGX would be sorted after the AGX Orin.
The NVIDIA in the description is something we haven't been very strict about. It'd probably be a good idea to add that wherever relevant since other vendors make products with these modules.
Quoted 8 lines
We could also add comments to the list to visually separate the SoC family groups. That's something for another patch, though.
Would you agree with chronological (by part number) sorting? In practice this would tend towards new things getting added to the end, but I think it's the least confusing for people looking at these lists. For instance if I buy a very recent device, I would expect it to show up somewhere close to the end of a list rather than potentially very high up.
Yeah, this works as well. I assumed something around this. Probably this should should go then one step up.
Best regards,
Krzysztof