Skip to contentSkip to conversation

arm64: prepare and add verdin imx8m plus support

PATCH Superseded Marcel Ziswiler 3 participants 7 messages Mar 23, 2022 – Mar 25, 2022

Subsystems (2)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

v2 cover arm64: prepare and add verdin imx8m plus support

From: Marcel Ziswiler <[email protected]>

Add DMA properties to uart2 node of the base i.MX 8M Plus device tree, add toradex,verdin-imx8mp et al. to dt-bindings and finally, add initial support for Verdin iMX8M Plus.

Changes in v2:
- Add Laurent's reviewed-by tag.
- Add Krzysztof's reviewed-by tag.
- Fix capitatlisation of verdin in comments as reported by Laurent.
- Add/modify todo comments as suggested by Laurent.
- Add Laurent's reviewed- and tested-by tags.

Marcel Ziswiler (3):
arm64: dts: imx8mp: add uart2 dma
dt-bindings: arm: fsl: add toradex,verdin-imx8mp et al.
arm64: dts: freescale: add initial support for verdin imx8m plus

 .../devicetree/bindings/arm/fsl.yaml          |   21 +
 arch/arm64/boot/dts/freescale/Makefile        |    4 +
 .../dts/freescale/imx8mp-verdin-dahlia.dtsi   |  129 ++
 .../boot/dts/freescale/imx8mp-verdin-dev.dtsi |   44 +
 .../imx8mp-verdin-nonwifi-dahlia.dts          |   18 +
 .../freescale/imx8mp-verdin-nonwifi-dev.dts   |   18 +
 .../dts/freescale/imx8mp-verdin-nonwifi.dtsi  |   54 +
 .../freescale/imx8mp-verdin-wifi-dahlia.dts   |   18 +
 .../dts/freescale/imx8mp-verdin-wifi-dev.dts  |   18 +
 .../dts/freescale/imx8mp-verdin-wifi.dtsi     |   82 +
 .../boot/dts/freescale/imx8mp-verdin.dtsi     | 1373 +++++++++++++++++
 arch/arm64/boot/dts/freescale/imx8mp.dtsi     |    2 +
 12 files changed, 1781 insertions(+)
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin-dahlia.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin-dev.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin-nonwifi-dahlia.dts
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin-nonwifi-dev.dts
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin-nonwifi.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin-wifi-dahlia.dts
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin-wifi-dev.dts
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin-wifi.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi
Signature · 1 line
2.34.1
#1 lore raw

PATCH v2 1/3 arm64: dts: imx8mp: add uart2 dma

From: Marcel Ziswiler <[email protected]>

Add DMA properties to uart2 node.

---

Changes in v2:
- Add Laurent's reviewed-by tag.

 arch/arm64/boot/dts/freescale/imx8mp.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/freescale/imx8mp.dtsi +2 -0
index 3f8703f3ba5b..b6a020bac9c5 100644
@@ -617,6 +617,8 @@ uart2: serial@30890000 {
 				clocks = <&clk IMX8MP_CLK_UART2_ROOT>,
 					 <&clk IMX8MP_CLK_UART2_ROOT>;
 				clock-names = "ipg", "per";
+				dmas = <&sdma1 24 4 0>, <&sdma1 25 4 0>;
+				dma-names = "rx", "tx";
 				status = "disabled";
 			};
 
Signature · 1 line
2.34.1
#2 lore raw

PATCH v2 2/3 dt-bindings: arm: fsl: add toradex,verdin-imx8mp et al.

In reply to Marcel Ziswiler

From: Marcel Ziswiler <[email protected]>

Add toradex,verdin-imx8mp for the Verdin iMX8M Plus modules, its nonwifi and wifi variants and the carrier boards (both Dahlia and the Verdin Development Board) they may be mated in.

---

Changes in v2:
- Add Krzysztof's reviewed-by tag.

 .../devicetree/bindings/arm/fsl.yaml          | 21 +++++++++++++++++++
 1 file changed, 21 insertions(+)
