devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: imx8mm: Add CPLD on MX8Menlo board
@ 2022-04-26 19:59 Marek Vasut
  2022-04-26 21:07 ` Marcel Ziswiler
  2022-05-05  3:20 ` Shawn Guo
  0 siblings, 2 replies; 3+ messages in thread
From: Marek Vasut @ 2022-04-26 19:59 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: Marek Vasut, Fabio Estevam, Marcel Ziswiler, Peng Fan,
	Rob Herring, Shawn Guo, NXP Linux Team, devicetree

The CPLD on MX8Menlo board is used to operate custom hardware,
the CPLD content is compatible with previous M53Menlo CPLD,
add the bindings.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Fabio Estevam <festevam@denx.de>
Cc: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Cc: Peng Fan <peng.fan@nxp.com>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Shawn Guo <shawnguo@kernel.org>
Cc: NXP Linux Team <linux-imx@nxp.com>
Cc: devicetree@vger.kernel.org
To: linux-arm-kernel@lists.infradead.org
---
NOTE: Depends on
      https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git/commit/?h=for-next&id=b61b76dfef30945f175d4acfecb9beb862174f01
---
 arch/arm64/boot/dts/freescale/imx8mm-mx8menlo.dts | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/freescale/imx8mm-mx8menlo.dts b/arch/arm64/boot/dts/freescale/imx8mm-mx8menlo.dts
index c20db0c550da..92eaf4ef4563 100644
--- a/arch/arm64/boot/dts/freescale/imx8mm-mx8menlo.dts
+++ b/arch/arm64/boot/dts/freescale/imx8mm-mx8menlo.dts
@@ -71,7 +71,20 @@ canfd: can@0 {
 &ecspi2 {
 	pinctrl-0 = <&pinctrl_ecspi2 &pinctrl_gpio1>;
 	cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>, <&gpio3 4 GPIO_ACTIVE_LOW>;
-	status = "disabled";
+	status = "okay";
+
+	spidev@0 {
+		compatible = "menlo,m53cpld";
+		reg = <0>;
+		spi-max-frequency = <25000000>;
+	};
+
+	spidev@1 {
+		compatible = "menlo,m53cpld";
+		reg = <1>;
+		spi-max-frequency = <25000000>;
+	};
+
 };
 
 &ethphy0 {
-- 
2.35.1


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

* Re: [PATCH] arm64: dts: imx8mm: Add CPLD on MX8Menlo board
  2022-04-26 19:59 [PATCH] arm64: dts: imx8mm: Add CPLD on MX8Menlo board Marek Vasut
@ 2022-04-26 21:07 ` Marcel Ziswiler
  2022-05-05  3:20 ` Shawn Guo
  1 sibling, 0 replies; 3+ messages in thread
From: Marcel Ziswiler @ 2022-04-26 21:07 UTC (permalink / raw)
  To: linux-arm-kernel@lists.infradead.org, marex@denx.de
  Cc: peng.fan@nxp.com, festevam@denx.de, linux-imx@nxp.com,
	devicetree@vger.kernel.org, shawnguo@kernel.org,
	robh+dt@kernel.org

On Tue, 2022-04-26 at 21:59 +0200, Marek Vasut wrote:
> The CPLD on MX8Menlo board is used to operate custom hardware,
> the CPLD content is compatible with previous M53Menlo CPLD,
> add the bindings.

Looks legit (;-p).

> Signed-off-by: Marek Vasut <marex@denx.de>

Reviewed-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>

> Cc: Fabio Estevam <festevam@denx.de>
> Cc: Marcel Ziswiler <marcel.ziswiler@toradex.com>
> Cc: Peng Fan <peng.fan@nxp.com>
> Cc: Rob Herring <robh+dt@kernel.org>
> Cc: Shawn Guo <shawnguo@kernel.org>
> Cc: NXP Linux Team <linux-imx@nxp.com>
> Cc: devicetree@vger.kernel.org
> To: linux-arm-kernel@lists.infradead.org
> ---
> NOTE: Depends on
>      
> https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git/commit/?h=for-next&id=b61b76dfef30945f175d4acfecb9beb862174f01
> ---
>  arch/arm64/boot/dts/freescale/imx8mm-mx8menlo.dts | 15 ++++++++++++++-
>  1 file changed, 14 insertions(+), 1 deletion(-)
> 
> diff --git a/arch/arm64/boot/dts/freescale/imx8mm-mx8menlo.dts b/arch/arm64/boot/dts/freescale/imx8mm-
> mx8menlo.dts
> index c20db0c550da..92eaf4ef4563 100644
> --- a/arch/arm64/boot/dts/freescale/imx8mm-mx8menlo.dts
> +++ b/arch/arm64/boot/dts/freescale/imx8mm-mx8menlo.dts
> @@ -71,7 +71,20 @@ canfd: can@0 {
>  &ecspi2 {
>         pinctrl-0 = <&pinctrl_ecspi2 &pinctrl_gpio1>;
>         cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>, <&gpio3 4 GPIO_ACTIVE_LOW>;
> -       status = "disabled";
> +       status = "okay";
> +
> +       spidev@0 {
> +               compatible = "menlo,m53cpld";
> +               reg = <0>;
> +               spi-max-frequency = <25000000>;
> +       };
> +
> +       spidev@1 {
> +               compatible = "menlo,m53cpld";
> +               reg = <1>;
> +               spi-max-frequency = <25000000>;
> +       };
> +
>  };
>  
>  &ethphy0 {

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

* Re: [PATCH] arm64: dts: imx8mm: Add CPLD on MX8Menlo board
  2022-04-26 19:59 [PATCH] arm64: dts: imx8mm: Add CPLD on MX8Menlo board Marek Vasut
  2022-04-26 21:07 ` Marcel Ziswiler
@ 2022-05-05  3:20 ` Shawn Guo
  1 sibling, 0 replies; 3+ messages in thread
From: Shawn Guo @ 2022-05-05  3:20 UTC (permalink / raw)
  To: Marek Vasut
  Cc: linux-arm-kernel, Fabio Estevam, Marcel Ziswiler, Peng Fan,
	Rob Herring, NXP Linux Team, devicetree

On Tue, Apr 26, 2022 at 09:59:01PM +0200, Marek Vasut wrote:
> The CPLD on MX8Menlo board is used to operate custom hardware,
> the CPLD content is compatible with previous M53Menlo CPLD,
> add the bindings.
> 
> Signed-off-by: Marek Vasut <marex@denx.de>
> Cc: Fabio Estevam <festevam@denx.de>
> Cc: Marcel Ziswiler <marcel.ziswiler@toradex.com>
> Cc: Peng Fan <peng.fan@nxp.com>
> Cc: Rob Herring <robh+dt@kernel.org>
> Cc: Shawn Guo <shawnguo@kernel.org>
> Cc: NXP Linux Team <linux-imx@nxp.com>
> Cc: devicetree@vger.kernel.org
> To: linux-arm-kernel@lists.infradead.org

Applied, thanks!

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

end of thread, other threads:[~2022-05-05  3:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-26 19:59 [PATCH] arm64: dts: imx8mm: Add CPLD on MX8Menlo board Marek Vasut
2022-04-26 21:07 ` Marcel Ziswiler
2022-05-05  3:20 ` 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).