Skip to contentSkip to conversation

Add a Kizbox2 dtsi and documentation

PATCH In review Kamel Bouhara 3 participants 7 messages Oct 17, 2019 – Oct 30, 2019

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

cover Add a Kizbox2 dtsi and documentation

This short serie add a Kizbox2 DSTI file for the Overkiz's SAMAD31 based boards and add their documentation.

Kamel Bouhara (2):
dt-bindings: arm: at91: Document Kizbox2 boards binding
ARM: dts: at91: add a common kizbox2 dtsi file

 .../devicetree/bindings/arm/atmel-at91.yaml   |  35 +++
 arch/arm/boot/dts/Makefile                    |   6 +-
 arch/arm/boot/dts/at91-kizbox.dts             | 173 ++++++------
 arch/arm/boot/dts/at91-kizbox2-0.dts          |  17 ++
 arch/arm/boot/dts/at91-kizbox2-1.dts          |  22 ++
 arch/arm/boot/dts/at91-kizbox2-2.dts          |  26 ++
 arch/arm/boot/dts/at91-kizbox2-3.dts          |  30 ++
 arch/arm/boot/dts/at91-kizbox2-rev2.dts       |  34 +++
 arch/arm/boot/dts/at91-kizbox2.dts            | 244 -----------------
 arch/arm/boot/dts/at91-kizbox2_common.dtsi    | 258 ++++++++++++++++++
 10 files changed, 512 insertions(+), 333 deletions(-)
 create mode 100644 arch/arm/boot/dts/at91-kizbox2-0.dts
 create mode 100644 arch/arm/boot/dts/at91-kizbox2-1.dts
 create mode 100644 arch/arm/boot/dts/at91-kizbox2-2.dts
 create mode 100644 arch/arm/boot/dts/at91-kizbox2-3.dts
 create mode 100644 arch/arm/boot/dts/at91-kizbox2-rev2.dts
 delete mode 100644 arch/arm/boot/dts/at91-kizbox2.dts
 create mode 100644 arch/arm/boot/dts/at91-kizbox2_common.dtsi

--
2.23.0

#1 lore raw

PATCH 1/2 dt-bindings: arm: at91: Document Kizbox2 boards binding

Document devicetree's bindings for the SAMA5D31 Kizbox2 boards of Overkiz SAS.

---
 .../devicetree/bindings/arm/atmel-at91.yaml   | 35 +++++++++++++++++++
 1 file changed, 35 insertions(+)
Documentation/devicetree/bindings/arm/atmel-at91.yaml +35 -0
index c0869cb860f3..7636bf7c2382 100644
@@ -80,6 +80,41 @@ properties:
           - const: atmel,sama5d3
           - const: atmel,sama5
 
+      - description: Overkiz kizbox2 board without antenna
+        items:
+          - const: overkiz,kizbox2-0
+          - const: atmel,sama5d31
+          - const: atmel,sama5d3
+          - const: atmel,sama5
+
+      - description: Overkiz kizbox2 board with one head
+        items:
+          - const: overkiz,kizbox2-1
+          - const: atmel,sama5d31
+          - const: atmel,sama5d3
+          - const: atmel,sama5
+
+      - description: Overkiz kizbox2 board with two heads
+        items:
+          - const: overkiz,kizbox2-2
+          - const: atmel,sama5d31
+          - const: atmel,sama5d3
+          - const: atmel,sama5
+
+      - description: Overkiz kizbox2 board with three heads
+        items:
+          - const: overkiz,kizbox2-3
+          - const: atmel,sama5d31
+          - const: atmel,sama5d3
+          - const: atmel,sama5
+
+      - description: Overkiz kizbox2 board Rev2 with two heads
+        items:
+          - const: overkiz,kizbox2-rev2
+          - const: atmel,sama5d31
+          - const: atmel,sama5d3
+          - const: atmel,sama5
+
       - items:
           - enum:
               - atmel,sama5d31
Signature · 1 line
2.23.0
maintainer
#2 lore raw

Re: [PATCH 1/2] dt-bindings: arm: at91: Document Kizbox2 boards binding

Quoted 40 lines · Kamel Bouhara

Document devicetree's bindings for the SAMA5D31 Kizbox2 boards of Overkiz SAS.

---
 .../devicetree/bindings/arm/atmel-at91.yaml   | 35 +++++++++++++++++++
 1 file changed, 35 insertions(+)
Documentation/devicetree/bindings/arm/atmel-at91.yaml +24 -0
index c0869cb860f3..7636bf7c2382 100644
@@ -80,6 +80,41 @@ properties:
           - const: atmel,sama5d3
           - const: atmel,sama5
 