Documentation/devicetree/bindings/arm/fsl.yaml +21 -0
index 08bdd30e511c..8e42ae52a77a 100644
@@ -860,6 +860,9 @@ properties:
         items:
           - enum:
               - fsl,imx8mp-evk            # i.MX8MP EVK Board
+              - toradex,verdin-imx8mp     # Verdin iMX8M Plus Modules
+              - toradex,verdin-imx8mp-nonwifi  # Verdin iMX8M Plus Modules without Wi-Fi / BT
+              - toradex,verdin-imx8mp-wifi  # Verdin iMX8M Plus Wi-Fi / BT Modules
           - const: fsl,imx8mp
 
       - description: PHYTEC phyCORE-i.MX8MP SoM based boards
@@ -868,6 +871,24 @@ properties:
           - const: phytec,imx8mp-phycore-som         # phyCORE-i.MX8MP SoM
           - const: fsl,imx8mp
 
+      - description: Toradex Boards with Verdin iMX8M Plus Modules
+        items:
+          - enum:
+              - toradex,verdin-imx8mp-nonwifi-dahlia # Verdin iMX8M Plus Module on Dahlia
+              - toradex,verdin-imx8mp-nonwifi-dev    # Verdin iMX8M Plus Module on Verdin Development Board
+          - const: toradex,verdin-imx8mp-nonwifi     # Verdin iMX8M Plus Module without Wi-Fi / BT
+          - const: toradex,verdin-imx8mp             # Verdin iMX8M Plus Module
+          - const: fsl,imx8mp
+
+      - description: Toradex Boards with Verdin iMX8M Plus Wi-Fi / BT Modules
+        items:
+          - enum:
+              - toradex,verdin-imx8mp-wifi-dahlia # Verdin iMX8M Plus Wi-Fi / BT Module on Dahlia
+              - toradex,verdin-imx8mp-wifi-dev    # Verdin iMX8M Plus Wi-Fi / BT M. on Verdin Development B.
+          - const: toradex,verdin-imx8mp-wifi     # Verdin iMX8M Plus Wi-Fi / BT Module
+          - const: toradex,verdin-imx8mp          # Verdin iMX8M Plus Module
+          - const: fsl,imx8mp
+
       - description: i.MX8MQ based Boards
         items:
           - enum:
Signature · 1 line
2.34.1
#3 lore raw

PATCH v2 3/3 arm64: dts: freescale: add initial support for verdin imx8m plus

In reply to Marcel Ziswiler

From: Marcel Ziswiler <[email protected]>

This patch adds the device tree to support Toradex Verdin iMX8M Plus [1] a computer on module which can be used on different carrier boards.

The module consists of an NXP i.MX 8M Plus family SoC (either i.MX 8M Plus Quad or 8M Plus QuadLite), a PCA9450C PMIC, a Gigabit Ethernet PHY, 1, 2, 4 or 8 GB of LPDDR4 RAM, an eMMC, a TLA2024 ADC, an I2C EEPROM, an RX8130 RTC, an optional I2C temperature sensor plus an optional Bluetooth/Wi-Fi module.

Anything that is not self-contained on the module is disabled by default.

The device tree for the Dahlia includes the module's device tree and enables the supported peripherals of the carrier board.

The device tree for the Verdin Development Board includes the module's device tree as well as the Dahlia one as it is a superset and supports almost all peripherals available.

So far there is no display functionality supported at all but basic console UART, USB host, eMMC and Ethernet functionality work fine.

[1] https://www.toradex.com/computer-on-modules/verdin-arm-family/nxp-imx-8m-plus

---

