Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1131786pxk; Fri, 2 Oct 2020 01:38:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwtGtOeB+hsODgcMqj32EfaFey/mY7w6jVDFxS5l14B4wnFs/wWodMCx7HebwaeL/AaXlda X-Received: by 2002:a17:906:3f95:: with SMTP id b21mr1130015ejj.93.1601627885809; Fri, 02 Oct 2020 01:38:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601627885; cv=none; d=google.com; s=arc-20160816; b=ozJy8xsqc0UYGg3t30NRGBsDvMzFRhPxNeSFpkb5Hm6TWXkcZ9cRMMLmAHk8IawOiC NCWc3FDde0R6UbzCuLBWa7nPVu/BNDU+gYG4MsQn9KY4wxsYUg4NWLXAK3jLrnqVm6VT NwLW/qHnbQmAX0WwKM29F0kH/sMHtR3Qg0kBSL/lq9f4QH0I58NDxaETpiTxLqeR+7K5 cmdi1alS/MbDoD2UmAgrpb0tdNjZ7cWstUfZm8zhWZGX3UJMauCA+G1CT2fyx3J3b5Kb Zz7cnl1NsborOszwtow3MSUqK+C+HYBT1gCM5DVzMvPEJ8VQyfH1vaV7jMiRYqJfuhDv 0Dvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=F5zY02mnp8nVEVK7j1MLlb1/QvXrxNPtVOI/S0bC9/Y=; b=jbD7VHDEtJ0wnWGEDZGrrhhUuJhR6YRXRRjCDsRVHZFvuvygNdVu9vtDw4Q+rntyw2 +8/4ya7h6Qz5ofWMVTQ4s10y4zNEDRCqD8i/ZMVBhxaGgOFlXMCOhSTMi+ZOix0tzooc qTlzltzOobpzfdKSVFbC/4bE7InNynDiE5D7VORUGVYR5DQcVXqJ3473m7em8YjW/Gmw HQwd4AB8FmFv9Z7pbEUXVc6oVVeF+GIdNe7yBTin9ZJfYDf/sVMidmxS9hpvEK6chesY wp95hQ7Ctn91NEYxmqs/xhxUbjBlJARLbBRn1zrq50fXI5+HfkMYhtQgINrsJoXk2KBl fTaw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g16si652850ejf.211.2020.10.02.01.37.42; Fri, 02 Oct 2020 01:38:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387604AbgJBIed (ORCPT + 99 others); Fri, 2 Oct 2020 04:34:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725961AbgJBIed (ORCPT ); Fri, 2 Oct 2020 04:34:33 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CDA5C0613D0 for ; Fri, 2 Oct 2020 01:34:33 -0700 (PDT) Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=[IPv6:::1]) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1kOGWN-0002M2-NK; Fri, 02 Oct 2020 10:34:31 +0200 Subject: Re: [PATCH v2 08/12] ARM: dts: imx6dl-pico: fix board compatibles To: Krzysztof Kozlowski Cc: Rob Herring , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Anson Huang , Andreas Kemnade , Stefan Riedmueller , Robert Jones , Li Yang , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20200930190143.27032-1-krzk@kernel.org> <20200930190143.27032-9-krzk@kernel.org> <0a0afea6-8cbb-3e89-5a4f-89660c942ca3@pengutronix.de> <20201001073208.GA5208@kozik-lap> <027fd826-6822-9e92-0c6c-2ebed63f4a07@pengutronix.de> <20201001103704.GA26287@kozik-lap> <7fcea21d-4651-9ba7-5331-86530296a847@pengutronix.de> <20201002082012.GA6605@pi3> From: Ahmad Fatoum Message-ID: <784e0528-f4c1-5c0f-44e8-b19afbffe3ba@pengutronix.de> Date: Fri, 2 Oct 2020 10:34:29 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20201002082012.GA6605@pi3> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: a.fatoum@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On 10/2/20 10:20 AM, Krzysztof Kozlowski wrote: > On Fri, Oct 02, 2020 at 09:41:28AM +0200, Ahmad Fatoum wrote: >> Hello, >> >> On 10/1/20 12:37 PM, Krzysztof Kozlowski wrote: >>>> The existing binding doesn't cover these boards then and needs to be >>>> extended, no? How about following patch? >>> >>> What do you mean it doesn't cover? It was added exactly to handle them: >>> + - technexion,imx6q-pico-dwarf # TechNexion i.MX6Q Pico-Dwarf >>> + - technexion,imx6q-pico-hobbit # TechNexion i.MX6Q Pico-Hobbit >>> + - technexion,imx6q-pico-nymph # TechNexion i.MX6Q Pico-Nymph >>> + - technexion,imx6q-pico-pi # TechNexion i.MX6Q Pico-Pi >>> >> >> Still they are unused. So I'd think these boards should be handled like boards >> that predated bindings: a binding is written that doesn't break existing users. > > OK, let's assume the binding is not correct and DTSes are good. > >> >>>> [I guess we need to keep the two-compatible list they were originally >>>> in for compatibility even if it's unused among upstream device trees?] >>> >>> You want to change both the binding (thus breaking the ABI) and update >>> the DTS to reflect new ABI. Then why having a binding at all? >> >> If we leave the old two-compatible enumeration intact, there is no ABI broken. > > Just to clarify, because I don't get here the "no ABI broken" part: > ABI is the binding, not the DTS. We can change intree DTS as we like, > replace compatibles, add nodes, remove nodes. There is no stability > requirement for DTS contents. > If we leave two-compatible binding intact, it is a broken binding since > beginning. Removing non-working, fake ABI is not breaking it because it > could never work. Then I misunderstood you. I was thinking about possible out-of-tree users that have boards based on this and are adhering to the binding. Dropping the binding would break those (albeit it's a quite manageable form of brokenness here). >>> I would assume that either binding is correct or DTS. You propose that >>> both are wrong and both need changes... in such case this is clearly >>> broken. >> >> IMO the DTS is the correct one. If you want to honor the author's intention >> that each base board has a different compatible, it should be an extra >> compatible and not replace the existing one that may be already in use. > > OK, we can go with DTS approach. I fixed few of such cases as well, > assuming that DTS was intended and binding was incorrect. In such case > all boards will be documented under one compatible technexion,imx6q-pico > and DTS will not be changed. Sounds good. If further differentiation proves to be needed, it can be a new compatible added in a separate commit. Thanks Ahmad > > Best regards, > Krzysztof > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |