Skip to contentSkip to conversation

dt-bindings: arm: at91: Document Kizboxmini and Smartkiz boards binding

PATCH Applied Kamel Bouhara 2 participants 4 messages Dec 20, 2019

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

PATCH v6 1/2 dt-bindings: arm: at91: Document Kizboxmini and Smartkiz boards binding

Document devicetree's bindings for the Overkiz's Kizbox Mini and Smartkiz boards, based on a SAM9G25 Atmel SoC.

---
Changes in v2
=============
- Added Kizboxmini Base board documentation
- Merged Smartkiz documentation as it is also a sam9g25 based board

Changes in v3
=============
- Made a single items list with all the sam9g25 based boards and put description into a comment.
- Fixed duplicated item in enum list and checked with 'make dt_binding_check'

Changes in v4
=============
- Fix missing "-" before items list

Changes in v5
=============
- s/at91-kizboxmini_common.dtsi/at91-kizboxmini-common.dtsi/

Changes in v6
=============
- Rebase to v5.5-rc2
- Fix space indentation
- Add a Rb tag.

---
 Documentation/devicetree/bindings/arm/atmel-at91.yaml | 10 ++++++++++
 1 file changed, 10 insertions(+)
Documentation/devicetree/bindings/arm/atmel-at91.yaml +10 -0
index 6dd8be401673..dcbfce4801bb 100644
@@ -35,6 +35,16 @@ properties:
               - atmel,at91sam9x60
           - const: atmel,at91sam9
 
+      - items:
+          - enum:
+              - overkiz,kizboxmini-base # Overkiz kizbox Mini Base Board
+              - overkiz,kizboxmini-mb   # Overkiz kizbox Mini Mother Board
+              - overkiz,kizboxmini-rd   # Overkiz kizbox Mini RailDIN
+              - overkiz,smartkiz        # Overkiz SmartKiz Board
+          - const: atmel,at91sam9g25
+          - const: atmel,at91sam9x5
+          - const: atmel,at91sam9
+
       - items:
           - enum:
               - atmel,at91sam9g15

--
2.24.0

#1 lore raw

PATCH v6 2/2 ARM: dts: at91: add smartkiz support and a common kizboxmini dtsi file

Split the existing Kizbox Mini boards into three board configuration, the base board, the mother board and the RailDIN board. Add a new dts file for the SmartKiz board support.

---
 arch/arm/boot/dts/Makefile                    |   5 +-
 arch/arm/boot/dts/at91-kizboxmini-base.dts    |  24 +++
 ...oxmini.dts => at91-kizboxmini-common.dtsi} | 163 +++++++++---------
 arch/arm/boot/dts/at91-kizboxmini-mb.dts      |  26 +++
 arch/arm/boot/dts/at91-kizboxmini-rd.dts      |  49 ++++++
 arch/arm/boot/dts/at91-smartkiz.dts           | 109 ++++++++++++
 6 files changed, 293 insertions(+), 83 deletions(-)
 create mode 100644 arch/arm/boot/dts/at91-kizboxmini-base.dts
 rename arch/arm/boot/dts/{at91-kizboxmini.dts => at91-kizboxmini-common.dtsi} (51%)
 create mode 100644 arch/arm/boot/dts/at91-kizboxmini-mb.dts
 create mode 100644 arch/arm/boot/dts/at91-kizboxmini-rd.dts
 create mode 100644 arch/arm/boot/dts/at91-smartkiz.dts
arch/arm/boot/dts/Makefile +4 -1
index 08011dc8c7a6..d9ef9de25382 100644
@@ -37,7 +37,10 @@ dtb-$(CONFIG_SOC_AT91SAM9) += \
 	at91-ariag25.dtb \
 	at91-ariettag25.dtb \
 	at91-cosino_mega2560.dtb \
-	at91-kizboxmini.dtb \
+	at91-kizboxmini-base.dtb \
+	at91-kizboxmini-mb.dtb \
+	at91-kizboxmini-rd.dtb \
+	at91-smartkiz.dtb \
 	at91-wb45n.dtb \
 	at91sam9g15ek.dtb \
 	at91sam9g25ek.dtb \