Changes in v2:
- Fix capitatlisation of verdin in comments as reported by Laurent.
- Add/modify todo comments as suggested by Laurent.
- Add Laurent's reviewed- and tested-by tags.

 arch/arm64/boot/dts/freescale/Makefile        |    4 +
 .../dts/freescale/imx8mp-verdin-dahlia.dtsi   |  129 ++
 .../boot/dts/freescale/imx8mp-verdin-dev.dtsi |   44 +
 .../imx8mp-verdin-nonwifi-dahlia.dts          |   18 +
 .../freescale/imx8mp-verdin-nonwifi-dev.dts   |   18 +
 .../dts/freescale/imx8mp-verdin-nonwifi.dtsi  |   54 +
 .../freescale/imx8mp-verdin-wifi-dahlia.dts   |   18 +
 .../dts/freescale/imx8mp-verdin-wifi-dev.dts  |   18 +
 .../dts/freescale/imx8mp-verdin-wifi.dtsi     |   82 +
 .../boot/dts/freescale/imx8mp-verdin.dtsi     | 1373 +++++++++++++++++
 10 files changed, 1758 insertions(+)
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin-dahlia.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin-dev.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin-nonwifi-dahlia.dts
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin-nonwifi-dev.dts
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin-nonwifi.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin-wifi-dahlia.dts
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin-wifi-dev.dts
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin-wifi.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi
arch/arm64/boot/dts/freescale/Makefile +4 -0
index 7f51b537df40..f1d7607888e2 100644
@@ -78,6 +78,10 @@ dtb-$(CONFIG_ARCH_MXC) += imx8mn-var-som-symphony.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mn-venice-gw7902.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-phyboard-pollux-rdk.dtb
+dtb-$(CONFIG_ARCH_MXC) += imx8mp-verdin-nonwifi-dahlia.dtb
+dtb-$(CONFIG_ARCH_MXC) += imx8mp-verdin-nonwifi-dev.dtb
+dtb-$(CONFIG_ARCH_MXC) += imx8mp-verdin-wifi-dahlia.dtb
+dtb-$(CONFIG_ARCH_MXC) += imx8mp-verdin-wifi-dev.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mq-evk.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mq-hummingboard-pulse.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mq-kontron-pitx-imx8m.dtb
arch/arm64/boot/dts/freescale/imx8mp-verdin-dahlia.dtsi new file +129 -0

129 lines not on this page · raw message

arch/arm64/boot/dts/freescale/imx8mp-verdin-dev.dtsi new file +44 -0

44 lines not on this page · raw message

arch/arm64/boot/dts/freescale/imx8mp-verdin-nonwifi-dahlia.dts new file +18 -0
new file mode 100644
index 000000000000..68147b0c1b35
@@ -0,0 +1,18 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+/*
+ * Copyright 2022 Toradex
+ */
+
+/dts-v1/;
+
+#include "imx8mp-verdin.dtsi"
+#include "imx8mp-verdin-nonwifi.dtsi"
+#include "imx8mp-verdin-dahlia.dtsi"
+
+/ {
+	model = "Toradex Verdin iMX8M Plus on Dahlia Board";
+	compatible = "toradex,verdin-imx8mp-nonwifi-dahlia",
+		     "toradex,verdin-imx8mp-nonwifi",
+		     "toradex,verdin-imx8mp",
+		     "fsl,imx8mp";
+};
arch/arm64/boot/dts/freescale/imx8mp-verdin-nonwifi-dev.dts new file +18 -0
new file mode 100644
index 000000000000..879ff687cf2b
@@ -0,0 +1,18 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+/*
+ * Copyright 2022 Toradex
+ */
+
+/dts-v1/;
+
+#include "imx8mp-verdin.dtsi"
+#include "imx8mp-verdin-nonwifi.dtsi"
+#include "imx8mp-verdin-dev.dtsi"
+
+/ {
+	model = "Toradex Verdin iMX8M Plus on Verdin Development Board";
+	compatible = "toradex,verdin-imx8mp-nonwifi-dev",
+		     "toradex,verdin-imx8mp-nonwifi",
+		     "toradex,verdin-imx8mp",
+		     "fsl,imx8mp";
+};
arch/arm64/boot/dts/freescale/imx8mp-verdin-nonwifi.dtsi new file +54 -0

54 lines not on this page · raw message

arch/arm64/boot/dts/freescale/imx8mp-verdin-wifi-dahlia.dts new file +18 -0
new file mode 100644
index 000000000000..804567f6ccee
@@ -0,0 +1,18 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+/*
+ * Copyright 2022 Toradex
+ */
+
+/dts-v1/;
+
+#include "imx8mp-verdin.dtsi"
+#include "imx8mp-verdin-wifi.dtsi"
+#include "imx8mp-verdin-dahlia.dtsi"
+
+/ {
+	model = "Toradex Verdin iMX8M Plus WB on Dahlia Board";
+	compatible = "toradex,verdin-imx8mp-wifi-dahlia",
+		     "toradex,verdin-imx8mp-wifi",
+		     "toradex,verdin-imx8mp",
+		     "fsl,imx8mp";
+};
arch/arm64/boot/dts/freescale/imx8mp-verdin-wifi-dev.dts new file +18 -0
new file mode 100644
index 000000000000..c1713c28cdce
@@ -0,0 +1,18 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+/*
+ * Copyright 2022 Toradex
+ */
+
+/dts-v1/;
+
+#include "imx8mp-verdin.dtsi"
+#include "imx8mp-verdin-wifi.dtsi"
+#include "imx8mp-verdin-dev.dtsi"
+
+/ {
+	model = "Toradex Verdin iMX8M Plus WB on Verdin Development Board";
+	compatible = "toradex,verdin-imx8mp-wifi-dev",
+		     "toradex,verdin-imx8mp-wifi",
+		     "toradex,verdin-imx8mp",
+		     "fsl,imx8mp";
+};
arch/arm64/boot/dts/freescale/imx8mp-verdin-wifi.dtsi new file +82 -0

82 lines not on this page · raw message

arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi new file +1373 -0

1,373 lines not on this page · raw message

Signature · 1 line
2.34.1
#4 lore raw

Re: [PATCH v2 3/3] arm64: dts: freescale: add initial support for verdin imx8m plus

Hi Marcel,

A couple more comments.

Quoted 57 lines · Marcel Ziswiler

From: Marcel Ziswiler <[email protected]>

This patch adds the device tree to support Toradex Verdin iMX8M Plus [1] a computer on module which can be used on different carrier boards.

The module consists of an NXP i.MX 8M Plus family SoC (either i.MX 8M Plus Quad or 8M Plus QuadLite), a PCA9450C PMIC, a Gigabit Ethernet PHY, 1, 2, 4 or 8 GB of LPDDR4 RAM, an eMMC, a TLA2024 ADC, an I2C EEPROM, an RX8130 RTC, an optional I2C temperature sensor plus an optional Bluetooth/Wi-Fi module.

Anything that is not self-contained on the module is disabled by default.

The device tree for the Dahlia includes the module's device tree and enables the supported peripherals of the carrier board.

The device tree for the Verdin Development Board includes the module's device tree as well as the Dahlia one as it is a superset and supports almost all peripherals available.

So far there is no display functionality supported at all but basic console UART, USB host, eMMC and Ethernet functionality work fine.

[1] https://www.toradex.com/computer-on-modules/verdin-arm-family/nxp-imx-8m-plus

---

