Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp289921lqh; Thu, 28 Mar 2024 02:01:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVAPwhCehdyGR7mRnaP/vQ/3sG79qoixcypf+SeDBjI2MPTvbjfhh+/o2Ch+gmkNivrknwEBhriysC+BBoAXUtSrqDVhJvPU3+ICtqZ1Q== X-Google-Smtp-Source: AGHT+IELHp4qI/xASK/XPz59su+jnZdy6J30RaIGeX/6BFc4m2m6oYAO+AZ6ACwUdC+eD3GQ4g+g X-Received: by 2002:a05:6a21:18e:b0:1a3:b05a:52a5 with SMTP id le14-20020a056a21018e00b001a3b05a52a5mr2399422pzb.20.1711616476073; Thu, 28 Mar 2024 02:01:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711616476; cv=pass; d=google.com; s=arc-20160816; b=oNVKIg5MN4j0R/xgoLDt8bewCFno3ilFlRteNbLILAi+/CH2ZBjBB68d7GxZoW8ed4 GaLl38Vdk47WY0ODWnNKyGbrpmI9l2fgnffpD1g5MDs1HULBHTBxkzFutkmyDh9eRH4M bE0LYqPsDoE4A4uyPhkP08U9BzrvuCctXhVcPT8UyNaEcxxHTW21hBm/L2HsEw1hMMdm gDmZDCXW6pTqH9PN7s7080fjxcmjzbZNbfYBvU/DdlV15XC2qS8n51nh1sZFf38qOorB jj5Di2TeLRgxVGk8DnEDvppMfXQZ5xKlDB3g8+ge2j2ECyxIo1FUXx9a+3N2OStdYqTj 9YtQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=oZ+YBLkNV6VEF2rUgGOJxYuEYM/uMvvAYGZ9fwfCJXw=; fh=Z3qmxZHKEdkbUbnQU+EawdbwdweFjX008Q4wLeS8W2w=; b=Ruv8Kr72q6gSgE3I3WKGocHgJ8EIcQpFLNFx8pndrj+isz24sY25/gbAkFCLCeICGa mdpl1mYXcOyC4aPBR63fxYm6+fLsUt6bAN/i1/rxEJXO3XFYbAxJNz0E9QtMwkzx4uMl lPS/8ld6+0VoLdfKMzWJU/6TCfTVFm1/S8tSSq/8JqqkIznN3ZlGhuaoqsaxyMuesWuH +bTEejmYkVQVNAOWDFHl32dxXImXoSZrXocjkyqzKtCSaHx7BsdLd4Qd6OZua+dkAk7x UBooJ4kBHjE+PB5Ng8E2dZZ/4ZJcXxFwSNJ84FqirHg7DNLNsKogm8/mvh14SCz1xWG4 lmZg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KXaf481e; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-122602-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122602-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id bz30-20020a056a02061e00b005f0565c6576si1155479pgb.15.2024.03.28.02.01.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 02:01:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-122602-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KXaf481e; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-122602-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122602-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 0A44FB253FC for ; Thu, 28 Mar 2024 08:50:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2254154BCB; Thu, 28 Mar 2024 08:50:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="KXaf481e" Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) (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 8A70B4F616 for ; Thu, 28 Mar 2024 08:50:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711615822; cv=none; b=J4mORWLLelB6Cg/nd7VtSqpmpJxzgAu7JtD8vGookBhQ5dCXGl1ME6UA9frB2cgnS+OuejjtzqgNlSzTh8iYg7VqLTO36oPRBQS/THl2DL9dRzuLwlrW0Uc9hXxF2H2Jsfjl4iPKY/bh2aP3PemKrxCWpEDFBFCl2VqIcDq/fWw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711615822; c=relaxed/simple; bh=A0R6lmR1m+yAfOyrg4Hmzgx1/lM9XoICSF/GiNOEEd0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=d3sb0l1S0zV2J/4ENR9Eg6U47IKZ8rz29lewPbGWkRrcJzJWiHQ/zsJ58wO5ygLSOABmxHVmvfX+CfkZFa8Tl1cIcZGFa3JcwVqQfLIdN88Mo4il38JmnFBrlUxp4CI4aHvYThozNsKjxEfbm+j5Ke6j0sh/OrUPJDpFh9lTma8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=KXaf481e; arc=none smtp.client-ip=209.85.221.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-33d90dfe73cso351660f8f.0 for ; Thu, 28 Mar 2024 01:50:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711615819; x=1712220619; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=oZ+YBLkNV6VEF2rUgGOJxYuEYM/uMvvAYGZ9fwfCJXw=; b=KXaf481ejzp4bbnckOJKMGotwe5DDEoy6qxFqc4RbWO105c8Dv6y1WHLI1foQIGmpV Y2JsQFfxkRwS6aQzenBfm7xSvzR8FM+IFp+mZoiN7C/pQ853MUdlqdwL5b1km9LEPVkC 1kU0weqyYdnbRxD+BLLskEWgqmhhx8yPoEVGxt7SzIMeAMdW4kpBYvOxxhkgrOGduCLw DOmrYgb5noKDACmYRymLkdGaX3Z/xSq3dDE8MGzukYVvwH17WN0CnKbrTRIvTh3r4j+g ryiNViGtSyD1aBUxPy3jR2fb8EdTnT4uCqpcMuSKfMor9jDm0C0Fd9qUKNp/SACA9P8A Nl2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711615819; x=1712220619; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=oZ+YBLkNV6VEF2rUgGOJxYuEYM/uMvvAYGZ9fwfCJXw=; b=AYqV4TxlAmUx/JcOk2hweh6+DyN3axbv6o/C2P8DHmIPUWVtH2ZrcMz7mhXq6BskH8 5gcuxUbQTkdsmyieBW4P0v1IygKi3EMkPDx/sHaeEaL9PWzVm2gCCQSagGnkUvT+FDOt pAzwGz2MhjRrNpN+aeXTqY1sQulO6V0VJyc/y5OWJmZWaCZMs2/o4228uWGO5LxXsQQL ne69WwhACakj0RpP2K1WJ7e7Wm0WINYudKtvfgDzoUqt4znF+TGxHOjC3uv1IPP0JMLY O5x/6U++RSBlBPJlSP99qk8+Li4kV8nMoGW9AL0SFMSKDtvxuKtW5oPRhzY2vkRB7APs LfSg== X-Forwarded-Encrypted: i=1; AJvYcCXMs59U2hM4oz0UJglCbRPVxH48yD7D5X9dcEsedYTcU7wywe3kRJsGxFgU+ud6Aabtgr9yB33lyuY9xmX8XNTqa+0fo1R6T8G5Ck4o X-Gm-Message-State: AOJu0YxKuBVpW5xzBtKCnKNvFfocaGlUOR+Jma8Jr5To5hyd/k1exwut gwLVOiAtCJSH/tgYEYdP1GCsyRKc3TBG34A82YkG8NQTGrx8vRPXDZVsErH5ZwE= X-Received: by 2002:a5d:540b:0:b0:341:a63c:58bc with SMTP id g11-20020a5d540b000000b00341a63c58bcmr1177900wrv.2.1711615818960; Thu, 28 Mar 2024 01:50:18 -0700 (PDT) Received: from [192.168.1.20] ([178.197.219.148]) by smtp.gmail.com with ESMTPSA id dv10-20020a0560000d8a00b00341ce1b64f0sm1156645wrb.17.2024.03.28.01.50.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 28 Mar 2024 01:50:18 -0700 (PDT) Message-ID: Date: Thu, 28 Mar 2024 09:50:16 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 0/2] Add board-id support for multiple DT selection To: Amrit Anand , robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, kernel@quicinc.com, peter.griffin@linaro.org, caleb.connolly@linaro.org, linux-riscv@lists.infradead.org, chrome-platform@lists.linux.dev, linux-mediatek@lists.infradead.org References: <1710418312-6559-1-git-send-email-quic_amrianan@quicinc.com> Content-Language: en-US From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9Kmw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2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <1710418312-6559-1-git-send-email-quic_amrianan@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 14/03/2024 13:11, Amrit Anand wrote: > The software packages are shipped with multiple device tree blobs supporting > multiple boards. For instance, suppose we have 3 SoC, each with 4 boards supported, > along with 2 PMIC support for each case which would lead to total of 24 DTB files. > Along with these configurations, OEMs may also add certain additional board variants. > Hence, a mechanism is required to pick the correct DTB for the board on which the > software package is deployed. Introduce a unique property for adding board identifiers > to device trees. Here, board-id property provides a mechanism for Qualcomm based > bootloaders to select the appropriate DTB. > > Isn't that what the compatible property is for? > ----------------------------------------------- > The compatible property can be used for board matching, but requires > bootloaders and/or firmware to maintain a database of possible strings > to match against or have complex compatible string parsing and matching. > Compatible string matching becomes complicated when there are multiple > versions of the same board. It becomes difficult for the device tree > selection mechanism to recognize the right DTB to pick, with minor > differences in compatible strings. > > The solution proposed here is simpler to implement and doesn't require the need > to update bootloader for every new board. One of the concerns you got in v1 was: show us second user, so I believe in your interest is to Cc other platform maintainers which could support this idea. Best regards, Krzysztof