Path: blob/master/Documentation/devicetree/bindings/hwlock/hwlock.txt
26308 views
Generic hwlock bindings1=======================23Generic bindings that are common to all the hwlock platform specific driver4implementations.56Please also look through the individual platform specific hwlock binding7documentations for identifying any additional properties specific to that8platform.910hwlock providers:11=================1213Required properties:14- #hwlock-cells: Specifies the number of cells needed to represent a15specific lock.1617hwlock users:18=============1920Consumers that require specific hwlock(s) should specify them using the21property "hwlocks", and an optional "hwlock-names" property.2223Required properties:24- hwlocks: List of phandle to a hwlock provider node and an25associated hwlock args specifier as indicated by26#hwlock-cells. The list can have just a single hwlock27or multiple hwlocks, with each hwlock represented by28a phandle and a corresponding args specifier.2930Optional properties:31- hwlock-names: List of hwlock name strings defined in the same order32as the hwlocks, with one name per hwlock. Consumers can33use the hwlock-names to match and get a specific hwlock.3435361. Example of a node using a single specific hwlock:3738The following example has a node requesting a hwlock in the bank defined by39the node hwlock1. hwlock1 is a hwlock provider with an argument specifier40of length 1.4142node {43...44hwlocks = <&hwlock1 2>;45...46};47482. Example of a node using multiple specific hwlocks:4950The following example has a node requesting two hwlocks, a hwlock within51the hwlock device node 'hwlock1' with #hwlock-cells value of 1, and another52hwlock within the hwlock device node 'hwlock2' with #hwlock-cells value of 2.5354node {55...56hwlocks = <&hwlock1 2>, <&hwlock2 0 3>;57...58};596061