Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp506666lqt; Mon, 18 Mar 2024 14:36:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWdcSWrkI2V7yd43cYJlejA+pCG+Y/KJVLWH7e6Xx3HjqbQ3PMvrSBhIlzLmSfaU8YGAjgQBHoKYRkrZlqYZnoho6ljSa7ex6rQm99gRQ== X-Google-Smtp-Source: AGHT+IFIovoT90Hg3DospQnIkFbO/CB/ERqV/RfblEQ59nISgzyj+v3CfSLzx5HHZRztK75B39Ra X-Received: by 2002:a05:6a00:14c4:b0:6e6:ba5a:2c4e with SMTP id w4-20020a056a0014c400b006e6ba5a2c4emr1058032pfu.7.1710797805482; Mon, 18 Mar 2024 14:36:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710797805; cv=pass; d=google.com; s=arc-20160816; b=GFA6hV8ukkNxZ/wkyfNGFZ1qYQWsewyUMo/KYVSeJsh6hukEXWtKzDHXTzSqTjFF5L KXtlw/nRydsRahTb7WukYVHh51uoKUd6yrjgjNVBqBNPa8xQi9YE7Sx7DksQ1Vw58EJG vWDGXK82elgCulvEqMlyS4qN8QIFddqjPZn1E7oHFoEUqx3UssHR80hhkh8Zqyivd3he AbPxukQC3qBxywlnT0ImO37N0MwMHHR6FGDX0NGorBi6lNBUxvY9AkJQxsXkyZ/QJaJ0 N/XLQOmmazuuM6zqEIYMG40xc3XTnGlJnzVhmbeE9EzkA4yA51JklXspjuR/F3T5EfcZ jAZQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=oN3ajsjXsAF9HfH4yepxydlxom6CmZW2+KuqWPApvOc=; fh=EdBV+03EElRNW/OjRiN8Zk6P7gLwIqKFw5Trir7cpg4=; b=HqQWrbWEVvVSFk3ZdpT1QaKOTpf++3sbYs8Sim+X/qHHDZK2MeK1z5ypleeXJZIpa7 1/FqLtZjsiup/S/Y1pa3NAzbKdirR9M2204XKUlJfEMiDbOi4HbX2ieJTAUJdvpqL5h8 nHM1XpqtmB6HDTT0dsL/SQFhs/IcyntWVwvYdaLcScXEQAKPyMbIq5afbyisQ8vZcxWT VF6oyKHkxhcpbFMeXBFmrE6nKKdJjDXBM9AHAsYIDlyURvFhqbAcEQ5LUBC4oxVkISUG zPGOPcX+AAzy9lBwW8JzJ+d5N/849UJXO0H8ubQNdqTaMM5J8+sqhURdMGkAS23FQkks Ue7Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ndoDeqAA; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-106709-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106709-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id s30-20020a63525e000000b005e498065660si8743400pgl.322.2024.03.18.14.36.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 14:36:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-106709-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ndoDeqAA; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-106709-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106709-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 0B256B21098 for ; Mon, 18 Mar 2024 21:36:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E1C795917F; Mon, 18 Mar 2024 21:36:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="ndoDeqAA" Received: from mail-qt1-f179.google.com (mail-qt1-f179.google.com [209.85.160.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6EE53535B9 for ; Mon, 18 Mar 2024 21:36:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710797789; cv=none; b=shoYnNwE6fpNkkIhT3q5HzlT0xmpdpHxejPXJY/EbAtASKlbTLZyiSYXBtHsx+z1GXen5hi82H3mplsDh53oL396x1KglzRfJOitTBlZ2SB+nVPo8VWQpA7/Ab6CTFe9W1W1HgxIw3PWtT7msgPWuCJsKtMkIa8McxqpWu/+fRE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710797789; c=relaxed/simple; bh=oN3ajsjXsAF9HfH4yepxydlxom6CmZW2+KuqWPApvOc=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=ClM2Uxmbi2ZeD8nKTCKSjjN0f6KfTSwoRhKbcmMWjPoyn/Eke3Nzd56JRhUrWQWa9O/uijMnRP6dfEeoKNmIcGOte4CLvgo9hdkyUGtUQK7Qcor1RULwIVTi8fjpxWnnlQWJQv5RuaQM+7kpM4YV7M5W2f0ZMOOkfNq/6OrqPZ0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=ndoDeqAA; arc=none smtp.client-ip=209.85.160.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-qt1-f179.google.com with SMTP id d75a77b69052e-430c41f3f89so16588361cf.0 for ; Mon, 18 Mar 2024 14:36:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1710797784; x=1711402584; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=oN3ajsjXsAF9HfH4yepxydlxom6CmZW2+KuqWPApvOc=; b=ndoDeqAAmWPfhfHCOjHbkDqMkYVpmkIoIfIiqDXm2dhHyMpWpRWM2yASK3kJZ8msrt Zd9pguj0VC/4WwyyPpK7h5ix2klg2rzxRM3EME0LTSXyh2rh+3VX0CMJtIYnE4cj57TN ceOV/tSJo0Hh28sibMwZrpR7BQKs9XVGK4bVw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710797784; x=1711402584; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=oN3ajsjXsAF9HfH4yepxydlxom6CmZW2+KuqWPApvOc=; b=kSubg0w238ISZs07YSGqEjLznaeQZz9z95dJSbu0p2jz87GZ/L/oRF6KcWs/RPEitk dkOc/ZmyADPZUUKPdK2FOXtPaOoz56M6LUACRXDUjkDQnSXgEZ++GlZF+SD1kc2GOgcu IKKShSIkhCToOYg0cDxccBwlB+RkRp9Xw/mvkzT70MJ9jptQlYXUS20g1vXfV8xVWcNE ZJdSERIcDlA7CN4eB1wOJaW5kWyxtYVVcmGAJnaA1pt5DRILZPxwXhnRAD25xB4FOzm1 zdvDR2C+WbDvedSkIVh5/PZ5LhakwLkMk5Eql35CtHqN9BZLx3+8S+kfYWK8KBIXH4/n nMyA== X-Forwarded-Encrypted: i=1; AJvYcCWnxYuyajOJS2M67x5PbPJCFR/VtqdZt9baAF08mcnwYDlevJm+IvmG83RFdAasyRw+IZfBTTfYi3alt0SBe1ys8p5jwQ0mcLLK4Q/W X-Gm-Message-State: AOJu0YxtIN1N1kdVZ8bYBkPR9qV3JYpvQP0Rf2utWTA8w958DdR4onbV Jxf5mJPOKjWAqpEHACVN+3oY7d22O3vl69SXxw9q/5FWYVpRap8phl5Ay92RqITiuXW32X8Atro = X-Received: by 2002:a05:622a:120e:b0:430:c9b5:ef8d with SMTP id y14-20020a05622a120e00b00430c9b5ef8dmr1438486qtx.30.1710797784376; Mon, 18 Mar 2024 14:36:24 -0700 (PDT) Received: from mail-qt1-f172.google.com (mail-qt1-f172.google.com. [209.85.160.172]) by smtp.gmail.com with ESMTPSA id z18-20020ac81012000000b0042e703a8d74sm5428512qti.56.2024.03.18.14.36.22 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 Mar 2024 14:36:23 -0700 (PDT) Received: by mail-qt1-f172.google.com with SMTP id d75a77b69052e-428405a0205so38481cf.1 for ; Mon, 18 Mar 2024 14:36:22 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCUhFxfqV09tEDsM9aDNE6eviYTjIUqpmEhXMjVFDRVW0bSJ//IlLYULXQttR+beihWZjVd8mZFlN5YjzfVL8SNrb6sCc7Pc93PYFZT+ X-Received: by 2002:a05:622a:50e:b0:430:b590:e88c with SMTP id l14-20020a05622a050e00b00430b590e88cmr111577qtx.6.1710797782513; Mon, 18 Mar 2024 14:36:22 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <1710418312-6559-1-git-send-email-quic_amrianan@quicinc.com> <1710418312-6559-3-git-send-email-quic_amrianan@quicinc.com> <20240316-germinate-browsing-6865db3a44d7@spud> <20240316-herring-skies-6ee1d4a9c0d2@spud> In-Reply-To: <20240316-herring-skies-6ee1d4a9c0d2@spud> From: Doug Anderson Date: Mon, 18 Mar 2024 14:36:06 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 2/2] dt-bindings: qcom: Update DT bindings for multiple DT To: Conor Dooley Cc: Caleb Connolly , Amrit Anand , robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, kernel@quicinc.com, peter.griffin@linaro.org, linux-riscv@lists.infradead.org, chrome-platform@lists.linux.dev, linux-mediatek@lists.infradead.org, Simon Glass , Chen-Yu Tsai , Julius Werner Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, On Sat, Mar 16, 2024 at 9:51=E2=80=AFAM Conor Dooley wro= te: > > On Sat, Mar 16, 2024 at 04:20:03PM +0000, Conor Dooley wrote: > > On Thu, Mar 14, 2024 at 02:20:38PM +0000, Caleb Connolly wrote: > > > On 14/03/2024 12:11, Amrit Anand wrote: > > > 2. A top level board-id property that isn't namespaced implies that i= t > > > isn't vendor specific, but the proposed implementation doesn't even > > > pretend to be vendor agnostic. > > > > I pointed out previously that the Chromebook guys had some similar > > issues with dtb selection when the OEM varies parts but there does not > > seem to be any of them on CC here. > > That's maybe a bit harsh of me actually, I see that there's a > chrome-platform address on CC, but I don't know if that's gonna reach > the guys that work on these devices (Chen-Yu Tsai and Doug Anderson in > particular). Thanks for the CC. Yeah, I don't watch the "chrome-platform" list myself, though maybe I should... The Chromebook boot flow and how we've handled this so far is documented in the kernel [1]. This method is what we've been using (with slight modifications over the years) since the earlier ARM Chromebooks and is, I believe, supported in both the depthcharge loader (used in Chromebooks) and also in U-Boot, though it's possible (?) that the U-Boot rules might vary ever so slightly. I haven't tried using U-Boot to boot a Chromebook in years. The current way things work for Chromebooks involves a heavy amount of duplication. We bundle an entire "DTB" for every relevant board/rev/sku combination even though many of those DTBs are 99% the same as the other ones. The DTBs have been relatively small and we compress them so this hasn't been a massive deal, but it's always been on the TODO list to come up with a scheme to use DT overlays. We've also talked about bundling a device tree that has the superset of components and then using an in-kernel driver to set the status of some components to okay and there is some overlap there in the possible way to represent board variants. I think Chen-Yu is going to talk about a few of these topics next month at EOSS [2]. In terms of looking at your specific proposal, it's definitely trying to factor in a lot more things than the current one that Chromebooks use. The Chromebook model was "simple" enough that we could just leverage the compatible string, though the way we leverage it has ended up controversial over the years. Yours is definitely too complicated to work the same way. It seems like device tree overlays would be a better fit? I'm not an expert so maybe this is already solved somewhere, but I'd imagine the hard part is getting everyone to agree on how to specify stuff in the DT overlay that allows the bootloader to know whether to overlay it or not... [1] https://docs.kernel.org/arch/arm/google/chromebook-boot-flow.html [2] https://eoss24.sched.com/event/1aBGe/second-source-component-probing-on= -device-tree-platforms-chen-yu-tsai-google-llc