+      - description: Overkiz kizbox2 board without antenna
+        items:
+          - const: overkiz,kizbox2-0
+          - const: atmel,sama5d31
+          - const: atmel,sama5d3
+          - const: atmel,sama5
+
+      - description: Overkiz kizbox2 board with one head
+        items:
+          - const: overkiz,kizbox2-1
+          - const: atmel,sama5d31
+          - const: atmel,sama5d3
+          - const: atmel,sama5
+
+      - description: Overkiz kizbox2 board with two heads
+        items:
+          - const: overkiz,kizbox2-2
+          - const: atmel,sama5d31
+          - const: atmel,sama5d3
+          - const: atmel,sama5
+
+      - description: Overkiz kizbox2 board with three heads
+        items:
+          - const: overkiz,kizbox2-3

Documentation/devicetree/bindings/arm/atmel-at91.yaml properties: · line 116

Quoted 10 lines
Documentation/devicetree/bindings/arm/atmel-at91.yaml +10 -0
+          - const: atmel,sama5d31
+          - const: atmel,sama5d3
+          - const: atmel,sama5
+
+      - description: Overkiz kizbox2 board Rev2 with two heads
+        items:
+          - const: overkiz,kizbox2-rev2
+          - const: atmel,sama5d31
+          - const: atmel,sama5d3
+          - const: atmel,sama5

These can all be made a single items list with the 1st entry being an enum of all the boards. The board description can be a comment.

Rob

#3 lore raw

Re: [PATCH 1/2] dt-bindings: arm: at91: Document Kizbox2 boards binding

Quoted 55 lines · Rob Herring
Quoted 40 lines · Kamel Bouhara

Document devicetree's bindings for the SAMA5D31 Kizbox2 boards of Overkiz SAS.

---
  .../devicetree/bindings/arm/atmel-at91.yaml   | 35 +++++++++++++++++++
  1 file changed, 35 insertions(+)
Documentation/devicetree/bindings/arm/atmel-at91.yaml +24 -0
index c0869cb860f3..7636bf7c2382 100644
@@ -80,6 +80,41 @@ properties:
            - const: atmel,sama5d3
            - const: atmel,sama5
 
+      - description: Overkiz kizbox2 board without antenna
+        items:
+          - const: overkiz,kizbox2-0
+          - const: atmel,sama5d31
+          - const: atmel,sama5d3
+          - const: atmel,sama5
+
+      - description: Overkiz kizbox2 board with one head
+        items:
+          - const: overkiz,kizbox2-1
+          - const: atmel,sama5d31
+          - const: atmel,sama5d3
+          - const: atmel,sama5
+
+      - description: Overkiz kizbox2 board with two heads
+        items:
+          - const: overkiz,kizbox2-2
+          - const: atmel,sama5d31
+          - const: atmel,sama5d3
+          - const: atmel,sama5
+
+      - description: Overkiz kizbox2 board with three heads
+        items:
+          - const: overkiz,kizbox2-3

Documentation/devicetree/bindings/arm/atmel-at91.yaml properties: · line 116

Quoted 10 lines
Documentation/devicetree/bindings/arm/atmel-at91.yaml +10 -0
+          - const: atmel,sama5d31
+          - const: atmel,sama5d3
+          - const: atmel,sama5
+
+      - description: Overkiz kizbox2 board Rev2 with two heads
+        items:
+          - const: overkiz,kizbox2-rev2
+          - const: atmel,sama5d31
+          - const: atmel,sama5d3
+          - const: atmel,sama5

These can all be made a single items list with the 1st entry being an enum of all the boards. The board description can be a comment.

Quoted 2 lines

Rob

Yes agree, actually it's already done in v2, by the way thanks for the review.

Signature · 3 lines
Kamel Bouhara, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com
#4 lore raw

PATCH 2/2 ARM: dts: at91: add a common kizbox2 dtsi file

In reply to Kamel Bouhara

There are three different boards available depending on the PCB (3 antennas support and several revison). Add a dtsi file to share common binding between all kizbox2 boards.

---
 arch/arm/boot/dts/Makefile                 |   6 +-
 arch/arm/boot/dts/at91-kizbox.dts          | 173 +++++++-------
 arch/arm/boot/dts/at91-kizbox2-0.dts       |  17 ++
 arch/arm/boot/dts/at91-kizbox2-1.dts       |  22 ++
 arch/arm/boot/dts/at91-kizbox2-2.dts       |  26 +++
 arch/arm/boot/dts/at91-kizbox2-3.dts       |  30 +++
 arch/arm/boot/dts/at91-kizbox2-rev2.dts    |  34 +++
 arch/arm/boot/dts/at91-kizbox2.dts         | 244 -------------------
 arch/arm/boot/dts/at91-kizbox2_common.dtsi | 258 +++++++++++++++++++++
 9 files changed, 477 insertions(+), 333 deletions(-)
 create mode 100644 arch/arm/boot/dts/at91-kizbox2-0.dts
 create mode 100644 arch/arm/boot/dts/at91-kizbox2-1.dts
 create mode 100644 arch/arm/boot/dts/at91-kizbox2-2.dts
 create mode 100644 arch/arm/boot/dts/at91-kizbox2-3.dts
 create mode 100644 arch/arm/boot/dts/at91-kizbox2-rev2.dts
 delete mode 100644 arch/arm/boot/dts/at91-kizbox2.dts
 create mode 100644 arch/arm/boot/dts/at91-kizbox2_common.dtsi
