Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1669995rdb; Thu, 25 Jan 2024 02:41:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IG0rp0UXy0PWWeF/54MLu4A7idERF1xnNMC9ne52dfVbOHeg1RENu+TcM+3cZrHN5ydxZYC X-Received: by 2002:a17:903:492:b0:1d7:4325:2b19 with SMTP id jj18-20020a170903049200b001d743252b19mr808082plb.18.1706179284488; Thu, 25 Jan 2024 02:41:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706179284; cv=pass; d=google.com; s=arc-20160816; b=pRSYCbvkRwItblH+LvpHTUcfnwgn0/wNDdsxM7BFdZdpiUgSIiMjwDSMG53V2UvCYb b1nwM72plPvKrY0m7S8rnviCH8167EVRwMffOi7GI7wcHymiS/ngczdAy/gtN9sYIv+9 hoRdiDDFjX4UDA7qxI3xzQl2i0JwPpbwOX2AZ7l2Oo6jOFOjc1W3JvBx7pXw32kbcoUX nhd9vKK4aILyIQSzVhRrH+4ePvBJaeR6l1nGqAh+fdqZK2PaTcLHjXKCQXgISw8aw2aA jy77goYf5zSkydg6yLZ148NQQMmyDGyF+TughlPl7ToXEF6UkTA5d8K+aAr92cZrkMP2 ztfg== 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:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=wz3t7EJZ1eNdyOYD/Kh4skvS3WQ/kt2sR4TG8rwI5Po=; fh=lM6CzfKR6Fj85E/DkUASk/M3Ht03MV+8Yp6NwzjBXPA=; b=HfpHxNlbgLJ7uHcQVC9QZbhB/6J0J6pU4nfYduuSn2e1DAGWfi6/2r/pFiU1Y2s044 sPQpDCXS17iAqLwDyW0WDYWBZLNo7Wovj97XaUWHQW0XASJyWdvZgNdNPeJhEYCrVd7K A6Vw3+oNOq8C+ttTiU1enGk3CgOmxO1k+vYEBF1/kKcwd82YSwJ/5Etwxk3iyJ7FdKfz 0bwUQT0YUhlIhS0PDPmMWe7YHcipIGvSd35HvkcAoWFO+ZzAkgCQ475wkc7Z/rfeXWeu G2WWkJ9Pjxf8GEpdQ5Nd+idjvL4bgfBusfsyXaqkrMx2jblUaMOWHm8iVQwrQc4aTjFJ vw/w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KUJ4F+Az; 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-38406-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38406-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id jj18-20020a170903049200b001d6f7b3f65csi13000847plb.43.2024.01.25.02.41.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 02:41:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-38406-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KUJ4F+Az; 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-38406-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38406-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 87A5B285C86 for ; Thu, 25 Jan 2024 10:41:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7DFD622099; Thu, 25 Jan 2024 10:40:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="KUJ4F+Az" Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (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 D062A1CD02 for ; Thu, 25 Jan 2024 10:40:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706179246; cv=none; b=EeZ+XXQTSXBjwUk8LW0nKE0osrEkhaUDmZmg1cKfa2D4rF4hKIueuNNw4yz05kOobk2o5ekLB1OWD8DjznLYMfj/1auv63CqOHX1m7cFl6wn7SxHVOZIwo2pg3yyJVrcH8p/LdypPmQqIzmigCQkFdzZOQvm8hutvLC8OjkFCWw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706179246; c=relaxed/simple; bh=b92M9Wx0Kjvz8/GRBKt2gDk64pigjf71puB291ddRj0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Q4VUZqJlQR4U0NsMHD6V4fcpsb3b2Joz6uOZyzaPOQGwoXq7weCK+l9kVCVuUiz4Uht7o7tpQBHsb0Ex2aS2FEzb6M11Rez1l48PhPAH176Jd3nEWd0qiGJ2woaHKI2tt29n5xC1Y3m2ctBJiz0aRRonnsY2Sevo+74CIcNvPbA= 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=KUJ4F+Az; arc=none smtp.client-ip=209.85.128.47 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-wm1-f47.google.com with SMTP id 5b1f17b1804b1-40e76626170so72481785e9.2 for ; Thu, 25 Jan 2024 02:40:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706179243; x=1706784043; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=wz3t7EJZ1eNdyOYD/Kh4skvS3WQ/kt2sR4TG8rwI5Po=; b=KUJ4F+AziXYkMbs6X+o7D6OLvEUopFpuCrn+jobjlSQrRHuHvHoy8WRu6LKwh0xKrO g6SE3GtuSE26xQxES5yZIZ5rJr37otz6bTq6tzhNlbmMHRaFGwXJhCoZOrfNEM1z9EnI Qrua3yu4dQx52ix3gis19OVTEU++byRRbgZlxnil+b41So+qTiqpJQ4z4P84EqmGknu7 Fx3jyFEXfALDSL1yYpBQhykqwyf8OJwyLDL+cCM0o/oCgghHXeH910idmS1Dx3SXSvuH lRriCkAnFK6wFn05YAEMgR0ESMQXzrQAWNRsS/A4n8Gt1UOpQvuFK6gucc8YVhU4QvS5 TJ2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706179243; x=1706784043; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=wz3t7EJZ1eNdyOYD/Kh4skvS3WQ/kt2sR4TG8rwI5Po=; b=Jndg/2FiepCJCuaZEn7lBTb88FSNVm00f2J0GxCsN/mLQ13/Uq60kan7lkoeDAidZh 3rFF0zeIjwgXQ72W/kBFfa1idX3+1nGhoGeA6r6TC3T7NPoKHP3lux4hsaWn5Sr4LzJA w6qztgaAKiQ+Ze6E86218i62mbavGSHq/n2ttbGr4s8Mx/Rx7BMR59JrPvL5oAYvYBpX pIJcd/MT0Mg5kHgerdhJ0hE1go0QOoZxkKUpHlW94wb/Ln7JFpUFSrp+rjHD1hxc439c 5aX188BQVRTeY9HDs6l201tyAllHQHo1zQ42PQK/oDjyMcxS6Yrg8D8Y/Wima7TSc1m2 0LYw== X-Gm-Message-State: AOJu0YyFlGXp247vQAgY9KvrirAcb96NtWr5Zjv/s8itnXpw+x0ZuKMI UBDqeqtkqgWNYuDUkGYXpg18i+Nv5IJQC8GAS/liXAxO2HOkieGy3OZAKpDwoTQ= X-Received: by 2002:a05:600c:1986:b0:40e:b106:d2a with SMTP id t6-20020a05600c198600b0040eb1060d2amr413239wmq.22.1706179242981; Thu, 25 Jan 2024 02:40:42 -0800 (PST) Received: from [192.168.1.20] ([178.197.215.66]) by smtp.gmail.com with ESMTPSA id n10-20020a05600c4f8a00b0040e3ac9f4c8sm2099097wmq.28.2024.01.25.02.40.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 25 Jan 2024 02:40:42 -0800 (PST) Message-ID: <21eda361-ae7c-48d7-b1ea-ef1bfe8d9104@linaro.org> Date: Thu, 25 Jan 2024 11:40:40 +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 1/2] dt-bindings: hwinfo: Introduce board-id Content-Language: en-US To: Amrit Anand , robh+dt@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, Elliot Berman References: <1705749649-4708-1-git-send-email-quic_amrianan@quicinc.com> <1705749649-4708-2-git-send-email-quic_amrianan@quicinc.com> <1fc9815e-76dd-41d7-aa1a-caa72ef4ad34@linaro.org> 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/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzTRLcnp5c3p0b2Yg S296bG93c2tpIDxrcnp5c3p0b2Yua296bG93c2tpQGxpbmFyby5vc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R4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 24/01/2024 13:42, Amrit Anand wrote: >>> +select: >>> + anyOf: >>> + - required: >>> + - 'board-id' >>> + - required: >>> + - 'board-id-types' >>> + - required: >>> + - '#board-id-cells' >> I don't fully get why do you need this select. Isn't the schema selected >> by nodename? Or maybe it is for the final required: but then this could >> be just set of dependencies. > The nodename here would be "/". So it will be applied to all the DTs, right? > Here, we wanted this to apply only if the above mentioned properties are > present. The nodename will select it. > Do you suggest moving this to qcom,board-id.yaml and the required: as well. > So that vendor specific yaml could be applied? I suggest dropping the select. Different topic is that we cannot even test it because you did not provide any user of this binding. >>> + >>> +properties: >>> + $nodename: >>> + const: "/" >> Blank line. > Will add it. >>> + board-id: >>> + $ref: /schemas/types.yaml#/definitions/uint32-matrix >>> + description: | >> Do not need '|' unless you need to preserve formatting. > Ack >>> + A list of identifiers that can be used to match with this devicetree. >> s/devicetree/Devicetree/ ? > Will update >>> + The interpretatation of each cell can be matched with the >> Typo: interpretation > Will update >>> + board-id-type at the same index. >>> + >>> + board-id-types: >>> + $ref: /schemas/types.yaml#/definitions/non-unique-string-array >>> + description: >>> + Defines the type of each cell, indicating to the DeviceTree selection >> s/DeviceTree/Devicetree/ ? > Will update >> >>> + mechanism how to parse the board-id. >>> + >>> + '#board-id-cells': >> What are the cells for? > Bootloader will use this to check the number of entries in a tuple of > board-id. Doesn't the board-id-type define number of cells? How could you have the same board-id-type with different number of elements on board A and board B? Best regards, Krzysztof