Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp899288pxb; Tue, 1 Feb 2022 12:44:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJz5Eebmtg+C7W4De1ESoN63b1eaSJs+SjLa8UU7cATDeWlh2GcGzxksIsqcnjecniFarX7V X-Received: by 2002:a17:90a:8804:: with SMTP id s4mr4357070pjn.129.1643748295159; Tue, 01 Feb 2022 12:44:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643748295; cv=none; d=google.com; s=arc-20160816; b=vsYKsHTn2x+4lRWIPnV5vysodpd3HuLQw5emQai5f5XMMz7e/1WgUJ3T4sE2Ytwwq0 xbZlUYGENxqlluCZKvEGCrcyluj8OUWcPP/xfzvJX013BbV1ZqXWNB/NXJCNHpWG4kii CVcvoAucM87lY+vvO8GNx2VcWfvJZHuDt0Cb6xk4Vdxa4QDpOwblyYCfXsDmEL5GK+To YkUx54TANWACcTBVypMS16u0kMfaHa3cdWidwxxMhskyVzQqV9ef4H7xrBJxeSvCuVDM ug2VfhHo3JXfdxbimBzo/y/R/4jzk+d7bHDHCAQAsjvpSRSaNVO+u5/oBzQ2O4WXGNcG Ms1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=aoJBR2UAHuZ27nnY7SUfUkCqFdZWcHemP7QDz7/AXSA=; b=j1JEIDzwHAOhq0ePKeeBkfu248eA5YyyQu31Tyt/TJkJ5RE6SaZFoVvXDSdtF9N4KW E9fG0wZN7ynjaBczTyHEhPLq2mrtcEnfxNPrO3IpYEHZ4w8WOwAFOZiA+J0YHBe2mtJq wyJ5+1Ami+mDZyUdCR1YcpnJ5kQYoJ+/HQo/HGXlVMHsk1CGS8D21tt5+RmCV4CMV0gV beIAYxr9fUHOmbCWwSy6Tx8uQ/8p76b1FAYvqQyg5Uw96bw6NWpp74BuatbDzASorshR f3zVdZO7ZMH6OKUUgBI7rYjeb43RCiKrW6y1DEvQQk45X3yOkVAQ7G3nlXz97H2iwfTM 7nWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=EIzWMoBb; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b16si18111147pfm.13.2022.02.01.12.44.43; Tue, 01 Feb 2022 12:44:55 -0800 (PST) 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; dkim=pass header.i=@chromium.org header.s=google header.b=EIzWMoBb; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1380606AbiAaQvJ (ORCPT + 99 others); Mon, 31 Jan 2022 11:51:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380622AbiAaQvH (ORCPT ); Mon, 31 Jan 2022 11:51:07 -0500 Received: from mail-il1-x12a.google.com (mail-il1-x12a.google.com [IPv6:2607:f8b0:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C97AC06173B for ; Mon, 31 Jan 2022 08:51:07 -0800 (PST) Received: by mail-il1-x12a.google.com with SMTP id z18so3136048ilp.3 for ; Mon, 31 Jan 2022 08:51:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=aoJBR2UAHuZ27nnY7SUfUkCqFdZWcHemP7QDz7/AXSA=; b=EIzWMoBbBvH13FGod+pwqX1OF+cE3PacbCpDfqOmTlNJJbsSanl6RvXlQkO8wK5GcB 7yIDXpYgkIK9uxGQHVBrnRpE4eA+EFn5edIeggvXvS9jF6R7H8xhI9/AuweD9E4zA7nG UwC5RMM7yacKTGnTPSfMdbG4dBLkxpGqyPkrA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=aoJBR2UAHuZ27nnY7SUfUkCqFdZWcHemP7QDz7/AXSA=; b=LnqWjzowQoQY4rcNPCfBm9dGAMG3TmOUXToYnG0Cwr1aQyhkEfDFSBNr8Rnu9LSaAu 5MhY0NAPyzjEcGWaLvbHLdoe+D01bOgs1un/1eMUKcOFr1AQmqE/ca5d7/2MS9XOjJ6T 29ReH/xJxyBrEWWU36HUnbDcBdZFnj7pK+OhPln80ozJ5GKoEbgS/SebVjPwhFKz0VR2 dSGIgQgr0SSIbC9U3RxT3rRnMwmifeaXPDjtMk7nTCklClDYLxT+YtwVhhX/ZYDoa8sw aooBBtXDZXGYzRQlq7h3XmCnOJosoCmT6ZrR+jrE5VwIcgdw5WFg0BPnPtp7QCCuruCQ uLQA== X-Gm-Message-State: AOAM532ndD1qSeVfbXCB02qCujPhF6mwW1k8nqIMjXEvuRnnU9kQQRDi HpTMx2VMqtd08rXbFNrJ4Hvt75Stf9rUMg== X-Received: by 2002:a92:3f0f:: with SMTP id m15mr12967253ila.112.1643647866243; Mon, 31 Jan 2022 08:51:06 -0800 (PST) Received: from mail-il1-f182.google.com (mail-il1-f182.google.com. [209.85.166.182]) by smtp.gmail.com with ESMTPSA id e5sm17978513ilq.9.2022.01.31.08.51.04 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 31 Jan 2022 08:51:05 -0800 (PST) Received: by mail-il1-f182.google.com with SMTP id d3so11904255ilr.10 for ; Mon, 31 Jan 2022 08:51:04 -0800 (PST) X-Received: by 2002:a92:cd84:: with SMTP id r4mr13019803ilb.180.1643647864404; Mon, 31 Jan 2022 08:51:04 -0800 (PST) MIME-Version: 1.0 References: <20220125224422.544381-1-dianders@chromium.org> <20220125144316.v2.5.I5604b7af908e8bbe709ac037a6a8a6ba8a2bfa94@changeid> In-Reply-To: From: Doug Anderson Date: Mon, 31 Jan 2022 08:50:52 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 5/5] arm64: dts: qcom: sc7280: Add herobrine-r1 To: Bjorn Andersson Cc: Stephen Boyd , Viresh Kumar , Konrad Dybcio , kgodara@codeaurora.org, Matthias Kaehlcke , Sibi Sankar , Prasad Malisetty , quic_rjendra@quicinc.com, Andy Gross , Rob Herring , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-arm-msm , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Mon, Jan 31, 2022 at 8:41 AM Bjorn Andersson wrote: > > On Thu 27 Jan 15:16 CST 2022, Stephen Boyd wrote: > > > Quoting Bjorn Andersson (2022-01-25 19:01:31) > > > On Tue 25 Jan 15:46 PST 2022, Doug Anderson wrote: > > > > > > > Hi, > > > > > > > > On Tue, Jan 25, 2022 at 2:58 PM Stephen Boyd wrote: > > > > > > > > > > Quoting Douglas Anderson (2022-01-25 14:44:22) > > > > > > diff --git a/arch/arm64/boot/dts/qcom/sc7280-herobrine-herobrine-r1.dts b/arch/arm64/boot/dts/qcom/sc7280-herobrine-herobrine-r1.dts > > > > > > new file mode 100644 > > > > > > index 000000000000..f95273052da0 > > > > > > --- /dev/null > > > > > > +++ b/arch/arm64/boot/dts/qcom/sc7280-herobrine-herobrine-r1.dts > > > > > > @@ -0,0 +1,313 @@ > > > > > > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) > > > > > > +/* > > > > > > + * Google Herobrine board device tree source > > > > > > + * > > > > > > + * Copyright 2022 Google LLC. > > > > > > + */ > > > > > > + > > > > > > +/dts-v1/; > > > > > > + > > > > > > +#include "sc7280-herobrine.dtsi" > > > > > > + > > > > > > +/ { > > > > > > + model = "Google Herobrine (rev1+)"; > > > > > > + compatible = "google,herobrine", "qcom,sc7280"; > > > > > > > > > > Can we stop adding "qcom,sc7280" to the board compatible string? It > > > > > looks out of place. It's the compatible for the SoC and should really be > > > > > the compatible for the /soc node. > > > > > > > > I don't have any objections, but I feel like this is the type of thing > > > > I'd like Bjorn to have the final say on. What say you, Bjorn? > > > > > > > > > > One practical case I can think of right away, where this matters is in > > > cpufreq-dt-plat.c where we blocklist qcom,sc7280. > > > > > > I don't know if we rely on this in any other places, but I'm not keen on > > > seeing a bunch of board-specific compatibles sprinkled throughout the > > > implementation - it's annoying enough having to add each platform to > > > these drivers. > > > > Looking at sc7180, grep only shows cpufreq-dt-plat.c > > > > Good, then we handle all other platform specifics in drivers using > platform-specific compatibles. > > > $ git grep qcom,sc7180\" -- drivers > > drivers/cpufreq/cpufreq-dt-platdev.c: { .compatible = "qcom,sc7180", }, > > > > Simplest solution would be to look at / and /soc for a compatible > > string. > > > > You mean that / would contain the device's compatible and /soc the soc's > compatible? I'm afraid I don't see how this would help you - you still > need the compatible in the dts, just now in two places. > > > Either we leave it as is - which follows my interpretation of what the DT > spec says - or we (and the DT maitainers) agree that it shouldn't be > there (because this dtb won't run on any random qcom,sc7180 anyways) at > all. I'm curious what part of the DT spec says that we should have the SoC in there? I know I've always done it, but it's always just been following the examples of what was done before. When talking about the root node, I see this in the `devicetree-specification-v0.4-rc1` spec: --- Specifies a list of platform architectures with which this platform is compatible. This property can be used by operating systems in selecting platform specific code. The recommended form of the property value is: "manufacturer,model" For example: compatible = "fsl,mpc8572ds" --- That doesn't say anything about putting the SoC there. I would also note that I'd be at least moderately inclined to land things as-is and deal with this in a follow-up patch, though I'm happy to spin if that's what people agree upon too. This is not a new problem and so it doesn't seem like it makes sense to glom dealing with it into this patch series... -Doug