Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5130424rdb; Tue, 12 Dec 2023 22:35:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IHq6Ijerdo+uOKTqF3QrWoygTP11NHi11ypLX1mV1otV7C+SGJStc6+fG0PDaQqSxa7nIlj X-Received: by 2002:a05:6e02:1aa5:b0:35d:a3ce:4e50 with SMTP id l5-20020a056e021aa500b0035da3ce4e50mr7446315ilv.37.1702449313851; Tue, 12 Dec 2023 22:35:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702449313; cv=none; d=google.com; s=arc-20160816; b=v9us6EKKc397keScAtrYADOObCvV5Q3jPonst6u2HsNu6N6DdIKboiD444ucuiz5Il pCYEiFNmK1bJ2CRVGaQap29TvWGzbEddbI7+dlP/Q9/VVRYe8wLROXzz7+rRoCPKuQi6 rPGd6r6ZjrBMnwzl4ZEY+e+GR6EK/K3Rl3n4YfHpktcMOetbmg8+aYTOsTK4b3FRYTT1 KcrJgzoXSPuzrvHhiH4loamxWIy/MJ2RMSVdPXlSB7v4wqKYOXqHqYWMDrlzfRn2W9+t WLgnGU28ZVcM88XGugErNO7HW7VnFa9mhbJbFrzRgmlYmI92co7tNORTLSt3YZJdo+PK eFDA== 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=igoDahi7rNbkSlz7yguA+9xfPvLprhhiBvehrui8ccw=; fh=/WFIgxXupWxt+eiepr44BCKJ5iY2ksbTun8nII6i/ec=; b=h+wk3OfVW2ZlI7yqMbt1RG3m7RQ+pLHB8N01nD3qKcJM9FtRIi61bxmIe9zijKAkXY OMywMNho0GgMNl2nWC/qG1P4U3A+LdQCI8TMm4cwN/MeZLNFzGgjsJq3sLmFK+pG/J46 wVMuMwvUr8PDBZM/11OkseQaL2mFki78DTJeUqgXfyzt3nNr1km3XxSESvKk3OwfgbJ/ UAubvGN6Hye/pJlL4dzH61SgWVQT0fDTwP7wqC20dcjNAXiAsHpoDqbOZt0Bn8jm/KTi SlVNHqQea1lBgNw/9G9yoSySommm0hMdUOUvHDyKirEl8Tr0GappsbaMUDj8CcURT7mN I+kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gHVqO02S; 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 j4-20020a170902da8400b001cfbd3f38c6si9020357plx.302.2023.12.12.22.35.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 22:35:13 -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=gHVqO02S; 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 929EE803E4B2; Tue, 12 Dec 2023 22:35:12 -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 S1378610AbjLMGfD (ORCPT + 99 others); Wed, 13 Dec 2023 01:35:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378551AbjLMGfB (ORCPT ); Wed, 13 Dec 2023 01:35:01 -0500 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A590EAD for ; Tue, 12 Dec 2023 22:35:07 -0800 (PST) Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-a1e2ded3d9fso784160566b.0 for ; Tue, 12 Dec 2023 22:35:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702449306; x=1703054106; 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=igoDahi7rNbkSlz7yguA+9xfPvLprhhiBvehrui8ccw=; b=gHVqO02SGP+VxndbyfbXJo7es5tzWCQqQugzcJADrxoPaBFZaiijUR1h9SGN7cbHcy Q6q3NrRfkeV/XDQL6flHDfd+rVf6MthGUTmxglDi4ZYU0922qmRWWFMh5eEWuChpJq4Q Fr+BpMFq5Ivl7xxp6sXdUodmOFa9+8ILksNuv13AiM7fvTa00nIwCDkdnuQtLen2qgEd LjkQnuvPIGVzz+7gyWQZRU3QR66rsEUpXDz8tdSWiUw+aQAjI82b48dQYKQEwzjvhvFR 4wSfBr3iJR8rPX7wkDKnq2EayceVitmAUZ7LYyIT+mL9xpOFtPG0yz0XqSTnOEX5GEHy at3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702449306; x=1703054106; 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=igoDahi7rNbkSlz7yguA+9xfPvLprhhiBvehrui8ccw=; b=EtvOF/dbul0H0twD61DyWL80KoOWYbyg4s9PvDoXXhXWXKdctlQb4SEP0RVCQBA20x byBVtx+I76bvkd08hqRUlUMsVfLdm28J948VPGB/VEbgNB1BDZAlB0IVGVBdkEZRgid9 EKHvrWKB54dNyLNP+scWARRJCJsJCCp00ByuNDjgcZdnubG97r7RtDm3tJktLHtNpWQS 7ZEP80tazsD8p7HC/aogjTbjdExZTOM7ih1gDg2IqpRSscazXLHjfiJDa/awKW5L22U1 dczHj5dke8QZtE1vcgjA+6ZGReO0D3riLBN8J9+63BQo8uZd7+RpiqyemuthgdCyiySS GOag== X-Gm-Message-State: AOJu0Yw3P8vSJn1sYO4EE1PFwplt6Gp5/F3RcqqtTILOT5U4eE3s2SXu 2Pd2wBa9/D7tjy/Xl3HwA0+1HA== X-Received: by 2002:a17:906:b341:b0:a01:b9bd:878 with SMTP id cd1-20020a170906b34100b00a01b9bd0878mr3821013ejb.14.1702449306010; Tue, 12 Dec 2023 22:35:06 -0800 (PST) Received: from [192.168.1.20] ([178.197.218.27]) by smtp.gmail.com with ESMTPSA id vg16-20020a170907d31000b00a1cdf29af64sm7199429ejc.45.2023.12.12.22.35.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 12 Dec 2023 22:35:05 -0800 (PST) Message-ID: Date: Wed, 13 Dec 2023 07:35:04 +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 References: <20231212230353.888714-1-tanmay.shah@amd.com> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZ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PMGZ2rZ6zITrMip+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: <20231212230353.888714-1-tanmay.shah@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]); Tue, 12 Dec 2023 22:35:12 -0800 (PST) On 13/12/2023 00:03, Tanmay Shah wrote: > Add documentation for AMD-Xilinx Versal platform Inter Processor Interrupt > controller. Versal IPI controller contains buffer-less IPI which do not > have buffers for message passing. For such IPI channels message buffers > are not expected and only notification to/from remote agent is expected. > > Signed-off-by: Tanmay Shah > --- > > properties: > compatible: > - const: xlnx,zynqmp-ipi-mailbox > + enum: > + - xlnx,zynqmp-ipi-mailbox > + - xlnx,versal-ipi-mailbox > > method: > description: | > The method of calling the PM-API firmware layer. > - Permitted values are. > - - "smc" : SMC #0, following the SMCCC > - - "hvc" : HVC #0, following the SMCCC > - Independent change. Please do not mix logical changes in one patch. > $ref: /schemas/types.yaml#/definitions/string > enum: > - smc > @@ -58,16 +56,26 @@ properties: > '#size-cells': > const: 2 > > - xlnx,ipi-id: > - description: | > - Remote Xilinx IPI agent ID of which the mailbox is connected to. > - $ref: /schemas/types.yaml#/definitions/uint32 > + reg: > + minItems: 1 > + maxItems: 2 > + > + reg-names: > + 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? > > interrupts: > maxItems: 1 > > ranges: true > > + xlnx,ipi-id: > + description: | > + Remote Xilinx IPI agent ID of which the mailbox is connected to. > + $ref: /schemas/types.yaml#/definitions/uint32 > + minimum: 0 > + maximum: 64 > + > patternProperties: > '^mailbox@[0-9a-f]+$': > description: Internal ipi mailbox node > @@ -76,57 +84,116 @@ patternProperties: > properties: > > compatible: > - const: xlnx,zynqmp-ipi-dest-mailbox > + enum: > + - xlnx,zynqmp-ipi-dest-mailbox > + - xlnx,versal-ipi-dest-mailbox > > - xlnx,ipi-id: > - description: > - Remote Xilinx IPI agent ID of which the mailbox is connected to. > - $ref: /schemas/types.yaml#/definitions/uint32 > + reg: > + minItems: 1 > + maxItems: 4 > + > + reg-names: > + minItems: 1 > + maxItems: 4 Same concern. > > '#mbox-cells': > const: 1 > description: > It contains tx(0) or rx(1) channel IPI id number. > > - reg: > - maxItems: 4 > - > - reg-names: > - items: > - - const: local_request_region > - - const: local_response_region > - - const: remote_request_region > - - const: remote_response_region > + xlnx,ipi-id: > + description: > + Remote Xilinx IPI agent ID of which the mailbox is connected to. > + $ref: /schemas/types.yaml#/definitions/uint32 > + minimum: 0 > + maximum: 64 > > required: > - compatible > - reg > - reg-names > - "#mbox-cells" > - > -additionalProperties: false > - > + - xlnx,ipi-id > + > + allOf: > + - if: > + properties: > + compatible: > + contains: > + enum: > + - xlnx,zynqmp-ipi-dest-mailbox > + 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. > + > + 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. > - 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 > + > + Just one blank line. > examples: > - | > #include > > - amba { > - #address-cells = <0x2>; > - #size-cells = <0x2>; > + bus { > zynqmp-mailbox { > compatible = "xlnx,zynqmp-ipi-mailbox"; > interrupts = ; > xlnx,ipi-id = <0>; > #address-cells = <2>; > #size-cells = <2>; > - ranges; How is this related to Versal? > > mailbox: mailbox@ff9905c0 { > compatible = "xlnx,zynqmp-ipi-dest-mailbox"; > @@ -144,4 +211,41 @@ examples: > }; > }; > > + - | > + #include > + > + bus { > + #address-cells = <2>; > + #size-cells = <2>; > + zynqmp-mailbox@ff300000 { mailbox@ > + compatible = "xlnx,versal-ipi-mailbox"; > + interrupts = ; > + #address-cells = <2>; > + #size-cells = <2>; > + reg = <0x0 0xff300000 0x0 0x1000>, > + <0x0 0xff990000 0x0 0x1ff>; > + reg-names = "ctrl", "msg"; > + xlnx,ipi-id = <0>; > + ranges; > + Best regards, Krzysztof