Skip to content

npu: Add Phytium npu controller support #751

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 15, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
dt-bindings: npu: Add bindings for Phytium NPU on pe230x
This patch document the DT bindings for the Phytium NPU controller.

Signed-off-by: yuanxia <[email protected]>
Signed-off-by: Cheng Quan <[email protected]>
Signed-off-by: Wang Yinfeng <[email protected]>
  • Loading branch information
yuanxia0927 committed Apr 27, 2025
commit 4adaf90564c2b39a351e00c574a4a9acdbac866a
37 changes: 37 additions & 0 deletions Documentation/devicetree/bindings/staging/phytium-npu.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/staging/phytium-npu.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Phytium NPU controller
maintainers:
- Cheng Quan <[email protected]>
properties:
compatible:
const: phytium,npu

reg:
items: 2
- description: NPU registers and PM registers

interrupts:
maxItems: 1

dma-mask:
maxItems: 1
- description: NPU dma capability

required:
- compatible
- reg
- interrupts

examples:
- |
npu@26d00000 {
compatible = "phytium,npu";
reg = <0x0 0x26d00000 0x0 0x80000
0x0 0x26fcc060 0x0 0x20>;
interrupts = <0 74 4>;
dma-mask=<0xff 0xffffffff>;
};