Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4686632rwb; Tue, 8 Aug 2023 12:06:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHBKQ03kIsIgIGzRiw/RRz6qztt0FYTNi2PuCOC1SxmPueXvMBLG32bpqMUC8A/tc7eaNlc X-Received: by 2002:aa7:cf99:0:b0:522:2add:5841 with SMTP id z25-20020aa7cf99000000b005222add5841mr807551edx.7.1691521601732; Tue, 08 Aug 2023 12:06:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691521601; cv=none; d=google.com; s=arc-20160816; b=EFJErUfRN4wtpjSIkKjgAfqpZyyKpsBknWvCMGPEm1pXDIJCpXUQ9RSwJRSc4OKGR4 xvsVdEzy0WUT0EDSsOkFk0AfWVi7miEQjM/6+bnoaQW40NfeSywqX8HZevY1V6yU3JVH 83XlskaF8JZZh65bit8dUG1pSbIPmxY7jyDixmJDTvW21KsKQGuUwI2R/jKI8NwzEGIA M3jzwnlusuxJbAdnGqDS5MR+spR58GnNZsdTlqN+N6IlTf7k+lgD6ePSEeG0oViWDu/q hgs6WUbimC+oT0ekNT1uSluOwdBm+F8MIxy0VQe19ms/b4CSvgEW6xa3f9oses3wcPnI BE0A== 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 :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=x4KzLhx5BX2F6004xNI9OIlMNZqfZlvnhOagsXCzdtc=; fh=KBjlFvX+3z8XepwJiYRzx/Q/08XuIh2znUY8vcjU+J0=; b=HFD2+BSCqmtbTbOX4U8+oZ9ipeOMBuJXt3GI0WkCm6E1G4Ug8yLrEpuiwDhEfze7gf gXDyYnHmliEtm0cbohU8+U3jlLoxgryQeP6+7T8kiOS/7Ur0VqiqfLYwCpSMBjH89zsF v9TEqJpN3ATlTl+HxT+X4la0RQKcD+SYA2yTWgEOueZwLbt4lintS8k8Cmu2usL5RSwl WjWDz8d2h3A8cacV4/vuTF1weGvjUxKbtnGg3+UvEFkioqmQ2E0cJm/wokZtJnmZRuX9 UHJwzRg7AZ0LP2hxji6c1cgXMoDclfOPMa/QbNwmWIft5F/oohVttIuekQ9xFo2HMLDy HdgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=DyIPmv9Y; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a13-20020aa7cf0d000000b0052256067f49si7419214edy.414.2023.08.08.12.06.17; Tue, 08 Aug 2023 12:06:41 -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=@ti.com header.s=ti-com-17Q1 header.b=DyIPmv9Y; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232859AbjHHSR0 (ORCPT + 99 others); Tue, 8 Aug 2023 14:17:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235348AbjHHSQZ (ORCPT ); Tue, 8 Aug 2023 14:16:25 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E98D47C72D; Tue, 8 Aug 2023 10:23:08 -0700 (PDT) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3789ib6f033387; Tue, 8 Aug 2023 04:44:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1691487877; bh=x4KzLhx5BX2F6004xNI9OIlMNZqfZlvnhOagsXCzdtc=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=DyIPmv9YiZPXPAz7XX1maF9evUxrDOSm5qnFSSLtrSTjKjqh8xPPoMJ0K4HFqdh7A 3dCpiq3h9ojI1G3y+s1+9Ium3bhM/a4eTDjRvu2ArylSDrqhS4QWeqcPP0vTHiw0oB WADKKshywpgMkgsrkftsRjWv9GLp8U57ZPeZUobY= Received: from DLEE115.ent.ti.com (dlee115.ent.ti.com [157.170.170.26]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3789ibUJ001331 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 8 Aug 2023 04:44:37 -0500 Received: from DLEE112.ent.ti.com (157.170.170.23) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 8 Aug 2023 04:44:37 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Tue, 8 Aug 2023 04:44:37 -0500 Received: from [172.24.227.217] (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 3789iWPm001940; Tue, 8 Aug 2023 04:44:33 -0500 Message-ID: <910a4a98-712a-5517-5a5b-ffb962f83463@ti.com> Date: Tue, 8 Aug 2023 15:14:31 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH] dt-bindings: remoteproc: pru: Add Interrupt property Content-Language: en-US To: Conor Dooley , MD Danish Anwar CC: Suman Anna , Conor Dooley , Krzysztof Kozlowski , Rob Herring , Mathieu Poirier , Bjorn Andersson , , , , , , , , References: <20230807110836.2612730-1-danishanwar@ti.com> <20230807-euphemism-trailing-ef4130dc7437@spud> From: Md Danish Anwar Organization: Texas Instruments In-Reply-To: <20230807-euphemism-trailing-ef4130dc7437@spud> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED 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 Hi Conor, 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-rproc.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. >> >> + interrupts: >> + maxItems: 1 >> + description: >> + Interrupt specifiers enable the virtio/rpmsg communication between MPU >> + and the PRU/RTU cores. >> + >> + interrupt-names: >> + items: >> + - const: vring >> + >> if: >> properties: >> compatible: >> @@ -171,6 +181,9 @@ examples: >> <0x22400 0x100>; >> reg-names = "iram", "control", "debug"; >> firmware-name = "am65x-pru0_0-fw"; >> + interrupt-parent = <&icssg0_intc>; >> + interrupts = <16 2 2>; >> + interrupt-names = "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 specific to PRUSS INTC. I think these example are OK. Please let me know if this is OK to you. >> >> rtu0_0: rtu@4000 { >> @@ -180,6 +193,9 @@ examples: >> <0x23400 0x100>; >> reg-names = "iram", "control", "debug"; >> firmware-name = "am65x-rtu0_0-fw"; >> + interrupt-parent = <&icssg0_intc>; >> + interrupts = <20 4 4>; >> + interrupt-names = "vring"; >> }; >> >> tx_pru0_0: txpru@a000 { >> @@ -198,6 +214,9 @@ examples: >> <0x24400 0x100>; >> reg-names = "iram", "control", "debug"; >> firmware-name = "am65x-pru0_1-fw"; >> + interrupt-parent = <&icssg0_intc>; >> + interrupts = <18 3 3>; >> + interrupt-names = "vring"; >> }; >> >> rtu0_1: rtu@6000 { >> @@ -207,6 +226,9 @@ examples: >> <0x23c00 0x100>; >> reg-names = "iram", "control", "debug"; >> firmware-name = "am65x-rtu0_1-fw"; >> + interrupt-parent = <&icssg0_intc>; >> + interrupts = <22 5 5>; >> + interrupt-names = "vring"; >> }; >> >> tx_pru0_1: txpru@c000 { >> -- >> 2.34.1 >> -- Thanks and Regards, Danish.