From patchwork Fri Aug 19 13:11:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Pali_Roh=C3=A1r?= X-Patchwork-Id: 12948827 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9FA05C32771 for ; Fri, 19 Aug 2022 13:22:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=jq8auZcj2wOCHut2kZ3TJIJNHnGog7bHKweucY6sea4=; b=shy+i0oQMywb5h 5mfHtgb0Z2JEN4CBgRponype3Ibbj2Gph/rXlyvb0sX329mgM9UePduhHgdRC++L4wS+BkFq0kjOY 9bLgHfixPutdxSXaR/gtWgGhDb95YMI3m1ABevnMdynVx8mBMtyk7TgtPzPfshCh7z68tsXkE7U5T Bu/e6orN2TNZC/N1G+SZOIDig1iNK2URyqoM1k4ikz4M41sH8AbqVsQrAg7XF5T+Mf6y5fvJrZyQk NN4+GWJTCoV9QUO7sU9qF3SsLDfSOzOE93LimnjRKGOLCrNY5j8sgWGB8azrj8V2lyIRkePiglu/+ jmrQi3prWO9SPZYxr6dg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oP1wm-008i35-23; Fri, 19 Aug 2022 13:22:00 +0000 Received: from sin.source.kernel.org ([2604:1380:40e1:4800::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oP1wh-008hyv-Pq for linux-arm-kernel@lists.infradead.org; Fri, 19 Aug 2022 13:21:57 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 4734ACE2618; Fri, 19 Aug 2022 13:21:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6C7DCC433D6; Fri, 19 Aug 2022 13:21:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660915304; bh=mYD368IWeJoxT8nG1mYtmFWpeb/lHHm5JRI5bGDo3Os=; h=From:To:Cc:Subject:Date:From; b=Pe/L85jcxhl5BdWRZsaZYxpoZkz+2DdQn71SwfFd+7gqrg37mXPd0Y/28V+nkY/7d t3VuHkndXMxvHWPFHo4JmHk6N42RdY9KXEeH3Lo1FMl+A6ywviZ1yyKi6+EUPncsfw aWrfdFJZY4l6aF3+KdDdMShfpHy6GOeJYSaUAEO3TE6L4egCnLltJuhKg2Mv/8E2gM fz1/+3leHQXA3sFP2dSlcGZltAnOxaYUxBqHdkL4SYUlELCZqgOxCxvTJH1Tusupg8 0U48UbGc2mbiWU+P/xETv6r6TOMvsGFNYLjOpzK8eynMUH5j08AtQR5nwas6le0vQ3 R489G97CR5ONg== Received: by pali.im (Postfix) id 4F192761; Fri, 19 Aug 2022 15:21:41 +0200 (CEST) From: =?utf-8?q?Pali_Roh=C3=A1r?= To: Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Rob Herring , Krzysztof Kozlowski , Marek Behun Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: dts: turris-omnia: Add mcu node Date: Fri, 19 Aug 2022 15:11:52 +0200 Message-Id: <20220819131152.6513-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220819_062156_029651_9A0A3225 X-CRM114-Status: GOOD ( 15.41 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org At i2c address 0x2a is MCU command interface which provides access to GPIOs connected to Turris Omnia MCU. So define mcu node in Turris Omnia DTS file. Signed-off-by: Pali Rohár --- Same change was already sent to U-Boot project together with driver. As Turris Omnia DTS file is shared between Linux kernel U-Boot, I'm sending this change also in Linux. There is a plan to write also Linux driver for Turris Omnia MCU, like there is already in U-Boot. https://source.denx.de/u-boot/u-boot/-/commit/832738974806e6264a3d0ac2aaa92d0f662fd128 https://source.denx.de/u-boot/u-boot/-/blob/master/drivers/gpio/turris_omnia_mcu.c --- arch/arm/boot/dts/armada-385-turris-omnia.dts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/armada-385-turris-omnia.dts b/arch/arm/boot/dts/armada-385-turris-omnia.dts index f4878df39753..f655e9229d68 100644 --- a/arch/arm/boot/dts/armada-385-turris-omnia.dts +++ b/arch/arm/boot/dts/armada-385-turris-omnia.dts @@ -184,7 +184,13 @@ #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>; + }; led-controller@2b { compatible = "cznic,turris-omnia-leds";