Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3304880lqp; Tue, 26 Mar 2024 05:56:37 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXBvL55YdhoT2tPCJfYonOt0lT5y1uekukefXQxYFk6+qOQ5vWKWo9vSLjfcDPF3jBycWPf7n1fmCnoO84yZU6xRJiAtLGSOha2IJEL5w== X-Google-Smtp-Source: AGHT+IFER5M84flABL9mtR/Rja2m8wwXve6ipEQMpq75KW7A97vI0LnUQjeX5pTdyRRAGgOFxsRY X-Received: by 2002:a17:90b:2781:b0:2a0:2c79:94cd with SMTP id pw1-20020a17090b278100b002a02c7994cdmr925651pjb.41.1711457797601; Tue, 26 Mar 2024 05:56:37 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id v7-20020a17090a00c700b0029c5f4b6931si9603961pjd.91.2024.03.26.05.56.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 05:56:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-119015-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="o7kq1/no"; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-119015-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119015-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (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 3196C2C2305 for ; Tue, 26 Mar 2024 12:56:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 90C0C6EB62; Tue, 26 Mar 2024 12:56:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="o7kq1/no" Received: from mail-ej1-f46.google.com (mail-ej1-f46.google.com [209.85.218.46]) (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 D5ADC1EB56 for ; Tue, 26 Mar 2024 12:56:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711457788; cv=none; b=ZvPtR/QoNitfyyi6lkQNp46+BtWjjaGncP+1r45E0++f1rwhLUePkIMXjsXzcFqWBbdCRVSiMnJTjaRCGIzNYXrX/Gea9gOzbfXrWdmvnt6QTNCvoxjtdusIeKCIfhfoVtHBqKBl7vV6H/G3LYMMZu25b5mbYpZ44DDIlWo2mSw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711457788; c=relaxed/simple; bh=YwtCMJg1Rfup4NT8V7Oo7K4rKen6x1h2pzIusMuhhp0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ienimvpkzQr+lOyxl1yTVydUmZuP4L1Pc5MxqnLc6Yh1KEe2xnJRBFgRflQcwquMUDIFnM56sSibLPpNK3ngNFzbrZEHG6lqh1zo0LrPCriaojAJIPiflb7UwxoVW2L9wITVhbhw4qIDvuvx0lSzH7yMd7AvEXu4Ojt+hkPIO7Y= 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=o7kq1/no; arc=none smtp.client-ip=209.85.218.46 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-ej1-f46.google.com with SMTP id a640c23a62f3a-a46f0da1b4fso698405566b.2 for ; Tue, 26 Mar 2024 05:56:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711457785; x=1712062585; 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=sT8OjxdUQAjzr/9I2o/yKQ2o8R3+ehvtYWeUDIQGp2Q=; b=o7kq1/noAzjkHEV0L07zOaWm/UR9/+B5i7DSN2hw3ZQFWaRikg4+2f74neOduU0KY/ OZ0Sd8su2PBsPRwaxgJy+LuWZzzm2vtwe9vWkjuTC7XMvjCJgODq+usAe7b+OLIKq0av CEf78/2QM1eTdaMvvwecnN709WaZ4Yb11U1BH+kbzk7qhuEnodgPdcMRSvnKu8g7SMLW syfk6B5HVo4Gmd1DGjqwzvuNSN6MHB9UwoyyxIm1KMbcCfwsfFgg8qIWvLTJDkuChbmh 8m+rL8SSB4OVh1fwzXEDhaIU+GoqcATqGv6621aev3ecs4JKpajoi2GkqZFOvpt4nmRB 9O1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711457785; x=1712062585; 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=sT8OjxdUQAjzr/9I2o/yKQ2o8R3+ehvtYWeUDIQGp2Q=; b=cxEi3Y1+vg8SOWJTAU/7+17cosWBeVejslpxiP3N425Jwa9hVWjEyg6mdPZ/ys1MkP zu8aB6nIkLmJ4UIZzl4jkvIVZYQbVSZ2Yc/g+JRc/Y+pehuMjCM91tSwJ79Cq4oeZYMD Q5K4OsD14xoInveGP64NVlxt6MibJmBEIg0tx7klr/4XCVUP3VZbq9p6ymmnnEA47Ltq g/nefJW+Q/CPOzWeSKg7zutzxwpZPFDiWlYEmdMfbviEfrEf3AGR9M2aJpS41Bt+dyGD SVZ10bseCY/ppIPxFYAD+p+qLOL3keo/r8utcfUWJ1FOc/P7lFkh6Izupkk5i1f7g83L tTPQ== X-Forwarded-Encrypted: i=1; AJvYcCWC93r7Znq00EnkLtwUV2TuaW+q7RDDLfzQQ+m4FpPsIBXEps9mUmhcgv5D2y4+HKNHsaUEXsjl66/T1ZcvGvJn/sPqBLlPQzf1nxN8 X-Gm-Message-State: AOJu0Yxp6O9kHYF0Bui8v/CiWk2e/H/82Kg+XVznBM16pmXKa2ez2kPh 7soMKI81HbGhH+4B74VpTzHsY2btcqpN/u9Y4H9H/0pSp3O0HK2WeWNdXBvuQ08= X-Received: by 2002:a17:906:66c9:b0:a47:20c3:7c51 with SMTP id k9-20020a17090666c900b00a4720c37c51mr5961573ejp.71.1711457785034; Tue, 26 Mar 2024 05:56:25 -0700 (PDT) Received: from [192.168.1.20] ([178.197.222.44]) by smtp.gmail.com with ESMTPSA id i2-20020a17090639c200b00a471cbc4ddbsm4210480eje.26.2024.03.26.05.56.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 26 Mar 2024 05:56:24 -0700 (PDT) Message-ID: <1c6d995a-b1f1-48ca-b85c-f69071e7e3bb@linaro.org> Date: Tue, 26 Mar 2024 13:56:22 +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> 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/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzTRLcnp5c3p0b2Yg S296bG93c2tpIDxrcnp5c3p0b2Yua296bG93c2tpQGxpbmFyby5vcmc+wsGUBBMBCgA+FiEE m9B+DgxR+NWWd7dUG5NDfTtBYpsFAmI+BxMCGwMF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blD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 26/03/2024 13:45, Sebastian Reichel wrote: > >> but more importantly: some properties are now excluding each >> other. > > I think that requirement was already there. Right. .. >>> + >>> +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. > 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 ? But if you really want them to be optional but excluding, then simpler syntax is: https://lore.kernel.org/all/20230118163208.GA117919-robh@kernel.org/ Best regards, Krzysztof