Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp449880lqb; Tue, 28 May 2024 23:45:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWOF7mIbOXgPM0TRKeC6RzdYK50PyS84EQiMFchdgniQjjuJWUTXGJ5BXG/QTCSjoe2Y8zzwh8hbbf1LdZDMNkjVhLwZ5wyeC76Xg26EQ== X-Google-Smtp-Source: AGHT+IFSxmPA18SQIqZq2VCKrGMMprSBXrTj3QVLuBVYI36+gHJWxV3sMkfvP8Z5T24nqU7+RUxD X-Received: by 2002:a17:907:72c4:b0:a62:c215:9c20 with SMTP id a640c23a62f3a-a62c2159dc6mr695748366b.77.1716965155102; Tue, 28 May 2024 23:45:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716965155; cv=pass; d=google.com; s=arc-20160816; b=DtdONJGgnwXDLsAQNNpNyWfSl3lLqQTfvZSploo02Bxfjz9sl/GNv4JMsiV3b/qfhS GlzZCO9gZxO0by+QPsPEVBt46G3L2nnNO0yr/E0d9AXl+SWj4+xVl8XWWh3F1PaAjoJP xEumJTOI2IRtjG3v/diu3wGwJ55HGD8Qwo9Ed52kv1fmAyH5APBFnFMijAR1S18kMgYN 0Ev6TygOQIUaNuEYBhbePeSNQex8wiMhLMPvbGkaKkZHUwiwFVI1RKJgp5M8qMRRoLOX Xbh21iXLyDIqs7reJ3+wX7GbM6vF1JQ+k82L9CueLBi4AL2FsT//HynJN0jzdsBC+iYQ kCIA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Z/MWhRRgW7xSmp4jcS9MP7RtV6SNVCKc91bB8jxd5fo=; fh=rHPKh1zVfwqATdtA7ZsbFc3wcV0SLw6Z1N/4x009wqE=; b=pMKXp6PCiCMVSsY4Yl8VGA5T4uIyDqNU1F42RDcQvrEzG0Bo+K76356Uas41Dmko7L 7bGVwCjno5mz0U4zVpQSDqviYjf1ssaLycK1zknwoomuL6SL9riz7xaaHBjL8v4ycDbX Wwo2xZHm6oWIRAI1XyLPBSLOaFkhE9ZIzvXdXiskFBraNBdkeqETClyAbR9V3UU9j6/S HsYOoTOccZlpGO0b4hbhTR2Cm7DxfmElEI7+VbACYmOU+5mTzTlMGSbAB17wX17xcW1T cqDZiE6JLtr5lnR4v051Xv49XZoAy3h0gNV40ScFZcj5cUjY1BeQe1Pee/HNGepd2VXk P0Ew==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=xAMB1rPD; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-193539-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193539-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a626c91961bsi592766466b.271.2024.05.28.23.45.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 23:45:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-193539-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=xAMB1rPD; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-193539-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193539-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id A80E21F2669B for ; Wed, 29 May 2024 06:45:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B22641667DC; Wed, 29 May 2024 06:44:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="xAMB1rPD" Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F26F01649BE; Wed, 29 May 2024 06:44:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.142 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716965074; cv=none; b=dTQDJimfhpJ2S8B5g0vexGCoQeB9JFCK2kp8riZIGyFMRSVVW6/ufxM3zWaq+3iBf0K3OEI2bdv7R5K4SDtAxs89MPEHEjHlcVnUQCsRt71Eog4gDfflwGlPPJR+7Iwc3XZs3RXV3rupi3wNd9vow9LqFJhiWPPKo+1Wd1SLaOc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716965074; c=relaxed/simple; bh=0AU0WfbhyhjWL4oF3uwShX+yi9Xbsm5hWWtgZpZt9ik=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=m39lc+VfZg+dD/fbrp2tlslXJQ0aZRkgr0aLrpnOM8lFcKenCLv6o7bOCNdiz33WVmDyM45doI4o5Lur+JKyOn+C0exJDymc1GkzUVFyHim9FaJo+pdcgIX2KDupVrKCon+9qsjmSow4R/H2IinfW55aHGUt/xbWVSte6NDpA64= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=xAMB1rPD; arc=none smtp.client-ip=198.47.19.142 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 44T6iOrk128512; Wed, 29 May 2024 01:44:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1716965064; bh=Z/MWhRRgW7xSmp4jcS9MP7RtV6SNVCKc91bB8jxd5fo=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=xAMB1rPDmbhM61yJnoFqBU0R/y7/hk2uyYvxKwpUPcFd5g0KLkOz/cZ6bbdmD6NzG CtWmpYztPQoZkvSZ6gr4FL8L2lzkkZ3j1VCOtMT/EV6M2H6UPlD03E4S57MKR9HX/B FJxpcr5yV4rtvJ1N6Y30JLsOiYUbysJP8Kk3vPYE= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 44T6iOiW004159 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 29 May 2024 01:44:24 -0500 Received: from DFLE104.ent.ti.com (10.64.6.25) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 29 May 2024 01:44:24 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DFLE104.ent.ti.com (10.64.6.25) 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; Wed, 29 May 2024 01:44:24 -0500 Received: from fllv0122.itg.ti.com (fllv0122.itg.ti.com [10.247.120.72]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 44T6iOiq054034; Wed, 29 May 2024 01:44:24 -0500 Received: from localhost (danish-tpc.dhcp.ti.com [10.24.69.25]) by fllv0122.itg.ti.com (8.14.7/8.14.7) with ESMTP id 44T6iN6K015795; Wed, 29 May 2024 01:44:23 -0500 From: MD Danish Anwar To: Vignesh Raghavendra , Nishanth Menon CC: Conor Dooley , Krzysztof Kozlowski , Rob Herring , , , , Tero Kristo , , Roger Quadros Subject: [PATCH v2 1/3] arm64: dts: ti: k3-am64-main: Add PRU system events for virtio Date: Wed, 29 May 2024 12:14:18 +0530 Message-ID: <20240529064420.571615-2-danishanwar@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240529064420.571615-1-danishanwar@ti.com> References: <20240529064420.571615-1-danishanwar@ti.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 From: Suman Anna PRU system events "vring" have been added to each PRU and RTU node in each of the ICSSG0 and ICSSG1 remote processor subsystems to enable the virtio/rpmsg communication between MPU and that PRU/RTU core. No events have been added to the Tx_PRU cores at present. The additions are done in the base k3-am64main.dtsi, and so are inherited by all the K3 AM64x boards. The PRU system events is the preferred approach over using TI mailboxes, as it eliminates an external peripheral access from the PRU/RTU-side, and keeps the interrupt generation internal to the ICSSG. The difference from MPU would be minimal in using one versus the other. Mailboxes can still be used if desired, but currently there is no support on firmware-side for K3 SoCs to use mailboxes. Either approach would require that an appropriate firmware image is loaded/booted on the PRU. Signed-off-by: Suman Anna Signed-off-by: Kishon Vijay Abraham I Acked-by: Ravi Gunasekaran Signed-off-by: MD Danish Anwar --- arch/arm64/boot/dts/ti/k3-am64-main.dtsi | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi index 6f9aa5e02138..f8370dd03350 100644 --- a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi @@ -1283,6 +1283,9 @@ pru0_0: pru@34000 { <0x22400 0x100>; reg-names = "iram", "control", "debug"; firmware-name = "am64x-pru0_0-fw"; + interrupt-parent = <&icssg0_intc>; + interrupts = <16 2 2>; + interrupt-names = "vring"; }; rtu0_0: rtu@4000 { @@ -1292,6 +1295,9 @@ rtu0_0: rtu@4000 { <0x23400 0x100>; reg-names = "iram", "control", "debug"; firmware-name = "am64x-rtu0_0-fw"; + interrupt-parent = <&icssg0_intc>; + interrupts = <20 4 4>; + interrupt-names = "vring"; }; tx_pru0_0: txpru@a000 { @@ -1310,6 +1316,9 @@ pru0_1: pru@38000 { <0x24400 0x100>; reg-names = "iram", "control", "debug"; firmware-name = "am64x-pru0_1-fw"; + interrupt-parent = <&icssg0_intc>; + interrupts = <18 3 3>; + interrupt-names = "vring"; }; rtu0_1: rtu@6000 { @@ -1319,6 +1328,9 @@ rtu0_1: rtu@6000 { <0x23c00 0x100>; reg-names = "iram", "control", "debug"; firmware-name = "am64x-rtu0_1-fw"; + interrupt-parent = <&icssg0_intc>; + interrupts = <22 5 5>; + interrupt-names = "vring"; }; tx_pru0_1: txpru@c000 { @@ -1436,6 +1448,9 @@ pru1_0: pru@34000 { <0x22400 0x100>; reg-names = "iram", "control", "debug"; firmware-name = "am64x-pru1_0-fw"; + interrupt-parent = <&icssg1_intc>; + interrupts = <16 2 2>; + interrupt-names = "vring"; }; rtu1_0: rtu@4000 { @@ -1445,6 +1460,9 @@ rtu1_0: rtu@4000 { <0x23400 0x100>; reg-names = "iram", "control", "debug"; firmware-name = "am64x-rtu1_0-fw"; + interrupt-parent = <&icssg1_intc>; + interrupts = <20 4 4>; + interrupt-names = "vring"; }; tx_pru1_0: txpru@a000 { @@ -1463,6 +1481,9 @@ pru1_1: pru@38000 { <0x24400 0x100>; reg-names = "iram", "control", "debug"; firmware-name = "am64x-pru1_1-fw"; + interrupt-parent = <&icssg1_intc>; + interrupts = <18 3 3>; + interrupt-names = "vring"; }; rtu1_1: rtu@6000 { @@ -1472,6 +1493,9 @@ rtu1_1: rtu@6000 { <0x23c00 0x100>; reg-names = "iram", "control", "debug"; firmware-name = "am64x-rtu1_1-fw"; + interrupt-parent = <&icssg1_intc>; + interrupts = <22 5 5>; + interrupt-names = "vring"; }; tx_pru1_1: txpru@c000 { -- 2.34.1