From: Pali Rohár <pali@kernel.org>
Date: Thu, 28 Jul 2022 11:06:25 +0000 (+0200)
Subject: arm: mvebu: turris_omnia: Add mcu node with gpio-controller
X-Git-Tag: v2025.01-rc5-pxa1908~1329^2~9
X-Git-Url: http://git.dujemihanovic.xyz/img/static/git-logo.png?a=commitdiff_plain;h=832738974806e6264a3d0ac2aaa92d0f662fd128;p=u-boot.git

arm: mvebu: turris_omnia: Add mcu node with gpio-controller

This allows U-Boot to register new Turris Omnia MCU driver.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
---

diff --git a/arch/arm/dts/armada-385-turris-omnia.dts b/arch/arm/dts/armada-385-turris-omnia.dts
index 7f1478edfd..86904de816 100644
--- a/arch/arm/dts/armada-385-turris-omnia.dts
+++ b/arch/arm/dts/armada-385-turris-omnia.dts
@@ -173,7 +173,14 @@
 			#size-cells = <0>;
 			reg = <0>;
 
-			/* STM32F0 command interface at address 0x2a */
+			/* MCU command i2c API */
+			mcu: mcu@2a {
+				compatible = "cznic,turris-omnia-mcu";
+				reg = <0x2a>;
+				gpio-controller;
+				#gpio-cells = <3>;
+			};
+
 			/* leds device (in STM32F0) at address 0x2b */
 
 			eeprom@54 {