Neural Processing Unit IP from Rockchip
Schema identifier ($id): "http://devicetree.org/schemas/npu/rockchip,rk3588-rknn-core.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Tomeu Vizoso <tomeu@tomeuvizoso.net>"
Rockchip IP for accelerating inference of neural networks. There is to be a node per each NPU core in the SoC, and each core should reference all the resources that it needs to function, such as clocks, power domains, and resets.
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^npu@[a-f0-9]+$"
compatible — required here #
Allowed values (enum): "rockchip,rk3588-rknn-core"
reg — required here #
Maximum number of items (maxItems): 3
reg-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"pc"
Item 2
Exact value (
const):"cna"
Item 3
Exact value (
const):"core"
clocks — required here #
Maximum number of items (maxItems): 4
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"aclk"
Item 2
Exact value (
const):"hclk"
Item 3
Exact value (
const):"npu"
Item 4
Exact value (
const):"pclk"
interrupts — required here #
Maximum number of items (maxItems): 1
iommus — required here #
Maximum number of items (maxItems): 1
npu-supply — required here #
true — No constraints added by this property rule.
power-domains — required here #
Maximum number of items (maxItems): 1
resets — required here #
Maximum number of items (maxItems): 2
reset-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"srst_a"
Item 2
Exact value (
const):"srst_h"
sram-supply — required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg", "reg-names", "clocks", "clock-names", "interrupts", "iommus", "power-domains", "resets", "reset-names", "npu-supply", "sram-supply"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/rockchip,rk3588-cru.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/power/rk3588-power.h>
#include <dt-bindings/reset/rockchip,rk3588-cru.h>
bus {
#address-cells = <2>;
#size-cells = <2>;
npu@fdab0000 {
compatible = "rockchip,rk3588-rknn-core";
reg = <0x0 0xfdab0000 0x0 0x1000>,
<0x0 0xfdab1000 0x0 0x1000>,
<0x0 0xfdab3000 0x0 0x1000>;
reg-names = "pc", "cna", "core";
clocks = <&cru ACLK_NPU0>, <&cru HCLK_NPU0>,
<&scmi_clk SCMI_CLK_NPU>, <&cru PCLK_NPU_ROOT>;
clock-names = "aclk", "hclk", "npu", "pclk";
interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH 0>;
iommus = <&rknn_mmu_0>;
npu-supply = <&vdd_npu_s0>;
power-domains = <&power RK3588_PD_NPUTOP>;
resets = <&cru SRST_A_RKNN0>, <&cru SRST_H_RKNN0>;
reset-names = "srst_a", "srst_h";
sram-supply = <&vdd_npu_mem_s0>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 31: Program Control-related registers
Line 32: Convolution Neural Network Accelerator registers
Line 33: Main NPU core processing unit registers