From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A9E0AC001B0 for ; Tue, 8 Aug 2023 11:28:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type:Cc: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=jYRgV7b8eoxgTOfAHs+oUWhTW6pQ7DgS+WFymS7oA5k=; b=3TAK13mlS+aYtpmIftJyBGV5I4 rKXdjvlPe1EZKBxNI7b7ZvsowDktOujHjt4UVMSPXAWKwPioTvn/x1a60aLbHrKYVTNLM92qHbVcE Gbtd+1sq6utofdrpAmQPp6WwUs88rCOBij+P0abXQT/gXAprNYxZIJYaglVWzWDWO1kAOm2zP6JKR Qs4JCxl5ShaH6/U+Rft0GjeSMSkJT97ixf9KQG48C7CFMpWJsEtKarGDjYqW2nnkRkvbNHau39r5G Mi/Ru6K/LT+v97bsXrqQ4P3gwdJhxBqzPTO8rxIklHiw/NCpp85jZrnTI1y5FPDvitGWmB1oScBF/ MEoGRm9w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qTKt6-002Srf-1a; Tue, 08 Aug 2023 11:28:32 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qTKt3-002SrK-1H for linux-arm-kernel@lists.infradead.org; Tue, 08 Aug 2023 11:28:30 +0000 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 DCB0A6234A; Tue, 8 Aug 2023 11:28:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2FF5CC433C8; Tue, 8 Aug 2023 11:28:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691494108; bh=UkivAZmLW9i4huYTFXBK1YV0BryRlhOAytfJztzlggU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rZ97j+5hLGMVbKHdZ1aViwNCvIbQgg/S4qMWRigfT01dPG1Vgt0pod5bCV01KlhCF BvXzq0suUk+PXfRLLZE0JUfG1i4EirOSb3gBQjc+/dZjEL6IACywl3JXwyQtNtEX1/ LCtoht/QdFfiEkLInSeta+ki3qbeB3QJ9wPHEHXLZ585G8ei3+jn2IhPLVJ92/DOZj rn5l+5kXMEEFl6hctodJT7YHMHHPXDNy3ks9K6zDJwONIeFhljJuUJ2hAjOKN9OTD+ kw1yHnBoeZx0iuHp6rk0FJWBVxDBYsweTNPDpRYM7blAT8ebE+mmPlfrJnIOjz1m9F xwNHfa4Qv9lyw== Date: Tue, 8 Aug 2023 12:28:22 +0100 From: Conor Dooley To: Md Danish Anwar Subject: Re: [PATCH] dt-bindings: remoteproc: pru: Add Interrupt property Message-ID: <20230808-bazooka-uncoated-a3401d94b063@spud> References: <20230807110836.2612730-1-danishanwar@ti.com> <20230807-euphemism-trailing-ef4130dc7437@spud> <910a4a98-712a-5517-5a5b-ffb962f83463@ti.com> <20230808-unwomanly-generic-67d20f0e51cd@spud> MIME-Version: 1.0 In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230808_042829_526754_B3A2BE5A X-CRM114-Status: GOOD ( 25.41 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: srk@ti.com, devicetree@vger.kernel.org, Conor Dooley , linux-omap@vger.kernel.org, vigneshr@ti.com, Mathieu Poirier , Bjorn Andersson , linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, MD Danish Anwar , nm@ti.com, Rob Herring , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org Content-Type: multipart/mixed; boundary="===============2823226358237264182==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============2823226358237264182== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="NwSvyREEgDmJNJA5" Content-Disposition: inline --NwSvyREEgDmJNJA5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Aug 08, 2023 at 04:30:32PM +0530, Md Danish Anwar wrote: > On 08/08/23 4:18 pm, Conor Dooley wrote: > > On Tue, Aug 08, 2023 at 03:14:31PM +0530, Md Danish Anwar wrote: > >> On 07/08/23 8:09 pm, Conor Dooley wrote: > >>> On Mon, Aug 07, 2023 at 04:38:36PM +0530, MD Danish Anwar wrote: > >>>> Add interrupts and interrupt-names protperties for PRU and RTU cores. > >>>> > >>>> Signed-off-by: MD Danish Anwar > >>>> --- > >>>> .../bindings/remoteproc/ti,pru-rproc.yaml | 22 ++++++++++++++++= +++ > >>>> 1 file changed, 22 insertions(+) > >>>> > >>>> diff --git a/Documentation/devicetree/bindings/remoteproc/ti,pru-rpr= oc.yaml b/Documentation/devicetree/bindings/remoteproc/ti,pru-rproc.yaml > >>>> index cd55d80137f7..6970316943bb 100644 > >>>> --- a/Documentation/devicetree/bindings/remoteproc/ti,pru-rproc.yaml > >>>> +++ b/Documentation/devicetree/bindings/remoteproc/ti,pru-rproc.yaml > >>>> @@ -66,6 +66,16 @@ properties: > >>>> Should contain the name of the default firmware image > >>>> file located on the firmware search path. > >>>> =20 > >>>> + interrupts: > >>>> + maxItems: 1 > >>>> + description: > >>>> + Interrupt specifiers enable the virtio/rpmsg communication be= tween MPU > >>>> + and the PRU/RTU cores. > >>>> + > >>>> + interrupt-names: > >>>> + items: > >>>> + - const: vring > >>>> + > >>>> if: > >>>> properties: > >>>> compatible: > >>>> @@ -171,6 +181,9 @@ examples: > >>>> <0x22400 0x100>; > >>>> reg-names =3D "iram", "control", "debug"; > >>>> firmware-name =3D "am65x-pru0_0-fw"; > >>>> + interrupt-parent =3D <&icssg0_intc>; > >>>> + interrupts =3D <16 2 2>; > >>>> + interrupt-names =3D "vring"; > >>>> }; > >>> > >>> These examples would probably be more helpful if they used the > >>> appropriate defines, no? > >>> > >> > >> PRUSS Interrupt controller doesn't have any appropriate defines. This = doesn't > >> use GIC so defines from arm-gic.h can not be used here. These are spec= ific to > >> PRUSS INTC. > >=20 > > I was deliberately vague in case the gic stuff applied too, but my main > > question was about the standard defines used for interrupt types. > >=20 >=20 > There are no standard defines for these interrupt types. However I can cr= eate a > new .h file defining all the three interrupt cells and their values for b= oth > PRU and RTU cores if you think that is required. Otherwise we can go with > hardcoded values. >=20 > Please let me know what you think should be done here. It'd be good to reference to the documentation for the cells, I don't think adding a header is necessary here. Thanks, Conor. --NwSvyREEgDmJNJA5 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZNIm1gAKCRB4tDGHoIJi 0tOtAQCfCBZovM5h/DFSNCYnfyXE2fsxd2ohVBEMEPk/DVcwhgD/Q16z85gw+G0U S6cjm/OHhUkYWI+it8xAji3FtYYPCwY= =oc4g -----END PGP SIGNATURE----- --NwSvyREEgDmJNJA5-- --===============2823226358237264182== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============2823226358237264182==--