From: Midgy BALON <[email protected]> Add rockchip,rk3568-rknn-core to the compatible enum, document the new rockchip,pmu phandle that RK3568 needs for the NPU NOC bus de-idle sequence, and make sram-supply only required on RK3588 (RK3568 has no NPU SRAM rail).
The driver supports both RK3568 and RK3588 RKNN cores; the binding now documents both. The rockchip,pmu phandle is consumed by the driver to issue PMU register writes (BUS_IDLE_SFTCON0, NOC_AUTO_CON0, PWR_GATE_SFTCON, BUS_IDLE_ST) on RK3568 only. Signed-off-by: Midgy BALON <[email protected]> --- .../npu/rockchip,rk3588-rknn-core.yaml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/npu/rockchip,rk3588-rknn-core.yaml b/Documentation/devicetree/bindings/npu/rockchip,rk3588-rknn-core.yaml index caca2a490..6582a0c5c 100644 --- a/Documentation/devicetree/bindings/npu/rockchip,rk3588-rknn-core.yaml +++ b/Documentation/devicetree/bindings/npu/rockchip,rk3588-rknn-core.yaml @@ -21,6 +21,7 @@ properties: compatible: enum: + - rockchip,rk3568-rknn-core - rockchip,rk3588-rknn-core reg: @@ -50,6 +51,13 @@ properties: npu-supply: true + rockchip,pmu: + : /schemas/types.yaml#/definitions/phandle + description: + Phandle to the Rockchip PMU syscon node. Required on RK3568 to + perform the NPU NOC bus de-idle sequence via PMU registers before + the hardware can be accessed. + power-domains: maxItems: 1 @@ -75,7 +83,15 @@ required: - resets - reset-names - npu-supply - - sram-supply + +if: + properties: + compatible: + contains: + const: rockchip,rk3588-rknn-core +then: + required: + - sram-supply additionalProperties: false -- 2.39.5
