From patchwork Fri Feb 28 10:54:18 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 13996270 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 10CB0C282C5 for ; Fri, 28 Feb 2025 11:39:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=OED3bJJYNhAMsRwXaz8ur7LI/BHYcOfnkSbNBnKSEGk=; b=0nxUrz/t+rRL9fywpvVVvTvL0K r16Juu2raggHpIIMzzrViqAuqi8VCs5cFA1unqvTSYmjmV5e5ojdit2vDEFwtxuPxDQ8zlasKcl+j qjmu/H6Cj3oxEIyT/1k7ymLE422lu01JS6/VrnSTwYKQH7Nnd9Bswwin7MTDqsL8NT06YKz2/On8M Op+YhtYawDVxdI7yaEoFeJkwgR3gXbiSHkiFhlljcCNZBamhBFCsPeJlQyAMRHuLDC/Uwq1qU2X66 7XjWheFADoQJNDbED7YJU4pDa0mDPqyeNwxj1gNq5sRnWTX0R775jqgxxOCaEfRuWe8muD4LozwvB WmCgilQw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tnyi2-0000000AmKT-0zPg; Fri, 28 Feb 2025 11:39:14 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tny1A-0000000AfDt-2zM9; Fri, 28 Feb 2025 10:54:58 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 3560B5C24ED; Fri, 28 Feb 2025 10:52:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6C2FDC4CED6; Fri, 28 Feb 2025 10:54:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1740740095; bh=cxmUwYYf7TwqKthpAEXgpgEEukmOFwi/WyKgEQjrzRI=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=HVNfFoPlgV8oR+CE2H+ni8iRYkA0JIOVqKAZgupeTjt9zZHKMWa06X61ZBiW4rAFw BsOH2NMSPyOdTF1UOQbpboW4ztkcXZ3urPeOt523urAn6Mer3vIPEzglMTUfaOoB/d rdZZujSrVGMJjRa+8cktCI9pJfBpDUZDmG0/5jcs7OanZGKo1Osg1B2HHAYS0Ie6GT q7xfsjNAuAh7ePS986al1+7bTSedROC0AocZKufypUSZYCx9emw3HUOSDy2IaekLuh kBxcbeXHOUHQ46uSy1HptKnfkgMUYMMem04rTMe8Yuy8XruAkwSx3AuTcx3rX21f8h EmmbjsqOiy/pg== From: Lorenzo Bianconi Date: Fri, 28 Feb 2025 11:54:18 +0100 Subject: [PATCH net-next v8 10/15] dt-bindings: net: airoha: Add the NPU node for EN7581 SoC MIME-Version: 1.0 Message-Id: <20250228-airoha-en7581-flowtable-offload-v8-10-01dc1653f46e@kernel.org> References: <20250228-airoha-en7581-flowtable-offload-v8-0-01dc1653f46e@kernel.org> In-Reply-To: <20250228-airoha-en7581-flowtable-offload-v8-0-01dc1653f46e@kernel.org> To: Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Felix Fietkau , Sean Wang , Matthias Brugger , AngeloGioacchino Del Regno , Philipp Zabel , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lorenzo Bianconi , "Chester A. Unal" , Daniel Golle , DENG Qingfang , Andrew Lunn , Vladimir Oltean Cc: netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, upstream@airoha.com, Krzysztof Kozlowski X-Mailer: b4 0.14.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250228_025456_865594_E785A86A X-CRM114-Status: GOOD ( 11.96 ) X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org This patch adds the NPU document binding for EN7581 SoC. The Airoha Network Processor Unit (NPU) provides a configuration interface to implement wired and wireless hardware flow offloading programming Packet Processor Engine (PPE) flow table. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Lorenzo Bianconi --- .../devicetree/bindings/net/airoha,en7581-npu.yaml | 84 ++++++++++++++++++++++ 1 file changed, 84 insertions(+) diff --git a/Documentation/devicetree/bindings/net/airoha,en7581-npu.yaml b/Documentation/devicetree/bindings/net/airoha,en7581-npu.yaml new file mode 100644 index 0000000000000000000000000000000000000000..76dd97c3fb4004674dc30a54c039c1cc19afedb3 --- /dev/null +++ b/Documentation/devicetree/bindings/net/airoha,en7581-npu.yaml @@ -0,0 +1,84 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/airoha,en7581-npu.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Airoha Network Processor Unit for EN7581 SoC + +maintainers: + - Lorenzo Bianconi + +description: + The Airoha Network Processor Unit (NPU) provides a configuration interface + to implement wired and wireless hardware flow offloading programming Packet + Processor Engine (PPE) flow table. + +properties: + compatible: + enum: + - airoha,en7581-npu + + reg: + maxItems: 1 + + interrupts: + items: + - description: mbox host irq line + - description: watchdog0 irq line + - description: watchdog1 irq line + - description: watchdog2 irq line + - description: watchdog3 irq line + - description: watchdog4 irq line + - description: watchdog5 irq line + - description: watchdog6 irq line + - description: watchdog7 irq line + - description: wlan irq line0 + - description: wlan irq line1 + - description: wlan irq line2 + - description: wlan irq line3 + - description: wlan irq line4 + - description: wlan irq line5 + + memory-region: + maxItems: 1 + description: + Memory used to store NPU firmware binary. + +required: + - compatible + - reg + - interrupts + - memory-region + +additionalProperties: false + +examples: + - | + #include + #include + soc { + #address-cells = <2>; + #size-cells = <2>; + + npu@1e900000 { + compatible = "airoha,en7581-npu"; + reg = <0 0x1e900000 0 0x313000>; + interrupts = , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + memory-region = <&npu_binary>; + }; + };