Skip to contentSkip to conversation

dt-bindings: arm: fsl: Add binding for Gateworks boards with IMX8MM

PATCH Superseded Tim Harvey 3 participants 11 messages Dec 23, 2020 – Dec 28, 2020

Subsystems (2)

v1 of 5 Superseded Latest is v5 →

lore
Share & tools
lore

Tim Harvey

author
#0 lore raw

PATCH 1/2 dt-bindings: arm: fsl: Add binding for Gateworks boards with IMX8MM

Add bindings for the Gateworks Venice Development kit boards with IMX8MM System on Module.

---
 Documentation/devicetree/bindings/arm/fsl.yaml | 3 +++
 1 file changed, 3 insertions(+)
Documentation/devicetree/bindings/arm/fsl.yaml +3 -0
index 1ca9dfa..705c6e8 100644
@@ -405,6 +405,9 @@ properties:
               - beacon,imx8mm-beacon-kit  # i.MX8MM Beacon Development Kit
               - fsl,imx8mm-ddr4-evk       # i.MX8MM DDR4 EVK Board
               - fsl,imx8mm-evk            # i.MX8MM EVK Board
+              - gw,imx8mm-gw71xx-0x       # i.MX8MM Gateworks Development Kit
+              - gw,imx8mm-gw72xx-0x       # i.MX8MM Gateworks Development Kit
+              - gw,imx8mm-gw73xx-0x       # i.MX8MM Gateworks Development Kit
               - variscite,var-som-mx8mm   # i.MX8MM Variscite VAR-SOM-MX8MM module
           - const: fsl,imx8mm
 
Signature · 7 lines
2.7.4


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

PATCH 2/2 arm64: dts: imx8mm: Add Gateworks IMX8MM Development Kits

The Gateworks Venice GW71xx-0x/GW72xx-0x/GW73xx-0x are development kits comprised of a GW700x SoM and a Baseboard.

The GW700x SoM contains:
- IMX8MM SoC
- LPDDR4 DRAM
- eMMC FLASH
- Gateworks System Controller (eeprom/pushbutton/reset/voltage-monitor)
- GbE PHY connected to the IMX8MM FEC
- Power Management IC

The GW71xx Baseboard contains:
- 1x MiniPCIe Socket with USB2.0, PCIe, and SIM
- 1x RJ45 GbE (IMX8MM FEC)
- PCIe Clock generator
- GPS and accelerometer
- 1x USB 2.0 Front Panel connector
- wide range power supply

The GW72xx Baseboard contains:
- 2x MiniPCIe Socket with USB2.0, PCIe, and SIM
- 2x RJ45 GbE (IMX8MM FEC and LAN743x)
- 1x MicroSD connector
- 1x USB 2.0 Front Panel connector
- 1x SPI connector
- PCIe Clock generator
- GPS and accelerometer
- Media Expansion connector (MIPI-CSI/MIPI-DSI/GPIO/I2S)
- wide range power supply

The GW73xx Baseboard contains:
- 3x MiniPCIe Socket with USB2.0, PCIe, and SIM
- 2x RJ45 GbE (IMX8MM FEC and LAN743x)
- 1x MicroSD connector
- 1x USB 2.0 Front Panel connector
- 1x SPI connector
- WiFi/BT
- PCIe Clock generator
- GPS and accelerometer
- Media Expansion connector (MIPI-CSI/MIPI-DSI/GPIO/I2S)
- wide range power supply

---
 arch/arm64/boot/dts/freescale/Makefile             |   3 +
 .../boot/dts/freescale/imx8mm-venice-gw700x.dtsi   | 482 +++++++++++++++++++++
 .../boot/dts/freescale/imx8mm-venice-gw71xx-0x.dts |  19 +
 .../boot/dts/freescale/imx8mm-venice-gw71xx.dtsi   | 186 ++++++++
 .../boot/dts/freescale/imx8mm-venice-gw72xx-0x.dts |  20 +
 .../boot/dts/freescale/imx8mm-venice-gw72xx.dtsi   | 311 +++++++++++++
 .../boot/dts/freescale/imx8mm-venice-gw73xx-0x.dts |  19 +
 .../boot/dts/freescale/imx8mm-venice-gw73xx.dtsi   | 363 ++++++++++++++++
 8 files changed, 1403 insertions(+)
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx-0x.dts
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-venice-gw72xx-0x.dts
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-venice-gw72xx.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-venice-gw73xx-0x.dts
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-venice-gw73xx.dtsi
arch/arm64/boot/dts/freescale/Makefile +3 -0
index f8d5943..ecdd233 100644
@@ -32,6 +32,9 @@ dtb-$(CONFIG_ARCH_MXC) += imx8mm-beacon-kit.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mm-evk.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mm-ddr4-evk.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mm-var-som-symphony.dtb
+dtb-$(CONFIG_ARCH_MXC) += imx8mm-venice-gw71xx-0x.dtb
+dtb-$(CONFIG_ARCH_MXC) += imx8mm-venice-gw72xx-0x.dtb
+dtb-$(CONFIG_ARCH_MXC) += imx8mm-venice-gw73xx-0x.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mn-evk.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mn-ddr4-evk.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mn-var-som-symphony.dtb
arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi new file +482 -0

482 lines not on this page · raw message

arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx-0x.dts new file +19 -0
new file mode 100644
index 00000000..3f88c4a
@@ -0,0 +1,19 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright 2020 Gateworks Corporation
+ */
+
+/dts-v1/;
+
+#include "imx8mm.dtsi"
+#include "imx8mm-venice-gw700x.dtsi"
+#include "imx8mm-venice-gw71xx.dtsi"
+
+/ {
+	model = "Gateworks Venice GW71xx-0x i.MX8MM Development Kit";
+	compatible = "gw,imx8mm-gw71xx-0x", "fsl,imx8mm";
+
+	chosen {
+		stdout-path = &uart2;
+	};
+};
arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi new file +186 -0

186 lines not on this page · raw message

arch/arm64/boot/dts/freescale/imx8mm-venice-gw72xx-0x.dts new file +20 -0
new file mode 100644
index 00000000..b1e7540
@@ -0,0 +1,20 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright 2020 Gateworks Corporation
+ */
+
+/dts-v1/;
+
+#include "imx8mm.dtsi"
+#include "imx8mm-venice-gw700x.dtsi"
+#include "imx8mm-venice-gw72xx.dtsi"
+
+/ {
+	model = "Gateworks Venice GW72xx-0x i.MX8MM Development Kit";
+	compatible = "gw,imx8mm-gw72xx-0x", "fsl,imx8mm";
+
+	chosen {
+		stdout-path = &uart2;
+	};
+};
+
arch/arm64/boot/dts/freescale/imx8mm-venice-gw72xx.dtsi new file +311 -0

311 lines not on this page · raw message

arch/arm64/boot/dts/freescale/imx8mm-venice-gw73xx-0x.dts new file +19 -0
new file mode 100644
index 00000000..6905437
@@ -0,0 +1,19 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright 2020 Gateworks Corporation
+ */
+
+/dts-v1/;
+
+#include "imx8mm.dtsi"
+#include "imx8mm-venice-gw700x.dtsi"
+#include "imx8mm-venice-gw73xx.dtsi"
+
+/ {
+	model = "Gateworks Venice GW73xx-0x i.MX8MM Development Kit";
+	compatible = "gw,imx8mm-gw73xx-0x", "fsl,imx8mm";
+
+	chosen {
+		stdout-path = &uart2;
+	};
+};
arch/arm64/boot/dts/freescale/imx8mm-venice-gw73xx.dtsi new file +363 -0

363 lines not on this page · raw message

Signature · 7 lines
2.7.4


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#9 lore raw
In reply to Tim Harvey
Quoted 13 lines · Tim Harvey

Add bindings for the Gateworks Venice Development kit boards with IMX8MM System on Module.

---
 Documentation/devicetree/bindings/arm/fsl.yaml | 3 +++
 1 file changed, 3 insertions(+)
Documentation/devicetree/bindings/arm/fsl.yaml +0 -0
index 1ca9dfa..705c6e8 100644

Documentation/devicetree/bindings/arm/fsl.yaml properties: · line 410

Quoted 6 lines
Documentation/devicetree/bindings/arm/fsl.yaml +3 -0
@@ -405,6 +405,9 @@ properties:
               - beacon,imx8mm-beacon-kit  # i.MX8MM Beacon Development Kit
               - fsl,imx8mm-ddr4-evk       # i.MX8MM DDR4 EVK Board
               - fsl,imx8mm-evk            # i.MX8MM EVK Board
+              - gw,imx8mm-gw71xx-0x       # i.MX8MM Gateworks Development Kit
+              - gw,imx8mm-gw72xx-0x       # i.MX8MM Gateworks Development Kit
+              - gw,imx8mm-gw73xx-0x       # i.MX8MM Gateworks Development Kit

I think you should skip the wildcards in compatible and choose one specific compatible. What if at some point you would like to add gw,imx8mm-gw7113-0x?

Best regards,
Krzysztof

Quoted 6 lines
Documentation/devicetree/bindings/arm/fsl.yaml +0 -0
               - variscite,var-som-mx8mm   # i.MX8MM Variscite VAR-SOM-MX8MM module
           - const: fsl,imx8mm
 
Signature · 1 line
2.7.4
#2 lore raw

Re: [PATCH 2/2] arm64: dts: imx8mm: Add Gateworks IMX8MM Development Kits

In reply to Tim Harvey
Quoted 5 lines · Tim Harvey

The Gateworks Venice GW71xx-0x/GW72xx-0x/GW73xx-0x are development kits comprised of a GW700x SoM and a Baseboard.

The GW700x SoM contains:
- IMX8MM SoC

It's i.MX 8M Mini.
https://www.nxp.com/products/processors-and-microcontrollers/arm-processors/i-mx-applications-processors/i-mx-8-processors/i-mx-8m-mini-arm-cortex-a53-cortex-m4-audio-voice-video:i.MX8MMINI

Quoted 101 lines

