Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5571470pxb; Mon, 7 Feb 2022 05:10:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJxO2hZiwFjB0ufoP/6zP9P3fjN95/ndoGH6E+wDBXRuO9asip586yoJz2HY73Em8q6Zhj9V X-Received: by 2002:a17:90b:306:: with SMTP id ay6mr6585204pjb.113.1644239454080; Mon, 07 Feb 2022 05:10:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644239454; cv=none; d=google.com; s=arc-20160816; b=Ax28p0VejGbbQMOOcX4Qs2ptwOS4JwkWvycPb9J+COIC8H9mLrIupgKKQpM2bugMZc rM1mJMwdI4EA5tdW7g38+0iBbVxAGUyff0mRe4XEhlOSYvSggf+jfAjfGqVggiPI81jo Aqq5XamSkz5j4kC1Ks2Ts8TRtVJWEA1TnkNd/jlYuqyYUXvOJbvnHXX01tWr7GHj9/4p 36yv5DdMW3ZtdOMxT32OgTy4aQX8tSltN1V2/+oIFsISj7K4wnFyHW5heIaTDvRNtLZO Hf3P9xlTKsgjI7drULZEil6kJmVB6Yj+ubK1XN6P8WjN+t0qB2kr7vX5FlophnXAx++R NAmA== 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:user-agent:from :references:in-reply-to:mime-version:dkim-signature; bh=EKi8zmFFIs9yTKizbnsGRhz+ao0w4WrMRZ97vyp1W+Y=; b=shfXBLnHdEA/ZWMXfK+rgvDY6mLD+n8YATo9qgW77+a/UzLjcnSrd1uO0coJ+BEXUQ vxf/+nReir089SoO/+WcyVZ7NeB1UV76Y5kOSvNb7Ox/i5YkjQDItMORiZEQhI8VahBk gye5e2qtimMh2FvlcM1ufWFBCLfPLA5aW8uFfBsE3tmlpPS3YxFfWaJksOJRifUJY4lj sJ3ioF4K+TxrSuteib7S/zC5pGFugsO4O3qWiwePjTNndFIbs1b1x2EkkGdFX1s4wV73 p3WZZLI1by+25dkYlI2/DCwAnTdsG28bhnNXC8vyVnQdOn2xXIezHcTYwY5PwxY+uDZO c+FQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=IdeSykH5; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lb4si19598423pjb.11.2022.02.07.05.10.34; Mon, 07 Feb 2022 05:10:54 -0800 (PST) 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=@chromium.org header.s=google header.b=IdeSykH5; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242921AbiBCVzi (ORCPT + 99 others); Thu, 3 Feb 2022 16:55:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355558AbiBCVzf (ORCPT ); Thu, 3 Feb 2022 16:55:35 -0500 Received: from mail-oi1-x235.google.com (mail-oi1-x235.google.com [IPv6:2607:f8b0:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74929C06173B for ; Thu, 3 Feb 2022 13:55:35 -0800 (PST) Received: by mail-oi1-x235.google.com with SMTP id 4so6188988oil.11 for ; Thu, 03 Feb 2022 13:55:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:user-agent:date:message-id :subject:to:cc; bh=EKi8zmFFIs9yTKizbnsGRhz+ao0w4WrMRZ97vyp1W+Y=; b=IdeSykH50iytRrZJsr567YWJhlQaOMbwAS+475H/ax5nj9hbp8d2dBM5geJMdQfDIh eH/tsiq7YR0xjucM/lknhQk1DagoJcgAbLm1tqBNEc0/JcZ3G2r5SOuvB/DQbA+8Oir6 mIGDg1l31FJneI+1B67klYZ5BOqEny+JXTZxk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:in-reply-to:references:from :user-agent:date:message-id:subject:to:cc; bh=EKi8zmFFIs9yTKizbnsGRhz+ao0w4WrMRZ97vyp1W+Y=; b=an5irUd4ykePK/VTUXZVmukyoV99L6saSwO+6TOae/XmlHa0z/Qf3fSeKiMKF7CnKn Jdaa+2YHHrw4jDA69n18qhJR8g/XkfxqVeNsBpgrfSfY7uPRrXHG/y3dQKaAfJShlt6S GsblK9p7fZyDZTx3daeZFidRN+E3n7+2dyDe+zHnPA0rViA5ZuS0spVg3I+CZALXWALO GgaQqFdWYSOeFyR3oPX/STKqfeUIT2TYiINOpoPTMbKuC5yTgBSQaELllznieOJyIwKu /cQNyQ2JqIle3KBaktegGgHSyJ175hQllpWLHdRuPlZ+9uDjgGre8YBAZBjvBhev0CVF FMqA== X-Gm-Message-State: AOAM530QueF+wiC1OwJ5F1cpUl/33BTutwAmkmItsWYekpOx3/MHBVPP b2hrwKLicjL19scauVf2N++6ic6LCFZTF9YXGWvorw== X-Received: by 2002:aca:df82:: with SMTP id w124mr9157oig.112.1643925334493; Thu, 03 Feb 2022 13:55:34 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 3 Feb 2022 21:55:34 +0000 MIME-Version: 1.0 In-Reply-To: References: <20220125224422.544381-1-dianders@chromium.org> <20220125144316.v2.5.I5604b7af908e8bbe709ac037a6a8a6ba8a2bfa94@changeid> From: Stephen Boyd User-Agent: alot/0.10 Date: Thu, 3 Feb 2022 21:55:34 +0000 Message-ID: Subject: Re: [PATCH v2 5/5] arm64: dts: qcom: sc7280: Add herobrine-r1 To: Bjorn Andersson Cc: Doug Anderson , Viresh Kumar , Konrad Dybcio , kgodara@codeaurora.org, Matthias Kaehlcke , Sibi Sankar , Prasad Malisetty , quic_rjendra@quicinc.com, Andy Gross , Rob Herring , devicetree@vger.kernel.org, linux-arm-msm , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Bjorn Andersson (2022-01-31 08:41:47) > 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. I'd like / to contain the board compatible string and /soc to contain the SoC's compatible string. The two strings are different. In this case the board compatible at the root would be "google,trogdor-lazor" and the soc node compatible would be "qcom,sc7180". > > > 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. Sure. Hopefully DT maintainers can chime in here. As you say, this dtb won't run on any random board that has a qcom,sc7180 SoC placed on the PCB so having it in the root node compatible is redundant at the least.