ti,k3-hwspinlock

Description

TI K3 SPINLOCK hardware spinlock controller (e.g. J722S SPINLOCK0).

Each LOCK_REG_j is acquired by reading it (0 means this read took the lock,
1 means it was already taken). Write 0 to release. Soft reset of the module
clears all locks and must not be performed while other initiators may hold one.

Examples

spinlock0: hwspinlock@2a000000 {
    compatible = "ti,k3-hwspinlock";
    reg = <0x2a000000 0x1000>;
    #hwlock-cells = <1>;
    num-locks = <256>;
};

Properties

Properties not inherited from the base binding file.

Name

Type

Details

num-locks

int

Number of LOCK_REG entries implemented by this instance (J722S: 256).

This property is required.

#hwlock-cells

int

Number of items to expect in a HW spinlock specifier

This property is required.

Specifier cell names

  • hwlock cells: id