- LPDDR4 DRAM
- eMMC FLASH
- Gateworks System Controller (eeprom/pushbutton/reset/voltage-monitor)
- GbE PHY connected to the IMX8MM FEC
- Power Management IC

The GW71xx Baseboard contains:
- 1x MiniPCIe Socket with USB2.0, PCIe, and SIM
- 1x RJ45 GbE (IMX8MM FEC)
- PCIe Clock generator
- GPS and accelerometer
- 1x USB 2.0 Front Panel connector
- wide range power supply

The GW72xx Baseboard contains:
- 2x MiniPCIe Socket with USB2.0, PCIe, and SIM
- 2x RJ45 GbE (IMX8MM FEC and LAN743x)
- 1x MicroSD connector
- 1x USB 2.0 Front Panel connector
- 1x SPI connector
- PCIe Clock generator
- GPS and accelerometer
- Media Expansion connector (MIPI-CSI/MIPI-DSI/GPIO/I2S)
- wide range power supply

The GW73xx Baseboard contains:
- 3x MiniPCIe Socket with USB2.0, PCIe, and SIM
- 2x RJ45 GbE (IMX8MM FEC and LAN743x)
- 1x MicroSD connector
- 1x USB 2.0 Front Panel connector
- 1x SPI connector
- WiFi/BT
- PCIe Clock generator
- GPS and accelerometer
- Media Expansion connector (MIPI-CSI/MIPI-DSI/GPIO/I2S)
- wide range power supply

