Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4674166rwb; Tue, 8 Aug 2023 11:55:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFbao30zq7fm8oEOXvmdLlk9Pz7YakTltBj2HniO3kl6cE3nKMR0+6tBgBipMdB/Uvf+NPS X-Received: by 2002:a05:6a00:2355:b0:686:be77:4311 with SMTP id j21-20020a056a00235500b00686be774311mr376582pfj.4.1691520947398; Tue, 08 Aug 2023 11:55:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691520947; cv=none; d=google.com; s=arc-20160816; b=lfFiRqHqRFUvEDcAlhWIIU8YyVrxGTr4uHYSJ79Yo3jXVK5svHWQxU+ht5zA7F9FlN 0KpMg+f+zA1KetgideTJw0EHCZ3wIhr8U4n0WRR+TAFkNMhv1GVc9acyCJur/nxye8RD 6WsWH1NKcXsoIkzABFRO3b7gAY1N6GJLTj9lQBHE4g0aQw26kJKcbb7KJaYlwL1Apzcx Xfd7w/UTZ9XHMam+pI1jqiLs+J+ESrGe0qHP5Dx6XcUrtEzNv+ztPQZVKx6yl20J3x8c ZI6nUm61FS16Asp7tZsbK1uZrndrd49ovEvMj7OZ1sRo5QaGsmNOw6kXVArdavp84T4T ewhA== 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=aGrl+J9PdiSIfJz5J01ga/6okmF6zKM5qGfZDougFOo=; fh=QBquaLAwX+Xt77drwDqmWXKb23zffSSkUkF4wos9Irc=; b=K2AERkBmWZAD7imNMayeSw8PFcBS2bDvycY90pLVIwdr4DHaNAyKqgpaylzjsZ0AQR 9GXWG890cnjSdP2bAMkD1v10CuIoCzt8LDn9UEFvhP1PfW/GYCfj6KnrQY2VRThjrqSq 6ics8VmyevjYa9CJHWI/5C6BK2FNfmnou2J+qG8gYXJrzM2MEILZYLGybYdyb5HaIc4N 6OSquoBFiz7sVmEO8+6INdKL6gMmekPNiWWLNMn/vvJ7fBJXSMOYAFliycxIxB1pLmk9 1HqzQsaet27cu4/5dzwQuTFdtwj0TkdyOizbuJ/CVA4TQEDesAKuvnjwYKANwlCZhW2G DhnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rZ97j+5h; 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 fa14-20020a056a002d0e00b0068050054196si7851414pfb.299.2023.08.08.11.55.32; Tue, 08 Aug 2023 11:55:47 -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=rZ97j+5h; 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 S233006AbjHHRqz (ORCPT + 99 others); Tue, 8 Aug 2023 13:46:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231458AbjHHRpp (ORCPT ); Tue, 8 Aug 2023 13:45:45 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4F1F9005; Tue, 8 Aug 2023 09:20:46 -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 E8A74624D4; 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 Cc: MD Danish Anwar , Suman Anna , Conor Dooley , Krzysztof Kozlowski , Rob Herring , Mathieu Poirier , Bjorn Andersson , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, vigneshr@ti.com, srk@ti.com, nm@ti.com 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 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="NwSvyREEgDmJNJA5" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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 --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--