Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5428655rdb; Wed, 13 Dec 2023 08:21:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IEzKCzrMVOb96XhzcSDgDV8XATC7YPEy19Rhopy/xtjuL+aAieFSCSkft5M4T9nvLkznwhO X-Received: by 2002:a17:90b:4f8c:b0:28a:357d:9054 with SMTP id qe12-20020a17090b4f8c00b0028a357d9054mr3834859pjb.55.1702484513541; Wed, 13 Dec 2023 08:21:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702484513; cv=none; d=google.com; s=arc-20160816; b=xnvLoJjoPCD4OJz88kYRzaZKQnVxr6QWeuCg1HsWxdj7sYed/M1ikMjSRATfFPFPoh 55xopZYdEQER+6GlbDgp6claSvUVMwdVrD4OWR0xF81pfNHG1WyOfysWLloXRWHsVSl/ X2R1DdpTOFSd07Heoo1/thWk6BzmoxHwdlyaE6CXDC/Gz48TAXQTR5zK0KruejpAW2g3 gHEBqUNKT4Hm7158gYW0ey5HqEgkjycRTDLeD8fXA/xOTPOPTkNuU0Bwtwq7rWF8KCkn 35i8bP6PBoo2IlXfBii2YllnsOIv/4+BRYAaz+6g2TMZCZACE4PrhLoj6BQYSv6FppAr HQbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=Z1y0Kw2M6AclKKuX/NnPqhbtdzwBtWjX6oDFo/cd11E=; fh=8U85xzVIiCNcIS/vQJQXOpPRs2qGHE/kFT8hJ2owMAY=; b=x1B7RFB1Pb4RQI6QCmhXag+a0cIlrUnre7Vt4gsudDB922LgMZoiUvSWpnrdnxujQt ZsoD0cCBUm99034apXTpnCsaAgeCjJRttc3oaSehBUInlCSdrU8GBZYlzj/wtzMj5WsG lIeTIpb198+nNhYekYkmnY1vBWqj86nMDMCs4ICtoESL0u7pOKr4NJkONL9CVeWf8jN7 9Mw+UEyudMzMqXhpUGKsPFdG2fy10A2IA/jeUpxBzYEWs7J5Rn1HLBAKuG3HVmm7BuoE kEcITZY23Mu+/5FfT5Nt8nN1N39MJRh2G3Bq5ObzktRXAIn5dDbmFbHfssv8asos4as8 doag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yT38vnfj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id ca13-20020a17090af30d00b0028ae729ce29si1152799pjb.81.2023.12.13.08.21.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 08:21:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yT38vnfj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 1E3508030992; Wed, 13 Dec 2023 08:21:52 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377455AbjLMQVn (ORCPT + 99 others); Wed, 13 Dec 2023 11:21:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233674AbjLMQVl (ORCPT ); Wed, 13 Dec 2023 11:21:41 -0500 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC15D91 for ; Wed, 13 Dec 2023 08:21:46 -0800 (PST) Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-54cd2281ccbso9299059a12.2 for ; Wed, 13 Dec 2023 08:21:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702484504; x=1703089304; 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=Z1y0Kw2M6AclKKuX/NnPqhbtdzwBtWjX6oDFo/cd11E=; b=yT38vnfjPwgSVVD1or6DuC4ptJ/Cb5XHtjVZpFDc7Lwuq7JiFZBGJgOKN7uOoeACfs HUor5575NH3434fXrQ0jzC8sQy8JqhxWA97DBHvXfs4lunUVIzIXpn6oWDIKpLoGdeVe aogDpIpkazB/6MF6tqGNaqdoSITogjGIrmCVuU8qUejSITnED4ga2zbwnh1fwLcrruHQ VvglTv7aVnQJ3cl97f4P/iWgXM8u9CzFebmsLIO6pXXus3bk1oGZeJ/tf0uhzpk4NoK8 wDHlU1F6EzZg/6s200soBkOiI+HBwlrynl2WRug+jKIudHajH15RVbUT52Zu+UUkQ89B fRvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702484504; x=1703089304; 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=Z1y0Kw2M6AclKKuX/NnPqhbtdzwBtWjX6oDFo/cd11E=; b=VE6yftwhySIVlD4TfmgLHBLc5jqD2YqWlewCJOsuFrUFcyG0jxDT+qeAJwJoPDDvID xAsE/Zo2uYfk1ip0DBvWx4zq7vt/99LNT6p5XGo3kuTI3z+HozxdArXWwE2Gwl5iMuD+ k2fmgarZA/mVtlU+hkcTM5QLeKdyUMckw2ixA30XqVTRkCkgHOlhZVKu6oZX/qRITV+9 noYM68bfzmWeUaCMpayuK5fmhGegPwnWqDidNyZBhoZ6e2b8ofWFu+lEoleRDNrP4BFu I8GMiBzNLlOXGx9NolfuWA1UIa544TGYWVaUjgLmQ6HoNwMn0SdXrT/ALHxIrlcK9OQ5 fhXg== X-Gm-Message-State: AOJu0YwCxCf4SuEH6TNxyt6M9baQgSHmTWHoLRdAOdIu6PyacChj63fH KjXKuVTjkWisun1xJ3ciZ0+RMw== X-Received: by 2002:a17:907:94d5:b0:9b8:b683:5837 with SMTP id dn21-20020a17090794d500b009b8b6835837mr5318654ejc.46.1702484504531; Wed, 13 Dec 2023 08:21:44 -0800 (PST) Received: from [192.168.1.20] ([178.197.218.27]) by smtp.gmail.com with ESMTPSA id tj7-20020a170907c24700b00a1c522990ccsm8031034ejc.85.2023.12.13.08.21.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 13 Dec 2023 08:21:44 -0800 (PST) Message-ID: Date: Wed, 13 Dec 2023 17:21:36 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] dt-bindings: mailbox: add Versal IPI bindings Content-Language: en-US To: Tanmay Shah , jassisinghbrar@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, michal.simek@amd.com, shubhrajyoti.datta@amd.com Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, "Levinsky, Ben" References: <20231212230353.888714-1-tanmay.shah@amd.com> <44052047-06c9-4b95-b040-2d4c7c1343d1@amd.com> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org;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UEciwG/SgNyxBZepj41oVq FPSVE+Ni2tNrW/e16b8mgXNngHSnbsr6pAIXZH3qFW+4TKPMGZ2rZ6zITrMip+12jgw4mGjy 5y06JZvA02rZT2k9aa7i9dUUFggaanI09jNGbRA/ABEBAAHCwXwEGAEKACYCGwwWIQSb0H4O DFH41ZZ3t1Qbk0N9O0FimwUCYDzvagUJFF+UtgAKCRAbk0N9O0Fim9JzD/0auoGtUu4mgnna oEEpQEOjgT7l9TVuO3Qa/SeH+E0m55y5Fjpp6ZToc481za3xAcxK/BtIX5Wn1mQ6+szfrJQ6 59y2io437BeuWIRjQniSxHz1kgtFECiV30yHRgOoQlzUea7FgsnuWdstgfWi6LxstswEzxLZ Sj1EqpXYZE4uLjh6dW292sO+j4LEqPYr53hyV4I2LPmptPE9Rb9yCTAbSUlzgjiyyjuXhcwM qf3lzsm02y7Ooq+ERVKiJzlvLd9tSe4jRx6Z6LMXhB21fa5DGs/tHAcUF35hSJrvMJzPT/+u /oVmYDFZkbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <44052047-06c9-4b95-b040-2d4c7c1343d1@amd.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 13 Dec 2023 08:21:52 -0800 (PST) On 13/12/2023 17:18, Tanmay Shah wrote: >>> + minItems: 1 >>> + maxItems: 2 >> >> I don't understand why this change is here. Previously you did not have >> MMIO address space? If yes, then where do you restrict the old device to >> disallow these? > > > Hardware description is different between ZynqMP and Versal. And so, we have to design > > new bindings for Versal. reg and reg-names for parent node, is only available for new devices. > > The new device is checked with compatible string after "required" section. Hm? What does that mean? > > Should I add "unevaluatedProperties: false" after "additionalProperties: false" for parent node below [1] ? No, you should disallow reg/reg-names for older device. ... > >>> + then: >>> + properties: >>> + reg: >>> + items: >>> + - description: Host agent request message buffer >>> + - description: Host agent response message buffer >>> + - description: Remote agent request message buffer >>> + - description: Remote agent response message buffer >>> + >>> + reg-names: >>> + items: >>> + - const: local_request_region >>> + - const: local_response_region >>> + - const: remote_request_region >>> + - const: remote_response_region >>> + else: >>> + properties: >>> + reg: >>> + minItems: 1 >>> + items: >>> + - description: Remote IPI agent control register >>> + - description: Remote IPI agent optional message buffer >> >> Were these described in old binding? If not, it's a separate change. > > Okay, so I will split this in two patches: > > 1) Clean up current bindings (like remove redundant descriptino, sort "required" property order etc..) If you want to combine cleanup and functional changes, then this would be two patches. > > 2) Add versal platforms bindings doc. (This will add if else cases and Versal platform support) > > >>> + >>> + reg-names: >>> + minItems: 1 >>> + items: >>> + - const: ctrl >>> + - const: msg >> >> Blank line >> >>> required: >>> - compatible >>> - - interrupts >>> - '#address-cells' >>> - '#size-cells' >>> + - interrupts >> >> Separate change with its own rationale. Trivial cleanups can be >> organized in one patch, but should not be mixed with adding new devices. > > Ack > > >>> - xlnx,ipi-id >>> >>> +allOf: >>> + - if: >>> + properties: >>> + compatible: >>> + contains: >>> + enum: >>> + - xlnx,versal-ipi-mailbox >>> + then: >>> + properties: >>> + reg: >>> + items: >>> + - description: Host IPI agent control registers >>> + - description: Host IPI agent optional message buffers >>> + >>> + reg-names: >>> + items: >>> + - const: ctrl >>> + - const: msg >>> + >>> + required: >>> + - reg >>> + - reg-names >>> + >>> +additionalProperties: false > > [1] Here, if I add unevaluatedProperties: false then is it enough for old device to disallow No, you need reg:false Best regards, Krzysztof