diff options
author | Ganesan Ramalingam <ganesanr@broadcom.com> | 2012-07-13 09:44:23 -0400 |
---|---|---|
committer | Wolfram Sang <w.sang@pengutronix.de> | 2012-07-14 07:30:24 -0400 |
commit | 8bb986a816148d6e8fbaae23be0fee33d6a1ae3f (patch) | |
tree | 1b1bee995a60cc6be9d87ce9bbe711b26746cedf /Documentation/devicetree/bindings/i2c/i2c-ocores.txt | |
parent | 9ae97a8996a6d6f66e2fbc221906e2406d6c261f (diff) |
i2c: i2c-ocores: Use reg-shift property
Deprecate 'regstep' property and use the standard 'reg-shift' property
for register offset shifts. 'regstep' will still be supported as an
optional property, but will give a warning when used.
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.txt | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Documentation/devicetree/bindings/i2c/i2c-ocores.txt b/Documentation/devicetree/bindings/i2c/i2c-ocores.txt index bfec8941509c..1c9334bfc39c 100644 --- a/Documentation/devicetree/bindings/i2c/i2c-ocores.txt +++ b/Documentation/devicetree/bindings/i2c/i2c-ocores.txt | |||
@@ -4,11 +4,14 @@ Required properties: | |||
4 | - compatible : "opencores,i2c-ocores" | 4 | - compatible : "opencores,i2c-ocores" |
5 | - reg : bus address start and address range size of device | 5 | - reg : bus address start and address range size of device |
6 | - interrupts : interrupt number | 6 | - interrupts : interrupt number |
7 | - regstep : size of device registers in bytes | ||
8 | - clock-frequency : frequency of bus clock in Hz | 7 | - clock-frequency : frequency of bus clock in Hz |
9 | - #address-cells : should be <1> | 8 | - #address-cells : should be <1> |
10 | - #size-cells : should be <0> | 9 | - #size-cells : should be <0> |
11 | 10 | ||
11 | Optional properties: | ||
12 | - reg-shift : device register offsets are shifted by this value | ||
13 | - regstep : deprecated, use reg-shift above | ||
14 | |||
12 | Example: | 15 | Example: |
13 | 16 | ||
14 | i2c0: ocores@a0000000 { | 17 | i2c0: ocores@a0000000 { |
@@ -17,9 +20,10 @@ Example: | |||
17 | compatible = "opencores,i2c-ocores"; | 20 | compatible = "opencores,i2c-ocores"; |
18 | reg = <0xa0000000 0x8>; | 21 | reg = <0xa0000000 0x8>; |
19 | interrupts = <10>; | 22 | interrupts = <10>; |
20 | regstep = <1>; | ||
21 | clock-frequency = <20000000>; | 23 | clock-frequency = <20000000>; |
22 | 24 | ||
25 | reg-shift = <0>; /* 8 bit registers */ | ||
26 | |||
23 | dummy@60 { | 27 | dummy@60 { |
24 | compatible = "dummy"; | 28 | compatible = "dummy"; |
25 | reg = <0x60>; | 29 | reg = <0x60>; |