Skip to contentSkip to conversation

ARM: dts: socfpga: add specific compatible strings for boards

PATCH Superseded Dinh Nguyen 3 participants 3 messages Nov 1, 2016 Device tree bindings

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: socfpga: add specific compatible strings for boards

Add a more specific board compatible entry for all of the SOCFPGA Cyclone 5 based boards.

---
 arch/arm/boot/dts/socfpga_cyclone5_de0_sockit.dts  | 2 +-
 arch/arm/boot/dts/socfpga_cyclone5_mcvevk.dts      | 2 +-
 arch/arm/boot/dts/socfpga_cyclone5_socdk.dts       | 2 +-
 arch/arm/boot/dts/socfpga_cyclone5_sockit.dts      | 2 +-
 arch/arm/boot/dts/socfpga_cyclone5_sodia.dts       | 2 +-
 arch/arm/boot/dts/socfpga_cyclone5_vining_fpga.dts | 2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)
arch/arm/boot/dts/socfpga_cyclone5_de0_sockit.dts +1 -1
index afea364..5ecd2ef 100644
@@ -18,7 +18,7 @@
 
 / {
 	model = "Terasic DE-0(Atlas)";
-	compatible = "altr,socfpga-cyclone5", "altr,socfpga";
+	compatible = "terasic,de0-atlas", "altr,socfpga-cyclone5", "altr,socfpga";
 
 	chosen {
 		bootargs = "earlyprintk";
arch/arm/boot/dts/socfpga_cyclone5_mcvevk.dts +1 -1
index 424523b..668d77c 100644
@@ -19,7 +19,7 @@
 
 / {
 	model = "Aries/DENX MCV EVK";
-	compatible = "altr,socfpga-cyclone5", "altr,socfpga";
+	compatible = "denx, mcvevk", "altr,socfpga-cyclone5", "altr,socfpga";
 
 	aliases {
 		ethernet0 = &gmac0;
arch/arm/boot/dts/socfpga_cyclone5_socdk.dts +1 -1
index 15e43f4..b0577c1 100644
@@ -19,7 +19,7 @@
 
 / {
 	model = "Altera SOCFPGA Cyclone V SoC Development Kit";
-	compatible = "altr,socfpga-cyclone5", "altr,socfpga";
+	compatible = "altr,socdk", "altr,socfpga-cyclone5", "altr,socfpga";
 
 	chosen {
 		bootargs = "earlyprintk";
arch/arm/boot/dts/socfpga_cyclone5_sockit.dts +1 -1
index 02e22f5..c5623a7 100644
@@ -19,7 +19,7 @@
 
 / {
 	model = "Terasic SoCkit";
-	compatible = "altr,socfpga-cyclone5", "altr,socfpga";
+	compatible = "terasic,sockit", "altr,socfpga-cyclone5", "altr,socfpga";
 
 	chosen {
 		bootargs = "earlyprintk";
arch/arm/boot/dts/socfpga_cyclone5_sodia.dts +1 -1
index 9aaf413..992ae49 100644
@@ -21,7 +21,7 @@
 
 / {
 	model = "Altera SOCFPGA Cyclone V SoC Macnica Sodia board";
-	compatible = "altr,socfpga-cyclone5", "altr,socfpga";
+	compatible = "macnica, sodia", "altr,socfpga-cyclone5", "altr,socfpga";
 
 	chosen {
 		bootargs = "earlyprintk";
arch/arm/boot/dts/socfpga_cyclone5_vining_fpga.dts +1 -1
index b844473..78b187e 100644
@@ -51,7 +51,7 @@
 
 / {
 	model = "samtec VIN|ING FPGA";
-	compatible = "altr,socfpga-cyclone5", "altr,socfpga";
+	compatible = "samtec,vining". "altr,socfpga-cyclone5", "altr,socfpga";
 
 	chosen {
 		bootargs = "console=ttyS0,115200";
Signature · 1 line
2.8.3
#1 lore raw

PATCH 1/1 ARM: dts: socfpga: add specific compatible strings for boards

Hi Dinh,

Quoted 31 lines · Dinh Nguyen

Add a more specific board compatible entry for all of the SOCFPGA Cyclone 5 based boards.

---
 arch/arm/boot/dts/socfpga_cyclone5_de0_sockit.dts  | 2 +-
 arch/arm/boot/dts/socfpga_cyclone5_mcvevk.dts      | 2 +-
 arch/arm/boot/dts/socfpga_cyclone5_socdk.dts       | 2 +-
 arch/arm/boot/dts/socfpga_cyclone5_sockit.dts      | 2 +-
 arch/arm/boot/dts/socfpga_cyclone5_sodia.dts       | 2 +-
 arch/arm/boot/dts/socfpga_cyclone5_vining_fpga.dts | 2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)
arch/arm/boot/dts/socfpga_cyclone5_de0_sockit.dts +1 -1
index afea364..5ecd2ef 100644
@@ -18,7 +18,7 @@
 
 / {
 	model = "Terasic DE-0(Atlas)";
-	compatible = "altr,socfpga-cyclone5", "altr,socfpga";
+	compatible = "terasic,de0-atlas", "altr,socfpga-cyclone5", "altr,socfpga";
 
 	chosen {
 		bootargs = "earlyprintk";
arch/arm/boot/dts/socfpga_cyclone5_mcvevk.dts +0 -0
index 424523b..668d77c 100644

arch/arm/boot/dts/socfpga_cyclone5_mcvevk.dts line 22

Quoted 5 lines
arch/arm/boot/dts/socfpga_cyclone5_mcvevk.dts +1 -1
@@ -19,7 +19,7 @@
 
 / {
 	model = "Aries/DENX MCV EVK";
-	compatible = "altr,socfpga-cyclone5", "altr,socfpga";
+	compatible = "denx, mcvevk", "altr,socfpga-cyclone5", "altr,socfpga";

Redundant space ^

Quoted 34 lines
arch/arm/boot/dts/socfpga_cyclone5_mcvevk.dts +0 -0
 	aliases {
 		ethernet0 = &gmac0;
arch/arm/boot/dts/socfpga_cyclone5_socdk.dts +1 -1
index 15e43f4..b0577c1 100644
@@ -19,7 +19,7 @@
 
 / {
 	model = "Altera SOCFPGA Cyclone V SoC Development Kit";
-	compatible = "altr,socfpga-cyclone5", "altr,socfpga";
+	compatible = "altr,socdk", "altr,socfpga-cyclone5", "altr,socfpga";
 
 	chosen {
 		bootargs = "earlyprintk";
arch/arm/boot/dts/socfpga_cyclone5_sockit.dts +1 -1
index 02e22f5..c5623a7 100644
@@ -19,7 +19,7 @@
 
 / {
 	model = "Terasic SoCkit";
-	compatible = "altr,socfpga-cyclone5", "altr,socfpga";
+	compatible = "terasic,sockit", "altr,socfpga-cyclone5", "altr,socfpga";
 
 	chosen {
 		bootargs = "earlyprintk";
arch/arm/boot/dts/socfpga_cyclone5_sodia.dts +0 -0
index 9aaf413..992ae49 100644

arch/arm/boot/dts/socfpga_cyclone5_sodia.dts line 24

Quoted 5 lines
arch/arm/boot/dts/socfpga_cyclone5_sodia.dts +1 -1
@@ -21,7 +21,7 @@
 
 / {
 	model = "Altera SOCFPGA Cyclone V SoC Macnica Sodia board";
-	compatible = "altr,socfpga-cyclone5", "altr,socfpga";
+	compatible = "macnica, sodia", "altr,socfpga-cyclone5", "altr,socfpga";

Redundant space ^

If it is not yet done, you may consider to add Macnica to Documentation/devicetree/bindings/vendor-prefixes.txt

arch/arm/boot/dts/socfpga_cyclone5_vining_fpga.dts line 54

Quoted 13 lines
arch/arm/boot/dts/socfpga_cyclone5_sodia.dts +0 -0
 	chosen {
 		bootargs = "earlyprintk";
arch/arm/boot/dts/socfpga_cyclone5_vining_fpga.dts +1 -1
index b844473..78b187e 100644
@@ -51,7 +51,7 @@
 
 / {
 	model = "samtec VIN|ING FPGA";
-	compatible = "altr,socfpga-cyclone5", "altr,socfpga";
+	compatible = "samtec,vining". "altr,socfpga-cyclone5", "altr,socfpga";

Comma is expected here ^

Probably Terasic and Samtec are also not in the vendor-prefixes.txt list, usually checkpatch complains about it.

arch/arm/boot/dts/socfpga_cyclone5_vining_fpga.dts

Quoted 4 lines
arch/arm/boot/dts/socfpga_cyclone5_vining_fpga.dts +0 -0
 	chosen {
 		bootargs = "console=ttyS0,115200";
 

--
With best wishes,
Vladimir

#2 lore raw

PATCH 1/1 ARM: dts: socfpga: add specific compatible strings for boards

Hi Vladimir,

Quoted 38 lines · Vladimir Zapolskiy

Hi Dinh,

Quoted 35 lines · Dinh Nguyen

Add a more specific board compatible entry for all of the SOCFPGA Cyclone 5 based boards.

---
 arch/arm/boot/dts/socfpga_cyclone5_de0_sockit.dts  | 2 +-
 arch/arm/boot/dts/socfpga_cyclone5_mcvevk.dts      | 2 +-
 arch/arm/boot/dts/socfpga_cyclone5_socdk.dts       | 2 +-
 arch/arm/boot/dts/socfpga_cyclone5_sockit.dts      | 2 +-
 arch/arm/boot/dts/socfpga_cyclone5_sodia.dts       | 2 +-
 arch/arm/boot/dts/socfpga_cyclone5_vining_fpga.dts | 2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)
arch/arm/boot/dts/socfpga_cyclone5_de0_sockit.dts +1 -1
index afea364..5ecd2ef 100644
@@ -18,7 +18,7 @@
 
 / {
     model = "Terasic DE-0(Atlas)";
-    compatible = "altr,socfpga-cyclone5", "altr,socfpga";
+    compatible = "terasic,de0-atlas", "altr,socfpga-cyclone5",
 "altr,socfpga";
 
     chosen {
         bootargs = "earlyprintk";
arch/arm/boot/dts/socfpga_cyclone5_mcvevk.dts +0 -0
index 424523b..668d77c 100644
@@ -19,7 +19,7 @@
 
Quoted 7 lines

arch/arm/boot/dts/socfpga_cyclone5_mcvevk.dts

Quoted 5 lines
arch/arm/boot/dts/socfpga_cyclone5_mcvevk.dts +1 -1
 / {
     model = "Aries/DENX MCV EVK";
-    compatible = "altr,socfpga-cyclone5", "altr,socfpga";
+    compatible = "denx, mcvevk", "altr,socfpga-cyclone5",
 "altr,socfpga";

Redundant space ^

OK

Quoted 40 lines
Quoted 40 lines
arch/arm/boot/dts/socfpga_cyclone5_mcvevk.dts +0 -0
     aliases {
         ethernet0 = &gmac0;
arch/arm/boot/dts/socfpga_cyclone5_socdk.dts +1 -1
index 15e43f4..b0577c1 100644
@@ -19,7 +19,7 @@
 
 / {
     model = "Altera SOCFPGA Cyclone V SoC Development Kit";
-    compatible = "altr,socfpga-cyclone5", "altr,socfpga";
+    compatible = "altr,socdk", "altr,socfpga-cyclone5", "altr,socfpga";
 
     chosen {
         bootargs = "earlyprintk";
arch/arm/boot/dts/socfpga_cyclone5_sockit.dts +1 -1
index 02e22f5..c5623a7 100644
@@ -19,7 +19,7 @@
 
 / {
     model = "Terasic SoCkit";
-    compatible = "altr,socfpga-cyclone5", "altr,socfpga";
+    compatible = "terasic,sockit", "altr,socfpga-cyclone5",
 "altr,socfpga";
 
     chosen {
         bootargs = "earlyprintk";
arch/arm/boot/dts/socfpga_cyclone5_sodia.dts +0 -0
index 9aaf413..992ae49 100644
@@ -21,7 +21,7 @@
 
Quoted 7 lines

arch/arm/boot/dts/socfpga_cyclone5_sodia.dts

Quoted 5 lines
arch/arm/boot/dts/socfpga_cyclone5_sodia.dts +1 -1
 / {
     model = "Altera SOCFPGA Cyclone V SoC Macnica Sodia board";
-    compatible = "altr,socfpga-cyclone5", "altr,socfpga";
+    compatible = "macnica, sodia", "altr,socfpga-cyclone5",
 "altr,socfpga";

Redundant space ^

Ok,

Quoted 4 lines

If it is not yet done, you may consider to add Macnica to Documentation/devicetree/bindings/vendor-prefixes.txt

Yes, I have sent separate patches to add the vendor prefixes.

Quoted 10 lines
Quoted 10 lines
arch/arm/boot/dts/socfpga_cyclone5_sodia.dts +0 -0
     chosen {
         bootargs = "earlyprintk";
arch/arm/boot/dts/socfpga_cyclone5_vining_fpga.dts +0 -0
index b844473..78b187e 100644
@@ -51,7 +51,7 @@
 
Quoted 7 lines

arch/arm/boot/dts/socfpga_cyclone5_vining_fpga.dts

Quoted 5 lines
arch/arm/boot/dts/socfpga_cyclone5_vining_fpga.dts +1 -1
 / {
     model = "samtec VIN|ING FPGA";
-    compatible = "altr,socfpga-cyclone5", "altr,socfpga";
+    compatible = "samtec,vining". "altr,socfpga-cyclone5",
 "altr,socfpga";

Comma is expected here ^

Ok,

Quoted 3 lines

Probably Terasic and Samtec are also not in the vendor-prefixes.txt list, usually checkpatch complains about it.

Yes, I have sent patches for the vendor prefixes. Thanks for reviewing.

Dinh