---
 arch/arm64/boot/dts/freescale/Makefile             |   3 +
 .../boot/dts/freescale/imx8mm-venice-gw700x.dtsi   | 482 +++++++++++++++++++++
 .../boot/dts/freescale/imx8mm-venice-gw71xx-0x.dts |  19 +
 .../boot/dts/freescale/imx8mm-venice-gw71xx.dtsi   | 186 ++++++++
 .../boot/dts/freescale/imx8mm-venice-gw72xx-0x.dts |  20 +
 .../boot/dts/freescale/imx8mm-venice-gw72xx.dtsi   | 311 +++++++++++++
 .../boot/dts/freescale/imx8mm-venice-gw73xx-0x.dts |  19 +
 .../boot/dts/freescale/imx8mm-venice-gw73xx.dtsi   | 363 ++++++++++++++++
 8 files changed, 1403 insertions(+)
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx-0x.dts
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-venice-gw72xx-0x.dts
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-venice-gw72xx.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-venice-gw73xx-0x.dts
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-venice-gw73xx.dtsi
arch/arm64/boot/dts/freescale/Makefile +3 -0
index f8d5943..ecdd233 100644
@@ -32,6 +32,9 @@ dtb-$(CONFIG_ARCH_MXC) += imx8mm-beacon-kit.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mm-evk.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mm-ddr4-evk.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mm-var-som-symphony.dtb
+dtb-$(CONFIG_ARCH_MXC) += imx8mm-venice-gw71xx-0x.dtb
+dtb-$(CONFIG_ARCH_MXC) += imx8mm-venice-gw72xx-0x.dtb
+dtb-$(CONFIG_ARCH_MXC) += imx8mm-venice-gw73xx-0x.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mn-evk.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mn-ddr4-evk.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mn-var-som-symphony.dtb
arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi new file +25 -0
new file mode 100644
index 00000000..7e1b96b
@@ -0,0 +1,482 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright 2020 Gateworks Corporation
+ */
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/linux-event-codes.h>
+#include <dt-bindings/net/ti-dp83867.h>
+
+/ {
+	memory@40000000 {
+		device_type = "memory";
+		reg = <0x0 0x40000000 0 0x80000000>;
+	};
+
+	gpio_keys {
+		compatible = "gpio-keys";
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		user_pb {
+			label = "user_pb";
+			gpios = <&gsc_gpio 2 GPIO_ACTIVE_LOW>;
+			linux,code = <BTN_0>;
+		};

arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi line 35

Quoted 10 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi new file +10 -0
+
+		user_pb1x {
+			label = "user_pb1x";
+			linux,code = <BTN_1>;
+			interrupt-parent = <&gsc>;
+			interrupts = <0>;
+		};
+
+		key_erased {
+			label = "key-erased";

Above you use underscore, here hyphen. Make it consistent.

Quoted 81 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi new file +81 -0
+			linux,code = <BTN_2>;
+			interrupt-parent = <&gsc>;
+			interrupts = <1>;
+		};
+
+		eeprom_wp {
+			label = "eeprom_wp";
+			linux,code = <BTN_3>;
+			interrupt-parent = <&gsc>;
+			interrupts = <2>;
+		};
+
+		tamper {
+			label = "tamper";
+			linux,code = <BTN_4>;
+			interrupt-parent = <&gsc>;
+			interrupts = <5>;
+		};
+
+		switch_hold {
+			label = "switch_hold";
+			linux,code = <BTN_5>;
+			interrupt-parent = <&gsc>;
+			interrupts = <7>;
+		};
+	};
+};
+
+&A53_0 {
+	cpu-supply = <&buck3_reg>;
+};
+
+&A53_1 {
+	cpu-supply = <&buck3_reg>;
+};
+
+&A53_2 {
+	cpu-supply = <&buck3_reg>;
+};
+
+&A53_3 {
+	cpu-supply = <&buck3_reg>;
+};
+
+&ddrc {
+	operating-points-v2 = <&ddrc_opp_table>;
+
+	ddrc_opp_table: opp-table {
+		compatible = "operating-points-v2";
+
+		opp-25M {
+			opp-hz = /bits/ 64 <25000000>;
+		};
+
+		opp-100M {
+			opp-hz = /bits/ 64 <100000000>;
+		};
+
+		opp-750M {
+			opp-hz = /bits/ 64 <750000000>;
+		};
+	};
+};
+
+&fec1 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_fec1>;
+	phy-mode = "rgmii-id";
+	phy-handle = <&ethphy0>;
+	status = "okay";
+
+	mdio {
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		ethphy0: ethernet-phy@0 {
+			compatible = "ethernet-phy-ieee802.3-c22";
+			reg = <0>;
+			ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
+			ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
+		};

arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi line 126

Quoted 10 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi new file +10 -0
+	};
+};
+
+&i2c1 {
+	clock-frequency = <100000>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_i2c1>;
+	status = "okay";
+
+	gsc: gsc@20 {

Node name should describe class of a device so maybe "system-controller"?

arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi line 131

Quoted 5 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi new file +5 -0
+		compatible = "gw,gsc";
+		reg = <0x20>;
+		pinctrl-0 = <&pinctrl_gsc>;
+		interrupt-parent = <&gpio2>;
+		interrupts = <6 GPIO_ACTIVE_LOW>;

Wrong flag.

arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi line 137

Quoted 6 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi new file +6 -0
+		interrupt-controller;
+		#interrupt-cells = <1>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		adc {

Just to be sure - did you build it with W=1 to find any dtc warnings?

Quoted 88 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi new file +88 -0
+			compatible = "gw,gsc-adc";
+			#address-cells = <1>;
+			#size-cells = <0>;
+
+			channel@6 {
+				gw,mode = <0>;
+				reg = <0x06>;
+				label = "temp";
+			};
+
+			channel@8 {
+				gw,mode = <1>;
+				reg = <0x08>;
+				label = "vdd_bat";
+			};
+
+			channel@16 {
+				gw,mode = <4>;
+				reg = <0x16>;
+				label = "fan_tach";
+			};
+
+			channel@82 {
+				gw,mode = <2>;
+				reg = <0x82>;
+				label = "vdd_vin";
+				gw,voltage-divider-ohms = <22100 1000>;
+			};
+
+			channel@84 {
+				gw,mode = <2>;
+				reg = <0x84>;
+				label = "vdd_adc1";
+				gw,voltage-divider-ohms = <10000 10000>;
+			};
+
+			channel@86 {
+				gw,mode = <2>;
+				reg = <0x86>;
+				label = "vdd_adc2";
+				gw,voltage-divider-ohms = <10000 10000>;
+			};
+
+			channel@88 {
+				gw,mode = <2>;
+				reg = <0x88>;
+				label = "vdd_dram";
+			};
+
+			channel@8c {
+				gw,mode = <2>;
+				reg = <0x8c>;
+				label = "vdd_1p2";
+			};
+
+			channel@8e {
+				gw,mode = <2>;
+				reg = <0x8e>;
+				label = "vdd_1p0";
+			};
+
+			channel@90 {
+				gw,mode = <2>;
+				reg = <0x90>;
+				label = "vdd_2p5";
+				gw,voltage-divider-ohms = <10000 10000>;
+			};
+
+			channel@92 {
+				gw,mode = <2>;
+				reg = <0x92>;
+				label = "vdd_3p3";
+				gw,voltage-divider-ohms = <10000 10000>;
+			};
+
+			channel@98 {
+				gw,mode = <2>;
+				reg = <0x98>;
+				label = "vdd_0p95";
+			};
+
+			channel@9a {
+				gw,mode = <2>;
+				reg = <0x9a>;
+				label = "vdd_1p8";
+			};
+
+			channel@a2 {

arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi line 235

Quoted 10 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi new file +10 -0
+				gw,mode = <2>;
+				reg = <0xa2>;
+				label = "vdd_gsc";
+				gw,voltage-divider-ohms = <10000 10000>;
+			};
+		};
+
+		fan-controller@0 {
+			#address-cells = <1>;
+			#size-cells = <0>;

These do not seem needed.

arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi line 241

Quoted 6 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi new file +6 -0
+			compatible = "gw,gsc-fan";
+			reg = <0x0a>;
+		};
+	};
+
+	gsc_gpio: pca9555@23 {

Lookes like gpio-controller, so "gpio". Please run make dtbs_check to be sure your board validate against dt-schema.

Quoted 151 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi new file +151 -0
+		compatible = "nxp,pca9555";
+		reg = <0x23>;
+		gpio-controller;
+		#gpio-cells = <2>;
+		interrupt-parent = <&gsc>;
+		interrupts = <4>;
+	};
+
+	eeprom@50 {
+		compatible = "atmel,24c02";
+		reg = <0x50>;
+		pagesize = <16>;
+	};
+
+	eeprom@51 {
+		compatible = "atmel,24c02";
+		reg = <0x51>;
+		pagesize = <16>;
+	};
+
+	eeprom@52 {
+		compatible = "atmel,24c32";
+		reg = <0x52>;
+		pagesize = <32>;
+	};
+
+	eeprom@53 {
+		compatible = "atmel,24c32";
+		reg = <0x53>;
+		pagesize = <32>;
+	};
+
+	pmic@69 {
+		compatible = "mps,mp5416";
+		reg = <0x69>;
+
+		regulators {
+			buck1 {
+				regulator-name = "vdd_0p95";
+				regulator-min-microvolt = <805000>;
+				regulator-max-microvolt = <1000000>;
+				regulator-max-microamp = <2500000>;
+				regulator-boot-on;
+			};
+
+			buck2 {
+				regulator-name = "vdd_soc";
+				regulator-min-microvolt = <805000>;
+				regulator-max-microvolt = <900000>;
+				regulator-max-microamp = <1000000>;
+				regulator-boot-on;
+			};
+
+			buck3_reg: buck3 {
+				regulator-name = "vdd_arm";
+				regulator-min-microvolt = <805000>;
+				regulator-max-microvolt = <1000000>;
+				regulator-max-microamp = <2200000>;
+				regulator-boot-on;
+			};
+
+			buck4 {
+				regulator-name = "vdd_1p8";
+				regulator-min-microvolt = <1800000>;
+				regulator-max-microvolt = <1800000>;
+				regulator-max-microamp = <500000>;
+				regulator-boot-on;
+			};
+
+			ldo1 {
+				regulator-name = "nvcc_snvs_1p8";
+				regulator-min-microvolt = <1800000>;
+				regulator-max-microvolt = <1800000>;
+				regulator-max-microamp = <300000>;
+				regulator-boot-on;
+			};
+
+			ldo2 {
+				regulator-name = "vdd_snvs_0p8";
+				regulator-min-microvolt = <800000>;
+				regulator-max-microvolt = <800000>;
+				regulator-boot-on;
+			};
+
+			ldo3 {
+				regulator-name = "vdd_0p95";
+				regulator-min-microvolt = <800000>;
+				regulator-max-microvolt = <800000>;
+				regulator-boot-on;
+			};
+
+			ldo4 {
+				regulator-name = "vdd_1p8";
+				regulator-min-microvolt = <1800000>;
+				regulator-max-microvolt = <1800000>;
+				regulator-boot-on;
+			};
+		};
+	};
+};
+
+&i2c2 {
+	clock-frequency = <400000>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_i2c2>;
+	status = "okay";
+
+	eeprom@52 {
+		compatible = "atmel,24c32";
+		reg = <0x52>;
+		pagesize = <32>;
+	};
+};
+
+&uart2 { /* console */
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_uart2>;
+	status = "okay";
+};
+
+&usdhc3 { /* eMMC */
+	assigned-clocks = <&clk IMX8MM_CLK_USDHC3_ROOT>;
+	assigned-clock-rates = <400000000>;
+	pinctrl-names = "default", "state_100mhz", "state_200mhz";
+	pinctrl-0 = <&pinctrl_usdhc3>;
+	pinctrl-1 = <&pinctrl_usdhc3_100mhz>;
+	pinctrl-2 = <&pinctrl_usdhc3_200mhz>;
+	bus-width = <8>;
+	non-removable;
+	status = "okay";
+};
+
+&wdog1 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_wdog>;
+	fsl,ext-reset-output;
+	status = "okay";
+};
+
+&iomuxc {
+	pinctrl_fec1: fec1grp {
+		fsl,pins = <
+			MX8MM_IOMUXC_ENET_MDC_ENET1_MDC			0x3
+			MX8MM_IOMUXC_ENET_MDIO_ENET1_MDIO		0x3
+			MX8MM_IOMUXC_ENET_TD3_ENET1_RGMII_TD3		0x1f
+			MX8MM_IOMUXC_ENET_TD2_ENET1_RGMII_TD2		0x1f
+			MX8MM_IOMUXC_ENET_TD1_ENET1_RGMII_TD1		0x1f
+			MX8MM_IOMUXC_ENET_TD0_ENET1_RGMII_TD0		0x1f
+			MX8MM_IOMUXC_ENET_RD3_ENET1_RGMII_RD3		0x91
+			MX8MM_IOMUXC_ENET_RD2_ENET1_RGMII_RD2		0x91
+			MX8MM_IOMUXC_ENET_RD1_ENET1_RGMII_RD1		0x91

arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi line 402

Quoted 10 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi new file +10 -0
+			MX8MM_IOMUXC_ENET_RD0_ENET1_RGMII_RD0		0x91
+			MX8MM_IOMUXC_ENET_TXC_ENET1_RGMII_TXC		0x1f
+			MX8MM_IOMUXC_ENET_RXC_ENET1_RGMII_RXC		0x91
+			MX8MM_IOMUXC_ENET_RX_CTL_ENET1_RGMII_RX_CTL	0x91
+			MX8MM_IOMUXC_ENET_TX_CTL_ENET1_RGMII_TX_CTL	0x1f
+			MX8MM_IOMUXC_NAND_ALE_GPIO3_IO0			0x19
+		>;
+	};
+
+	pinctrl_gsc: gscirq {

grp suffix. I think dtbs_check should point this out.

Quoted 33 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi new file +33 -0
+		fsl,pins = <
+			MX8MM_IOMUXC_SD1_DATA4_GPIO2_IO6	0x159
+		>;
+	};
+
+	pinctrl_i2c1: i2c1grp {
+		fsl,pins = <
+			MX8MM_IOMUXC_I2C1_SCL_I2C1_SCL		0x400001c3
+			MX8MM_IOMUXC_I2C1_SDA_I2C1_SDA		0x400001c3
+		>;
+	};
+
+	pinctrl_i2c2: i2c2grp {
+		fsl,pins = <
+			MX8MM_IOMUXC_I2C2_SCL_I2C2_SCL		0x400001c3
+			MX8MM_IOMUXC_I2C2_SDA_I2C2_SDA		0x400001c3
+		>;
+	};
+
+	pinctrl_uart2: uart2grp {
+		fsl,pins = <
+			MX8MM_IOMUXC_UART2_RXD_UART2_DCE_RX	0x140
+			MX8MM_IOMUXC_UART2_TXD_UART2_DCE_TX	0x140
+		>;
+	};
+
+	pinctrl_usdhc3: usdhc3grp {
+		fsl,pins = <
+			MX8MM_IOMUXC_NAND_WE_B_USDHC3_CLK	0x190
+			MX8MM_IOMUXC_NAND_WP_B_USDHC3_CMD	0x1d0
+			MX8MM_IOMUXC_NAND_DATA04_USDHC3_DATA0	0x1d0
+			MX8MM_IOMUXC_NAND_DATA05_USDHC3_DATA1	0x1d0
+			MX8MM_IOMUXC_NAND_DATA06_USDHC3_DATA2	0x1d0

arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi line 445

Quoted 10 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi new file +10 -0
+			MX8MM_IOMUXC_NAND_DATA07_USDHC3_DATA3	0x1d0
+			MX8MM_IOMUXC_NAND_RE_B_USDHC3_DATA4	0x1d0
+			MX8MM_IOMUXC_NAND_CE2_B_USDHC3_DATA5	0x1d0
+			MX8MM_IOMUXC_NAND_CE3_B_USDHC3_DATA6	0x1d0
+			MX8MM_IOMUXC_NAND_CLE_USDHC3_DATA7	0x1d0
+			MX8MM_IOMUXC_NAND_CE1_B_USDHC3_STROBE	0x190
+		>;
+	};
+
+	pinctrl_usdhc3_100mhz: usdhc3grp100mhz {

Ditto

Quoted 6 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi new file +6 -0
+		fsl,pins = <
+			MX8MM_IOMUXC_NAND_WE_B_USDHC3_CLK	0x194
+			MX8MM_IOMUXC_NAND_WP_B_USDHC3_CMD	0x1d4
+			MX8MM_IOMUXC_NAND_DATA04_USDHC3_DATA0	0x1d4
+			MX8MM_IOMUXC_NAND_DATA05_USDHC3_DATA1	0x1d4
+			MX8MM_IOMUXC_NAND_DATA06_USDHC3_DATA2	0x1d4

arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi line 461

Quoted 10 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi new file +10 -0
+			MX8MM_IOMUXC_NAND_DATA07_USDHC3_DATA3	0x1d4
+			MX8MM_IOMUXC_NAND_RE_B_USDHC3_DATA4	0x1d4
+			MX8MM_IOMUXC_NAND_CE2_B_USDHC3_DATA5	0x1d4
+			MX8MM_IOMUXC_NAND_CE3_B_USDHC3_DATA6	0x1d4
+			MX8MM_IOMUXC_NAND_CLE_USDHC3_DATA7	0x1d4
+			MX8MM_IOMUXC_NAND_CE1_B_USDHC3_STROBE	0x194
+		>;
+	};
+
+	pinctrl_usdhc3_200mhz: usdhc3grp200mhz {

Ditto

arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi

Quoted 51 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi new file +21 -0
+		fsl,pins = <
+			MX8MM_IOMUXC_NAND_WE_B_USDHC3_CLK	0x196
+			MX8MM_IOMUXC_NAND_WP_B_USDHC3_CMD	0x1d6
+			MX8MM_IOMUXC_NAND_DATA04_USDHC3_DATA0	0x1d6
+			MX8MM_IOMUXC_NAND_DATA05_USDHC3_DATA1	0x1d6
+			MX8MM_IOMUXC_NAND_DATA06_USDHC3_DATA2	0x1d6
+			MX8MM_IOMUXC_NAND_DATA07_USDHC3_DATA3	0x1d6
+			MX8MM_IOMUXC_NAND_RE_B_USDHC3_DATA4	0x1d6
+			MX8MM_IOMUXC_NAND_CE2_B_USDHC3_DATA5	0x1d6
+			MX8MM_IOMUXC_NAND_CE3_B_USDHC3_DATA6	0x1d6
+			MX8MM_IOMUXC_NAND_CLE_USDHC3_DATA7	0x1d6
+			MX8MM_IOMUXC_NAND_CE1_B_USDHC3_STROBE	0x196
+		>;
+	};
+
+	pinctrl_wdog: wdoggrp {
+		fsl,pins = <
+			MX8MM_IOMUXC_GPIO1_IO02_WDOG1_WDOG_B	0xc6
+		>;
+	};
+};
arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx-0x.dts new file +19 -0
new file mode 100644
index 00000000..3f88c4a
@@ -0,0 +1,19 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright 2020 Gateworks Corporation
+ */
+
+/dts-v1/;
+
+#include "imx8mm.dtsi"
+#include "imx8mm-venice-gw700x.dtsi"
+#include "imx8mm-venice-gw71xx.dtsi"
+
+/ {
+	model = "Gateworks Venice GW71xx-0x i.MX8MM Development Kit";
+	compatible = "gw,imx8mm-gw71xx-0x", "fsl,imx8mm";
+
+	chosen {
+		stdout-path = &uart2;
+	};
+};
arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi new file +0 -0
new file mode 100644
index 00000000..a4eeb0d

This file is included only once, so it should be directly inside imx8mm-venice-gw71xx-0x.dts. Do not create empty DTS just to include DTSI and nothing more. It's really over-complicating simple hierarchy.

arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi line 12

Quoted 13 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi new file +12 -0
@@ -0,0 +1,186 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright 2020 Gateworks Corporation
+ */
+
+/ {
+	aliases {
+		usb0 = &usbotg1;
+		usb1 = &usbotg2;
+	};
+
+	leds {

led-controller

arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi line 17

Quoted 5 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi new file +5 -0
+		compatible = "gpio-leds";
+		pinctrl-names = "default";
+		pinctrl-0 = <&pinctrl_gpio_leds>;
+
+		user1 { /* GRN */

led-0

arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi line 18

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi new file +1 -0
+			label = "user1";

label is now deprecated. See the common bindings.

arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi line 24

Quoted 6 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi new file +6 -0
+			gpios = <&gpio5 5 GPIO_ACTIVE_HIGH>;
+			default-state = "on";
+			linux,default-trigger = "heartbeat";
+		};
+
+		user2 { /* RED */

led-1

Quoted 30 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi new file +30 -0
+			label = "user2";
+			gpios = <&gpio5 4 GPIO_ACTIVE_HIGH>;
+			default-state = "off";
+		};
+	};
+
+	pps {
+		compatible = "pps-gpio";
+		pinctrl-names = "default";
+		pinctrl-0 = <&pinctrl_pps>;
+		gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
+		status = "okay";
+	};
+
+	reg_usb_otg1_vbus: regulator-usb-otg1 {
+		pinctrl-names = "default";
+		pinctrl-0 = <&pinctrl_reg_usb1_en>;
+		compatible = "regulator-fixed";
+		regulator-name = "usb_otg1_vbus";
+		gpio = <&gpio1 12 GPIO_ACTIVE_HIGH>;
+		enable-active-high;
+		regulator-min-microvolt = <5000000>;
+		regulator-max-microvolt = <5000000>;
+	};
+};
+
+&ecspi2 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_spi2>;
+	cs-gpios = <&gpio5 13 GPIO_ACTIVE_HIGH>;

arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi line 64

Quoted 10 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi new file +10 -0
+	status = "okay";
+};
+
+&i2c2 {
+	clock-frequency = <400000>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_i2c2>;
+	status = "okay";
+
+	accel@19 {

accelerometer

Quoted 57 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi new file +57 -0
+		pinctrl-names = "default";
+		pinctrl-0 = <&pinctrl_accel>;
+		compatible = "st,lis2de12";
+		reg = <0x19>;
+		st,drdy-int-pin = <1>;
+		interrupt-parent = <&gpio4>;
+		interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
+		interrupt-names = "INT1";
+	};
+};
+
+&i2c3 {
+	clock-frequency = <400000>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_i2c3>;
+	status = "okay";
+};
+
+&sai3 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_sai3>;
+	assigned-clocks = <&clk IMX8MM_CLK_SAI3>;
+	assigned-clock-parents = <&clk IMX8MM_AUDIO_PLL1_OUT>;
+	assigned-clock-rates = <24576000>;
+	status = "okay";
+};
+
+&uart1 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_uart1>;
+	status = "okay";
+};
+
+&uart3 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_uart3>;
+	status = "okay";
+};
+
+&usbotg1 {
+	dr_mode = "otg";
+	vbus-supply = <&reg_usb_otg1_vbus>;
+	status = "okay";
+};
+
+&usbotg2 {
+	dr_mode = "host";
+	status = "okay";
+};
+
+&iomuxc {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_hog>;
+
+	pinctrl_hog: hoggrp {
+		fsl,pins = <
+			MX8MM_IOMUXC_SPDIF_TX_GPIO5_IO3		0x40000041 /* PLUG_TEST */

arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi line 131

Quoted 10 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi new file +10 -0
+			MX8MM_IOMUXC_GPIO1_IO06_GPIO1_IO6	0x40000041 /* PCI_USBSEL */
+			MX8MM_IOMUXC_SAI1_RXD5_GPIO4_IO7	0x40000041 /* PCIE_WDIS# */
+			MX8MM_IOMUXC_GPIO1_IO07_GPIO1_IO7	0x40000041 /* DIO0 */
+			MX8MM_IOMUXC_GPIO1_IO09_GPIO1_IO9	0x40000041 /* DIO1 */
+			MX8MM_IOMUXC_SAI1_RXD1_GPIO4_IO3	0x40000041 /* DIO2 */
+			MX8MM_IOMUXC_SAI1_RXD2_GPIO4_IO4	0x40000041 /* DIO2 */
+		>;
+	};
+
+	pinctrl_accel: accelirq {

Same comments as before.

Quoted 61 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi new file +55 -0
+		fsl,pins = <
+			MX8MM_IOMUXC_SAI1_RXD3_GPIO4_IO5	0x159
+		>;
+	};
+
+	pinctrl_gpio_leds: gpioledgrp {
+		fsl,pins = <
+			MX8MM_IOMUXC_SPDIF_EXT_CLK_GPIO5_IO5	0x19
+			MX8MM_IOMUXC_SPDIF_RX_GPIO5_IO4		0x19
+		>;
+	};
+
+	pinctrl_i2c3: i2c3grp {
+		fsl,pins = <
+			MX8MM_IOMUXC_I2C3_SCL_I2C3_SCL		0x400001c3
+			MX8MM_IOMUXC_I2C3_SDA_I2C3_SDA		0x400001c3
+		>;
+	};
+
+	pinctrl_pps: ppsgrp {
+		fsl,pins = <
+			MX8MM_IOMUXC_GPIO1_IO15_GPIO1_IO15	0x41
+		>;
+	};
+
+	pinctrl_reg_usb1_en: regusb1grp {
+		fsl,pins = <
+			MX8MM_IOMUXC_GPIO1_IO12_GPIO1_IO12	0x41
+			MX8MM_IOMUXC_GPIO1_IO13_USB1_OTG_OC	0x41
+		>;
+	};
+
+	pinctrl_spi2: spi2grp {
+		fsl,pins = <
+			MX8MM_IOMUXC_ECSPI2_SCLK_ECSPI2_SCLK	0xd6
+			MX8MM_IOMUXC_ECSPI2_MOSI_ECSPI2_MOSI	0xd6
+			MX8MM_IOMUXC_ECSPI2_SCLK_ECSPI2_SCLK	0xd6
+			MX8MM_IOMUXC_ECSPI2_SS0_GPIO5_IO13	0xd6
+		>;
+	};
+
+	pinctrl_uart1: uart1grp {
+		fsl,pins = <
+			MX8MM_IOMUXC_UART1_RXD_UART1_DCE_RX	0x140
+			MX8MM_IOMUXC_UART1_TXD_UART1_DCE_TX	0x140
+		>;
+	};
+
+	pinctrl_uart3: uart3grp {
+		fsl,pins = <
+			MX8MM_IOMUXC_UART3_RXD_UART3_DCE_RX	0x140
+			MX8MM_IOMUXC_UART3_TXD_UART3_DCE_TX	0x140
+		>;
+	};
+};
arch/arm64/boot/dts/freescale/imx8mm-venice-gw72xx-0x.dts new file +0 -0
new file mode 100644
index 00000000..b1e7540

arch/arm64/boot/dts/freescale/imx8mm-venice-gw72xx-0x.dts line 10

Quoted 10 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw72xx-0x.dts new file +10 -0
@@ -0,0 +1,20 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright 2020 Gateworks Corporation
+ */
+
+/dts-v1/;
+
+#include "imx8mm.dtsi"
+#include "imx8mm-venice-gw700x.dtsi"
+#include "imx8mm-venice-gw72xx.dtsi"

The same - empty DTS just to include DTSI. Don't multiply files. This is development kit, carrier board, so entire contents of imx8mm-venice-gw72xx.dtsi is *here*.

Quoted 18 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw72xx-0x.dts new file +10 -0
+
+/ {
+	model = "Gateworks Venice GW72xx-0x i.MX8MM Development Kit";
+	compatible = "gw,imx8mm-gw72xx-0x", "fsl,imx8mm";
+
+	chosen {
+		stdout-path = &uart2;
+	};
+};
+
arch/arm64/boot/dts/freescale/imx8mm-venice-gw72xx.dtsi new file +2 -0
new file mode 100644
index 00000000..3fb0213
@@ -0,0 +1,311 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*

arch/arm64/boot/dts/freescale/imx8mm-venice-gw72xx.dtsi line 12

Quoted 10 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw72xx.dtsi new file +10 -0
+ * Copyright 2020 Gateworks Corporation
+ */
+
+/ {
+	aliases {
+		usb0 = &usbotg1;
+		usb1 = &usbotg2;
+	};
+
+	leds {

It seems my comments apply to all your files, so I will finish the review here.

Best regards,
Krzysztof

Quoted 17 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw72xx.dtsi new file +17 -0
+		compatible = "gpio-leds";
+		pinctrl-names = "default";
+		pinctrl-0 = <&pinctrl_gpio_leds>;
+
+		user1 { /* GRN */
+			label = "user1";
+			gpios = <&gpio5 5 GPIO_ACTIVE_HIGH>;
+			default-state = "on";
+			linux,default-trigger = "heartbeat";
+		};
+
+		user2 { /* RED */
+			label = "user2";
+			gpios = <&gpio5 4 GPIO_ACTIVE_HIGH>;
+			default-state = "off";
+		};
+	};
#5 lore raw

Re: [PATCH 2/2] arm64: dts: imx8mm: Add Gateworks IMX8MM Development Kits

In reply to Tim Harvey
Quoted 66 lines · Tim Harvey

The Gateworks Venice GW71xx-0x/GW72xx-0x/GW73xx-0x are development kits comprised of a GW700x SoM and a Baseboard.

The GW700x SoM contains:
- IMX8MM SoC
- LPDDR4 DRAM
- eMMC FLASH
- Gateworks System Controller (eeprom/pushbutton/reset/voltage-monitor)
- GbE PHY connected to the IMX8MM FEC
- Power Management IC

The GW71xx Baseboard contains:
- 1x MiniPCIe Socket with USB2.0, PCIe, and SIM
- 1x RJ45 GbE (IMX8MM FEC)
- PCIe Clock generator
- GPS and accelerometer
- 1x USB 2.0 Front Panel connector
- wide range power supply

The GW72xx Baseboard contains:
- 2x MiniPCIe Socket with USB2.0, PCIe, and SIM
- 2x RJ45 GbE (IMX8MM FEC and LAN743x)
- 1x MicroSD connector
- 1x USB 2.0 Front Panel connector
- 1x SPI connector
- PCIe Clock generator
- GPS and accelerometer
- Media Expansion connector (MIPI-CSI/MIPI-DSI/GPIO/I2S)
- wide range power supply

The GW73xx Baseboard contains:
- 3x MiniPCIe Socket with USB2.0, PCIe, and SIM
- 2x RJ45 GbE (IMX8MM FEC and LAN743x)
- 1x MicroSD connector
- 1x USB 2.0 Front Panel connector
- 1x SPI connector
- WiFi/BT
- PCIe Clock generator
- GPS and accelerometer
- Media Expansion connector (MIPI-CSI/MIPI-DSI/GPIO/I2S)
- wide range power supply

---
 arch/arm64/boot/dts/freescale/Makefile             |   3 +
 .../boot/dts/freescale/imx8mm-venice-gw700x.dtsi   | 482 +++++++++++++++++++++
 .../boot/dts/freescale/imx8mm-venice-gw71xx-0x.dts |  19 +
 .../boot/dts/freescale/imx8mm-venice-gw71xx.dtsi   | 186 ++++++++
 .../boot/dts/freescale/imx8mm-venice-gw72xx-0x.dts |  20 +
 .../boot/dts/freescale/imx8mm-venice-gw72xx.dtsi   | 311 +++++++++++++
 .../boot/dts/freescale/imx8mm-venice-gw73xx-0x.dts |  19 +
 .../boot/dts/freescale/imx8mm-venice-gw73xx.dtsi   | 363 ++++++++++++++++
 8 files changed, 1403 insertions(+)
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx-0x.dts
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-venice-gw72xx-0x.dts
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-venice-gw72xx.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-venice-gw73xx-0x.dts
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-venice-gw73xx.dtsi
arch/arm64/boot/dts/freescale/Makefile +0 -0
index f8d5943..ecdd233 100644

arch/arm64/boot/dts/freescale/Makefile dtb-$(CONFIG_ARCH_MXC) += imx8mm-beacon-kit.dtb · line 40

Quoted 9 lines
arch/arm64/boot/dts/freescale/Makefile +3 -0
@@ -32,6 +32,9 @@ dtb-$(CONFIG_ARCH_MXC) += imx8mm-beacon-kit.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mm-evk.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mm-ddr4-evk.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mm-var-som-symphony.dtb
+dtb-$(CONFIG_ARCH_MXC) += imx8mm-venice-gw71xx-0x.dtb
+dtb-$(CONFIG_ARCH_MXC) += imx8mm-venice-gw72xx-0x.dtb
+dtb-$(CONFIG_ARCH_MXC) += imx8mm-venice-gw73xx-0x.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mn-evk.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mn-ddr4-evk.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mn-var-som-symphony.dtb

(...)

I have few more thoughts below.

Quoted 51 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi new file +45 -0
new file mode 100644
index 00000000..a4eeb0d
@@ -0,0 +1,186 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright 2020 Gateworks Corporation
+ */
+
+/ {
+	aliases {
+		usb0 = &usbotg1;
+		usb1 = &usbotg2;
+	};
+
+	leds {
+		compatible = "gpio-leds";
+		pinctrl-names = "default";
+		pinctrl-0 = <&pinctrl_gpio_leds>;
+
+		user1 { /* GRN */
+			label = "user1";
+			gpios = <&gpio5 5 GPIO_ACTIVE_HIGH>;
+			default-state = "on";
+			linux,default-trigger = "heartbeat";
+		};
+
+		user2 { /* RED */
+			label = "user2";
+			gpios = <&gpio5 4 GPIO_ACTIVE_HIGH>;
+			default-state = "off";
+		};
+	};
+
+	pps {
+		compatible = "pps-gpio";
+		pinctrl-names = "default";
+		pinctrl-0 = <&pinctrl_pps>;
+		gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
+		status = "okay";
+	};
+
+	reg_usb_otg1_vbus: regulator-usb-otg1 {
+		pinctrl-names = "default";
+		pinctrl-0 = <&pinctrl_reg_usb1_en>;
+		compatible = "regulator-fixed";
+		regulator-name = "usb_otg1_vbus";
+		gpio = <&gpio1 12 GPIO_ACTIVE_HIGH>;
+		enable-active-high;

arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi line 55

Quoted 10 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi new file +10 -0
+		regulator-min-microvolt = <5000000>;
+		regulator-max-microvolt = <5000000>;
+	};
+};
+
+&ecspi2 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_spi2>;
+	cs-gpios = <&gpio5 13 GPIO_ACTIVE_HIGH>;
+	status = "okay";

Why is it enabled? What's here?

Quoted 15 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi new file +15 -0
+};
+
+&i2c2 {
+	clock-frequency = <400000>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_i2c2>;
+	status = "okay";
+
+	accel@19 {
+		pinctrl-names = "default";
+		pinctrl-0 = <&pinctrl_accel>;
+		compatible = "st,lis2de12";
+		reg = <0x19>;
+		st,drdy-int-pin = <1>;
+		interrupt-parent = <&gpio4>;

arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi line 80

Quoted 10 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi new file +10 -0
+		interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
+		interrupt-names = "INT1";
+	};
+};
+
+&i2c3 {
+	clock-frequency = <400000>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_i2c3>;
+	status = "okay";

Why is it enabled? What's here?

Quoted 12 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi new file +12 -0
+};
+
+&sai3 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_sai3>;
+	assigned-clocks = <&clk IMX8MM_CLK_SAI3>;
+	assigned-clock-parents = <&clk IMX8MM_AUDIO_PLL1_OUT>;
+	assigned-clock-rates = <24576000>;
+	status = "okay";
+};
+
+&uart1 {

arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi line 102

Quoted 10 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi new file +10 -0
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_uart1>;
+	status = "okay";
+};
+
+&uart3 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_uart3>;
+	status = "okay";
+};

Why both UARTs are enabled on the Carrier? The console is UART2.

Best regards,
Krzysztof

Quoted 84 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi new file +84 -0
+
+&usbotg1 {
+	dr_mode = "otg";
+	vbus-supply = <&reg_usb_otg1_vbus>;
+	status = "okay";
+};
+
+&usbotg2 {
+	dr_mode = "host";
+	status = "okay";
+};
+
+&iomuxc {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_hog>;
+
+	pinctrl_hog: hoggrp {
+		fsl,pins = <
+			MX8MM_IOMUXC_SPDIF_TX_GPIO5_IO3		0x40000041 /* PLUG_TEST */
+			MX8MM_IOMUXC_GPIO1_IO06_GPIO1_IO6	0x40000041 /* PCI_USBSEL */
+			MX8MM_IOMUXC_SAI1_RXD5_GPIO4_IO7	0x40000041 /* PCIE_WDIS# */
+			MX8MM_IOMUXC_GPIO1_IO07_GPIO1_IO7	0x40000041 /* DIO0 */
+			MX8MM_IOMUXC_GPIO1_IO09_GPIO1_IO9	0x40000041 /* DIO1 */
+			MX8MM_IOMUXC_SAI1_RXD1_GPIO4_IO3	0x40000041 /* DIO2 */
+			MX8MM_IOMUXC_SAI1_RXD2_GPIO4_IO4	0x40000041 /* DIO2 */
+		>;
+	};
+
+	pinctrl_accel: accelirq {
+		fsl,pins = <
+			MX8MM_IOMUXC_SAI1_RXD3_GPIO4_IO5	0x159
+		>;
+	};
+
+	pinctrl_gpio_leds: gpioledgrp {
+		fsl,pins = <
+			MX8MM_IOMUXC_SPDIF_EXT_CLK_GPIO5_IO5	0x19
+			MX8MM_IOMUXC_SPDIF_RX_GPIO5_IO4		0x19
+		>;
+	};
+
+	pinctrl_i2c3: i2c3grp {
+		fsl,pins = <
+			MX8MM_IOMUXC_I2C3_SCL_I2C3_SCL		0x400001c3
+			MX8MM_IOMUXC_I2C3_SDA_I2C3_SDA		0x400001c3
+		>;
+	};
+
+	pinctrl_pps: ppsgrp {
+		fsl,pins = <
+			MX8MM_IOMUXC_GPIO1_IO15_GPIO1_IO15	0x41
+		>;
+	};
+
+	pinctrl_reg_usb1_en: regusb1grp {
+		fsl,pins = <
+			MX8MM_IOMUXC_GPIO1_IO12_GPIO1_IO12	0x41
+			MX8MM_IOMUXC_GPIO1_IO13_USB1_OTG_OC	0x41
+		>;
+	};
+
+	pinctrl_spi2: spi2grp {
+		fsl,pins = <
+			MX8MM_IOMUXC_ECSPI2_SCLK_ECSPI2_SCLK	0xd6
+			MX8MM_IOMUXC_ECSPI2_MOSI_ECSPI2_MOSI	0xd6
+			MX8MM_IOMUXC_ECSPI2_SCLK_ECSPI2_SCLK	0xd6
+			MX8MM_IOMUXC_ECSPI2_SS0_GPIO5_IO13	0xd6
+		>;
+	};
+
+	pinctrl_uart1: uart1grp {
+		fsl,pins = <
+			MX8MM_IOMUXC_UART1_RXD_UART1_DCE_RX	0x140
+			MX8MM_IOMUXC_UART1_TXD_UART1_DCE_TX	0x140
+		>;
+	};
+
+	pinctrl_uart3: uart3grp {
+		fsl,pins = <
+			MX8MM_IOMUXC_UART3_RXD_UART3_DCE_RX	0x140
+			MX8MM_IOMUXC_UART3_TXD_UART3_DCE_TX	0x140
+		>;
+	};
+};
#6 lore raw

Re: [PATCH 2/2] arm64: dts: imx8mm: Add Gateworks IMX8MM Development Kits

In reply to Tim Harvey

Tim, Anders,

Quoted 2 lines · Tim Harvey

- 2x RJ45 GbE (IMX8MM FEC and LAN743x)

I noticed that you are users of the LAN743x PCIe ethernet chip.

On non-cache snooping architectures such as ARM, the receive performance of this chip's driver is about 1/3 of what it should be. I am currently preparing a patch set which boosts performance x3, but it's not trivial, so I am looking for LAN743X users who could help test the patch set - especially on arm64 or x86, architectures I have no access to.

Happy holidays,
Sven

author
#10 lore raw
In reply to Krzysztof Kozlowski
Quoted 10 lines · Krzysztof Kozlowski
Quoted 8 lines · Tim Harvey

Add bindings for the Gateworks Venice Development kit boards with IMX8MM System on Module.

---
 Documentation/devicetree/bindings/arm/fsl.yaml | 3 +++
 1 file changed, 3 insertions(+)
Quoted 15 lines

Documentation/devicetree/bindings/arm/fsl.yaml properties: · line 410

Quoted 11 lines
Documentation/devicetree/bindings/arm/fsl.yaml +3 -0
index 1ca9dfa..705c6e8 100644
@@ -405,6 +405,9 @@ properties:
               - beacon,imx8mm-beacon-kit  # i.MX8MM Beacon Development Kit
               - fsl,imx8mm-ddr4-evk       # i.MX8MM DDR4 EVK Board
               - fsl,imx8mm-evk            # i.MX8MM EVK Board
+              - gw,imx8mm-gw71xx-0x       # i.MX8MM Gateworks Development Kit
+              - gw,imx8mm-gw72xx-0x       # i.MX8MM Gateworks Development Kit
+              - gw,imx8mm-gw73xx-0x       # i.MX8MM Gateworks Development Kit

I think you should skip the wildcards in compatible and choose one specific compatible. What if at some point you would like to add gw,imx8mm-gw7113-0x?

Krzysztof,

Thanks for the review. I do want the wildcards as above because they represent model variations that do not affect device-tree such as component subloads.

Thanks,

Tim

author
#7 lore raw

Re: [PATCH 2/2] arm64: dts: imx8mm: Add Gateworks IMX8MM Development Kits

In reply to Sven Van Asbroeck
Quoted 7 lines · Sven Van Asbroeck

Tim, Anders,

Quoted 2 lines · Tim Harvey

- 2x RJ45 GbE (IMX8MM FEC and LAN743x)

Quoted 8 lines

I noticed that you are users of the LAN743x PCIe ethernet chip.

On non-cache snooping architectures such as ARM, the receive performance of this chip's driver is about 1/3 of what it should be. I am currently preparing a patch set which boosts performance x3, but it's not trivial, so I am looking for LAN743X users who could help test the patch set - especially on arm64 or x86, architectures I have no access to.

Sven,

I'm happy to test your patches for lan743x.

Best regards,

Tim

author
#3 lore raw

Re: [PATCH 2/2] arm64: dts: imx8mm: Add Gateworks IMX8MM Development Kits

In reply to Krzysztof Kozlowski
Quoted 1 line · Krzysztof Kozlowski

Thanks for the review!

Quoted 10 lines · Tim Harvey
Quoted 5 lines

The Gateworks Venice GW71xx-0x/GW72xx-0x/GW73xx-0x are development kits comprised of a GW700x SoM and a Baseboard.

The GW700x SoM contains:
- IMX8MM SoC

It's i.MX 8M Mini.
https://www.nxp.com/products/processors-and-microcontrollers/arm-processors/i-mx-applications-processors/i-mx-8-processors/i-mx-8m-mini-arm-cortex-a53-cortex-m4-audio-voice-video:i.MX8MMINI

ok

Quoted 39 lines
Quoted 39 lines

- LPDDR4 DRAM
- eMMC FLASH
- Gateworks System Controller (eeprom/pushbutton/reset/voltage-monitor)
- GbE PHY connected to the IMX8MM FEC
- Power Management IC

The GW71xx Baseboard contains:
- 1x MiniPCIe Socket with USB2.0, PCIe, and SIM
- 1x RJ45 GbE (IMX8MM FEC)
- PCIe Clock generator
- GPS and accelerometer
- 1x USB 2.0 Front Panel connector
- wide range power supply

The GW72xx Baseboard contains:
- 2x MiniPCIe Socket with USB2.0, PCIe, and SIM
- 2x RJ45 GbE (IMX8MM FEC and LAN743x)
- 1x MicroSD connector
- 1x USB 2.0 Front Panel connector
- 1x SPI connector
- PCIe Clock generator
- GPS and accelerometer
- Media Expansion connector (MIPI-CSI/MIPI-DSI/GPIO/I2S)
- wide range power supply

The GW73xx Baseboard contains:
- 3x MiniPCIe Socket with USB2.0, PCIe, and SIM
- 2x RJ45 GbE (IMX8MM FEC and LAN743x)
- 1x MicroSD connector
- 1x USB 2.0 Front Panel connector
- 1x SPI connector
- WiFi/BT
- PCIe Clock generator
- GPS and accelerometer
- Media Expansion connector (MIPI-CSI/MIPI-DSI/GPIO/I2S)
- wide range power supply

---

<snip>

Quoted 32 lines
Quoted 32 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi new file +29 -0
@@ -0,0 +1,482 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright 2020 Gateworks Corporation
+ */
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/linux-event-codes.h>
+#include <dt-bindings/net/ti-dp83867.h>
+
+/ {
+     memory@40000000 {
+             device_type = "memory";
+             reg = <0x0 0x40000000 0 0x80000000>;
+     };
+
+     gpio_keys {
+             compatible = "gpio-keys";
+             #address-cells = <1>;
+             #size-cells = <0>;
+
+             user_pb {
+                     label = "user_pb";
+                     gpios = <&gsc_gpio 2 GPIO_ACTIVE_LOW>;
+                     linux,code = <BTN_0>;
+             };
+
+             user_pb1x {
+                     label = "user_pb1x";
+                     linux,code = <BTN_1>;
Quoted 8 lines

arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi line 35

Quoted 6 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi new file +6 -0
+                     interrupt-parent = <&gsc>;
+                     interrupts = <0>;
+             };
+
+             key_erased {
+                     label = "key-erased";

Above you use underscore, here hyphen. Make it consistent.

ok

Quoted 29 lines
Quoted 29 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi new file +28 -0
+                     linux,code = <BTN_2>;
+                     interrupt-parent = <&gsc>;
+                     interrupts = <1>;
+             };
+
+             eeprom_wp {
+                     label = "eeprom_wp";
+                     linux,code = <BTN_3>;
+                     interrupt-parent = <&gsc>;
+                     interrupts = <2>;
+             };
+
+             tamper {
+                     label = "tamper";
+                     linux,code = <BTN_4>;
+                     interrupt-parent = <&gsc>;
+                     interrupts = <5>;
+             };
+
+             switch_hold {
+                     label = "switch_hold";
+                     linux,code = <BTN_5>;
+                     interrupt-parent = <&gsc>;
+                     interrupts = <7>;
+             };
+     };
+};
+

<snip>

Quoted 12 lines

arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi line 126

Quoted 8 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi new file +8 -0
+
+&i2c1 {
+     clock-frequency = <100000>;
+     pinctrl-names = "default";
+     pinctrl-0 = <&pinctrl_i2c1>;
+     status = "okay";
+
+     gsc: gsc@20 {

Node name should describe class of a device so maybe "system-controller"?

The node-name here must match 'gsc' due to the bindings. The name stands for 'Gateworks System Controller'.

Quoted 8 lines

arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi line 131

Quoted 5 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi new file +5 -0
+             compatible = "gw,gsc";
+             reg = <0x20>;
+             pinctrl-0 = <&pinctrl_gsc>;
+             interrupt-parent = <&gpio2>;
+             interrupts = <6 GPIO_ACTIVE_LOW>;

Wrong flag.

oops... thanks for catching it was supposed to be falling anyway. I will change to IRQ_TYPE_EDGE_FALLING

Quoted 9 lines

arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi line 137

Quoted 6 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi new file +6 -0
+             interrupt-controller;
+             #interrupt-cells = <1>;
+             #address-cells = <1>;
+             #size-cells = <0>;
+
+             adc {

Just to be sure - did you build it with W=1 to find any dtc warnings?

I did 'make dtbs_check' but not with W=1... will do that for next submission

Quoted 4 lines
Quoted 4 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi new file +4 -0
+                     compatible = "gw,gsc-adc";
+                     #address-cells = <1>;
+                     #size-cells = <0>;
+

<snip>

Quoted 7 lines

arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi line 235

Quoted 5 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi new file +5 -0
+             };
+
+             fan-controller@0 {
+                     #address-cells = <1>;
+                     #size-cells = <0>;

These do not seem needed.

They are required per Documentation/devicetree/bindings/mfd/gateworks-gsc.yaml but they should be inherited from the parent node right? So perhaps gateworks-gsc.yaml needs to remove them?

Quoted 10 lines

arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi line 241

Quoted 7 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi new file +6 -0
+                     compatible = "gw,gsc-fan";
+                     reg = <0x0a>;
+             };
+     };
+
+     gsc_gpio: pca9555@23 {

Lookes like gpio-controller, so "gpio". Please run make dtbs_check to be sure your board validate against dt-schema.

Yes, I see these warnings now with 'make dtbs_check W=1'

Note when I do run 'make dtbs_check W=1' I see many warnings which seem invalid that I have to skip over:
/usr/src/linux/arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx-0x.dt.yaml: pi nctrl@30330000: fec1grp:fsl,pins:0: [104, 720, 0, 0, 0, 3, 108, 724, 1216, 0, 1,
3, 112, 728, 0, 0, 0, 31, 116, 732, 0, 0, 0, 31, 120, 736, 0, 0, 0,
31, 124, 740, 0, 0, 0, 31, 156, 772, 0, 0, 0, 145, 152, 768, 0, 0, 0, 145, 148, 764, 0, 0, 0, 145, 144, 760, 0, 0, 0, 145, 132, 748, 0, 0, 0, 31, 140, 756, 0, 0, 0, 145, 136, 752, 0, 0, 0, 145, 128, 744, 0, 0, 0, 31, 244, 860, 0, 5, 0, 25] is too long
From schema:
/usr/src/linux/Documentation/devicetree/bindings/pinctrl/fsl,imx8mm-pinctrl.yaml /usr/src/linux/arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx-0x.dt.yaml:
pinctrl@30330000: fec1grp:fsl,pins:0: Additional items are not allowed (108, 724, 1216, 0, 1, 3, 112, 728, 0, 0, 0, 31, 116, 732, 0, 0, 0, 31, 120, 736, 0, 0, 0, 31, 124, 740, 0, 0, 0, 31, 156, 772, 0, 0, 0, 145, 152, 768, 0, 0, 0, 145, 148, 764, 0, 0, 0, 145, 144, 760, 0, 0, 0, 145, 132, 748, 0, 0, 0, 31, 140, 756, 0, 0, 0, 145, 136, 752, 0, 0, 0, 145, 128, 744, 0, 0, 0, 31, 244, 860, 0, 5, 0, 25 were unexpected) ^^^ It seems maybe something is too restrictive with Documentation/devicetree/bindings/pinctrl/fsl,imx8mm-pinctrl.yaml that doesn't allow an array of pins?

I see lots of warnings about imx8mm gpmi as well but they don't have anything to do with my dtbs.

Quoted 9 lines
Quoted 9 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi new file +8 -0
+             compatible = "nxp,pca9555";
+             reg = <0x23>;
+             gpio-controller;
+             #gpio-cells = <2>;
+             interrupt-parent = <&gsc>;
+             interrupts = <4>;
+     };
+

<snip>

Quoted 17 lines
Quoted 17 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi new file +17 -0
+
+&iomuxc {
+     pinctrl_fec1: fec1grp {
+             fsl,pins = <
+                     MX8MM_IOMUXC_ENET_MDC_ENET1_MDC                 0x3
+                     MX8MM_IOMUXC_ENET_MDIO_ENET1_MDIO               0x3
+                     MX8MM_IOMUXC_ENET_TD3_ENET1_RGMII_TD3           0x1f
+                     MX8MM_IOMUXC_ENET_TD2_ENET1_RGMII_TD2           0x1f
+                     MX8MM_IOMUXC_ENET_TD1_ENET1_RGMII_TD1           0x1f
+                     MX8MM_IOMUXC_ENET_TD0_ENET1_RGMII_TD0           0x1f
+                     MX8MM_IOMUXC_ENET_RD3_ENET1_RGMII_RD3           0x91
+                     MX8MM_IOMUXC_ENET_RD2_ENET1_RGMII_RD2           0x91
+                     MX8MM_IOMUXC_ENET_RD1_ENET1_RGMII_RD1           0x91
+                     MX8MM_IOMUXC_ENET_RD0_ENET1_RGMII_RD0           0x91
+                     MX8MM_IOMUXC_ENET_TXC_ENET1_RGMII_TXC           0x1f
+                     MX8MM_IOMUXC_ENET_RXC_ENET1_RGMII_RXC           0x91
+                     MX8MM_IOMUXC_ENET_RX_CTL_ENET1_RGMII_RX_CTL     0x91
Quoted 8 lines

arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi line 402

Quoted 6 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi new file +6 -0
+                     MX8MM_IOMUXC_ENET_TX_CTL_ENET1_RGMII_TX_CTL     0x1f
+                     MX8MM_IOMUXC_NAND_ALE_GPIO3_IO0                 0x19
+             >;
+     };
+
+     pinctrl_gsc: gscirq {

grp suffix. I think dtbs_check should point this out.

ok, I do see this warning with 'make dtbs_check W=1'. I will fix the node names for the iomux pin groups

<snip>

Quoted 25 lines
Quoted 25 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx-0x.dts new file +18 -0
new file mode 100644
index 00000000..3f88c4a
@@ -0,0 +1,19 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright 2020 Gateworks Corporation
+ */
+
+/dts-v1/;
+
+#include "imx8mm.dtsi"
+#include "imx8mm-venice-gw700x.dtsi"
+#include "imx8mm-venice-gw71xx.dtsi"
+
+/ {
+     model = "Gateworks Venice GW71xx-0x i.MX8MM Development Kit";
+     compatible = "gw,imx8mm-gw71xx-0x", "fsl,imx8mm";
+
+     chosen {
+             stdout-path = &uart2;
+     };
Quoted 8 lines

arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi

Quoted 6 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx-0x.dts new file +1 -0
+};
arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi new file +0 -0
new file mode 100644
index 00000000..a4eeb0d

This file is included only once, so it should be directly inside imx8mm-venice-gw71xx-0x.dts. Do not create empty DTS just to include DTSI and nothing more. It's really over-complicating simple hierarchy.

The reason for this is that the '0x' on the end is the SoM and in the future there will be a '1x', '2x' SoM so imagine:
imx8mm-venice-gw71xx-2x.dts being the 'kit' that combines the imx8mm-venice-gw71xx.dtsi baseboard and imx8mm-venice-gw702x.dtsi SoM. Our numbering scheme has SoM's as gw70xx. I will add something to the commit log that explains this.

Quoted 16 lines
Quoted 4 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi new file +2 -0
@@ -0,0 +1,186 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*

arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi line 12

Quoted 10 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi new file +10 -0
+ * Copyright 2020 Gateworks Corporation
+ */
+
+/ {
+     aliases {
+             usb0 = &usbotg1;
+             usb1 = &usbotg2;
+     };
+
+     leds {

led-controller

ok - will fix

Quoted 8 lines

arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi line 17

Quoted 6 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi new file +5 -0
+             compatible = "gpio-leds";
+             pinctrl-names = "default";
+             pinctrl-0 = <&pinctrl_gpio_leds>;
+
+             user1 { /* GRN */

led-0

ok, will fix

Quoted 5 lines

arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi line 18

Quoted 2 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi new file +1 -0
+                     label = "user1";

label is now deprecated. See the common bindings.

ok, will fix by removing deprecated label and adding color/function props

Quoted 5 lines
Quoted 5 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi new file +5 -0
+                     gpios = <&gpio5 5 GPIO_ACTIVE_HIGH>;
+                     default-state = "on";
+                     linux,default-trigger = "heartbeat";
+             };
+

<snip>

Quoted 10 lines

arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi line 64

Quoted 7 lines

+&i2c2 {

arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi new file +6 -0
+     clock-frequency = <400000>;
+     pinctrl-names = "default";
+     pinctrl-0 = <&pinctrl_i2c2>;
+     status = "okay";
+
+     accel@19 {

accelerometer

ok - will fix

You also had asked why ecspi2, i2c3 were enabled (with no child nodes) and why uart1/uart3 were enabled on the carrier boards.

The carrier boards have off-board connectors for ecspi2, i2c3 so I include them on the baseboard so that the Linux SPI/I2C userspace API's could be used.

The carrier boards also have uart1 connected to a GPS, uart2/uart4 going to a multi-protocol RS232/RS485/RS422 transceiver that has some GPIO to configure it, and uart3 going to an offboard I/O connector. For this reason I have uart2 basic tx/rx configured on the gw70xx SoM and uart1/uart2-gpio/uart4 configures on the carrier board.

I will submit a v2 shortly.

Best regards,

Tim

#4 lore raw

Re: [PATCH 2/2] arm64: dts: imx8mm: Add Gateworks IMX8MM Development Kits

Quoted 9 lines · Tim Harvey
Quoted 9 lines

+

Quoted 7 lines

+&i2c1 {

arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi new file +6 -0
+     clock-frequency = <100000>;
+     pinctrl-names = "default";
+     pinctrl-0 = <&pinctrl_i2c1>;
+     status = "okay";
+
+     gsc: gsc@20 {
Quoted 6 lines
Quoted 3 lines

Node name should describe class of a device so maybe "system-controller"?

The node-name here must match 'gsc' due to the bindings. The name stands for 'Gateworks System Controller'.

Indeed, so it must stay like this.

Quoted 11 lines
Quoted 6 lines

+

arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi line 235

Quoted 3 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi new file +3 -0
+             fan-controller@0 {
+                     #address-cells = <1>;
+                     #size-cells = <0>;

These do not seem needed.

They are required per Documentation/devicetree/bindings/mfd/gateworks-gsc.yaml but they should be inherited from the parent node right? So perhaps gateworks-gsc.yaml needs to remove them?

Maybe they shouldn't be in the bindings, either? These are only for nodes which have childre. The fan-controller does not have them.

Quoted 9 lines
Quoted 9 lines
Quoted 8 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi new file +6 -0
+                     compatible = "gw,gsc-fan";
+                     reg = <0x0a>;
+             };
+     };
+
+     gsc_gpio: pca9555@23 {
Quoted 4 lines
Quoted 2 lines

Lookes like gpio-controller, so "gpio". Please run make dtbs_check to be sure your board validate against dt-schema.

Yes, I see these warnings now with 'make dtbs_check W=1'

dtbs_check without W=1.
dtbs with W=1.
These are different tools.

Quoted 14 lines

Note when I do run 'make dtbs_check W=1' I see many warnings which seem invalid that I have to skip over:
/usr/src/linux/arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx-0x.dt.yaml: pi nctrl@30330000: fec1grp:fsl,pins:0: [104, 720, 0, 0, 0, 3, 108, 724, 1216, 0, 1,
3, 112, 728, 0, 0, 0, 31, 116, 732, 0, 0, 0, 31, 120, 736, 0, 0, 0,
31, 124, 740, 0, 0, 0, 31, 156, 772, 0, 0, 0, 145, 152, 768, 0, 0, 0, 145, 148, 764, 0, 0, 0, 145, 144, 760, 0, 0, 0, 145, 132, 748, 0, 0, 0, 31, 140, 756, 0, 0, 0, 145, 136, 752, 0, 0, 0, 145, 128, 744, 0, 0, 0, 31, 244, 860, 0, 5, 0, 25] is too long
From schema:
/usr/src/linux/Documentation/devicetree/bindings/pinctrl/fsl,imx8mm-pinctrl.yaml /usr/src/linux/arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx-0x.dt.yaml:
pinctrl@30330000: fec1grp:fsl,pins:0: Additional items are not allowed

Quoted 8 lines

(108, 724, 1216, 0, 1, 3, 112, 728, 0, 0, 0, 31, 116, 732, 0, 0, 0, 31, 120, 736, 0, 0, 0, 31, 124, 740, 0, 0, 0, 31, 156, 772, 0, 0, 0, 145, 152, 768, 0, 0, 0, 145, 148, 764, 0, 0, 0, 145, 144, 760, 0, 0, 0, 145, 132, 748, 0, 0, 0, 31, 140, 756, 0, 0, 0, 145, 136, 752, 0, 0, 0, 145, 128, 744, 0, 0, 0, 31, 244, 860, 0, 5, 0, 25 were unexpected) ^^^ It seems maybe something is too restrictive with Documentation/devicetree/bindings/pinctrl/fsl,imx8mm-pinctrl.yaml that doesn't allow an array of pins?

This is expected because dt-schema does not accept pin groups in one array (<..., ....>). Compare your warnings with some other recent imx8mm designs. If you introduce new, these have to be fixed.

Quoted 78 lines

I see lots of warnings about imx8mm gpmi as well but they don't have anything to do with my dtbs.

Quoted 9 lines
Quoted 9 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi new file +8 -0
+             compatible = "nxp,pca9555";
+             reg = <0x23>;
+             gpio-controller;
+             #gpio-cells = <2>;
+             interrupt-parent = <&gsc>;
+             interrupts = <4>;
+     };
+

<snip>

Quoted 17 lines
Quoted 17 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi new file +17 -0
+
+&iomuxc {
+     pinctrl_fec1: fec1grp {
+             fsl,pins = <
+                     MX8MM_IOMUXC_ENET_MDC_ENET1_MDC                 0x3
+                     MX8MM_IOMUXC_ENET_MDIO_ENET1_MDIO               0x3
+                     MX8MM_IOMUXC_ENET_TD3_ENET1_RGMII_TD3           0x1f
+                     MX8MM_IOMUXC_ENET_TD2_ENET1_RGMII_TD2           0x1f
+                     MX8MM_IOMUXC_ENET_TD1_ENET1_RGMII_TD1           0x1f
+                     MX8MM_IOMUXC_ENET_TD0_ENET1_RGMII_TD0           0x1f
+                     MX8MM_IOMUXC_ENET_RD3_ENET1_RGMII_RD3           0x91
+                     MX8MM_IOMUXC_ENET_RD2_ENET1_RGMII_RD2           0x91
+                     MX8MM_IOMUXC_ENET_RD1_ENET1_RGMII_RD1           0x91
+                     MX8MM_IOMUXC_ENET_RD0_ENET1_RGMII_RD0           0x91
+                     MX8MM_IOMUXC_ENET_TXC_ENET1_RGMII_TXC           0x1f
+                     MX8MM_IOMUXC_ENET_RXC_ENET1_RGMII_RXC           0x91
+                     MX8MM_IOMUXC_ENET_RX_CTL_ENET1_RGMII_RX_CTL     0x91
Quoted 8 lines

arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi line 402

Quoted 6 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi new file +6 -0
+                     MX8MM_IOMUXC_ENET_TX_CTL_ENET1_RGMII_TX_CTL     0x1f
+                     MX8MM_IOMUXC_NAND_ALE_GPIO3_IO0                 0x19
+             >;
+     };
+
+     pinctrl_gsc: gscirq {

grp suffix. I think dtbs_check should point this out.

ok, I do see this warning with 'make dtbs_check W=1'. I will fix the node names for the iomux pin groups

<snip>

Quoted 25 lines
Quoted 25 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx-0x.dts new file +18 -0
new file mode 100644
index 00000000..3f88c4a
@@ -0,0 +1,19 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright 2020 Gateworks Corporation
+ */
+
+/dts-v1/;
+
+#include "imx8mm.dtsi"
+#include "imx8mm-venice-gw700x.dtsi"
+#include "imx8mm-venice-gw71xx.dtsi"
+
+/ {
+     model = "Gateworks Venice GW71xx-0x i.MX8MM Development Kit";
+     compatible = "gw,imx8mm-gw71xx-0x", "fsl,imx8mm";
+
+     chosen {
+             stdout-path = &uart2;
+     };
Quoted 8 lines

arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi

Quoted 6 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx-0x.dts new file +1 -0
+};
arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi new file +0 -0
new file mode 100644
index 00000000..a4eeb0d

This file is included only once, so it should be directly inside imx8mm-venice-gw71xx-0x.dts. Do not create empty DTS just to include DTSI and nothing more. It's really over-complicating simple hierarchy.

Quoted 6 lines

The reason for this is that the '0x' on the end is the SoM and in the future there will be a '1x', '2x' SoM so imagine:
imx8mm-venice-gw71xx-2x.dts being the 'kit' that combines the imx8mm-venice-gw71xx.dtsi baseboard and imx8mm-venice-gw702x.dtsi SoM. Our numbering scheme has SoM's as gw70xx. I will add something to the commit log that explains this.

If you really intend to upstream these future designs, then it's fine. Have in mind that if you do not upstream them, anyone can simplify later the hierarchy by renaming imx8mm-venice-gw71xx.dtsi into imx8mm-venice-gw71xx.dts.

Quoted 56 lines
Quoted 17 lines
Quoted 5 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi new file +2 -0
@@ -0,0 +1,186 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*

arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi line 12

Quoted 10 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi new file +10 -0
+ * Copyright 2020 Gateworks Corporation
+ */
+
+/ {
+     aliases {
+             usb0 = &usbotg1;
+             usb1 = &usbotg2;
+     };
+
+     leds {

led-controller

ok - will fix

Quoted 8 lines

arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi line 17

Quoted 6 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi new file +5 -0
+             compatible = "gpio-leds";
+             pinctrl-names = "default";
+             pinctrl-0 = <&pinctrl_gpio_leds>;
+
+             user1 { /* GRN */

led-0

ok, will fix

Quoted 5 lines

arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi line 18

Quoted 2 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi new file +1 -0
+                     label = "user1";

label is now deprecated. See the common bindings.

ok, will fix by removing deprecated label and adding color/function props

Quoted 5 lines
Quoted 5 lines
arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi new file +5 -0
+                     gpios = <&gpio5 5 GPIO_ACTIVE_HIGH>;
+                     default-state = "on";
+                     linux,default-trigger = "heartbeat";
+             };
+

<snip>

Quoted 10 lines

arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi line 64

Quoted 7 lines

+&i2c2 {

arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi new file +6 -0
+     clock-frequency = <400000>;
+     pinctrl-names = "default";
+     pinctrl-0 = <&pinctrl_i2c2>;
+     status = "okay";
+
+     accel@19 {

accelerometer

Quoted 8 lines

ok - will fix

You also had asked why ecspi2, i2c3 were enabled (with no child nodes) and why uart1/uart3 were enabled on the carrier boards.

The carrier boards have off-board connectors for ecspi2, i2c3 so I include them on the baseboard so that the Linux SPI/I2C userspace API's could be used.

Sure, this makes sense. Can you add a comment to such nodes like:
"UART on header"

Customers usually copy the reference designs (boards) so it is usually useful to explain why something on carrier board was enabled, even though nothing is attached.

Best regards,
Krzysztof

#8 lore raw

Re: [PATCH 2/2] arm64: dts: imx8mm: Add Gateworks IMX8MM Development Kits

In reply to Tim Harvey
Quoted 3 lines · Tim Harvey

I'm happy to test your patches for lan743x.

That's awesome ! I'll post them early in the new year, so that test + review can happen in parallel.