summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/i2c/i2c-ocores.txt
diff options
context:
space:
mode:
authorGanesan Ramalingam <ganesanr@broadcom.com>2012-07-13 19:14:25 +0530
committerWolfram Sang <w.sang@pengutronix.de>2012-07-14 13:30:25 +0200
commit7326e38ffe894d0cd2904704b7d8c53d4a55d752 (patch)
tree7261b5bad76ce15dbad07f78a5b5e4b210f6d634 /Documentation/devicetree/bindings/i2c/i2c-ocores.txt
parentd739a464f3b83cc879a2ba6aec33634c44068531 (diff)
i2c: i2c-ocores: support for 16bit and 32bit IO
Some architectures supports only 16-bit or 32-bit read/write access to their IO space. Add a 'reg-io-width' platform and OF parameter which specifies the IO width to support these platforms. reg-io-width can be specified as 1, 2 or 4, and has a default value of 1 if it is unspecified. Signed-off-by: Ganesan Ramalingam <ganesanr@broadcom.com> Signed-off-by: Jayachandran C <jayachandranc@netlogicmicro.com> Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Diffstat (limited to 'Documentation/devicetree/bindings/i2c/i2c-ocores.txt')
-rw-r--r--Documentation/devicetree/bindings/i2c/i2c-ocores.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/i2c/i2c-ocores.txt b/Documentation/devicetree/bindings/i2c/i2c-ocores.txt
index 1c9334bfc39c..c15781f4dc8c 100644
--- a/Documentation/devicetree/bindings/i2c/i2c-ocores.txt
+++ b/Documentation/devicetree/bindings/i2c/i2c-ocores.txt
@@ -10,6 +10,7 @@ Required properties:
Optional properties:
- reg-shift : device register offsets are shifted by this value
+- reg-io-width : io register width in bytes (1, 2 or 4)
- regstep : deprecated, use reg-shift above
Example:
@@ -23,6 +24,7 @@ Example:
clock-frequency = <20000000>;
reg-shift = <0>; /* 8 bit registers */
+ reg-io-width = <1>; /* 8 bit read/write */
dummy@60 {
compatible = "dummy";