Airoha Network Processor Unit for EN7581 SoC
Schema identifier ($id): "http://devicetree.org/schemas/net/airoha,en7581-npu.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Lorenzo Bianconi <lorenzo@kernel.org>"
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 and child nodes (properties) #
compatible — required here #
Allowed values (enum): "airoha,en7581-npu", "airoha,an7583-npu"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Array item rules (items) #
Item 1
mbox host irq line
Item 2
watchdog0 irq line
Item 3
watchdog1 irq line
Item 4
watchdog2 irq line
Item 5
watchdog3 irq line
Item 6
watchdog4 irq line
Item 7
watchdog5 irq line
Item 8
watchdog6 irq line
Item 9
watchdog7 irq line
Item 10
wlan irq line0
Item 11
wlan irq line1
Item 12
wlan irq line2
Item 13
wlan irq line3
Item 14
wlan irq line4
Item 15
wlan irq line5
memory-region — required here #
Array item rules (items) #
Item 1
NPU firmware binary region
Item 2
NPU wlan offload RX buffers region
Item 3
NPU wlan offload TX buffers region
Item 4
NPU wlan offload TX packet identifiers region
Item 5
NPU wlan Block Ack buffers region
Minimum number of items (minItems): 1
memory-region-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"firmware"
Item 2
Exact value (
const):"pkt"
Item 3
Exact value (
const):"tx-pkt"
Item 4
Exact value (
const):"tx-bufid"
Item 5
Exact value (
const):"ba"
Minimum number of items (minItems): 1
firmware-name — not listed as required here #
Array item rules (items) #
Item 1
Firmware name of RiscV core
Item 2
Firmware name of Data section
Required in this object (required): "compatible", "reg", "interrupts", "memory-region"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
soc {
#address-cells = <2>;
#size-cells = <2>;
npu@1e900000 {
compatible = "airoha,en7581-npu";
reg = <0 0x1e900000 0 0x313000>;
interrupts = <GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 134 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 135 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>;
memory-region = <&npu_firmware>, <&npu_pkt>, <&npu_txpkt>,
<&npu_txbufid>, <&npu_ba>;
memory-region-names = "firmware", "pkt", "tx-pkt", "tx-bufid", "ba";
firmware-name = "airoha/en7581_npu_rv32.bin",
"airoha/en7581_npu_data.bin";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)