Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1360413lqt; Wed, 20 Mar 2024 01:06:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX57MIuYci0x5l9JboFGGC4cRlBcUQ7pvuWuBRa5SjOkkOt8nIypxpFlKAiKslQDlkA4MCZHgYhu0TURBRKFnVQ/lHfmT5/cYj0H5PjVw== X-Google-Smtp-Source: AGHT+IHKFVo5XbrexehCE6I6XORr7omasVOnqQMDk2zLV5RSWa/OTRGTYKdOqssqoNsJjq3ET3nc X-Received: by 2002:a05:6214:20e9:b0:696:2134:95e5 with SMTP id 9-20020a05621420e900b00696213495e5mr8634372qvk.3.1710921980817; Wed, 20 Mar 2024 01:06:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710921980; cv=pass; d=google.com; s=arc-20160816; b=H3qayCw9e6Yjxhq+kO0H5wK2/xJ/pH518XnPG+N4jShpdXxLmRwSK7xPF+Gt+Bekf1 Rjwe1UIY4Hfxytu5CuSceROSCS0hhnOrM2ySBQQrytrYrkGFm3DPxbUAtyagDmZGw6ay QMLW4cykluxR6DO7HKHINv1jiE1a1xGuyUXU0QvwDejVuEkvNwcuKkfXAhw6LfW+uIiq ihQvFcQhQ9AFD7y6gLDH2Pc6IGQx/Wzfidsxms3lxzaiFhLcf0ouBL4jpuTguWuFpbTk ESpA7Bdk8ArC9Y4/TlSebvMJ1vZIKxqVaRIGzLUE2jDNSYrxs8giGKdqLseCnkXLVhdu toXg== 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=SlzyeVESNsQAYLZBivF0TU3lMaCAxvMVcqfOd6RxnXM=; fh=hU2meqHjHeuI7OQ/OK+VjaPDV2IPOYUG9jpQZGf82fQ=; b=Ab4HB5pUU3odgHx9Lsfnlgl+q2So850/86lILqejnJekpl8YvnkfUXGn3Rb92q3keB zk3jmhgwXaV1KLH26xCGnxvhfRYqvd7JZwQMKN25o6TN8OMeRJKgy+3Da9NTcH8owQDv 2wlb5H/qLowKXp1Zfedq58lomazNF2pslL7iis4i8LzlqVt/eggDj4ZK186IJJ2iWo9E uFscmudJNIqIQsPTOL1m03RExFo6ucorZVHegBGkJb6HXg1ccIbg9O/BiiH5vByNYRZz du0uYiL2iofZSoczsj4D1n5tARvtvVD/0DPkOJFmPuLgDGMipcKRCI/GrQMjpbmGYGuP pKEA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i+zkdaJk; 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-108590-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108590-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id a9-20020ac85b89000000b00430ee063e6esi2531548qta.201.2024.03.20.01.06.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 01:06:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-108590-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i+zkdaJk; 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-108590-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108590-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 7698A1C20990 for ; Wed, 20 Mar 2024 08:06:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BD9462CCD5; Wed, 20 Mar 2024 08:06:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="i+zkdaJk" Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com [209.85.208.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 DD49C24B33 for ; Wed, 20 Mar 2024 08:06:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710921971; cv=none; b=SaUh3AGygjp4F3yppnJg5KBzmG3t/2iZORfBQkQjR01WakLTJoP2cry2MoerJwuuT6IH4t7/QfNOApJGnKwtAB6utvepEGnqvs++b/e95lfjgqdKoYACfh1ByRKna4KnM5xtJsfjQ9cWkYRH8FRrgn8RZ8Wg29mhF8QdMrsHL+g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710921971; c=relaxed/simple; bh=3VaEiu7P6Vt47e432Hig0a+pLMJ67V4uuiIr1ehyxTE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=WCvKW9oY/K90mE3nOWrGzOybcfAFV5LHoybbjr80miSmMOuhrkm++Rr5dh7Hy4RL6boDkdwr8gyt4Fp5DBp9gUQhp+j873sYAVmQFTwjKSb9XKaXalDln1USjYMW2GcX9b302EJmMX8kVDhsKQwKANOHw4AQP7CXAN8mAJkq5Zk= 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=i+zkdaJk; arc=none smtp.client-ip=209.85.208.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-ed1-f42.google.com with SMTP id 4fb4d7f45d1cf-56b857bac38so1345725a12.0 for ; Wed, 20 Mar 2024 01:06:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710921968; x=1711526768; 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=SlzyeVESNsQAYLZBivF0TU3lMaCAxvMVcqfOd6RxnXM=; b=i+zkdaJk++vt1x7IQvwQOTqVbL+vgHV0ZqOi73m/F3qBDc2wJtWkvHm496DLCyoIXh RwN3Z71wefhcaw4UWK+r+jzaUqRFmO5fW+UiBu+SPe/d+Lhp1xL7/Bo5eRSeuWaETdhM oMhOfH8L/pJcc5eyov36yQ1Q092nscxEbv3Jf3lUeCssLXvqdsfRH9pJe/gDzOvo6CjD Af2APwyQDN4qYw2+QqgktRsoglM0b/iqC/Bxovgl/RaBJ6+NeaCsFdSEcSyl/vh+4l0g VMFj7R67JiaTwa4iPInPkpK0MwGH8vdKALYug/tBb2O9jMJhXcOgnn5viadBmY1DCIWn Y0EA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710921968; x=1711526768; 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=SlzyeVESNsQAYLZBivF0TU3lMaCAxvMVcqfOd6RxnXM=; b=J94iamY3AsGPE2TiiJrskUZabfTFMnYjISx0lk3JJt1wqTNzatu6QMb7bl0KONAfT7 g3gCpU8f7FOu/pWXzDdtSfnc6JtssIzkfTJJIOY7FBF6XiAqXHnmZpGgTZiKbIBsfqa6 Dyu1H6alj6E3OIHrtA83W9yntszyc3X7DXxjS+CWUc+FMwbtsXNvTG0TF3Qza+qmSsyz CfVfc+rRpalmNOYKbyb9IGKQ4quO5011DYBCnDVC/erXAuZUP8OHFzX7sm2oD+P5lmDn JWyjthC8Q51/nI9tM+nkNLTgt7JmtI6LdKyx7E332jO9YsCvCYWjvIRpX2WdUB41JmWH zKXA== X-Forwarded-Encrypted: i=1; AJvYcCU1/0veVtfZG6mq5B9D2JYdPLRPhEMWviqMcbHxGcorLIWd9dsTqPIl01PKPgzYxpvj70zmBxkRNOeCoP0Qi01M8xFVQJKoNG1vgaN1 X-Gm-Message-State: AOJu0YwNIn8QO445YQqrveTvCNXbtS9h/6zj23Fi7in1Av0AXFmo1Wj/ K3++blUA8LmWkujBpbWZf9NrTtMAufav1rsjUGumjzj+Vaj1rJwr/OoNoIlZ5Qc= X-Received: by 2002:a05:6402:3641:b0:568:32f7:6c55 with SMTP id em1-20020a056402364100b0056832f76c55mr13096907edb.9.1710921968157; Wed, 20 Mar 2024 01:06:08 -0700 (PDT) Received: from [192.168.1.20] ([178.197.222.97]) by smtp.gmail.com with ESMTPSA id cw24-20020a170906c79800b00a469d3df3c1sm5232599ejb.96.2024.03.20.01.06.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 20 Mar 2024 01:06:07 -0700 (PDT) Message-ID: <5b87eee4-2b28-48a5-a7c8-6c450be724e7@linaro.org> Date: Wed, 20 Mar 2024 09:06:05 +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 v3 2/4] dt-bindings: serial: renesas,scif: Validate 'interrupts' and 'interrupt-names' To: Geert Uytterhoeven Cc: "Lad, Prabhakar" , Geert Uytterhoeven , Greg Kroah-Hartman , Jiri Slaby , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Magnus Damm , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-serial@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Fabrizio Castro , Lad Prabhakar References: <20240318172102.45549-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20240318172102.45549-3-prabhakar.mahadev-lad.rj@bp.renesas.com> <010e4742-438f-413f-811f-a033ec104832@linaro.org> <51743788-3444-4817-864b-404205a06137@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+48gy12FA5GduRLhQ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hSJrvMJzPT/+u /oVmYDFZkbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 19/03/2024 14:25, Geert Uytterhoeven wrote: > Hi Krzysztof, > > On Tue, Mar 19, 2024 at 2:04 PM Krzysztof Kozlowski > wrote: >> On 19/03/2024 13:43, Lad, Prabhakar wrote: >>>>>> diff --git a/Documentation/devicetree/bindings/serial/renesas,scif.yaml b/Documentation/devicetree/bindings/serial/renesas,scif.yaml >>>>>> index af72c3420453..53f18e9810fd 100644 >>>>>> --- a/Documentation/devicetree/bindings/serial/renesas,scif.yaml >>>>>> +++ b/Documentation/devicetree/bindings/serial/renesas,scif.yaml >>>>>> @@ -82,38 +82,6 @@ properties: >>>>>> reg: >>>>>> maxItems: 1 >>>>>> >>>>>> - interrupts: >>>>> >>>>> I don't understand what is happening with this patchset. Interrupts must >>>>> stay here. Where did you receive any different feedback? >>>> >>>> Look how it is done: >>>> https://elixir.bootlin.com/linux/v6.8/source/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml#L44 >>>> >>> Thanks for the pointer, as the above binding doesn't have any >> >> Yeah, that's just an example to point you the concept: top level >> property comes with widest constraints (or widest matching items >> description) and each variant narrows the choice. >> >>> description items as compared to our case, to clarify I have updated >>> the binding is below. Is this the correct approach? >>> >>> option #1 >>> --------------- >> >> >> Yes, it looks correct. > > Why duplicate all the descriptions? The only differences are the number > of valid interrupts? > What was wrong with "[PATCH v2 2/2] dt-bindings: serial: renesas,scif: > Validate 'interrupts' and 'interrupt-names'"[1]? > > https://lore.kernel.org/r/20240307114217.34784-3-prabhakar.mahadev-lad.rj@bp.renesas.com/ I have impression that only two variants out of three have same descriptions... but now I see mistake I made in above. I read that first interrupt is "Error interrupt" but it is "error or combined". Sorry for that, I think most of my comment there is not correct. It could be made oneOf? oneOf: - items: - description: A combined interrupt - items: - .... minItems: 4 ? Best regards, Krzysztof