arch/arm/boot/dts/Makefile +5 -1
index 3bda216c41be..c976b72a4c94 100644
@@ -45,7 +45,11 @@ dtb-$(CONFIG_SOC_AT91SAM9) += \
 	at91sam9x25ek.dtb \
 	at91sam9x35ek.dtb
 dtb-$(CONFIG_SOC_SAM_V7) += \
-	at91-kizbox2.dtb \
+	at91-kizbox2-0.dtb \
+	at91-kizbox2-1.dtb \
+	at91-kizbox2-2.dtb \
+	at91-kizbox2-rev2.dtb \
+	at91-kizbox2-3.dtb \
 	at91-kizbox3-hs.dtb \
 	at91-nattis-2-natte-2.dtb \
 	at91-sama5d27_som1_ek.dtb \
arch/arm/boot/dts/at91-kizbox.dts +85 -88

188 lines not on this page · raw message

arch/arm/boot/dts/at91-kizbox2-0.dts new file +17 -0
new file mode 100644
index 000000000000..fd3f81fc0526
@@ -0,0 +1,17 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * at91-kizbox2-0.dts - Device Tree file for the Kizbox 2 board
+ *
+ * Copyright (C) 2015 Overkiz SAS
+ *
+ * Authors: Antoine Aubert <[email protected]>
+ *          Kévin Raymond <[email protected]>
+ */
+/dts-v1/;
+#include "at91-kizbox2_common.dtsi"
+
+/ {
+	model = "Overkiz Kizbox 2 Mother Board";
+	compatible = "overkiz,kizbox2-0", "atmel,sama5d31",
+		     "atmel,sama5d3", "atmel,sama5";
+};
arch/arm/boot/dts/at91-kizbox2-1.dts new file +22 -0
new file mode 100644
index 000000000000..00b26b5be466
@@ -0,0 +1,22 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * at91-kizbox2-1.dts - Device Tree file for the Kizbox 2 with one
+ * head board
+ *
+ * Copyright (C) 2015 Overkiz SAS
+ *
+ * Authors: Antoine Aubert <[email protected]>
+ *          Kévin Raymond <[email protected]>
+ */
+/dts-v1/;
+#include "at91-kizbox2_common.dtsi"
+
+/ {
+	model = "Overkiz Kizbox 2 with one head";
+	compatible = "overkiz,kizbox2-1", "atmel,sama5d31",
+		     "atmel,sama5d3", "atmel,sama5";
+};
+
+&usart1 {
+	status = "okay";
+};
arch/arm/boot/dts/at91-kizbox2-2.dts new file +26 -0
new file mode 100644
index 000000000000..7251c14878cd
@@ -0,0 +1,26 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * at91-kizbox2-2.dts - Device Tree file for the Kizbox2 with
+ * two head board
+ *
+ * Copyright (C) 2015 Overkiz SAS
+ *
+ * Authors: Antoine Aubert <[email protected]>
+ *	    Kévin Raymond <[email protected]>
+ */
+/dts-v1/;
+#include "at91-kizbox2_common.dtsi"
+
+/ {
+	model = "Overkiz Kizbox 2 with two heads";
+	compatible = "overkiz,kizbox2-2", "atmel,sama5d31",
+		     "atmel,sama5d3", "atmel,sama5";
+};
+
+&usart1 {
+	status = "okay";
+};
+
+&usart2 {
+	status = "okay";
+};
arch/arm/boot/dts/at91-kizbox2-3.dts new file +30 -0
new file mode 100644
index 000000000000..004854eae512
@@ -0,0 +1,30 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * at91-kizbox2-3.dts - Device Tree file for the Kizbox2 with three
+ * heads board
+ *
+ * Copyright (C) 2015 Overkiz SAS
+ *
+ * Authors: Antoine Aubert <[email protected]>
+ *          Kévin Raymond <[email protected]>
+ */
+/dts-v1/;
+#include "at91-kizbox2_common.dtsi"
+
+/ {
+	model = "Overkiz Kizbox 2 with three heads";
+	compatible = "overkiz,kizbox2-3", "atmel,sama5d31",
+		     "atmel,sama5d3", "atmel,sama5";
+};
+
+&usart0 {
+	status = "okay";
+};
+
+&usart1 {
+	status = "okay";
+};
+
+&usart2 {
+	status = "okay";
+};
arch/arm/boot/dts/at91-kizbox2-rev2.dts new file +34 -0
new file mode 100644
index 000000000000..00d7185e186a
@@ -0,0 +1,34 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * at91-kizbox2-rev2.dts - Device Tree file for the Kizbox2 rev2 with
+ * two heads board
+ *
+ * Copyright (C) 2017 Overkiz SAS
+ *
+ * Author: Kévin Raymond <[email protected]>
+ */
+/dts-v1/;
+#include "at91-kizbox2_common.dtsi"
+
+/ {
+	model = "Overkiz Kizbox 2 Rev 2 with two heads";
+	compatible = "overkiz,kizbox2-rev2", "atmel,sama5d31",
+		     "atmel,sama5d3", "atmel,sama5";
+
+	ahb {
+		gpio_keys {
+			user {
+				status = "disabled";
+			};
+		};
+	};
+};
+
+&usart1 {
+	status = "okay";
+};
+
+&usart2 {
+	status = "okay";
+};
+
arch/arm/boot/dts/at91-kizbox2.dts deleted +0 -244

