Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp1099372rwb; Sat, 3 Sep 2022 08:24:52 -0700 (PDT) X-Google-Smtp-Source: AA6agR70vZ43JHCEvVXNaMxewcA9Zls94PPIjokLlXRrJc766OAcjTFyrRXzu2jZ0EUqBhhDbwXp X-Received: by 2002:a17:902:ef4e:b0:175:3798:626f with SMTP id e14-20020a170902ef4e00b001753798626fmr20149122plx.82.1662218692245; Sat, 03 Sep 2022 08:24:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662218692; cv=none; d=google.com; s=arc-20160816; b=whJVe1pVyyhw8hV+EjMGSImFAWgW1n2abLABsnNWlyQfgEcNCPMrL8ausBUkor/07V 4B6LpRDEUAXMVJeTaqQ4EybcrnC1epVulqkqG25PeQh/8vNaRM40njvsR0zSqFf+x1l4 pkG5jEWZFH8Q/7Yb3A8z1200xbOm4LJSpYWvJZKHgU6e0oiOxGYhmknHUJnWmTMuEz17 z6yTD/unuBFc8zsQNcGuugNnHVEY4V1BqU++5NEZZXhyABJbIZ47zGbHjNxgMCBR/oxO Dd6Yx4NSAEqN39bCkWPhJJwXEOuogTOvM+7MKayJJrFqDY1RUDTBqimrNsJj52i9sLWI Kg+Q== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=BiitqeKalMPshyno6OYFxIT0YzySsq7ePYD/GgFK/wU=; b=HzvcGtDdPbn5O9EH0rKnysbs3/KYW9YMGUQAv6z+T7mn/MT5cjwtTTspnSJZF5vCo5 pz5uwr55iQIcd0brbkpSXgq/vdkIW2va0o9N0j0izBVwETY5Hlx0fi1vFMlNjQDMSgAT 7t0/XNlEBVGjIwcFFFZvbW5Ot32ieuqp4X4D3c4t9qYirOV9i08wX8UdCxWrg6Bf/FfR 5p0oZ8zcyrqRLr9sFIjTEez5xxl/+vc8N14Hp3Jx1cQ5vHvYXsQFLGf3UbekvuecUr3U buBtnWV0LjU3pvI1kpM4hxavfDOEex4N790bhGbqLDbEhsr265koyzVoXPobyKFIcw7k uy7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=TkoZpy3K; 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 o20-20020a17090ac71400b001fb0337f850si7467313pjt.32.2022.09.03.08.24.39; Sat, 03 Sep 2022 08:24:52 -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=TkoZpy3K; 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 S230507AbiICPNP (ORCPT + 99 others); Sat, 3 Sep 2022 11:13:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229525AbiICPNO (ORCPT ); Sat, 3 Sep 2022 11:13:14 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 247DC41D34; Sat, 3 Sep 2022 08:13:12 -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-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=BiitqeKalMPshyno6OYFxIT0YzySsq7ePYD/GgFK/wU=; b=TkoZpy3K7Y7WD4HUl5W90O86ph lcawWuy6T88t1KjgVa6YCokVy7lQzN2zZnVan2F77Y8svLmvFwqClP5s3Huq2HVfZFaujLAPjqvXL m9LNA2yCPu6n2r4vrIjW3PUa8GvjdzhAYIlWUkhsAs094KEuFeBihH6cxR7JAx/df/Dg=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1oUUpK-00FVsj-G9; Sat, 03 Sep 2022 17:12:54 +0200 Date: Sat, 3 Sep 2022 17:12:54 +0200 From: Andrew Lunn To: Marek =?iso-8859-1?Q?Beh=FAn?= Cc: Pali =?iso-8859-1?Q?Roh=E1r?= , Gregory Clement , Sebastian Hesselbarth , Rob Herring , Krzysztof Kozlowski , 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> <20220903043828.6afd3ab4@thinkpad> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220903043828.6afd3ab4@thinkpad> 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 > > > > 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? > > Most probably mfd territory. It is at least a gpio-controller, > reset-controller and watchdog. O.K. Then i suggest we wait for the actual drivers before committing any DT. The binding will need revier, and could change. Andrew