Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp220311iob; Mon, 2 May 2022 17:36:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyEYYxINqq1pL0ul3mZuBSLj0BqFWDMYzvlRYuhsLmWevH78bJ72Jt9N9GSD/LfvCNe0NC X-Received: by 2002:a63:2c0c:0:b0:3c1:a611:7ac1 with SMTP id s12-20020a632c0c000000b003c1a6117ac1mr11513819pgs.485.1651538187046; Mon, 02 May 2022 17:36:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651538187; cv=none; d=google.com; s=arc-20160816; b=z3YIQch101K1/+OHgBAhFmRrgdGUpRBK/M4MyrwO2+9H5yAIVepZG9TdRhWmtR9HYr xvG3dV/aDS2kjeIRI012QGh9Zakwy7JTzK4uE9vpQj7KwpyRTTW/GYi9TjXBMZqI9RZN yTNCIg9s2vB/mZpNvjgoUF7VgO30nHYGEvUOXF8mHwdfiQ4dIAA7nzHMc87PYhLbdVFk ryrpzrSNh55Rlz5Qnb4ZRjT5asp1GPmGlzQdCuAPHGaYStzAU+gWZi1nR1JRd6Jtp/lK SgGOm9mgEChLytr81qeS9tVTPKuROSGzpdybkiZpjUin6wWej1zI50Ot3Ouy9GdC3xzz GSlg== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=XPHEKYYd9Ptsbbxs8KoZkCZ1yWIPJOyX4n/VpEuMtQ8=; b=tJ8dxo2yQtPD0xxPkwESUK/BWhiprmQjaLzrqcLATZJGbbVfUHQFgxeFVF563J+bHj CrKx7C9TI8EntwXCSXUHGeiHs8ztDLJG++DPfieIaFiy7TtzF+2GWzSJid2YtGDcURM8 FMzL0gGn1NO87mwNbhutEtRzRS9tztTWAoX5Fx+myxhj9iA+zRxZfyPMUjjEb+ZYunau sIaZs5ONXSQVGYx5sb8QRWSq871vYEkMj5VBrkrsxmoa5nLP2gJnXhNXUE75CRXyqL/e 2H15mhHU+vCSDWOK3AGOnYj1MiwI5TNLRZPJbN41GGQXke4nAg6jZxRwdcQyHw07oH7/ DlGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=S51dNfla; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id t3-20020a655543000000b003a282486e3csi15429180pgr.12.2022.05.02.17.36.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 17:36:27 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=S51dNfla; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6E25E3631A; Mon, 2 May 2022 17:28:25 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230194AbiD2VOd (ORCPT + 99 others); Fri, 29 Apr 2022 17:14:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229911AbiD2VOc (ORCPT ); Fri, 29 Apr 2022 17:14:32 -0400 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B14D6D0AA1 for ; Fri, 29 Apr 2022 14:11:12 -0700 (PDT) Received: by mail-ed1-x52e.google.com with SMTP id a21so10414911edb.1 for ; Fri, 29 Apr 2022 14:11:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=XPHEKYYd9Ptsbbxs8KoZkCZ1yWIPJOyX4n/VpEuMtQ8=; b=S51dNflaCq23QuBcwA+4IvuLo4qSEiZzDqhwwXvmLoe3iKIDmxpRoI2sJXjSRb2378 pX0j+6GtwpuQn+Bzqa2mrssxz2poCN3Lpa+ORgKdQsBEMl8f6CmYIu8RRoJMysJuYX0K HkZSs+AbytYYu4Mlb6VBUhlBIbi0u5M2P4WVOx3eD3oz02xbWuUPPo2PI7ouW/umxImi d/BhKDns8mdIqAAwpzjQTt3sJlBocF9xsMhNRQRz5KReXR5jvhKmhT2YP+jvhEVMkTnB bS7mImz6yX0IorzEYLYkcLZZl6ULErIdXjPnDFK/OLZ1eD2c1uv4Cr6WUQRRnwm2BrX8 KE7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=XPHEKYYd9Ptsbbxs8KoZkCZ1yWIPJOyX4n/VpEuMtQ8=; b=tDE5aiMxIld4QSPjaNLo39Yk6RymOXRgCnB9wkghJoJeCH56WI0WLyOc+4v88Ad6YK ctRdB3tfpopQJoM0HyY7SEbO03sp14Xu+WVA86Jk8y6vIfEPFcQyi2emFZf87Rfk9Vpc Bkcmau5ZKV55rnjxHDxR2ykCKXE1sNyft8bii//YK13PX0mmIIGXLy3uFBR2Ad1umXdO HB94w+i16YnwuQRF16NuXORrhrGICh5NTZRcex8Lhw/puiQzo1dhhjvRO2c22I207k4u IJIEPvX+hGejTgRpZrk4MuqmG9U9bPKrwkVPhUHBbG3thQ5Q98Wr+Yd2L2uNeJiFkRx8 gFxg== X-Gm-Message-State: AOAM530XUTiYQuGn27qTssEGEWXwhid9ftI/wzmEtAyWMWGiqhvIBQOu +FbyyPGNnrsQDxawOEnzMEF0JQ== X-Received: by 2002:aa7:d38d:0:b0:427:331b:4f38 with SMTP id x13-20020aa7d38d000000b00427331b4f38mr633895edq.0.1651266671286; Fri, 29 Apr 2022 14:11:11 -0700 (PDT) Received: from [192.168.0.176] (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id mm25-20020a170906cc5900b006f3ef214dddsm990485ejb.67.2022.04.29.14.11.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 29 Apr 2022 14:11:10 -0700 (PDT) Message-ID: Date: Fri, 29 Apr 2022 23:11:09 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH v4] dt-bindings: mailbox: zynqmp_ipi: convert to yaml Content-Language: en-US To: Shubhrajyoti Datta , devicetree@vger.kernel.org Cc: jassisinghbrar@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, michal.simek@xilinx.com, git@xilinx.com, linux-kernel@vger.kernel.org References: <20220428165004.3212654-1-shubhrajyoti.datta@xilinx.com> From: Krzysztof Kozlowski In-Reply-To: <20220428165004.3212654-1-shubhrajyoti.datta@xilinx.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On 28/04/2022 18:50, Shubhrajyoti Datta wrote: > Convert the ipi doc to yaml. > > Signed-off-by: Shubhrajyoti Datta > --- > v2: (...) > +maintainers: > + - Shubhrajyoti Datta > + > +properties: > + compatible: > + const: xlnx,zynqmp-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 Wrong alignment of entire description. > + > + $ref: /schemas/types.yaml#/definitions/string-array This does not look like string array, but regular string. > + enum: > + - smc > + - hvc > + default: smc > + > + '#address-cells': > + const: 2 > + > + '#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 > + > + interrupts: > + maxItems: 1 > + > + ranges: true > + > +additionalProperties: false > + > +required: > + - compatible > + - interrupts > + - '#address-cells' > + - '#size-cells' Missing required xlnx,ipi-id. Such change was not explained in commit msg. > + > +patternProperties: Put patternProperties just after "properties". > + '^mailbox@[0-9a-f]+$': > + description: Internal ipi mailbox node > + type: object # DT nodes are json objects > + properties: > + xlnx,ipi-id: > + description: > + Remote Xilinx IPI agent ID of which the mailbox is connected to. > + $ref: /schemas/types.yaml#/definitions/uint32 > + > + "#mbox-cells": Wrong quotes. Keep it consistent. > + const: 1 > + description: > + It contains tx(0) or rx(1) channel IPI id number. No need for double space ^^. > + > + reg: > + maxItems: 4 > + > + reg-names: > + items: > + - const: local_request_region > + - const: local_response_region > + - const: remote_request_region > + - const: remote_response_region > + > + > + required: > + - reg > + - "#mbox-cells" Missing required properties. > + > +examples: > + - | > + amba { > + #address-cells = <0x2>; > + #size-cells = <0x2>; > + zynqmp_ipi { Generic node names (mailbox?), no underscores in node names. > + compatible = "xlnx,zynqmp-ipi-mailbox"; > + interrupts = <0 29 4>; interrupts look like common flags, so use defines. > + xlnx,ipi-id = <0>; > + #address-cells = <2>; > + #size-cells = <2>; > + ranges; > + > + ipi_mailbox_rpu0: mailbox@ff9905c0 { > + reg = <0x0 0xff9905c0 0x0 0x20>, > + <0x0 0xff9905e0 0x0 0x20>, > + <0x0 0xff990e80 0x0 0x20>, > + <0x0 0xff990ea0 0x0 0x20>; > + reg-names = "local_request_region", > + "local_response_region", These needs alignment with first string. > + "remote_request_region", > + "remote_response_region"; > + #mbox-cells = <1>; > + xlnx,ipi-id = <4>; > + }; > + }; > + }; > + > + rpu0 { > + mboxes = <&ipi_mailbox_rpu0 0>, > + <&ipi_mailbox_rpu0 1>; > + mbox-names = "tx", "rx"; > + }; Skip consumer example, it's obvious. > +... Best regards, Krzysztof