diff options
author | Ganesan Ramalingam <ganesanr@broadcom.com> | 2012-07-13 09:44:25 -0400 |
---|---|---|
committer | Wolfram Sang <w.sang@pengutronix.de> | 2012-07-14 07:30:25 -0400 |
commit | 7326e38ffe894d0cd2904704b7d8c53d4a55d752 (patch) | |
tree | 7261b5bad76ce15dbad07f78a5b5e4b210f6d634 /Documentation/devicetree | |
parent | d739a464f3b83cc879a2ba6aec33634c44068531 (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')
-rw-r--r-- | Documentation/devicetree/bindings/i2c/i2c-ocores.txt | 2 |
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: | |||
10 | 10 | ||
11 | Optional properties: | 11 | Optional properties: |
12 | - reg-shift : device register offsets are shifted by this value | 12 | - reg-shift : device register offsets are shifted by this value |
13 | - reg-io-width : io register width in bytes (1, 2 or 4) | ||
13 | - regstep : deprecated, use reg-shift above | 14 | - regstep : deprecated, use reg-shift above |
14 | 15 | ||
15 | Example: | 16 | Example: |
@@ -23,6 +24,7 @@ Example: | |||
23 | clock-frequency = <20000000>; | 24 | clock-frequency = <20000000>; |
24 | 25 | ||
25 | reg-shift = <0>; /* 8 bit registers */ | 26 | reg-shift = <0>; /* 8 bit registers */ |
27 | reg-io-width = <1>; /* 8 bit read/write */ | ||
26 | 28 | ||
27 | dummy@60 { | 29 | dummy@60 { |
28 | compatible = "dummy"; | 30 | compatible = "dummy"; |