forked from beagleboard/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'hwspinlock-4.2' of git://git.kernel.org/pub/scm/linux/kern…
…el/git/ohad/hwspinlock into hwspinlock-linux-4.1.y Pull in the hwspinlock patches from Ohad's upstream tree directly. These are based on 4.1-rc1 and staged for 4.2. The pull includes all the necessary device tree support changes both in the HwSpinlock core as well as the OMAP HwSpinlock driver. It also includes couple of new non-TI drivers as well. - hwspinlock core DT support from Suman Anna - OMAP hwspinlock DT support from Suman Anna - QCOM hwspinlock DT support from Bjorn Andersson - a new CSR atlas7 hwspinlock driver from Wei Chen - CSR atlas7 hwspinlock DT binding document from Wei Chen - a tiny QCOM hwspinlock driver fix from Bjorn Andersson * tag 'hwspinlock-4.2' of git://git.kernel.org/pub/scm/linux/kernel/git/ohad/hwspinlock: hwspinlock: qcom: Correct msb in regmap_field DT: hwspinlock: add the CSR atlas7 hwspinlock bindings document hwspinlock: add a CSR atlas7 driver hwspinlock: qcom: Add support for Qualcomm HW Mutex block DT: hwspinlock: Add binding documentation for Qualcomm hwmutex hwspinlock/omap: add support for dt nodes Documentation: dt: add the omap hwspinlock bindings document hwspinlock/core: add device tree support Documentation: dt: add common bindings for hwspinlock Signed-off-by: Suman Anna <[email protected]>
- Loading branch information
Showing
15 changed files
with
605 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
Generic hwlock bindings | ||
======================= | ||
|
||
Generic bindings that are common to all the hwlock platform specific driver | ||
implementations. | ||
|
||
Please also look through the individual platform specific hwlock binding | ||
documentations for identifying any additional properties specific to that | ||
platform. | ||
|
||
hwlock providers: | ||
================= | ||
|
||
Required properties: | ||
- #hwlock-cells: Specifies the number of cells needed to represent a | ||
specific lock. | ||
|
||
hwlock users: | ||
============= | ||
|
||
Consumers that require specific hwlock(s) should specify them using the | ||
property "hwlocks", and an optional "hwlock-names" property. | ||
|
||
Required properties: | ||
- hwlocks: List of phandle to a hwlock provider node and an | ||
associated hwlock args specifier as indicated by | ||
#hwlock-cells. The list can have just a single hwlock | ||
or multiple hwlocks, with each hwlock represented by | ||
a phandle and a corresponding args specifier. | ||
|
||
Optional properties: | ||
- hwlock-names: List of hwlock name strings defined in the same order | ||
as the hwlocks, with one name per hwlock. Consumers can | ||
use the hwlock-names to match and get a specific hwlock. | ||
|
||
|
||
1. Example of a node using a single specific hwlock: | ||
|
||
The following example has a node requesting a hwlock in the bank defined by | ||
the node hwlock1. hwlock1 is a hwlock provider with an argument specifier | ||
of length 1. | ||
|
||
node { | ||
... | ||
hwlocks = <&hwlock1 2>; | ||
... | ||
}; | ||
|
||
2. Example of a node using multiple specific hwlocks: | ||
|
||
The following example has a node requesting two hwlocks, a hwlock within | ||
the hwlock device node 'hwlock1' with #hwlock-cells value of 1, and another | ||
hwlock within the hwlock device node 'hwlock2' with #hwlock-cells value of 2. | ||
|
||
node { | ||
... | ||
hwlocks = <&hwlock1 2>, <&hwlock2 0 3>; | ||
... | ||
}; |
26 changes: 26 additions & 0 deletions
26
Documentation/devicetree/bindings/hwlock/omap-hwspinlock.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
OMAP4+ HwSpinlock Driver | ||
======================== | ||
|
||
Required properties: | ||
- compatible: Should be "ti,omap4-hwspinlock" for | ||
OMAP44xx, OMAP54xx, AM33xx, AM43xx, DRA7xx SoCs | ||
- reg: Contains the hwspinlock module register address space | ||
(base address and length) | ||
- ti,hwmods: Name of the hwmod associated with the hwspinlock device | ||
- #hwlock-cells: Should be 1. The OMAP hwspinlock users will use a | ||
0-indexed relative hwlock number as the argument | ||
specifier value for requesting a specific hwspinlock | ||
within a hwspinlock bank. | ||
|
||
Please look at the generic hwlock binding for usage information for consumers, | ||
"Documentation/devicetree/bindings/hwlock/hwlock.txt" | ||
|
||
Example: | ||
|
||
/* OMAP4 */ | ||
hwspinlock: spinlock@4a0f6000 { | ||
compatible = "ti,omap4-hwspinlock"; | ||
reg = <0x4a0f6000 0x1000>; | ||
ti,hwmods = "spinlock"; | ||
#hwlock-cells = <1>; | ||
}; |
39 changes: 39 additions & 0 deletions
39
Documentation/devicetree/bindings/hwlock/qcom-hwspinlock.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
Qualcomm Hardware Mutex Block: | ||
|
||
The hardware block provides mutexes utilized between different processors on | ||
the SoC as part of the communication protocol used by these processors. | ||
|
||
- compatible: | ||
Usage: required | ||
Value type: <string> | ||
Definition: must be one of: | ||
"qcom,sfpb-mutex", | ||
"qcom,tcsr-mutex" | ||
|
||
- syscon: | ||
Usage: required | ||
Value type: <prop-encoded-array> | ||
Definition: one cell containing: | ||
syscon phandle | ||
offset of the hwmutex block within the syscon | ||
stride of the hwmutex registers | ||
|
||
- #hwlock-cells: | ||
Usage: required | ||
Value type: <u32> | ||
Definition: must be 1, the specified cell represent the lock id | ||
(hwlock standard property, see hwlock.txt) | ||
|
||
Example: | ||
|
||
tcsr_mutex_block: syscon@fd484000 { | ||
compatible = "syscon"; | ||
reg = <0xfd484000 0x2000>; | ||
}; | ||
|
||
hwlock@fd484000 { | ||
compatible = "qcom,tcsr-mutex"; | ||
syscon = <&tcsr_mutex_block 0 0x80>; | ||
|
||
#hwlock-cells = <1>; | ||
}; |
28 changes: 28 additions & 0 deletions
28
Documentation/devicetree/bindings/hwlock/sirf,hwspinlock.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
SIRF Hardware spinlock device Binding | ||
----------------------------------------------- | ||
|
||
Required properties : | ||
- compatible : shall contain only one of the following: | ||
"sirf,hwspinlock" | ||
|
||
- reg : the register address of hwspinlock | ||
|
||
- #hwlock-cells : hwlock users only use the hwlock id to represent a specific | ||
hwlock, so the number of cells should be <1> here. | ||
|
||
Please look at the generic hwlock binding for usage information for consumers, | ||
"Documentation/devicetree/bindings/hwlock/hwlock.txt" | ||
|
||
Example of hwlock provider: | ||
hwlock { | ||
compatible = "sirf,hwspinlock"; | ||
reg = <0x13240000 0x00010000>; | ||
#hwlock-cells = <1>; | ||
}; | ||
|
||
Example of hwlock users: | ||
node { | ||
... | ||
hwlocks = <&hwlock 2>; | ||
... | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7130,7 +7130,6 @@ M: Ohad Ben-Cohen <[email protected]> | |
L: [email protected] | ||
S: Maintained | ||
F: drivers/hwspinlock/omap_hwspinlock.c | ||
F: arch/arm/mach-omap2/hwspinlock.c | ||
|
||
OMAP MMC SUPPORT | ||
M: Jarkko Lavinen <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.