Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1294530rwe; Thu, 1 Sep 2022 16:15:24 -0700 (PDT) X-Google-Smtp-Source: AA6agR43jmRvHFNHK+Y/30rZqW3tyxmNAkLNcaVjTHy3lXTC/PsQ0NBPAfS1/v/pe73xhF3GYSCN X-Received: by 2002:a05:6402:2b8d:b0:43a:5410:a9fc with SMTP id fj13-20020a0564022b8d00b0043a5410a9fcmr30657315edb.99.1662074124544; Thu, 01 Sep 2022 16:15:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662074124; cv=none; d=google.com; s=arc-20160816; b=gNIlv95388fSIMf8pZ2+VAlLbG7DDREvai0ukCfD+8gvUv4coKfRHQ3G6xo1+4f9NJ g9LPhSUKhlKZR442CG2XaRoZ3iXHcaCfHDANi/nnA8sw+TcnQsbWWfrskBDeTDksU+ql di3DFBUWnFhHclJL5xcUnhw6ekfFwY8gVFMQShBGkztVTuBFv7ny+baP4NbYBbHogVDL HHLBX6jQN8zQCI/T3hNBqW5R2nLgm2Z2fj2STv2nCNixUGu0PYJjjx84F+UT4cKQyNJa 4KWfXgf5EW6iEz4GsGG4NA2j2Au6cIszLw/weXhmsFdXcolH49IcujUEDp4h8UiD0yOO +v9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=x+DgUFgLazTEoxlPi4eum/VL9xjskp/JstZFrST/B9g=; b=iUzi+vqzbRr03Y0qNU5XYa7HSMcclWQk/9cxwUMU1YBNzsRVjs46Zsy5N3zXXn+Hah BUQkwz542PNeFCswQF4UCcpEqclryBmU43L9pkC49glP9VHMoUS0MAwSP3V4rpLUTbxn jLqwvtNMCfIuCx3iDLBuJ2QcP2cBbyUbYUsSG7M0VlMt3F/Cm27odBFZGMGHnmd6Wg/6 QaXobRFQ+ZhnDEYrg32TRgEkUUeVp55fcC4W8QFBrUXboqXQKHmkkSoXdo1NylGDpDM2 GjQjYz0C6v4HKeux0wN9NSkKCnNMhko7PhQ4hBsHhNgj2bBtyGKMoOj1BfPhvbxwlCbi hlVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=gK9s9hu0; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 13-20020a508e4d000000b004487c209b0asi273852edx.490.2022.09.01.16.14.59; Thu, 01 Sep 2022 16:15:24 -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=@lunn.ch header.s=20171124 header.b=gK9s9hu0; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233901AbiIAWqQ (ORCPT + 99 others); Thu, 1 Sep 2022 18:46:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229584AbiIAWqM (ORCPT ); Thu, 1 Sep 2022 18:46:12 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65C136E2E3; Thu, 1 Sep 2022 15:46:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Transfer-Encoding:Content-Disposition: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:From: Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Content-Disposition: In-Reply-To:References; bh=x+DgUFgLazTEoxlPi4eum/VL9xjskp/JstZFrST/B9g=; b=gK 9s9hu0hoHMStg5UiyZLEtEPOId0/wrYSDd6UCfZSQ7fTllz/ewwbA/ENucjHAtpvBxTWGbXlHUky2 8TwJ7vmEuBRvOLI+iLMDySES1qYFU4osEo6ngGn1LLpzl6NCGtZ+5I2u+3O43bmhW7t52ysyLInTg A70CEKK6iu25zN4=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1oTswg-00FLOQ-Uj; Fri, 02 Sep 2022 00:45:58 +0200 Date: Fri, 2 Sep 2022 00:45:58 +0200 From: Andrew Lunn To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: Gregory Clement , Sebastian Hesselbarth , Rob Herring , Krzysztof Kozlowski , Marek Behun , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ARM: dts: turris-omnia: Add mcu node Message-ID: References: <20220819131152.6513-1-pali@kernel.org> <20220831142809.lcmnv3l4rnulo522@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220831142809.lcmnv3l4rnulo522@pali> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,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 On Wed, Aug 31, 2022 at 04:28:09PM +0200, Pali Roh?r wrote: > PING? > > On Friday 19 August 2022 15:11:52 Pali Roh?r wrote: > > 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>; > > + }; Please document the binding, preferably in yaml. I'm also not sure what the DT people will say about the node name mcu. I don't see any examples of that in the binding documentation. They might request you rename it to gpio-controller, unless it does more than GPIO? And if it does do more than GPIO we are then into mfd territory, and the binding then becomes much more interesting. Then we start the questions, are you defining a ABI now, before there is even a driver for it? Andrew