Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp96401rwd; Wed, 14 Jun 2023 12:46:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6WfthrN3vDd6vbc04SIllxpnrDJNLGfEMLnuCg6hutv+8QEqwiJyxfhzVe9nf1AhBURpiq X-Received: by 2002:a17:906:dac7:b0:974:86a7:d3a3 with SMTP id xi7-20020a170906dac700b0097486a7d3a3mr16334274ejb.13.1686771975822; Wed, 14 Jun 2023 12:46:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686771975; cv=none; d=google.com; s=arc-20160816; b=MY7m9uPfPL2xLZOe+6NpX0LpzjDy7ni7r/LkGTqGxZC8BstF0+ax6Og5kCq+GeQzkb BfbF2yTEq3gPLoiJ/hRmS+HjmQewJ6xW9TCZJft3h1MfNS4AxU9C6908kdtziJsug0IF IH5iSryrJIKzGa6AWRaMRzd4KajhsDnzcu9IzQMpW3Jy/ncWM+ndJ2E7SY7ntdFgHSQ9 gpg3Mj8PbbDbsZ0vwMA2heZ92zBj1aQ5XUWSYnBDUVISwVEcTFhst7hk6zsDPelrrg80 nNUykG4A2cKWoqrBdnWkN9gJ8cFAxGmyOjX+v0yRpG83914nEC6KE/77ZIUFZZJHJKAs n3mA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=hXKiKhXHdzySjHe40DQKlGkGtOKb9qRgi5bwsx8EVYU=; b=KJCrL869vB8aYi2c5SKjTZtHtCoRydPXFvLzcB29tG4jhUvXX6VtEdh92hzHTtFJ1g pF3w1nUNeJbt7lK5Pl7gw4OhC67GMO9lN+BL2qMHrwAJBxWq+J14DJer8DbJY47ZnCQW XXuQ7IDnnrbxL+J5erdj3sZZSQM88LuFmaaFJ2NX0CAzHoz3UMjra2h2aTpVq5yEyEIs 5J6Z/Y8gOPCee9LeirZmRogxaAS99UgTALToqpt8jC034rkD9lYXKRn35pnUM4ozWzKg k1tPwXGCM6X4qxoSgi3fb8OhrrKlU96JRmC90vSTVXHlMOhZmXbvZZuWZUV7cIK7aqYC /xUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mTMCil+h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v19-20020a170906b01300b009829013a900si410226ejy.552.2023.06.14.12.45.51; Wed, 14 Jun 2023 12:46:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mTMCil+h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236705AbjFNT2L (ORCPT + 99 others); Wed, 14 Jun 2023 15:28:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236890AbjFNT2A (ORCPT ); Wed, 14 Jun 2023 15:28:00 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C1D02726; Wed, 14 Jun 2023 12:27:31 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0185D63DB3; Wed, 14 Jun 2023 19:27:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B4C2FC433C0; Wed, 14 Jun 2023 19:27:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686770849; bh=T2ORHO5yFSlNbPCHm8exnTbQMAiovym6Yw8Agz5UFng=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mTMCil+hklnlF1wdBdgexpCOuFi7k1H8k1v4rWagRqV3dxUorHBVWLvou82XCQT8/ jGgNlk8Ejwuimir91p35ihiH6bHZUUrwQqRDeRZgQL1tDYxS/Ig7Y28b2KpoP74PQP kjFwt2HNJmkbJL06LaIx9f95tFxmKDQAkPlvRt0PTrDM/HhW3/Bm1lH46mPgZ2kYA3 AkRZ7zBaMSKFK5ptaSPTUDDg+omBNLLOKpL41HRYpqsUsDS37laN3QtBlcz1E3dMGk JXhBGHlC+rn9z6ohcuooizlA1WQTPc5Jc1eq9JeNUTEIu7fvwCZjNQBV1UBO6JP6Ck 2bTCSnLKgL2KQ== Date: Wed, 14 Jun 2023 20:27:23 +0100 From: Conor Dooley To: Anup Patel Cc: Palmer Dabbelt , Paul Walmsley , Thomas Gleixner , Marc Zyngier , Rob Herring , Krzysztof Kozlowski , Robin Murphy , Joerg Roedel , Will Deacon , Frank Rowand , Atish Patra , Andrew Jones , Saravana Kannan , Anup Patel , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, iommu@lists.linux.dev Subject: Re: [PATCH v4 07/10] dt-bindings: interrupt-controller: Add RISC-V advanced PLIC Message-ID: <20230614-devotee-repave-37d670dbfb7c@spud> References: <20230613153415.350528-1-apatel@ventanamicro.com> <20230613153415.350528-8-apatel@ventanamicro.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="5BjMorMatJMI/kO2" Content-Disposition: inline In-Reply-To: <20230613153415.350528-8-apatel@ventanamicro.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 --5BjMorMatJMI/kO2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hey Anup, Mostly looks good, once minor comment. On Tue, Jun 13, 2023 at 09:04:12PM +0530, Anup Patel wrote: > + riscv,children: > + $ref: /schemas/types.yaml#/definitions/phandle-array > + minItems: 1 > + maxItems: 1024 > + items: > + maxItems: 1 > + description: > + A list of child APLIC domains for the given APLIC domain. Each child > + APLIC domain is assigned a child index in increasing order, with the > + first child APLIC domain assigned child index 0. The APLIC domain child > + index is used by firmware to delegate interrupts from the given APLIC > + domain to a particular child APLIC domain. > + > + riscv,delegation: > + $ref: /schemas/types.yaml#/definitions/phandle-array > + minItems: 1 > + maxItems: 1024 > + items: > + items: > + - description: child APLIC domain phandle > + - description: first interrupt number of the parent APLIC domain (inclusive) > + - description: last interrupt number of the parent APLIC domain (inclusive) > + description: > + A interrupt delegation list where each entry is a triple consisting > + of child APLIC domain phandle, first interrupt number of the parent > + APLIC domain, and last interrupt number of the parent APLIC domain. > + Firmware must configure interrupt delegation registers based on > + interrupt delegation list. > + > +required: > + - compatible > + - reg > + - interrupt-controller > + - "#interrupt-cells" > + - riscv,num-sources > + > +anyOf: > + - required: > + - interrupts-extended > + - required: > + - msi-parent Not sure if you missed this from the last version, but I asked if we needed a dependencies: riscv,delegate: [ riscv,children ] IOW, I don't think it is valid to have a delegation without having children? Otherwise, Reviewed-by: Conor Dooley Cheers, Conor. --5BjMorMatJMI/kO2 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZIoUmwAKCRB4tDGHoIJi 0s8OAQC9Z5JXorm19qiau/8bfDQbErjoln46aJVOZhOB61Zs4AEAldzBD4e5sVZx BB4EhiqD4OULcq1ms+OtgVW6TW7zIgE= =hrI0 -----END PGP SIGNATURE----- --5BjMorMatJMI/kO2--