244 lines not on this page · raw message

arch/arm/boot/dts/at91-kizbox2_common.dtsi new file +258 -0

258 lines not on this page · raw message

Signature · 1 line
2.23.0
#5 lore raw

Re: [PATCH 2/2] ARM: dts: at91: add a common kizbox2 dtsi file

Hello Kamel,

Quoted 10 lines · On Thu, 17 Oct 2019 10:54:05 +0200 Kamel Bouhara <[email protected]>…

There are three different boards available depending on the PCB (3 antennas support and several revison). Add a dtsi file to share common binding between all kizbox2 boards.

---
 arch/arm/boot/dts/Makefile                 |   6 +-
 arch/arm/boot/dts/at91-kizbox.dts          | 173 +++++++-------

The changes to this file (change to use phandles) seem unrelated to the current patch, unless I'm missing something.

Quoted 7 lines
 arch/arm/boot/dts/at91-kizbox2-0.dts       |  17 ++
 arch/arm/boot/dts/at91-kizbox2-1.dts       |  22 ++
 arch/arm/boot/dts/at91-kizbox2-2.dts       |  26 +++
 arch/arm/boot/dts/at91-kizbox2-3.dts       |  30 +++
 arch/arm/boot/dts/at91-kizbox2-rev2.dts    |  34 +++
 arch/arm/boot/dts/at91-kizbox2.dts         | 244 -------------------
 arch/arm/boot/dts/at91-kizbox2_common.dtsi | 258 +++++++++++++++++++++

"-" seems to be a much more common separator for DT names, including in this file, so what about at91-kizbox2-common.dtsi ?

Quoted 1 line

+// WMBUS (inverted with IO in the latest schematic)

I am not sure C++ comments are common in Device Tree files.

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#6 lore raw

Re: [PATCH 2/2] ARM: dts: at91: add a common kizbox2 dtsi file

Hi Thomas,

Quoted 27 lines · Thomas Petazzoni

Hello Kamel,

Quoted 10 lines · On Thu, 17 Oct 2019 10:54:05 +0200 Kamel Bouhara <[email protected]>…

There are three different boards available depending on the PCB (3 antennas support and several revison). Add a dtsi file to share common binding between all kizbox2 boards.

---
  arch/arm/boot/dts/Makefile                 |   6 +-
  arch/arm/boot/dts/at91-kizbox.dts          | 173 +++++++-------

The changes to this file (change to use phandles) seem unrelated to the current patch, unless I'm missing something.

Quoted 7 lines
  arch/arm/boot/dts/at91-kizbox2-0.dts       |  17 ++
  arch/arm/boot/dts/at91-kizbox2-1.dts       |  22 ++
  arch/arm/boot/dts/at91-kizbox2-2.dts       |  26 +++
  arch/arm/boot/dts/at91-kizbox2-3.dts       |  30 +++
  arch/arm/boot/dts/at91-kizbox2-rev2.dts    |  34 +++
  arch/arm/boot/dts/at91-kizbox2.dts         | 244 -------------------
  arch/arm/boot/dts/at91-kizbox2_common.dtsi | 258 +++++++++++++++++++++
Quoted 3 lines

"-" seems to be a much more common separator for DT names, including in this file, so what about at91-kizbox2-common.dtsi ?

I never paid attention to it but I just found that the "_" seems used also:

$ find arch/arm/boot/dts/ -name "*_*" |wc -l
176
Quoted 4 lines
Quoted 1 line

+// WMBUS (inverted with IO in the latest schematic)

I am not sure C++ comments are common in Device Tree files.

From the devicetree spec. both (C/C++ style) are supported... but I agree this is not common.

Quoted 4 lines

Best regards,

Thomas

Regards,

Kamel

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel