devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] board: imx8mn-dimonoff-gateway-evk: add support for Dimonoff gateway EVK board
@ 2023-12-07 15:05 Hugo Villeneuve
  2023-12-07 15:05 ` [PATCH v2 1/3] dt-bindings: vendor-prefixes: add dimonoff Hugo Villeneuve
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Hugo Villeneuve @ 2023-12-07 15:05 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, shawnguo, s.hauer,
	kernel, festevam, linux-imx, leoyang.li, robh
  Cc: devicetree, linux-kernel, linux-arm-kernel, hugo, Hugo Villeneuve

From: Hugo Villeneuve <hvilleneuve@dimonoff.com>

Hello,
this patch series add support for the Dimonoff gateway EVK board.

Based on shawnguo/for-next branch.

Thank you.

Link: [v1] https://lore.kernel.org/all/20231206160303.33185-1-hugo@hugovil.com/

Changes for V2:
- Add Krzysztof Acked-by tag
- Wrap lines at 80 columns in dts
- Remove company name from compatible property

Hugo Villeneuve (3):
  dt-bindings: vendor-prefixes: add dimonoff
  dt-bindings: arm: fsl: add Dimonoff gateway EVK board
  arm64: dts: freescale: introduce dimonoff-gateway-evk board

 .../devicetree/bindings/arm/fsl.yaml          |   1 +
 .../devicetree/bindings/vendor-prefixes.yaml  |   2 +
 arch/arm64/boot/dts/freescale/Makefile        |   1 +
 .../freescale/imx8mn-dimonoff-gateway-evk.dts | 160 ++++++++++++++++++
 4 files changed, 164 insertions(+)
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mn-dimonoff-gateway-evk.dts


base-commit: 8c3c7094bf5b965a6dfc74864838fa4954dcf1c9
-- 
2.39.2


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH v2 1/3] dt-bindings: vendor-prefixes: add dimonoff
  2023-12-07 15:05 [PATCH v2 0/3] board: imx8mn-dimonoff-gateway-evk: add support for Dimonoff gateway EVK board Hugo Villeneuve
@ 2023-12-07 15:05 ` Hugo Villeneuve
  2023-12-07 15:05 ` [PATCH v2 2/3] dt-bindings: arm: fsl: add Dimonoff gateway EVK board Hugo Villeneuve
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 6+ messages in thread
From: Hugo Villeneuve @ 2023-12-07 15:05 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, shawnguo, s.hauer,
	kernel, festevam, linux-imx, leoyang.li, robh
  Cc: devicetree, linux-kernel, linux-arm-kernel, hugo, Hugo Villeneuve,
	Krzysztof Kozlowski

From: Hugo Villeneuve <hvilleneuve@dimonoff.com>

Add vendor prefix for Dimonoff, which provides
IoT smart solutions and custom engineering services.

Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
---
 Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml
index 71dcd6240a99..338ad15a7ab2 100644
--- a/Documentation/devicetree/bindings/vendor-prefixes.yaml
+++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml
@@ -352,6 +352,8 @@ patternProperties:
     description: Digi International Inc.
   "^digilent,.*":
     description: Diglent, Inc.
+  "^dimonoff,.*":
+    description: Dimonoff inc.
   "^diodes,.*":
     description: Diodes, Inc.
   "^dioo,.*":
-- 
2.39.2


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH v2 2/3] dt-bindings: arm: fsl: add Dimonoff gateway EVK board
  2023-12-07 15:05 [PATCH v2 0/3] board: imx8mn-dimonoff-gateway-evk: add support for Dimonoff gateway EVK board Hugo Villeneuve
  2023-12-07 15:05 ` [PATCH v2 1/3] dt-bindings: vendor-prefixes: add dimonoff Hugo Villeneuve
@ 2023-12-07 15:05 ` Hugo Villeneuve
  2023-12-07 15:22   ` Krzysztof Kozlowski
  2023-12-07 15:05 ` [PATCH v2 3/3] arm64: dts: freescale: introduce dimonoff-gateway-evk board Hugo Villeneuve
  2023-12-14  2:50 ` [PATCH v2 0/3] board: imx8mn-dimonoff-gateway-evk: add support for Dimonoff gateway EVK board Shawn Guo
  3 siblings, 1 reply; 6+ messages in thread
From: Hugo Villeneuve @ 2023-12-07 15:05 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, shawnguo, s.hauer,
	kernel, festevam, linux-imx, leoyang.li, robh
  Cc: devicetree, linux-kernel, linux-arm-kernel, hugo, Hugo Villeneuve

From: Hugo Villeneuve <hvilleneuve@dimonoff.com>

Add DT compatible string for Dimonoff gateway EVK board based on a
Variscite VAR-SOM-NANO with a NXP MX8MN nano CPU.

Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
---
 Documentation/devicetree/bindings/arm/fsl.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/arm/fsl.yaml b/Documentation/devicetree/bindings/arm/fsl.yaml
index cd87d1afe7b7..9fc2d73ed8d6 100644
--- a/Documentation/devicetree/bindings/arm/fsl.yaml
+++ b/Documentation/devicetree/bindings/arm/fsl.yaml
@@ -1025,6 +1025,7 @@ properties:
       - description: Variscite VAR-SOM-MX8MN based boards
         items:
           - enum:
+              - dimonoff,gateway-evk # i.MX8MN Dimonoff Gateway EVK Board
               - rve,rve-gateway # i.MX8MN RVE Gateway Board
               - variscite,var-som-mx8mn-symphony
           - const: variscite,var-som-mx8mn
-- 
2.39.2


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH v2 3/3] arm64: dts: freescale: introduce dimonoff-gateway-evk board
  2023-12-07 15:05 [PATCH v2 0/3] board: imx8mn-dimonoff-gateway-evk: add support for Dimonoff gateway EVK board Hugo Villeneuve
  2023-12-07 15:05 ` [PATCH v2 1/3] dt-bindings: vendor-prefixes: add dimonoff Hugo Villeneuve
  2023-12-07 15:05 ` [PATCH v2 2/3] dt-bindings: arm: fsl: add Dimonoff gateway EVK board Hugo Villeneuve
@ 2023-12-07 15:05 ` Hugo Villeneuve
  2023-12-14  2:50 ` [PATCH v2 0/3] board: imx8mn-dimonoff-gateway-evk: add support for Dimonoff gateway EVK board Shawn Guo
  3 siblings, 0 replies; 6+ messages in thread
From: Hugo Villeneuve @ 2023-12-07 15:05 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, shawnguo, s.hauer,
	kernel, festevam, linux-imx, leoyang.li, robh
  Cc: devicetree, linux-kernel, linux-arm-kernel, hugo, Hugo Villeneuve,
	Krzysztof Kozlowski

From: Hugo Villeneuve <hvilleneuve@dimonoff.com>

The Dimonoff gateway EVK board is based on a Variscite
VAR-SOM-NANO, with a NXP MX8MN nano CPU and also based on a Symphony
mx8mn EVK.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
---
 arch/arm64/boot/dts/freescale/Makefile        |   1 +
 .../freescale/imx8mn-dimonoff-gateway-evk.dts | 160 ++++++++++++++++++
 2 files changed, 161 insertions(+)
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mn-dimonoff-gateway-evk.dts

diff --git a/arch/arm64/boot/dts/freescale/Makefile b/arch/arm64/boot/dts/freescale/Makefile
index d22e4f4f886d..1f29215ea9bb 100644
--- a/arch/arm64/boot/dts/freescale/Makefile
+++ b/arch/arm64/boot/dts/freescale/Makefile
@@ -97,6 +97,7 @@ dtb-$(CONFIG_ARCH_MXC) += imx8mm-tqma8mqml-mba8mx-lvds-tm070jvhg33.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mn-beacon-kit.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mn-bsh-smm-s2.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mn-bsh-smm-s2pro.dtb
+dtb-$(CONFIG_ARCH_MXC) += imx8mn-dimonoff-gateway-evk.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mn-evk.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mn-ddr3l-evk.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mn-ddr4-evk.dtb
diff --git a/arch/arm64/boot/dts/freescale/imx8mn-dimonoff-gateway-evk.dts b/arch/arm64/boot/dts/freescale/imx8mn-dimonoff-gateway-evk.dts
new file mode 100644
index 000000000000..6f9b82958b96
--- /dev/null
+++ b/arch/arm64/boot/dts/freescale/imx8mn-dimonoff-gateway-evk.dts
@@ -0,0 +1,160 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright 2022 DimOnOff
+ */
+
+/dts-v1/;
+
+#include <dt-bindings/usb/pd.h>
+#include "imx8mn-var-som-symphony.dts"
+
+/ {
+	model = "DimOnOff Gateway EVK board";
+	compatible = "dimonoff,gateway-evk", "variscite,var-som-mx8mn",
+		     "fsl,imx8mn";
+
+	/*
+	 * U30 FPF2193 regulator.
+	 * Source = BASE_PER_3V3 = SOM_3V3 (COM pin 49).
+	 */
+	reg_disp_3v3: regulator-disp-3v3 {
+		compatible = "regulator-fixed";
+		regulator-name = "Display 3V3";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		regulator-always-on;
+		regulator-boot-on;
+	};
+
+	gpio-keys {
+		compatible = "gpio-keys";
+		pinctrl-names = "default";
+		pinctrl-0 = <&pinctrl_gpio_keys>;
+
+		key-enter {
+			label = "enter";
+			gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
+			linux,code = <KEY_ENTER>;
+			wakeup-source;
+		};
+	};
+
+	/* Bourns PEC12R rotary encoder, 24 steps. */
+	rotary: rotary-encoder {
+		compatible = "rotary-encoder";
+		pinctrl-names = "default";
+		pinctrl-0 = <&pinctrl_rotary>;
+		gpios = <&gpio5 12 GPIO_ACTIVE_LOW>, /* A */
+			<&gpio5 13 GPIO_ACTIVE_LOW>; /* B */
+		linux,axis = <0>; /* REL_X */
+		rotary-encoder,encoding = "gray";
+		rotary-encoder,relative-axis;
+	};
+};
+
+/* Disable Asynchronous Sample Rate Converter (audio) */
+&easrc {
+	status = "disabled";
+};
+
+&ecspi1 {
+	/* Resistive touch controller */
+	/delete-node/ touchscreen@0;
+};
+
+&gpu {
+	status = "disabled";
+};
+
+&i2c2 {
+	adc@48 {
+		compatible = "ti,ads7924";
+		reg = <0x48>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&pinctrl_adc>;
+		vref-supply = <&reg_disp_3v3>;
+		reset-gpios = <&gpio5 5 GPIO_ACTIVE_LOW>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		channel@0 {
+			reg = <0>;
+			label = "Pot0";
+		};
+		channel@1 {
+			reg = <1>;
+			label = "Pot1";
+		};
+		channel@2 {
+			reg = <2>;
+			label = "Pot2";
+		};
+		channel@3 {
+			reg = <3>;
+			label = "Pot3";
+		};
+	};
+
+	rtc@51 {
+		compatible = "nxp,pcf2129";
+		reg = <0x51>;
+		reset-source; /* For watchdog. */
+	};
+
+	rtc@53 {
+		compatible = "nxp,pcf2131";
+		reg = <0x53>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&pinctrl_rtc>;
+		reset-source; /* For watchdog. */
+		interrupt-parent = <&gpio5>;
+		interrupts = <10 IRQ_TYPE_EDGE_FALLING>; /* J17.6 on EVK */
+	};
+};
+
+&i2c3 {
+	touchscreen@38 {
+		status = "disabled";
+	};
+
+	codec@1a {
+		status = "disabled";
+	};
+
+	/* DS1337 RTC module */
+	rtc@68 {
+		status = "disabled";
+	};
+};
+
+&sai5 {
+	status = "disabled";
+};
+
+&iomuxc {
+	pinctrl_gpio_keys: gpiokeysgrp {
+		fsl,pins = <
+			MX8MN_IOMUXC_GPIO1_IO08_GPIO1_IO8	0xc6
+		>;
+	};
+
+	pinctrl_rotary: rotarygrp {
+		fsl,pins = <
+			MX8MN_IOMUXC_ECSPI2_MISO_GPIO5_IO12	0x00000156
+			MX8MN_IOMUXC_ECSPI2_SS0_GPIO5_IO13	0x00000156
+		>;
+	};
+
+	pinctrl_adc: adcgrp {
+		fsl,pins = <
+			MX8MN_IOMUXC_SPDIF_EXT_CLK_GPIO5_IO5	0x00000156
+		>;
+	};
+
+	pinctrl_rtc: rtcgrp {
+		fsl,pins = <
+			MX8MN_IOMUXC_ECSPI2_SCLK_GPIO5_IO10	0x00000156
+			MX8MN_IOMUXC_ECSPI2_MOSI_GPIO5_IO11	0x00000156
+		>;
+	};
+};
-- 
2.39.2


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH v2 2/3] dt-bindings: arm: fsl: add Dimonoff gateway EVK board
  2023-12-07 15:05 ` [PATCH v2 2/3] dt-bindings: arm: fsl: add Dimonoff gateway EVK board Hugo Villeneuve
@ 2023-12-07 15:22   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 6+ messages in thread
From: Krzysztof Kozlowski @ 2023-12-07 15:22 UTC (permalink / raw)
  To: Hugo Villeneuve, robh+dt, krzysztof.kozlowski+dt, conor+dt,
	shawnguo, s.hauer, kernel, festevam, linux-imx, leoyang.li, robh
  Cc: devicetree, linux-kernel, linux-arm-kernel, Hugo Villeneuve

On 07/12/2023 16:05, Hugo Villeneuve wrote:
> From: Hugo Villeneuve <hvilleneuve@dimonoff.com>
> 
> Add DT compatible string for Dimonoff gateway EVK board based on a
> Variscite VAR-SOM-NANO with a NXP MX8MN nano CPU.
> 
> Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
> ---
>  Documentation/devicetree/bindings/arm/fsl.yaml | 1 +

Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v2 0/3] board: imx8mn-dimonoff-gateway-evk: add support for Dimonoff gateway EVK board
  2023-12-07 15:05 [PATCH v2 0/3] board: imx8mn-dimonoff-gateway-evk: add support for Dimonoff gateway EVK board Hugo Villeneuve
                   ` (2 preceding siblings ...)
  2023-12-07 15:05 ` [PATCH v2 3/3] arm64: dts: freescale: introduce dimonoff-gateway-evk board Hugo Villeneuve
@ 2023-12-14  2:50 ` Shawn Guo
  3 siblings, 0 replies; 6+ messages in thread
From: Shawn Guo @ 2023-12-14  2:50 UTC (permalink / raw)
  To: Hugo Villeneuve
  Cc: robh+dt, krzysztof.kozlowski+dt, conor+dt, s.hauer, kernel,
	festevam, linux-imx, leoyang.li, robh, devicetree, linux-kernel,
	linux-arm-kernel, Hugo Villeneuve

On Thu, Dec 07, 2023 at 10:05:16AM -0500, Hugo Villeneuve wrote:
> From: Hugo Villeneuve <hvilleneuve@dimonoff.com>
> 
> Hello,
> this patch series add support for the Dimonoff gateway EVK board.
> 
> Based on shawnguo/for-next branch.
> 
> Thank you.
> 
> Link: [v1] https://lore.kernel.org/all/20231206160303.33185-1-hugo@hugovil.com/
> 
> Changes for V2:
> - Add Krzysztof Acked-by tag
> - Wrap lines at 80 columns in dts
> - Remove company name from compatible property
> 
> Hugo Villeneuve (3):
>   dt-bindings: vendor-prefixes: add dimonoff
>   dt-bindings: arm: fsl: add Dimonoff gateway EVK board
>   arm64: dts: freescale: introduce dimonoff-gateway-evk board

Applied all, thanks!

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-12-14  2:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-07 15:05 [PATCH v2 0/3] board: imx8mn-dimonoff-gateway-evk: add support for Dimonoff gateway EVK board Hugo Villeneuve
2023-12-07 15:05 ` [PATCH v2 1/3] dt-bindings: vendor-prefixes: add dimonoff Hugo Villeneuve
2023-12-07 15:05 ` [PATCH v2 2/3] dt-bindings: arm: fsl: add Dimonoff gateway EVK board Hugo Villeneuve
2023-12-07 15:22   ` Krzysztof Kozlowski
2023-12-07 15:05 ` [PATCH v2 3/3] arm64: dts: freescale: introduce dimonoff-gateway-evk board Hugo Villeneuve
2023-12-14  2:50 ` [PATCH v2 0/3] board: imx8mn-dimonoff-gateway-evk: add support for Dimonoff gateway EVK board Shawn Guo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).