arch/arm/boot/dts/at91-kizboxmini-base.dts new file +24 -0
new file mode 100644
index 000000000000..81c29ca5cc1b
@@ -0,0 +1,24 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
+ * at91-kizboxmini-base.dts - Device Tree file for Overkiz Kizbox mini
+ * base board
+ *
+ * Copyright (C) 2015 Overkiz SAS
+ *   Author: Antoine Aubert <[email protected]>
+ *           Kévin Raymond <[email protected]>
+ */
+/dts-v1/;
+#include "at91-kizboxmini-common.dtsi"
+
+/ {
+	model = "Overkiz Kizbox Mini";
+	compatible = "overkiz,kizboxmini-base", "atmel,at91sam9g25",
+		     "atmel,at91sam9x5", "atmel,at91sam9";
+};
+
+&pinctrl_usart0 {
+	atmel,pins =
+		<AT91_PIOA 0 AT91_PERIPH_A AT91_PINCTRL_PULL_UP
+		 AT91_PIOA 1 AT91_PERIPH_A AT91_PINCTRL_NONE
+		 AT91_PIOA 2 AT91_PERIPH_GPIO AT91_PINCTRL_MULTI_DRIVE>;
+};
arch/arm/boot/dts/at91-kizboxmini-common.dtsi renamed from arch/arm/boot/dts/at91-kizboxmini.dts +81 -82

224 lines not on this page · raw message

arch/arm/boot/dts/at91-kizboxmini-mb.dts new file +26 -0
new file mode 100644
index 000000000000..c07d3076a9bc
@@ -0,0 +1,26 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2015-2018 Overkiz SAS
+ *   Author: Mickael Gardet <[email protected]>
+ *           Kévin Raymond <[email protected]>
+ */
+/dts-v1/;
+#include "at91-kizboxmini-common.dtsi"
+
+/ {
+	model = "Overkiz Kizbox Mini Mother Board";
+	compatible = "overkiz,kizboxmini-mb", "atmel,at91sam9g25",
+		     "atmel,at91sam9x5", "atmel,at91sam9";
+};
+
+&usb0 {
+	num-ports = <2>;
+};
+
+&rtc {
+	status = "okay";
+};
+
+&led_blue {
+	status = "okay";
+};
arch/arm/boot/dts/at91-kizboxmini-rd.dts new file +49 -0

49 lines not on this page · raw message

arch/arm/boot/dts/at91-smartkiz.dts new file +109 -0

109 lines not on this page · raw message

--
2.24.0

maintainer Applied
#2 lore raw

Re: [PATCH v6 2/2] ARM: dts: at91: add smartkiz support and a common kizboxmini dtsi file

Quoted 7 lines · Kamel Bouhara

Split the existing Kizbox Mini boards into three board configuration, the base board, the mother board and the RailDIN board. Add a new dts file for the SmartKiz board support.

Quoted 14 lines
---
 arch/arm/boot/dts/Makefile                    |   5 +-
 arch/arm/boot/dts/at91-kizboxmini-base.dts    |  24 +++
 ...oxmini.dts => at91-kizboxmini-common.dtsi} | 163 +++++++++---------
 arch/arm/boot/dts/at91-kizboxmini-mb.dts      |  26 +++
 arch/arm/boot/dts/at91-kizboxmini-rd.dts      |  49 ++++++
 arch/arm/boot/dts/at91-smartkiz.dts           | 109 ++++++++++++
 6 files changed, 293 insertions(+), 83 deletions(-)
 create mode 100644 arch/arm/boot/dts/at91-kizboxmini-base.dts
 rename arch/arm/boot/dts/{at91-kizboxmini.dts => at91-kizboxmini-common.dtsi} (51%)
 create mode 100644 arch/arm/boot/dts/at91-kizboxmini-mb.dts
 create mode 100644 arch/arm/boot/dts/at91-kizboxmini-rd.dts
 create mode 100644 arch/arm/boot/dts/at91-smartkiz.dts

Applied, thanks.

Signature · 3 lines
Alexandre Belloni, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
maintainer Applied
#3 lore raw
In reply to Kamel Bouhara
Quoted 27 lines · Kamel Bouhara

Document devicetree's bindings for the Overkiz's Kizbox Mini and Smartkiz boards, based on a SAM9G25 Atmel SoC.

---
Changes in v2
=============
- Added Kizboxmini Base board documentation
- Merged Smartkiz documentation as it is also a sam9g25 based board

Changes in v3
=============
- Made a single items list with all the sam9g25 based boards and put description into a comment.
- Fixed duplicated item in enum list and checked with 'make dt_binding_check'

Changes in v4
=============
- Fix missing "-" before items list

Changes in v5
=============
- s/at91-kizboxmini_common.dtsi/at91-kizboxmini-common.dtsi/

Quoted 9 lines

Changes in v6
=============
- Rebase to v5.5-rc2
- Fix space indentation
- Add a Rb tag.

---
 Documentation/devicetree/bindings/arm/atmel-at91.yaml | 10 ++++++++++
 1 file changed, 10 insertions(+)

Applied, thanks.

Signature · 3 lines
Alexandre Belloni, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com