Changes in v2:
- Fix capitatlisation of verdin in comments as reported by Laurent.
- Add/modify todo comments as suggested by Laurent.
- Add Laurent's reviewed- and tested-by tags.

 arch/arm64/boot/dts/freescale/Makefile        |    4 +
 .../dts/freescale/imx8mp-verdin-dahlia.dtsi   |  129 ++
 .../boot/dts/freescale/imx8mp-verdin-dev.dtsi |   44 +
 .../imx8mp-verdin-nonwifi-dahlia.dts          |   18 +
 .../freescale/imx8mp-verdin-nonwifi-dev.dts   |   18 +
 .../dts/freescale/imx8mp-verdin-nonwifi.dtsi  |   54 +
 .../freescale/imx8mp-verdin-wifi-dahlia.dts   |   18 +
 .../dts/freescale/imx8mp-verdin-wifi-dev.dts  |   18 +
 .../dts/freescale/imx8mp-verdin-wifi.dtsi     |   82 +
 .../boot/dts/freescale/imx8mp-verdin.dtsi     | 1373 +++++++++++++++++
 10 files changed, 1758 insertions(+)
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin-dahlia.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin-dev.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin-nonwifi-dahlia.dts
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin-nonwifi-dev.dts
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin-nonwifi.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin-wifi-dahlia.dts
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin-wifi-dev.dts
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin-wifi.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi

[snip]

Quoted 6 lines
arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi new file +0 -0
new file mode 100644
index 000000000000..8cad1d865720
@@ -0,0 +1,1373 @@

[snip]

arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi line 605

Quoted 3 lines
arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi new file +3 -0
+/* Verdin I2C_2_DSI */
+&i2c2 {
+	clock-frequency = <10000>;

Did you really mean 10kHz here, not 100kHz ?

arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi line 608

Quoted 3 lines
arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi new file +3 -0
+	pinctrl-names = "default", "gpio";
+	pinctrl-0 = <&pinctrl_i2c2>;
+	pinctrl-1 = <&pinctrl_i2c2_gpio>;

Shouldn't you also specify scl-gpios and sda-gpios, like for the other I2C buses ?

Quoted 12 lines
arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi new file +12 -0
+
+	atmel_mxt_ts_mezzanine: touch-mezzanine@4a {
+		compatible = "atmel,maxtouch";
+		/* Verdin GPIO_3 (SODIMM 210) */
+		interrupt-parent = <&gpio1>;
+		interrupts = <5 IRQ_TYPE_EDGE_FALLING>;
+		reg = <0x4a>;
+		/* Verdin GPIO_2 (SODIMM 208) */
+		reset-gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
+		status = "disabled";
+	};
+};

[snip]

Signature · 3 lines
Regards,

Laurent Pinchart
#5 lore raw

Re: [PATCH v2 3/3] arm64: dts: freescale: add initial support for verdin imx8m plus

Hi Laurent

Quoted 75 lines · Laurent Pinchart

Hi Marcel,

A couple more comments.

Quoted 57 lines · Marcel Ziswiler

From: Marcel Ziswiler <[email protected]>

This patch adds the device tree to support Toradex Verdin iMX8M Plus [1] a computer on module which can be used on different carrier boards.

The module consists of an NXP i.MX 8M Plus family SoC (either i.MX 8M Plus Quad or 8M Plus QuadLite), a PCA9450C PMIC, a Gigabit Ethernet PHY, 1, 2, 4 or 8 GB of LPDDR4 RAM, an eMMC, a TLA2024 ADC, an I2C EEPROM, an RX8130 RTC, an optional I2C temperature sensor plus an optional Bluetooth/Wi-Fi module.

Anything that is not self-contained on the module is disabled by default.

The device tree for the Dahlia includes the module's device tree and enables the supported peripherals of the carrier board.

The device tree for the Verdin Development Board includes the module's device tree as well as the Dahlia one as it is a superset and supports almost all peripherals available.

So far there is no display functionality supported at all but basic console UART, USB host, eMMC and Ethernet functionality work fine.

[1] https://www.toradex.com/computer-on-modules/verdin-arm-family/nxp-imx-8m-plus

---

Changes in v2:
- Fix capitatlisation of verdin in comments as reported by Laurent.
- Add/modify todo comments as suggested by Laurent.
- Add Laurent's reviewed- and tested-by tags.

 arch/arm64/boot/dts/freescale/Makefile        |    4 + .../dts/freescale/imx8mp-verdin-dahlia.dtsi   |  129 ++ .../boot/dts/freescale/imx8mp-verdin-dev.dtsi |   44 + .../imx8mp-verdin-nonwifi-dahlia.dts          |   18 + .../freescale/imx8mp-verdin-nonwifi-dev.dts   |   18 + .../dts/freescale/imx8mp-verdin-nonwifi.dtsi  |   54 + .../freescale/imx8mp-verdin-wifi-dahlia.dts   |   18 + .../dts/freescale/imx8mp-verdin-wifi-dev.dts  |   18 + .../dts/freescale/imx8mp-verdin-wifi.dtsi     |   82 + .../boot/dts/freescale/imx8mp-verdin.dtsi     | 1373 +++++++++++++++++

 10 files changed, 1758 insertions(+)

 create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin-dahlia.dtsi create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin-dev.dtsi create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin-nonwifi-dahlia.dts create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin-nonwifi-dev.dts create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin-nonwifi.dtsi create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin-wifi-dahlia.dts create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin-wifi-dev.dts create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin-wifi.dtsi create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi

[snip]

Quoted 7 lines
arch/arm64/boot/dts/freescale/imx8mp- renamed from arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi +0 -0

verdin.dtsi
new file mode 100644
index 000000000000..8cad1d865720

arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi new file +0 -0
@@ -0,0 +1,1373 @@

[snip]

Quoted 5 lines
Quoted 3 lines

+/* Verdin I2C_2_DSI */
+&i2c2 {
+       clock-frequency = <10000>;

Did you really mean 10kHz here, not 100kHz ?

Yes, we really saw issues with certain displays/screens in the past. I mean, it's not like reading a few bytes off a DDC/EDID at such low-speed makes much of a difference time-wise. So we rather avoid issues. Anyway, could easily be overridden in a custom carrier board device tree should that I2C bus be used for something where speed might matter.

Quoted 6 lines
Quoted 3 lines

+       pinctrl-names = "default", "gpio";
+       pinctrl-0 = <&pinctrl_i2c2>;
+       pinctrl-1 = <&pinctrl_i2c2_gpio>;

Shouldn't you also specify scl-gpios and sda-gpios, like for the other I2C buses ?

Yes, working on the Verdin iMX8M Mini update patch set of late and comparing stuff I also just discovered that one yesterday. Will send a v3 shortly. Thanks!

Quoted 14 lines
Quoted 12 lines
arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi new file +12 -0
+
+       atmel_mxt_ts_mezzanine: touch-mezzanine@4a {
+               compatible = "atmel,maxtouch";
+               /* Verdin GPIO_3 (SODIMM 210) */
+               interrupt-parent = <&gpio1>;
+               interrupts = <5 IRQ_TYPE_EDGE_FALLING>;
+               reg = <0x4a>;
+               /* Verdin GPIO_2 (SODIMM 208) */
+               reset-gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
+               status = "disabled";
+       };
+};

[snip]

#6 lore raw

Re: [PATCH v2 3/3] arm64: dts: freescale: add initial support for verdin imx8m plus

Hi Marcel,

Quoted 76 lines · Marcel Ziswiler
Quoted 75 lines · Laurent Pinchart
Quoted 57 lines · Marcel Ziswiler

From: Marcel Ziswiler <[email protected]>

This patch adds the device tree to support Toradex Verdin iMX8M Plus [1] a computer on module which can be used on different carrier boards.

The module consists of an NXP i.MX 8M Plus family SoC (either i.MX 8M Plus Quad or 8M Plus QuadLite), a PCA9450C PMIC, a Gigabit Ethernet PHY, 1, 2, 4 or 8 GB of LPDDR4 RAM, an eMMC, a TLA2024 ADC, an I2C EEPROM, an RX8130 RTC, an optional I2C temperature sensor plus an optional Bluetooth/Wi-Fi module.

Anything that is not self-contained on the module is disabled by default.

The device tree for the Dahlia includes the module's device tree and enables the supported peripherals of the carrier board.

The device tree for the Verdin Development Board includes the module's device tree as well as the Dahlia one as it is a superset and supports almost all peripherals available.

So far there is no display functionality supported at all but basic console UART, USB host, eMMC and Ethernet functionality work fine.

[1] https://www.toradex.com/computer-on-modules/verdin-arm-family/nxp-imx-8m-plus

---

Changes in v2:
- Fix capitatlisation of verdin in comments as reported by Laurent.
- Add/modify todo comments as suggested by Laurent.
- Add Laurent's reviewed- and tested-by tags.

 arch/arm64/boot/dts/freescale/Makefile        |    4 + .../dts/freescale/imx8mp-verdin-dahlia.dtsi   |  129 ++ .../boot/dts/freescale/imx8mp-verdin-dev.dtsi |   44 + .../imx8mp-verdin-nonwifi-dahlia.dts          |   18 + .../freescale/imx8mp-verdin-nonwifi-dev.dts   |   18 + .../dts/freescale/imx8mp-verdin-nonwifi.dtsi  |   54 + .../freescale/imx8mp-verdin-wifi-dahlia.dts   |   18 + .../dts/freescale/imx8mp-verdin-wifi-dev.dts  |   18 + .../dts/freescale/imx8mp-verdin-wifi.dtsi     |   82 + .../boot/dts/freescale/imx8mp-verdin.dtsi     | 1373 +++++++++++++++++

 10 files changed, 1758 insertions(+)

 create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin-dahlia.dtsi create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin-dev.dtsi create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin-nonwifi-dahlia.dts create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin-nonwifi-dev.dts create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin-nonwifi.dtsi create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin-wifi-dahlia.dts create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin-wifi-dev.dts create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin-wifi.dtsi create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi

[snip]

Quoted 7 lines
arch/arm64/boot/dts/freescale/imx8mp- renamed from arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi +0 -0

verdin.dtsi
new file mode 100644
index 000000000000..8cad1d865720

arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi new file +0 -0
@@ -0,0 +1,1373 @@

[snip]

Quoted 3 lines

+/* Verdin I2C_2_DSI */
+&i2c2 {
+       clock-frequency = <10000>;

Quoted 6 lines
Quoted 1 line

Did you really mean 10kHz here, not 100kHz ?

Yes, we really saw issues with certain displays/screens in the past. I mean, it's not like reading a few bytes off a DDC/EDID at such low-speed makes much of a difference time-wise. So we rather avoid issues. Anyway, could easily be overridden in a custom carrier board device tree should that I2C bus be used for something where speed might matter.

Adding a comment to explain this issue may be useful.

Quoted 24 lines
Quoted 6 lines
Quoted 3 lines

+       pinctrl-names = "default", "gpio";
+       pinctrl-0 = <&pinctrl_i2c2>;
+       pinctrl-1 = <&pinctrl_i2c2_gpio>;

Shouldn't you also specify scl-gpios and sda-gpios, like for the other I2C buses ?

Yes, working on the Verdin iMX8M Mini update patch set of late and comparing stuff I also just discovered that one yesterday. Will send a v3 shortly. Thanks!

Quoted 14 lines
Quoted 12 lines
arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi new file +12 -0
+
+       atmel_mxt_ts_mezzanine: touch-mezzanine@4a {
+               compatible = "atmel,maxtouch";
+               /* Verdin GPIO_3 (SODIMM 210) */
+               interrupt-parent = <&gpio1>;
+               interrupts = <5 IRQ_TYPE_EDGE_FALLING>;
+               reg = <0x4a>;
+               /* Verdin GPIO_2 (SODIMM 208) */
+               reset-gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
+               status = "disabled";
+       };
+};

[snip]

Signature · 3 lines
Regards,

Laurent Pinchart