diff options
author | Dong Aisheng <dong.aisheng@linaro.org> | 2012-09-04 22:57:13 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-09-17 09:24:14 -0400 |
commit | 87d687301f380729ec320619f100f3ba39f3693d (patch) | |
tree | 3f6f274a01552da3b5f7af4dc1eaaad04a11c1b4 /Documentation | |
parent | a435ae1d51e2f18414f2a87219fdbe068231e692 (diff) |
mfd: Add syscon driver based on regmap
Add regmap based syscon driver.
This is usually used for access misc bits in registers which does not belong
to a specific module, for example, IMX IOMUXC GPR and ANATOP.
With this driver, client can use generic regmap API to access registers
which are registered into syscon.
Reviewed-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Dong Aisheng <dong.aisheng@linaro.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/devicetree/bindings/mfd/syscon.txt | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/mfd/syscon.txt b/Documentation/devicetree/bindings/mfd/syscon.txt new file mode 100644 index 000000000000..fe8150bb3248 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/syscon.txt | |||
@@ -0,0 +1,20 @@ | |||
1 | * System Controller Registers R/W driver | ||
2 | |||
3 | System controller node represents a register region containing a set | ||
4 | of miscellaneous registers. The registers are not cohesive enough to | ||
5 | represent as any specific type of device. The typical use-case is for | ||
6 | some other node's driver, or platform-specific code, to acquire a | ||
7 | reference to the syscon node (e.g. by phandle, node path, or search | ||
8 | using a specific compatible value), interrogate the node (or associated | ||
9 | OS driver) to determine the location of the registers, and access the | ||
10 | registers directly. | ||
11 | |||
12 | Required properties: | ||
13 | - compatible: Should contain "syscon". | ||
14 | - reg: the register region can be accessed from syscon | ||
15 | |||
16 | Examples: | ||
17 | gpr: iomuxc-gpr@020e0000 { | ||
18 | compatible = "fsl,imx6q-iomuxc-gpr", "syscon"; | ||
19 | reg = <0x020e0000 0x38>; | ||
20 | }; | ||