public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: "Pali Rohár" <pali@kernel.org>
To: Stefan Roese <sr@denx.de>
Cc: Marek Behun <marek.behun@nic.cz>, u-boot@lists.denx.de
Subject: [PATCH v2 2/2] arm: mvebu: turris_omnia: Add mcu node with gpio-controller
Date: Thu, 28 Jul 2022 13:06:25 +0200	[thread overview]
Message-ID: <20220728110625.25814-2-pali@kernel.org> (raw)
In-Reply-To: <20220728110625.25814-1-pali@kernel.org>

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

Signed-off-by: Pali Rohár <pali@kernel.org>

---
Changes in v2:
* Add missing #gpio-cells for phandle usage
---
 arch/arm/dts/armada-385-turris-omnia.dts | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/arch/arm/dts/armada-385-turris-omnia.dts b/arch/arm/dts/armada-385-turris-omnia.dts
index 7f1478edfd23..86904de816de 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 {
-- 
2.20.1


  reply	other threads:[~2022-07-28 11:06 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-25 13:01 [PATCH 1/2] gpio: Add Turris Omnia MCU driver Pali Rohár
2022-07-25 13:01 ` [PATCH 2/2] arm: mvebu: turris_omnia: Add mcu node with gpio-controller Pali Rohár
2022-07-28  6:34   ` Stefan Roese
2022-07-28  6:33 ` [PATCH 1/2] gpio: Add Turris Omnia MCU driver Stefan Roese
2022-07-28 11:06 ` [PATCH v2 " Pali Rohár
2022-07-28 11:06   ` Pali Rohár [this message]
2022-07-29  6:28     ` [PATCH v2 2/2] arm: mvebu: turris_omnia: Add mcu node with gpio-controller Stefan Roese
2022-07-29 12:01     ` Stefan Roese
2022-07-29  6:28   ` [PATCH v2 1/2] gpio: Add Turris Omnia MCU driver Stefan Roese
2022-07-29 12:01   ` Stefan Roese

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220728110625.25814-2-pali@kernel.org \
    --to=pali@kernel.org \
    --cc=marek.behun@nic.cz \
    --cc=sr@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox