Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1123411pxk; Fri, 2 Oct 2020 01:21:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwIE79X70Ycbv4E7JnBAtzX46z+x1sEL56Xp0ls4075GJlXEDXbnN0b8VtcTlO60zpQLGy X-Received: by 2002:a05:6402:1007:: with SMTP id c7mr1130138edu.339.1601626909835; Fri, 02 Oct 2020 01:21:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601626909; cv=none; d=google.com; s=arc-20160816; b=h+ZQqE1h+X7NnodaTPAqOC41Ko7xWVAHQzIVK98YalAtv6W37SoV8J2NMsx1nKUoMb JgAEOifTf5rKb3KE8tD2RSJcpiNUR+nHvVl9x7IaXhIJ6sHBvyXN9QQMGbUyOFORoNI8 dUQk5ycAtdU9vilc9mfsa41iOp3rDacqOFejb9SNM25LyhS4ysn/z+g7hOE6rb31FqgJ N1/pUq/4YwrZ1ZBWmZegjrYM9hgj7l2qrtXz4BhV70kLL3nv1bnnztAz2tEPzFxoOQaS NI+/6W4Z0n8PsDpjAgtw2PUH1rq+fvCv6gueIENlEpchzK/LSw/GFVzKbWMDwLbiIngL tQ0A== 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; bh=Bkh1SP/RxLZt/FHcHaOcXfHwmKZUTF99Sb6EVCBToAI=; b=KwvCuCxTv6d/2JWwIigu9uVFFNSZDJggiQarzVqGtxwoiT05xWteGM/S++WTuVOdGq NpR/HxmEhbAWZB9kbc5UvYKVFhgw5vpJfvYk7aYvy/wmSbKnry2oMyBHczoEaOVj/l5E W0SguUH+n2leRLQ23lEZbEHG+nkMR02bNNQ72QNyihng+PQnqXKLvAA0yRS2Fo9uRPR1 BK1NyGgXYhkALTUTSQTuJGsgAfOv+46BLYmaJ7rSFVjv5+/uP19Km2/lDyaQXIIjTFZD 6jJwlVkBrQOd6HZ/gddUV/jCuJ3IeDqqpJ7tI7p+f/UUn9XwNUyLlUS9byHu/6m4Pxaa 0UBw== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lf27si595683ejb.299.2020.10.02.01.21.27; Fri, 02 Oct 2020 01:21:49 -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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387633AbgJBIUY (ORCPT + 99 others); Fri, 2 Oct 2020 04:20:24 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:35838 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387536AbgJBIUS (ORCPT ); Fri, 2 Oct 2020 04:20:18 -0400 Received: by mail-ed1-f65.google.com with SMTP id i1so791924edv.2; Fri, 02 Oct 2020 01:20:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Bkh1SP/RxLZt/FHcHaOcXfHwmKZUTF99Sb6EVCBToAI=; b=CS85g0ZND0gmO0VZCaW0s9IxXZ/PZJ4mYMYi1U/mC2B81cYYKzk69+oT9Xk2Mlb2kY cACf9gK+TiTob/GHClgDBpTU1nwRr0H7KznKlUmSf39n98k30qAttHLtOQXOwym8N50T XPlsmiHBRvr39z3veAOGkYg82aY3ThTWBWDZ7qgBkWCfCuhfvzBnd+s2hxjsXxzfqfUU CkkJfbd4UrHBGV8OyuSCyCeJruyO0SN0miv3ETvReDq91B1Yc568imt8eZHCQLOXY7qg 4TZNffrRoCg9D1KnpMW7QVphmf7lIWVw4KLd84OaqEqdmeAAxe7GYEXTgZIDvqEYjszG ROQA== X-Gm-Message-State: AOAM531zYF5YKGoz2xHRRb2czxRLfP9MIOpyTuydzmk/3J22mDBINsid QZrBrIA1DAytCZKfpUEye6Q= X-Received: by 2002:aa7:d1d5:: with SMTP id g21mr1145493edp.348.1601626815502; Fri, 02 Oct 2020 01:20:15 -0700 (PDT) Received: from pi3 ([194.230.155.194]) by smtp.googlemail.com with ESMTPSA id y25sm633136edv.15.2020.10.02.01.20.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Oct 2020 01:20:14 -0700 (PDT) Date: Fri, 2 Oct 2020 10:20:12 +0200 From: Krzysztof Kozlowski To: Ahmad Fatoum 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 Subject: Re: [PATCH v2 08/12] ARM: dts: imx6dl-pico: fix board compatibles Message-ID: <20201002082012.GA6605@pi3> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <7fcea21d-4651-9ba7-5331-86530296a847@pengutronix.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > > > 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. Best regards, Krzysztof