From patchwork Wed Aug 11 07:59:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steen Hegelund X-Patchwork-Id: 12430285 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5B454C4338F for ; Wed, 11 Aug 2021 08:02:43 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 1546D600CD for ; Wed, 11 Aug 2021 08:02:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 1546D600CD Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=microchip.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=doLD0BsbfFqPVMdy9LECoUyrozLTlmvwndk4VhNa+pI=; b=ZrDpDOfcCM5DRt u/XnQ/xcQlL4VB50Zh1BiHZCRY60AYuU9Zac/bFOp1+s0d8CIYhlri0H8uxuuLmczLfW6/0WAiolT 3LoAUJGrpdtFBwEEw7F4eIpSdITJUMOlpKamODW/BqeRVPzGT4rnCY7iTfljhCj1X7QLdeHjPt6/o LNKrcMKiW5R/IvoFnSsdemht/RCUr0EVc1/T3tKIbEYqv9++3AAJ1Oh0KMb9z9xSP6yrJJC2qVNQh 3motlpGBsGKp2hXJieZR9wseC+L1bOQTcHakjSJlAFz1urbC2yUJNnor9vIualEkhlMPIg/QszHHd 4KhGugDMj0W+T3uh9NKQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mDj9i-005xK2-0u; Wed, 11 Aug 2021 08:00:06 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mDj90-005x4v-7D for linux-arm-kernel@lists.infradead.org; Wed, 11 Aug 2021 07:59:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1628668761; x=1660204761; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=doHf05BSxz8JLwdETceKQtVg12HvxaXyUfWGoXfYgEA=; b=pFKyxpgRDaHwi4fHlMntAHh2AhICzwABzMOwyXEIAVggIb2mW87rjPFZ FElMm+IlSoTNdrI3Yub0uhcwmxGXz9wdev/RFX5/mYCxkmN6wH8zym4MU Dcfh7Tp+u1/ZRBlMkcZpDwrr3aZvkUrUUr8ESzAfuTUU1TTeiXh2XyRLH bUPxpQa/Q83NAyoGNVz5gHFqtRDkKFl+suWFRq1S5NGW5aSd5th++KuOl GQS/VuA9xqIT3dqxjyvgEOGb4ZnQ3h0rJeR8+Y4gLdfferPGAOhfs+uiL 7gPnfFe4RSdyEEz0xwFMv84skEEil+s9W9wCUy+f7RgSWe/99ZS4SCbVI Q==; IronPort-SDR: 8v/81hvEQo/ok5ajM0wlH2A4qZDYrYFK5jTt0Y+kgJsqhmzf9u2wKCrrAfIsnqNsAAPuk4HvQt 8v/QyY5dWz8vvau4CTzR3wzh8N6TgnsCe6Dz6NY0L1nzqyTVY7RkRRg+ONVxDb4vnfu41afrYn zoslRWpMD7hGmRz1h81FShsQDGHqYJ22/enw4NOmMQoEVtl4B3Um8aDQYDU7HU83slIuss2XbE MVvk+UKvw5NSwnT7dEolv0I+MBbHA5D34/z67e4Wjkn6gtjMfbmp0M54/PTU8ZVhbo62A005NC R7tI9RxYXU3nW6YZqgajyPdW X-IronPort-AV: E=Sophos;i="5.84,311,1620716400"; d="scan'208";a="132373660" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 11 Aug 2021 00:59:20 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Wed, 11 Aug 2021 00:59:20 -0700 Received: from den-dk-m31857.microchip.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Wed, 11 Aug 2021 00:59:18 -0700 From: Steen Hegelund To: "David S. Miller" , Jakub Kicinski , , , , , "Rob Herring" , CC: Steen Hegelund , Alexandre Belloni Subject: [PATCH net-next 2/2] arm64: dts: sparx5: Add the Sparx5 switch frame DMA support Date: Wed, 11 Aug 2021 09:59:09 +0200 Message-ID: <20210811075909.543633-3-steen.hegelund@microchip.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210811075909.543633-1-steen.hegelund@microchip.com> References: <20210811075909.543633-1-steen.hegelund@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210811_005922_332255_2B8AA90D X-CRM114-Status: GOOD ( 12.14 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This adds the interrupt for the Sparx5 Frame DMA. If this configuration is present the Sparx5 SwitchDev driver will use the Frame DMA feature, and if not it will use register based injection and extraction for sending and receiving frames to the CPU. Signed-off-by: Steen Hegelund --- arch/arm64/boot/dts/microchip/sparx5.dtsi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) -- 2.32.0 diff --git a/arch/arm64/boot/dts/microchip/sparx5.dtsi b/arch/arm64/boot/dts/microchip/sparx5.dtsi index ad07fff40544..787ebcec121d 100644 --- a/arch/arm64/boot/dts/microchip/sparx5.dtsi +++ b/arch/arm64/boot/dts/microchip/sparx5.dtsi @@ -471,8 +471,9 @@ switch: switch@0x600000000 { <0x6 0x10004000 0x7fc000>, <0x6 0x11010000 0xaf0000>; reg-names = "cpu", "dev", "gcb"; - interrupt-names = "xtr"; - interrupts = ; + interrupt-names = "xtr", "fdma"; + interrupts = , + ; resets = <&reset 0>; reset-names = "switch"; };