Skip to contentSkip to conversation

arm64: dts: imx8mm: Add CPLD on MX8Menlo board

PATCH Applied Marek Vasut 3 participants 3 messages Apr 26, 2022 – May 5, 2022

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

PATCH 1/1 arm64: dts: imx8mm: Add CPLD on MX8Menlo board

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

Cc Fabio Estevam <[email protected]>
Cc Marcel Ziswiler <[email protected]>
Cc Peng Fan <[email protected]>
Cc Rob Herring <[email protected]>
Cc Shawn Guo <[email protected]>
Cc NXP Linux Team <[email protected]>

To: [email protected]
---
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(-)
arch/arm64/boot/dts/freescale/imx8mm-mx8menlo.dts +14 -1
index c20db0c550da..92eaf4ef4563 100644
@@ -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 {
Signature · 1 line
2.35.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 3 lines · Marek Vasut

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).

Quoted 1 line
Quoted 41 lines

Cc: Fabio Estevam <[email protected]>
Cc: Marcel Ziswiler <[email protected]>
Cc: Peng Fan <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Shawn Guo <[email protected]>
Cc: NXP Linux Team <[email protected]>
Cc: [email protected]
To: [email protected]
---
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(-)
arch/arm64/boot/dts/freescale/imx8mm- renamed from arch/arm64/boot/dts/freescale/imx8mm-mx8menlo.dts +0 -0

mx8menlo.dts
index c20db0c550da..92eaf4ef4563 100644

arch/arm64/boot/dts/freescale/imx8mm-mx8menlo.dts +14 -1
@@ -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>;
+       };
+
  };
Quoted 2 lines


 &ethphy0 {

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

Applied
#2 lore raw
In reply to Marek Vasut
Quoted 12 lines · Marek Vasut

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

Cc Fabio Estevam <[email protected]>
Cc Marcel Ziswiler <[email protected]>
Cc Peng Fan <[email protected]>
Cc Rob Herring <[email protected]>
Cc Shawn Guo <[email protected]>
Cc NXP Linux Team <[email protected]>
Quoted 1 line

To: [email protected]

Applied, thanks!