Skip to contentSkip to conversation

Tegra114: switch Tegra Note 7 from tn7 to tegratab

PATCH In review Svyatoslav Ryhel 4 participants 8 messages Feb 12, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover Tegra114: switch Tegra Note 7 from tn7 to tegratab

Currently Tegra Note 7 uses tn7 compatible and device tree name which is not quite correct. This device has proper codename which is tegratab. Switch tn7 in compatible to tegratab and set a better device tree name tegra114-nvidia-tegratab which aligns with newer trees.

Svyatoslav Ryhel (2):
ARM: tegra: set correct naming for Tegra Note 7
dt-bindings: arm: tegra: document NVIDIA Tegra Note 7 properly

 Documentation/devicetree/bindings/arm/tegra.yaml             | 5 ++++-
 arch/arm/boot/dts/nvidia/Makefile                            | 4 ++--
 .../{tegra114-tn7.dts => tegra114-nvidia-tegratab.dts}       | 5 +++--
 3 files changed, 9 insertions(+), 5 deletions(-)
 rename arch/arm/boot/dts/nvidia/{tegra114-tn7.dts => tegra114-nvidia-tegratab.dts} (98%)
Signature · 1 line
2.40.1
#1 lore raw

PATCH 1/2 ARM: tegra: set correct naming for Tegra Note 7

Correct codename of Tegra Note 7 is "tegratab", while model name should be "NVIDIA Tegra Note 7". Fix this inconsistency.

---
 arch/arm/boot/dts/nvidia/Makefile                            | 4 ++--
 .../{tegra114-tn7.dts => tegra114-nvidia-tegratab.dts}       | 5 +++--
 2 files changed, 5 insertions(+), 4 deletions(-)
 rename arch/arm/boot/dts/nvidia/{tegra114-tn7.dts => tegra114-nvidia-tegratab.dts} (98%)
arch/arm/boot/dts/nvidia/Makefile +2 -2
index 7a422f150488..474f3fbbd99d 100644
@@ -2,8 +2,8 @@
 dtb-$(CONFIG_ARCH_TEGRA_114_SOC) += \
 	tegra114-asus-tf701t.dtb \
 	tegra114-dalmore.dtb \
-	tegra114-roth.dtb \
-	tegra114-tn7.dtb
+	tegra114-nvidia-tegratab.dtb \
+	tegra114-roth.dtb
 dtb-$(CONFIG_ARCH_TEGRA_124_SOC) += \
 	tegra124-apalis-eval.dtb \
 	tegra124-apalis-v1.2-eval.dtb \
arch/arm/boot/dts/nvidia/tegra114-nvidia-tegratab.dts renamed from arch/arm/boot/dts/nvidia/tegra114-tn7.dts +3 -2
similarity index 98%
rename from arch/arm/boot/dts/nvidia/tegra114-tn7.dts
rename to arch/arm/boot/dts/nvidia/tegra114-nvidia-tegratab.dts
index bfbdb345575a..30b2ed91be23 100644
@@ -5,8 +5,9 @@
 #include "tegra114.dtsi"
 
 / {
-	model = "Tegra Note 7";
-	compatible = "nvidia,tn7", "nvidia,tegra114";
+	model = "NVIDIA Tegra Note 7";
+	compatible = "nvidia,tegratab", "nvidia,tegra114";
+	chassis-type = "tablet";
 
 	chosen {
 		/* TN7's bootloader's arguments need to be overridden */
Signature · 1 line
2.40.1
#2 lore raw

Re: [PATCH v1 1/2] ARM: tegra: set correct naming for Tegra Note 7

Quoted 1 line · Svyatoslav Ryhel

Correct codename of Tegra Note 7 is "tegratab", while model

Which has nothing to do with compatible...

Quoted 1 line

name should be "NVIDIA Tegra Note 7". Fix this inconsistency.

That part is fine.

Best regards,
Krzysztof

maintainer
#3 lore raw

Re: [PATCH v1 1/2] ARM: tegra: set correct naming for Tegra Note 7

In reply to Svyatoslav Ryhel
Quoted 33 lines · Svyatoslav Ryhel

Correct codename of Tegra Note 7 is "tegratab", while model name should be "NVIDIA Tegra Note 7". Fix this inconsistency.

---
  arch/arm/boot/dts/nvidia/Makefile                            | 4 ++--
  .../{tegra114-tn7.dts => tegra114-nvidia-tegratab.dts}       | 5 +++--
  2 files changed, 5 insertions(+), 4 deletions(-)

rename arch/arm/boot/dts/nvidia/{tegra114-tn7.dts => tegra114-nvidia-tegratab.dts} (98%)

arch/arm/boot/dts/nvidia/Makefile +2 -2
index 7a422f150488..474f3fbbd99d 100644
@@ -2,8 +2,8 @@
  dtb-$(CONFIG_ARCH_TEGRA_114_SOC) += \
  	tegra114-asus-tf701t.dtb \
  	tegra114-dalmore.dtb \
-	tegra114-roth.dtb \
-	tegra114-tn7.dtb
+	tegra114-nvidia-tegratab.dtb \
+	tegra114-roth.dtb
  dtb-$(CONFIG_ARCH_TEGRA_124_SOC) += \
  	tegra124-apalis-eval.dtb \
  	tegra124-apalis-v1.2-eval.dtb \
arch/arm/boot/dts/nvidia/tegra114-nvidia-tegratab.dts renamed from arch/arm/boot/dts/nvidia/tegra114-tn7.dts +0 -0
similarity index 98%
rename from arch/arm/boot/dts/nvidia/tegra114-tn7.dts
rename to arch/arm/boot/dts/nvidia/tegra114-nvidia-tegratab.dts
index bfbdb345575a..30b2ed91be23 100644

arch/arm/boot/dts/nvidia/tegra114-nvidia-tegratab.dts line 10

Quoted 8 lines
arch/arm/boot/dts/nvidia/tegra114-nvidia-tegratab.dts renamed from arch/arm/boot/dts/nvidia/tegra114-tn7.dts +3 -2
@@ -5,8 +5,9 @@
  #include "tegra114.dtsi"
 
  / {
-	model = "Tegra Note 7";
-	compatible = "nvidia,tn7", "nvidia,tegra114";
+	model = "NVIDIA Tegra Note 7";
+	compatible = "nvidia,tegratab", "nvidia,tegra114";
+	chassis-type = "tablet";

No mention of adding the chassis-type in the commit message. Seems like that should be a separate change.

Jon

Signature · 1 line
nvpublic
#4 lore raw

Re: [PATCH v1 1/2] ARM: tegra: set correct naming for Tegra Note 7

Quoted 37 lines · Jon Hunter
Quoted 35 lines · Svyatoslav Ryhel

Correct codename of Tegra Note 7 is "tegratab", while model name should be "NVIDIA Tegra Note 7". Fix this inconsistency.

---
  arch/arm/boot/dts/nvidia/Makefile                            | 4 ++--
  .../{tegra114-tn7.dts => tegra114-nvidia-tegratab.dts}       | 5 +++--
  2 files changed, 5 insertions(+), 4 deletions(-)

rename arch/arm/boot/dts/nvidia/{tegra114-tn7.dts => tegra114-nvidia-tegratab.dts} (98%)

arch/arm/boot/dts/nvidia/Makefile +2 -2
index 7a422f150488..474f3fbbd99d 100644
@@ -2,8 +2,8 @@
  dtb-$(CONFIG_ARCH_TEGRA_114_SOC) += \
  	tegra114-asus-tf701t.dtb \
  	tegra114-dalmore.dtb \
-	tegra114-roth.dtb \
-	tegra114-tn7.dtb
+	tegra114-nvidia-tegratab.dtb \
+	tegra114-roth.dtb
  dtb-$(CONFIG_ARCH_TEGRA_124_SOC) += \
  	tegra124-apalis-eval.dtb \
  	tegra124-apalis-v1.2-eval.dtb \
arch/arm/boot/dts/nvidia/tegra114-nvidia-tegratab.dts renamed from arch/arm/boot/dts/nvidia/tegra114-tn7.dts +0 -0
similarity index 98%
rename from arch/arm/boot/dts/nvidia/tegra114-tn7.dts
rename to arch/arm/boot/dts/nvidia/tegra114-nvidia-tegratab.dts
index bfbdb345575a..30b2ed91be23 100644
@@ -5,8 +5,9 @@
  #include "tegra114.dtsi"
 
Quoted 9 lines

arch/arm/boot/dts/nvidia/tegra114-nvidia-tegratab.dts line 10

Quoted 6 lines
arch/arm/boot/dts/nvidia/tegra114-nvidia-tegratab.dts renamed from arch/arm/boot/dts/nvidia/tegra114-tn7.dts +3 -2
  / {
-	model = "Tegra Note 7";
-	compatible = "nvidia,tn7", "nvidia,tegra114";
+	model = "NVIDIA Tegra Note 7";
+	compatible = "nvidia,tegratab", "nvidia,tegra114";
+	chassis-type = "tablet";

No mention of adding the chassis-type in the commit message. Seems like that should be a separate change.

Agreed. Along with Krzysztof's comments maybe this should just be a single patch that updates the model property and adds the chassis-type. We haven't used chassis-type before, but I see that the devicetree specification has it marked as "optional-but-recommended", so maybe we should make a pass over all files and add these as appropriate.

Thierry

#5 lore raw

PATCH 2/2 dt-bindings: arm: tegra: document NVIDIA Tegra Note 7 properly

In reply to Svyatoslav Ryhel

Document correct codename for NVIDIA Tegra Note 7 which is tegratab, not tn7.

---
 Documentation/devicetree/bindings/arm/tegra.yaml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/arm/tegra.yaml +4 -1
index fcf956406168..fc10886235ad 100644
@@ -97,7 +97,10 @@ properties:
               - asus,tf701t
               - nvidia,dalmore
               - nvidia,roth
-              - nvidia,tn7
+          - const: nvidia,tegra114
+      - description: NVIDIA Tegra Note 7
+        items:
+          - const: nvidia,tegratab
           - const: nvidia,tegra114
       - items:
           - enum:
Signature · 1 line
2.40.1
#6 lore raw

Re: [PATCH v1 2/2] dt-bindings: arm: tegra: document NVIDIA Tegra Note 7 properly

Quoted 2 lines · Svyatoslav Ryhel

Document correct codename for NVIDIA Tegra Note 7 which is tegratab, not tn7.

This is compatible, not codename. Change is meaningless, because compatibles are just unique strings. Old string was fine.

Best regards,
Krzysztof

maintainer
#7 lore raw
In reply to Svyatoslav Ryhel
Quoted 2 lines · Svyatoslav Ryhel

Currently Tegra Note 7 uses tn7 compatible and device tree name which is not quite correct. This device has proper codename which is tegratab.

Certainly news to me :-)

I have always known it as Tegra Note 7 and so 'tn7' as an abbreviation seems fine.

Jon

Signature · 1 line
nvpublic