From patchwork Mon Feb 24 11:25:30 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 13987848 X-Patchwork-Delegate: kuba@kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 2F906263F2C; Mon, 24 Feb 2025 11:26:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740396377; cv=none; b=MOphFCgT0OPdDvyoupNyM0KuyFYwrPhsUcVc2pvAQj01ls8Ar+ebP/IRceql1pxsHuvMpx5LMEdBeCyHRNWgje+uF8hPKG8UYHKRL7M1B2QWiE6P/L1+QwSbk5ueqdcgnZjghrVSpoSldcLvpBn7uoVKMb/8nHx13kI7quq5RhQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740396377; c=relaxed/simple; bh=cxmUwYYf7TwqKthpAEXgpgEEukmOFwi/WyKgEQjrzRI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=FPvq0xaDE6T+NusGODDiHxLuGH3fHjNQ0TmXnyS13+yHJtAMU4vNOtp5O3ktoGsR9lCFiMq6mK40TWg/VrZZIRo6Ptp9u3WWaloRRC+xxBy/bi+EQJilWwijF+4o3FrRkAY2cW/pc/udB6XXKOKFyPpDlTQtLqijtvAwY6WDqc8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Dx3AF8dy; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Dx3AF8dy" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 44150C4CED6; Mon, 24 Feb 2025 11:26:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1740396374; bh=cxmUwYYf7TwqKthpAEXgpgEEukmOFwi/WyKgEQjrzRI=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=Dx3AF8dyeB7uZDDL4z6CntE8ZtySVOecWHIjKa4KLKUdLhWpE9RsaJiqBhJlWK4dC AShj0ZeRE7xB4VUy6CJZKS7jQhKJaEAfh2ZV4YYuKSx0magChfCiHBBEQysV30Al5p 6JLqRML/6Rq79xsiF4xfETFoG/gfj5zSAM7ir/MhbvErwMWj2IJpjf5iUESp5nDdrv mTXAnaqhP6kl3GSEABWKGxhhCfegqQezfSRqdxMG9Ur3G0+khq/lz1hfSakZn7vzhO mFg5BjT5PgdHnfPkoMEHStxKMwPyGt6akme9JjrUv0gRoU5va559h3m5x2zsWcoDQm F9j3SwvIt/0lQ== From: Lorenzo Bianconi Date: Mon, 24 Feb 2025 12:25:30 +0100 Subject: [PATCH net-next v7 10/15] dt-bindings: net: airoha: Add the NPU node for EN7581 SoC Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250224-airoha-en7581-flowtable-offload-v7-10-b4a22ad8364e@kernel.org> References: <20250224-airoha-en7581-flowtable-offload-v7-0-b4a22ad8364e@kernel.org> In-Reply-To: <20250224-airoha-en7581-flowtable-offload-v7-0-b4a22ad8364e@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-Patchwork-Delegate: kuba@kernel.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>; + }; + };