Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3440592lqp; Tue, 26 Mar 2024 09:10:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV3cqLnSEuq2jOOwjbGAptip0ws1015Ot/4EYqJDUCFTa1XQhsv2mHtOv+qslQ8M5Put/9y/4P0gvaOCFKlt7WWcL70ksSNnACgoGsgKw== X-Google-Smtp-Source: AGHT+IEY/cKYkg2JBJR9/10yA6+VIzNtuOV8d2zaqJvmdoLIJ2v84fYei9SrHmIWCzAcLQ7UTzIe X-Received: by 2002:a05:6358:718b:b0:17b:304f:b3d with SMTP id t11-20020a056358718b00b0017b304f0b3dmr1542680rwt.23.1711469450956; Tue, 26 Mar 2024 09:10:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711469450; cv=pass; d=google.com; s=arc-20160816; b=HBXe0RfuHTGIYAMo6B/f8OezO0CqTlGklZPtBdsWtDMuXDjXK3uMa0j3tFe9HDgsvu 74MJFenSZPjz+2puUcvCkDVcXCh9N50oQ/mZhRBnt+VzYIQLUXLSutZWEfKFSlU9xj32 YWcTGukF6p4f7w+aGPFnDduJdVsESMFRB2Gx087DNdiAWT7VlPNKyhx6p/caSpRMI/KI yuJCm3NI4al9Grj9+3k8U8/D5B/Ts2SlgmLamO5d3TNPJdgSrLDNtahYx6eEh94wps0e SNVlj/k7H3iQ1OJ8YCAyspwQGG3lSBRQWHCuRCKkEVYgUs8bH79Ora8okWVNVJzbJo59 nj3A== 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=PCcCW5MXBTsuYjj4AkYESlhZOGHwdUsHgBnc4ofEFK0=; fh=qTgHWKoj87N4/8uZCiAMJgBcXY+lQCua9muacRHqcpk=; b=HemodmCCIf061Tob/J0gcHjJZjyaR9hfhpTb6P+mpK0nxgi6kAQ9+/yXVAEH13rlMy HaX3s+OLaKsL4VT/Tn9LrHm/sAa4tYat12jufhUDS8VIj3a/Y4TfeES6hLoWRH1+nNcU 9CaAo8G8eppJAilg2yubVInmZebDxBiQ1P1+UQtXvRqqZfEEPp0fAbJMtjKt89B1RGO/ jLzX9BXIOz9sxNVpvOH5R2WsZhcfYfWi8muiVO72wZ3RaRLdX63q1c8BIyvfjE38OumS DO1fydi/ZTcqYVnRIcVqDj2UodgDNO+D5xhbWs6UvEXjJcfOBbiMxoYT/p/dQIVLbi3n 7yyg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UZiSlbHu; 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-119426-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119426-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 m193-20020a633fca000000b005d7a13d0be6si9806591pga.232.2024.03.26.09.10.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 09:10:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-119426-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=UZiSlbHu; 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-119426-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119426-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 C70F32E736F for ; Tue, 26 Mar 2024 16:08:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DCEC013C9C8; Tue, 26 Mar 2024 16:08:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="UZiSlbHu" Received: from mail-ed1-f47.google.com (mail-ed1-f47.google.com [209.85.208.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 0E3E013C696 for ; Tue, 26 Mar 2024 16:08:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711469319; cv=none; b=DS/gA2WldZQz8T4DxSwhL82DBMRSscARKLeunVpFGPKA+cGv7piYhyMgYW0l6AARaVICI/pHKcjCtJJhZh7DuhxHpbbnxYCjiFqw3kRW2E91b76hhOQsojr8gIpI2mbA5Vl6iiwVmSKbt1pXkj4zVkksOsI7Da+b0q1TLwQ5yiY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711469319; c=relaxed/simple; bh=I9jYhEpT1hJ4WkmCi5EfutNG7AD2pBTYUdgSEQ4l9cI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ri6nHLds1UVAE3pfLC5akuENLdJqaDie2R5upLmTbxsjKvSAwMFiDCYjvSSKZB+5nPMVvmBEy1RbOPZ9Sd/eq7bXyTCUBQTIFrEsp64hN+a4qgZqo2gwkcZowFKxEK92asuRRRrVOpdl1RAbzWcOM7sRbUMaI3EARO3rOsqZVmo= 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=UZiSlbHu; arc=none smtp.client-ip=209.85.208.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-ed1-f47.google.com with SMTP id 4fb4d7f45d1cf-56b8e4f38a2so7366724a12.3 for ; Tue, 26 Mar 2024 09:08:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711469316; x=1712074116; 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=PCcCW5MXBTsuYjj4AkYESlhZOGHwdUsHgBnc4ofEFK0=; b=UZiSlbHuTzsJ4kLsTnJ2GsCb13brSipdn32C+zt1ehuKutuNrclSG55Uq9lYQPq8nS iQtI/TCrXevDWdOo9IpZfSzXFIo6Z/cc3J1aXw9JZ7kiNj+GL14QQD/ssSI33cAz0otf o5mFBvGYhjey6DskdikqwTHpsOGixOFUiBHf0kkVWhqw0zIS1pBLnsIP0jxJjc/fEK/h aNeunUo/JLyn/2MbQeAofsSff+iRcVZCkM8oyIt2dmvl8Q+Y4by0+bItA01FrVyc8K1e 5xn0smhxe6W1mVSeXKzZbtexkn+Lkc/WMtyjt2SdV3k0t0y+a6Ejho7u6k4eM/+gHGJa DqTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711469316; x=1712074116; 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=PCcCW5MXBTsuYjj4AkYESlhZOGHwdUsHgBnc4ofEFK0=; b=E7KO3LPdwtpRMd7QVTNibEf7fpxWyhDMCK7eQNO1Jh1/eKOphIBjp4Lm6gyW1DwplA Gfr3/bPYUUgJfKG7h7AqSjrGUlZsz3tbXRCXEsN8hpSct5t1dIBrVHZ9h1c6QutePIgJ efQ8tV69PxcgnTaG7NTn2GhRYAOwLqDoaZO4LwaNH6QyHrmJmI33eyV5YNDH213Ta2j/ 8XOvTzVWnEb6GOoe1nwvn/WXnMd1juNMD3bEeHxvR9alf63AOU8BtKZO0hFvqIdNaepB 7Dlc69pNFO0W3TLv1yBjNjzenaZTPiJCroH+xdY79sZaobz58cmPAq+3WeWrtA4Xcaow KuQQ== X-Forwarded-Encrypted: i=1; AJvYcCWAsTWBid5J/GabitxZYeoENLOadff3XcxKz94Heagn8iWA1of5XqRSifoEVMaon4kNNnshNZ0XgREcvKcmmflWlV6Kzy6KII+AkKJL X-Gm-Message-State: AOJu0YwXEm5UsDp35MZ4+ODzqX/OpLfPUDG6ppXQj82fd/5OQoiBgYF+ G8gmXETki0hYHNHkUHSupktDnBjRdzgOGTEDpkeDr9OsRnDwQjyJ36Rkb4J9by1u91enHi501nf b X-Received: by 2002:a50:cd9c:0:b0:56c:16c6:2091 with SMTP id p28-20020a50cd9c000000b0056c16c62091mr1145607edi.1.1711469316396; Tue, 26 Mar 2024 09:08:36 -0700 (PDT) Received: from [192.168.1.20] ([178.197.222.44]) by smtp.gmail.com with ESMTPSA id es9-20020a056402380900b00568d60cfbccsm4266150edb.42.2024.03.26.09.08.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 26 Mar 2024 09:08:35 -0700 (PDT) Message-ID: <5aed1a7f-6cab-4e5b-91b3-99c1d9b7faa2@linaro.org> Date: Tue, 26 Mar 2024 17:08:34 +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/3] dt-bindings: hsi: hsi-client: convert to YAML To: Sebastian Reichel Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Tony Lindgren , devicetree@vger.kernel.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240325-hsi-dt-binding-v1-0-88e8e97c3aae@collabora.com> <20240325-hsi-dt-binding-v1-1-88e8e97c3aae@collabora.com> <2905247d-03b0-45c1-add5-d3c2a986d87c@linaro.org> <1c6d995a-b1f1-48ca-b85c-f69071e7e3bb@linaro.org> <5z2b74h2zvo7fwc4624hy5vegvlkyfdflijr35byqeemoiwd6l@vfebii4m2mim> 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/XDV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tSe4jRx6Z6LMXhB21fa5DGs/tHAcUF35hSJrvMJzPT/+u /oVmYDFZkbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <5z2b74h2zvo7fwc4624hy5vegvlkyfdflijr35byqeemoiwd6l@vfebii4m2mim> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 26/03/2024 16:15, Sebastian Reichel wrote: > Hi, > > On Tue, Mar 26, 2024 at 01:56:22PM +0100, Krzysztof Kozlowski wrote: >>>>> +allOf: >>>>> + - if: >>>>> + required: >>>>> + - hsi-mode >>>>> + then: >>>>> + properties: >>>>> + hsi-rx-mode: false >>>>> + hsi-tx-mode: false >>>> >>>> I don't understand what you are trying to achieve here and with anyOf. >>>> It looks like just oneOf. OTOH, old binding did not exclude these >>>> properties. >>> >>> So the anyOf ensures, that either hsi-mode or hsi-rx-mode + >>> hsi-tx-mode are specified. Those properties were previously >> >> Not entirely. anyOf should succeed also when none of them are present, >> which is not what you want in such case. > > Right, this should be oneOf instead of anyOf. I fixed that for v2. > >>> listed as required and they are indeed mandatory by the Linux >>> kernel implementation. >>> >>> The old binding also has this: >>> >>> hsi-mode: May be used ***instead*** hsi-rx-mode and hsi-tx-mode >>> >>> So it's either hsi-rx-mode + hsi-tx-mode OR hsi-mode, but not >>> all properties at the same time. That's what the allOf ensures: >>> if hsi-mode is specified, then hsi-rx-mode and hsi-tx-mode may >>> not be specified. >> >> Then wouldn't this work for you: >> https://elixir.bootlin.com/linux/v5.17-rc2/source/Documentation/devicetree/bindings/reserved-memory/reserved-memory.yaml#L91 > > I suppose you mean using "then: not: required: PROPERTY" instead of > "then: PROPERTY: false"? The variant using "PROPERTY: false" is what > is being used in example-schema.yaml: No, I pointed to specific line with code for you. > > https://elixir.bootlin.com/linux/v6.8/source/Documentation/devicetree/bindings/example-schema.yaml#L225 > > IMHO the "not: required: property" is harder to understand. I would > expect that to mean "the property is not required (i.e. optional)" > instead of "the property is not allowed". Best regards, Krzysztof