ARM: tegra: complete Tegra 4 and Tegra K1 device trees
Subsystems (4)
v4 cover ARM: tegra: complete Tegra 4 and Tegra K1 device trees
Complete T114 and T124 device trees.
---
Changes in v4:
- configured tsec schema to cover Tegra210 TSEC as well
- added required to tsec schema
- reset-names preserved for consistency with other host1x devices and align with T210
- added clock-names to align with T210
- operating-points-v2 check https://lore.kernel.org/lkml/[email protected]/
Changes in v3:
- added tsec description
- swapped compatible back to use enum
- clock and reset description dropped, added maxItems: 1
- reset-names preserved for consistency with other host1x devices
- dropped interconnects and interconnect-names
- dropped isp nodename
- dropped multiple rest names for mpe/msenc
- dropped tegra114 msenc example
- fixed reset name in second isp in t124 dtsi
Changes in v2:
- dropped accepted commits
- added EPP, MPE and ISP compatibility for T114 and T124
- added TSEC schema
---
Svyatoslav Ryhel (3):
dt-bindings: display: tegra: document EPP, ISP, MPE and TSEC for
Tegra114+
ARM: tegra114: complete HOST1X devices binding
ARM: tegra124: complete HOST1X devices binding
.../display/tegra/nvidia,tegra114-tsec.yaml | 79 +++++++++++++++++++ .../display/tegra/nvidia,tegra20-epp.yaml | 14 +++- .../display/tegra/nvidia,tegra20-isp.yaml | 15 +++- .../display/tegra/nvidia,tegra20-mpe.yaml | 18 +++-- arch/arm/boot/dts/nvidia/tegra114.dtsi | 65 +++++++++++++++ arch/arm/boot/dts/nvidia/tegra124.dtsi | 65 +++++++++++++++ 6 files changed, 243 insertions(+), 13 deletions(-) create mode 100644 Documentation/devicetree/bindings/display/tegra/nvidia,tegra114-tsec.yaml
Signature · 1 line
2.48.1
PATCH v4 1/3 dt-bindings: display: tegra: document EPP, ISP, MPE and TSEC for Tegra114+
The current EPP, ISP and MPE schemas are largely compatible with Tegra114+, requiring only minor adjustments. Additionally, the TSEC schema for the Security engine, which is available from Tegra114 onwards, is included.
--- .../display/tegra/nvidia,tegra114-tsec.yaml | 79 +++++++++++++++++++ .../display/tegra/nvidia,tegra20-epp.yaml | 14 +++- .../display/tegra/nvidia,tegra20-isp.yaml | 15 +++- .../display/tegra/nvidia,tegra20-mpe.yaml | 18 +++-- 4 files changed, 113 insertions(+), 13 deletions(-) create mode 100644 Documentation/devicetree/bindings/display/tegra/nvidia,tegra114-tsec.yaml
Documentation/devicetree/bindings/display/tegra/nvidia,tegra114-tsec.yaml new file +79 -0
@@ -0,0 +1,79 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/tegra/nvidia,tegra114-tsec.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NVIDIA Tegra Security co-processor + +maintainers: + - Svyatoslav Ryhel <[email protected]> + - Thierry Reding <[email protected]> + +description: Tegra Security co-processor, an embedded security processor used + mainly to manage the HDCP encryption and keys on the HDMI link. + +properties: + compatible: + oneOf: + - enum: + - nvidia,tegra114-tsec + - nvidia,tegra124-tsec + - nvidia,tegra210-tsec + + - items: + - const: nvidia,tegra132-tsec + - const: nvidia,tegra124-tsec + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + items: + - const: tsec + + resets: + maxItems: 1 + + reset-names: + items: + - const: tsec + + iommus: + maxItems: 1 + + operating-points-v2: true + + power-domains: + items: + - description: phandle to the core power domain + +additionalProperties: false + +required: + - compatible + - reg + - interrupts + - clocks + - resets + - reset-names + +examples: + - | + #include <dt-bindings/clock/tegra114-car.h> + #include <dt-bindings/interrupt-controller/arm-gic.h> + + tsec@54500000 { + compatible = "nvidia,tegra114-tsec"; + reg = <0x54500000 0x00040000>; + interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&tegra_car TEGRA114_CLK_TSEC>; + resets = <&tegra_car TEGRA114_CLK_TSEC>; + reset-names = "tsec"; + };
Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-epp.yaml +10 -4
@@ -15,10 +15,16 @@ properties: pattern: "^epp@[0-9a-f]+$" compatible: - enum: - - nvidia,tegra20-epp - - nvidia,tegra30-epp - - nvidia,tegra114-epp + oneOf: + - enum: + - nvidia,tegra20-epp + - nvidia,tegra30-epp + - nvidia,tegra114-epp + - nvidia,tegra124-epp + + - items: + - const: nvidia,tegra132-epp + - const: nvidia,tegra124-epp reg: maxItems: 1
Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-isp.yaml +11 -4
@@ -12,10 +12,17 @@ maintainers: properties: compatible: - enum: - - nvidia,tegra20-isp - - nvidia,tegra30-isp - - nvidia,tegra210-isp + oneOf: + - enum: + - nvidia,tegra20-isp + - nvidia,tegra30-isp + - nvidia,tegra114-isp + - nvidia,tegra124-isp + - nvidia,tegra210-isp + + - items: + - const: nvidia,tegra132-isp + - const: nvidia,tegra124-isp reg: maxItems: 1
Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-mpe.yaml +13 -5
@@ -12,13 +12,21 @@ maintainers: properties: $nodename: - pattern: "^mpe@[0-9a-f]+$" + oneOf: + - pattern: "^mpe@[0-9a-f]+$" + - pattern: "^msenc@[0-9a-f]+$" compatible: - enum: - - nvidia,tegra20-mpe - - nvidia,tegra30-mpe - - nvidia,tegra114-mpe + oneOf: + - enum: + - nvidia,tegra20-mpe + - nvidia,tegra30-mpe + - nvidia,tegra114-msenc + - nvidia,tegra124-msenc + + - items: + - const: nvidia,tegra132-msenc + - const: nvidia,tegra124-msenc reg: maxItems: 1
Signature · 1 line
2.48.1
Rob Herring
maintainerRe: [PATCH v4 1/3] dt-bindings: display: tegra: document EPP, ISP, MPE and TSEC for Tegra114+
Quoted 48 lines · Svyatoslav Ryhel
The current EPP, ISP and MPE schemas are largely compatible with Tegra114+, requiring only minor adjustments. Additionally, the TSEC schema for the Security engine, which is available from Tegra114 onwards, is included.
Signed-off-by Svyatoslav Ryhel <[email protected]>--- .../display/tegra/nvidia,tegra114-tsec.yaml | 79 +++++++++++++++++++ .../display/tegra/nvidia,tegra20-epp.yaml | 14 +++- .../display/tegra/nvidia,tegra20-isp.yaml | 15 +++- .../display/tegra/nvidia,tegra20-mpe.yaml | 18 +++-- 4 files changed, 113 insertions(+), 13 deletions(-) create mode 100644 Documentation/devicetree/bindings/display/tegra/nvidia,tegra114-tsec.yamlDocumentation/devicetree/bindings/display/tegra/nvidia,tegra114-tsec.yaml new file +29
-0@@ -0,0 +1,79 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/tegra/nvidia,tegra114-tsec.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NVIDIA Tegra Security co-processor + +maintainers: + - Svyatoslav Ryhel <[email protected]> + - Thierry Reding <[email protected]> + +description: Tegra Security co-processor, an embedded security processor used + mainly to manage the HDCP encryption and keys on the HDMI link. + +properties: + compatible: + oneOf: + - enum: + - nvidia,tegra114-tsec + - nvidia,tegra124-tsec + - nvidia,tegra210-tsec + + - items: + - const: nvidia,tegra132-tsec + - const: nvidia,tegra124-tsec + + reg: + maxItems: 1
Documentation/devicetree/bindings/display/tegra/nvidia,tegra114-tsec.yaml line 39
Quoted 10 lines
Documentation/devicetree/bindings/display/tegra/nvidia,tegra114-tsec.yaml new file +10
-0+ + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + items: + - const: tsec
Drop -names properties if there is only 1.
Quoted 6 lines
Documentation/devicetree/bindings/display/tegra/nvidia,tegra114-tsec.yaml new file +6
-0+ + resets: + maxItems: 1 + + reset-names: + items:
Documentation/devicetree/bindings/display/tegra/nvidia,tegra114-tsec.yaml line 55
Quoted 10 lines
Documentation/devicetree/bindings/display/tegra/nvidia,tegra114-tsec.yaml new file +10
-0+ - const: tsec + + iommus: + maxItems: 1 + + operating-points-v2: true + + power-domains: + items: + - description: phandle to the core power domain
Instead, just 'maxItems: 1'.
Quoted 24 lines
Documentation/devicetree/bindings/display/tegra/nvidia,tegra114-tsec.yaml new file +24
-0+ +additionalProperties: false + +required: + - compatible + - reg + - interrupts + - clocks + - resets + - reset-names + +examples: + - | + #include <dt-bindings/clock/tegra114-car.h> + #include <dt-bindings/interrupt-controller/arm-gic.h> + + tsec@54500000 { + compatible = "nvidia,tegra114-tsec"; + reg = <0x54500000 0x00040000>; + interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&tegra_car TEGRA114_CLK_TSEC>; + resets = <&tegra_car TEGRA114_CLK_TSEC>; + reset-names = "tsec"; + };
Re: [PATCH v4 1/3] dt-bindings: display: tegra: document EPP, ISP, MPE and TSEC for Tegra114+
пн, 12 трав. 2025 р. о 19:24 Rob Herring <[email protected]> пише:
Quoted 54 lines · Svyatoslav Ryhel
Quoted 52 lines
The current EPP, ISP and MPE schemas are largely compatible with Tegra114+, requiring only minor adjustments. Additionally, the TSEC schema for the Security engine, which is available from Tegra114 onwards, is included.
Signed-off-by Svyatoslav Ryhel <[email protected]>--- .../display/tegra/nvidia,tegra114-tsec.yaml | 79 +++++++++++++++++++ .../display/tegra/nvidia,tegra20-epp.yaml | 14 +++- .../display/tegra/nvidia,tegra20-isp.yaml | 15 +++- .../display/tegra/nvidia,tegra20-mpe.yaml | 18 +++-- 4 files changed, 113 insertions(+), 13 deletions(-) create mode 100644 Documentation/devicetree/bindings/display/tegra/nvidia,tegra114-tsec.yamlDocumentation/devicetree/bindings/display/tegra/nvidia,tegra114-tsec.yaml new file +33
-0@@ -0,0 +1,79 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/tegra/nvidia,tegra114-tsec.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NVIDIA Tegra Security co-processor + +maintainers: + - Svyatoslav Ryhel <[email protected]> + - Thierry Reding <[email protected]> + +description: Tegra Security co-processor, an embedded security processor used + mainly to manage the HDCP encryption and keys on the HDMI link. + +properties: + compatible: + oneOf: + - enum: + - nvidia,tegra114-tsec + - nvidia,tegra124-tsec + - nvidia,tegra210-tsec + + - items: + - const: nvidia,tegra132-tsec + - const: nvidia,tegra124-tsec + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 +
Quoted 8 lines
Documentation/devicetree/bindings/display/tegra/nvidia,tegra114-tsec.yaml line 39
Quoted 6 lines
Documentation/devicetree/bindings/display/tegra/nvidia,tegra114-tsec.yaml new file +6
-0+ clocks: + maxItems: 1 + + clock-names: + items: + - const: tsecDrop -names properties if there is only 1.
This is added to cover existing binding in tegra210 tree
Quoted 43 lines
Quoted 6 lines
Documentation/devicetree/bindings/display/tegra/nvidia,tegra114-tsec.yaml new file +6
-0+ + resets: + maxItems: 1 + + reset-names: + items:Documentation/devicetree/bindings/display/tegra/nvidia,tegra114-tsec.yaml line 55
Quoted 10 lines
Documentation/devicetree/bindings/display/tegra/nvidia,tegra114-tsec.yaml new file +10
-0+ - const: tsec + + iommus: + maxItems: 1 + + operating-points-v2: true + + power-domains: + items: + - description: phandle to the core power domainInstead, just 'maxItems: 1'.
Quoted 24 lines
Documentation/devicetree/bindings/display/tegra/nvidia,tegra114-tsec.yaml new file +24
-0+ +additionalProperties: false + +required: + - compatible + - reg + - interrupts + - clocks + - resets + - reset-names + +examples: + - | + #include <dt-bindings/clock/tegra114-car.h> + #include <dt-bindings/interrupt-controller/arm-gic.h> + + tsec@54500000 { + compatible = "nvidia,tegra114-tsec"; + reg = <0x54500000 0x00040000>; + interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&tegra_car TEGRA114_CLK_TSEC>; + resets = <&tegra_car TEGRA114_CLK_TSEC>; + reset-names = "tsec"; + };
Re: [PATCH v4 1/3] dt-bindings: display: tegra: document EPP, ISP, MPE and TSEC for Tegra114+
Quoted 16 lines · Svyatoslav Ryhel
Quoted 7 lines
Quoted 7 lines
Documentation/devicetree/bindings/display/tegra/nvidia,tegra114-tsec.yaml new file +7
-0+ + reg: + maxItems: 1 + + interrupts: + maxItems: 1 +Quoted 8 lines
Documentation/devicetree/bindings/display/tegra/nvidia,tegra114-tsec.yaml line 39
Quoted 6 lines
Documentation/devicetree/bindings/display/tegra/nvidia,tegra114-tsec.yaml new file +6
-0+ clocks: + maxItems: 1 + + clock-names: + items: + - const: tsecDrop -names properties if there is only 1.
Quoted 1 line
This is added to cover existing binding in tegra210 tree
Existing binding? In what tree? This is mainline, we work only on mainline and that's a new binding, so you cannot use argument that there is broken code using it. Otherwise what stops anyone to push broken code and then claim binding has to look because "existing code has something like that"?
Best regards,
Krzysztof
Re: [PATCH v4 1/3] dt-bindings: display: tegra: document EPP, ISP, MPE and TSEC for Tegra114+
пн, 11 серп. 2025 р. о 11:11 Krzysztof Kozlowski <[email protected]> пише:
Quoted 18 lines · Svyatoslav Ryhel
Quoted 16 lines
Quoted 15 lines
Documentation/devicetree/bindings/display/tegra/nvidia,tegra114-tsec.yaml line 39
Quoted 13 lines
Documentation/devicetree/bindings/display/tegra/nvidia,tegra114-tsec.yaml new file +13
-0+ + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + items: + - const: tsecDrop -names properties if there is only 1.
Quoted 8 lines
Quoted 1 line
This is added to cover existing binding in tegra210 tree
Existing binding? In what tree? This is mainline, we work only on mainline and that's a new binding, so you cannot use argument that there is broken code using it. Otherwise what stops anyone to push broken code and then claim binding has to look because "existing code has something like that"?
It seems that your words and action do not add up
Quoted 3 lines
Best regards,
Krzysztof
Re: [PATCH v4 1/3] dt-bindings: display: tegra: document EPP, ISP, MPE and TSEC for Tegra114+
Quoted 28 lines · Svyatoslav Ryhel
пн, 11 серп. 2025 р. о 11:11 Krzysztof Kozlowski <[email protected]> пише:
Quoted 18 lines · Svyatoslav Ryhel
Quoted 16 lines
Quoted 15 lines
Documentation/devicetree/bindings/display/tegra/nvidia,tegra114-tsec.yaml line 39
Quoted 13 lines
Documentation/devicetree/bindings/display/tegra/nvidia,tegra114-tsec.yaml new file +13
-0+ + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + items: + - const: tsecDrop -names properties if there is only 1.
Quoted 8 lines
Quoted 1 line
This is added to cover existing binding in tegra210 tree
Existing binding? In what tree? This is mainline, we work only on mainline and that's a new binding, so you cannot use argument that there is broken code using it. Otherwise what stops anyone to push broken code and then claim binding has to look because "existing code has something like that"?
Quoted 3 lines
It seems that your words and action do not add up
You said binding, now you point DTS...
Anyway, what action does not add up? Which part - you cannot use argument of existing code as rule for new bindings - is not clear?
I am really fed up with your tone, so I won't be continuing here. I have you longer explanation but it's just waste of my time.
Best regards,
Krzysztof
PATCH v4 2/3 ARM: tegra114: complete HOST1X devices binding
In reply to Svyatoslav RyhelAdd nodes for devices on the HOST1X bus: VI, EPP, ISP, MSENC and TSEC.
--- arch/arm/boot/dts/nvidia/tegra114.dtsi | 65 ++++++++++++++++++++++++++ 1 file changed, 65 insertions(+)
arch/arm/boot/dts/nvidia/tegra114.dtsi +65 -0
@@ -47,6 +47,45 @@ host1x@50000000 { ranges = <0x54000000 0x54000000 0x01000000>; + vi@54080000 { + compatible = "nvidia,tegra114-vi"; + reg = <0x54080000 0x00040000>; + interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&tegra_car TEGRA114_CLK_VI>; + resets = <&tegra_car 20>; + reset-names = "vi"; + + iommus = <&mc TEGRA_SWGROUP_VI>; + + status = "disabled"; + }; + + epp@540c0000 { + compatible = "nvidia,tegra114-epp"; + reg = <0x540c0000 0x00040000>; + interrupts = <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&tegra_car TEGRA114_CLK_EPP>; + resets = <&tegra_car TEGRA114_CLK_EPP>; + reset-names = "epp"; + + iommus = <&mc TEGRA_SWGROUP_EPP>; + + status = "disabled"; + }; + + isp@54100000 { + compatible = "nvidia,tegra114-isp"; + reg = <0x54100000 0x00040000>; + interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&tegra_car TEGRA114_CLK_ISP>; + resets = <&tegra_car TEGRA114_CLK_ISP>; + reset-names = "isp"; + + iommus = <&mc TEGRA_SWGROUP_ISP>; + + status = "disabled"; + }; + gr2d@54140000 { compatible = "nvidia,tegra114-gr2d"; reg = <0x54140000 0x00040000>;
@@ -149,6 +188,32 @@ dsib: dsi@54400000 { #address-cells = <1>; #size-cells = <0>; }; + + msenc@544c0000 { + compatible = "nvidia,tegra114-msenc"; + reg = <0x544c0000 0x00040000>; + interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&tegra_car TEGRA114_CLK_MSENC>; + resets = <&tegra_car TEGRA114_CLK_MSENC>; + reset-names = "mpe"; + + iommus = <&mc TEGRA_SWGROUP_MSENC>; + + status = "disabled"; + }; + + tsec@54500000 { + compatible = "nvidia,tegra114-tsec"; + reg = <0x54500000 0x00040000>; + interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&tegra_car TEGRA114_CLK_TSEC>; + resets = <&tegra_car TEGRA114_CLK_TSEC>; + reset-names = "tsec"; + + iommus = <&mc TEGRA_SWGROUP_TSEC>; + + status = "disabled"; + }; }; gic: interrupt-controller@50041000 {
Signature · 1 line
2.48.1
PATCH v4 3/3 ARM: tegra124: complete HOST1X devices binding
In reply to Svyatoslav RyhelAdd nodes for devices on the HOST1X bus: VI, ISP, ISPB, MSENC and TSEC.
--- arch/arm/boot/dts/nvidia/tegra124.dtsi | 65 ++++++++++++++++++++++++++ 1 file changed, 65 insertions(+)
arch/arm/boot/dts/nvidia/tegra124.dtsi +65 -0
@@ -103,6 +103,45 @@ host1x@50000000 { ranges = <0 0x54000000 0 0x54000000 0 0x01000000>; + vi@54080000 { + compatible = "nvidia,tegra124-vi"; + reg = <0x0 0x54080000 0x0 0x00040000>; + interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&tegra_car TEGRA124_CLK_VI>; + resets = <&tegra_car 20>; + reset-names = "vi"; + + iommus = <&mc TEGRA_SWGROUP_VI>; + + status = "disabled"; + }; + + isp@54600000 { + compatible = "nvidia,tegra124-isp"; + reg = <0x0 0x54600000 0x0 0x00040000>; + interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&tegra_car TEGRA124_CLK_ISP>; + resets = <&tegra_car TEGRA124_CLK_ISP>; + reset-names = "isp"; + + iommus = <&mc TEGRA_SWGROUP_ISP2>; + + status = "disabled"; + }; + + isp@54680000 { + compatible = "nvidia,tegra124-isp"; + reg = <0x0 0x54680000 0x0 0x00040000>; + interrupts = <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&tegra_car TEGRA124_CLK_ISPB>; + resets = <&tegra_car TEGRA124_CLK_ISPB>; + reset-names = "isp"; + + iommus = <&mc TEGRA_SWGROUP_ISP2B>; + + status = "disabled"; + }; + dc@54200000 { compatible = "nvidia,tegra124-dc"; reg = <0x0 0x54200000 0x0 0x00040000>;
@@ -209,6 +248,32 @@ dsib: dsi@54400000 { #size-cells = <0>; }; + msenc@544c0000 { + compatible = "nvidia,tegra124-msenc"; + reg = <0x0 0x544c0000 0x0 0x00040000>; + interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&tegra_car TEGRA124_CLK_MSENC>; + resets = <&tegra_car TEGRA124_CLK_MSENC>; + reset-names = "mpe"; + + iommus = <&mc TEGRA_SWGROUP_MSENC>; + + status = "disabled"; + }; + + tsec@54500000 { + compatible = "nvidia,tegra124-tsec"; + reg = <0x0 0x54500000 0x0 0x00040000>; + interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&tegra_car TEGRA124_CLK_TSEC>; + resets = <&tegra_car TEGRA124_CLK_TSEC>; + reset-names = "tsec"; + + iommus = <&mc TEGRA_SWGROUP_TSEC>; + + status = "disabled"; + }; + sor@54540000 { compatible = "nvidia,tegra124-sor"; reg = <0x0 0x54540000 0x0 0x00040000>;
Signature · 1 line
2.48.1