From 5b12dbf42b2430aaf25ff0f3243cd2b26abcef3b Mon Sep 17 00:00:00 2001 From: Frank Wang Date: Fri, 31 May 2024 11:10:33 +0800 Subject: [PATCH] dt-bindings: hwlock: rockchip: add number of hwlocks property Set number of hwlocks with the "rockchip,hwlock-num-locks" property, it indicates that the number of hwlocks provided by this device. Signed-off-by: Frank Wang Change-Id: Ifc3f64fff942481ba98da095af0e1697803270d7 --- .../devicetree/bindings/hwlock/rockchip-hwspinlock.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/hwlock/rockchip-hwspinlock.txt b/Documentation/devicetree/bindings/hwlock/rockchip-hwspinlock.txt index 245b36e5c5bd..4520b26cdebc 100644 --- a/Documentation/devicetree/bindings/hwlock/rockchip-hwspinlock.txt +++ b/Documentation/devicetree/bindings/hwlock/rockchip-hwspinlock.txt @@ -10,6 +10,8 @@ Required properties : - #hwlock-cells : hwlock users only use the hwlock id to represent a specific hwlock, so the number of cells should be <1> here. +- rockchip,hwlock-num-locks :number of hwlocks provided by this device. + Optional properties : - rockchip,hwlock-user-id : Set hwlock user id (4 bit, default is 0x01). @@ -21,6 +23,7 @@ Example of hwlock provider: compatible = "rockchip,hwspinlock"; reg = <0 0xff040000 0 0x10000>; #hwlock-cells = <1>; + rockchip,hwlock-num-locks = <64>; }; Example of hwlock users: