Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp3364191rwb; Mon, 5 Sep 2022 10:17:52 -0700 (PDT) X-Google-Smtp-Source: AA6agR7DMNuVTpIFvq/Vd1dv0Tha1NwCjK67CsNPS2cl2KsPFZuSJvSl+IIIuG4t0JquwEIXS1qD X-Received: by 2002:a17:907:7d8e:b0:742:8ea0:686c with SMTP id oz14-20020a1709077d8e00b007428ea0686cmr21401758ejc.591.1662398272106; Mon, 05 Sep 2022 10:17:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662398272; cv=none; d=google.com; s=arc-20160816; b=Si/QP9B5SZQpJQ4Mlo8+UoU2Zgf/eXSHv1O0P0EYm3Pei9ZDli2tNc/8QnI2I8DgSZ EhQleLJNwWc6jdCRNkFCI+r2x212pMNKwKJ637gY6RSxVXNzxXRhox+tqxKAQ9t5+Wv1 1x1wmypTg1oaj30CfIHjs00/Sf6Q8nWl6v1Jo8TZEfA6wKPQzU52m1L0kDiEr75IuNan jjsJ9ZlNgsvYPjx8z/LLA4ntNovy1Ng9M0I0vwX9VmrWVPX/BODtYJL46trjjahgrp+s 5ygMtsbVUkOhQi8ByIu1hZED6AseEFUirEYEkg/WkxQtSRc2Nz54Nv+g93rXYLAAsjYE qPlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=T279XQWiLoqAJL2R/Nz1/yqWPLfp4orU8A3H8mbYqps=; b=IVeiKTIkrZafeohXv706Y98OSqtspZ0LEikloIApmGvpyoEKHiM7p+YiW1bOQt9YBO jfWT8pHER93uhENbdawu28KJIV9HzPmlwJqQo5YKvjl6TjAy1THPpUJ2HKo4Sx0Lzii6 2v85ZLHs1DdilGbMXo4LTa/tDouu8yQ0AMKyIedh0raLSg1vi5027bpwz90+du92ME+2 hFR5ccRYZisnKcgeIx+XxuQUCBoWfSHsqYCBjl4j/4E/EVRF038E04ivteiKEvKZoBmU ktnUjdVimkab2Kftqe/lWAbqFz8klH7KwV/zzl8JwlLgboPKsW5fsiuPwyKRS7gPQvuo gxDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="YUzX/1Ac"; 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 js5-20020a17090797c500b007262ad8839esi9266253ejc.16.2022.09.05.10.17.26; Mon, 05 Sep 2022 10:17: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=@kernel.org header.s=k20201202 header.b="YUzX/1Ac"; 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 S231818AbiIERMc (ORCPT + 99 others); Mon, 5 Sep 2022 13:12:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229635AbiIERMb (ORCPT ); Mon, 5 Sep 2022 13:12:31 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 474D063FE; Mon, 5 Sep 2022 10:12:30 -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 dfw.source.kernel.org (Postfix) with ESMTPS id E21C16137C; Mon, 5 Sep 2022 17:12:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E53DAC433D6; Mon, 5 Sep 2022 17:12:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1662397949; bh=KcPI409Ft3Jh7G9xbcUik0k3NRnS/45mIgbEUSHSoFU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YUzX/1Ac28vblnx36NayQ+RVQtMdeg/Mw09DG6Mr+MquKSBVlBcvpQHsvCSth4dOS Dq95iPyPOSBhDrrZBy53/1hy5HvLnp29Tcpe8PSdQxTup1qLGMHHJEsJSXvr5bAc89 VdbyzNhE6jxmOK3x+/dbP18jDJ8nToWiUR+AfIxdM0kxCptr5mkG28iNK411238hf1 +a+IeL2dCeArV/7NB/UMK1kP2K6ykx0H9oibpbiPRPPKt+otP9lS6xA0vAP4LKHGoG Lxacgo4u1MqmY8NHx6p8MY2TIhSjS94JgoPX7vCiiPoCzRWX4VgdwlNOAOJJipKYDg tsY6GCOQ5G0QQ== Received: by pali.im (Postfix) id 34E277D7; Mon, 5 Sep 2022 19:12:26 +0200 (CEST) Date: Mon, 5 Sep 2022 19:12:26 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Krzysztof Kozlowski Cc: Florian Fainelli , Andrew Lunn , 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: <20220905171226.fla6i5cgrx2lbq3u@pali> References: <20220819131152.6513-1-pali@kernel.org> <20220831142809.lcmnv3l4rnulo522@pali> <20220903152735.2ga3iwrivh6zhibf@pali> <30d3f753-187f-4a3f-c14a-f3b003f23773@gmail.com> <7a43aa79-9c40-867c-c585-3bb448a54647@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <7a43aa79-9c40-867c-c585-3bb448a54647@linaro.org> User-Agent: NeoMutt/20180716 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 On Monday 05 September 2022 18:34:48 Krzysztof Kozlowski wrote: > On 05/09/2022 18:19, Florian Fainelli wrote: > > > > > > On 9/3/2022 8:27 AM, Pali Rohár wrote: > >> On Friday 02 September 2022 00:45:58 Andrew Lunn wrote: > >>> 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 not going to send any new yaml dt binding document as I see that > >> dt bindings is clearly deprecated project. Either patches for dt > >> bindings are waiting without any answer for months (maybe year?) or > >> patches are ignored/not accepted by beyond reasons or there are request > >> for changes which cannot work on the real hardware or that new yaml > >> cannot be parsed/validated due to ton of bugs in other schemas. > > > > These are some pretty hard statements that are not nearly true, maybe > > they are based upon your past experience, but Rob and Krysztof provide > > feedback within a few days at most on DT bindings and DTS files. > > Pali, you wrote in the past that you cannot run one command to install > dtschema ("pip") thus for you this automated testing is > difficult/broken/non working. If running one "pip" command is not > possible, what I can say more? Shall I login to your machine and set it > up? Or did you configure your machine that way, that it is not possible > to run one pip command? Sorry no, it is too late. I have already lost interested in it. For me it is like a ride on the dead horse. > Whether the patches are waiting for months and years is difficult to > address to, without actual links. Because for sure you will be able to > find one patch which was missed in our inboxes and you did not get an > answer... With Rob we both work much more than reasonable/healthy 8h > per day... Yet I recall you always received feedback, just not always > what you expected or wanted. Now I have replied to one example email without a reaction. Another example is this https://github.com/devicetree-org/dt-schema/pull/64 which completely blocked any improvements which I proposed in PCIe core code for fixing PCIe state machine. After half of year of waiting I decided to stop any work on this as I see it is dead those schemas. Other examples are that received feedback suggest to do change which does not work on the real hardware. So yes, I cannot accept, expect or want something like that. Schema which works in that ultra-supper-duper software but DTS written according to it does not work on the real hardware is for me useless... > This binding here was never sent to mailing list: > https://lore.kernel.org/all/?q=cznic%2Cturris-omnia-mcu > > >> Sorry, this is just a waste of time and energy to write new those yamls > >> as it does not bring any value. > > It brings quite nice value - allows to check whether your bindings and > your DTS are correct. Any difficulty to install and run dtschema is not > equal to "does not bring any value"... It just took lot of my time and did nothing useful. Hence for it it has zero value. > Anyway devices cannot go without bindings, thus it's a NAK. > > Best regards, > Krzysztof