Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1612040rwb; Fri, 19 Aug 2022 06:39:26 -0700 (PDT) X-Google-Smtp-Source: AA6agR4ZIeeq/f/yqYMiK8YqAEZsna0rqkNNbZxnlc01gVQp42FqxGW//CWbwtqph4pt4ZZq8Czz X-Received: by 2002:a17:907:6089:b0:734:be0c:e0cd with SMTP id ht9-20020a170907608900b00734be0ce0cdmr4925775ejc.474.1660916366238; Fri, 19 Aug 2022 06:39:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660916366; cv=none; d=google.com; s=arc-20160816; b=FHy/BnIyAvagSPHrJCpNWQa5nJzDVnGG6llRfXabOZz8B4r3FrbYg4juP1619CsKwf EcAF2ZpKBisWjW4pPT0IoT4cXa2NoOh4tKdGvkQ41EL/OXdACy9MJzYPJar4CNdIN4WN 35iwIXK1pkPEL0xLRcr2ivyuGkZTI2TNBQplP1lcmi8IW4jy++wCkSxai5l4HTQKuvbs QHU2kxTZaBW7vTbvgsCjXcnFMk7xJhF9fOdsZqpVVcJAQHqMMq6+b4/jKY9yTx9wTBbd ZGa4bH5qtu/gh+rgkcMyDLurQcDcWOgeuNeAbY4s+7SaxFCqMpLyAlTjzkyRBY5Uq50w q3Ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=U+AevGJEqmYIpi1SVpprWQrPgoRM/C1Iabr9b5n36to=; b=LXW4FA7ApkPUyFFcLNSghKYiUWYk/NVOwtEo/iIAcqiSqU8s5BTA2HgEGLHbiiqDvB GFylMF7WKQL2IRKh3XVwwPptYwvWW1AdEN7sJBaudz5GuqmyhUna7ygvW34kYXBQLdT0 Dh5opPXNdYTlgQ2slU58Y0wUV/SMFAx0ZsSi7ocY6m8/JfpAG2rwhmYT+SqUNWTSArvB OLO1dAmWAT24nyDfCkXdM8bu5J9c8ipP8bkxfEyxGmqD+p07RxtxwOMqYl5DenBT1roI amOHmH8uYSJGjwFx6pJtgPkRWi6399KMtRyYENKWExZaPelhxGM75XJ7MuvjudehnE5m bK6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Pe/L85jc"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i16-20020a17090639d000b00730e795879esi2371023eje.356.2022.08.19.06.39.00; Fri, 19 Aug 2022 06:39:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Pe/L85jc"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349045AbiHSNVx (ORCPT + 99 others); Fri, 19 Aug 2022 09:21:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348748AbiHSNVu (ORCPT ); Fri, 19 Aug 2022 09:21:50 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FA1EEE686; Fri, 19 Aug 2022 06:21:47 -0700 (PDT) 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 ams.source.kernel.org (Postfix) with ESMTPS id 1AD64B825BF; 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=20Roh=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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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"; -- 2.20.1