diff options
author | Gregory CLEMENT <gregory.clement@free-electrons.com> | 2013-06-21 15:32:06 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2013-06-25 23:43:37 +0200 |
commit | 4c730a06c19bb83d2fa4308ee4cbb23abc84c9ca (patch) | |
tree | 756a378f3e7ec8fae98aed6ab79631bb5bd914a9 /Documentation | |
parent | 2f641a8bdb1b808b9bf1d0ca7d169d199aaf6ff4 (diff) | |
download | op-kernel-dev-4c730a06c19bb83d2fa4308ee4cbb23abc84c9ca.zip op-kernel-dev-4c730a06c19bb83d2fa4308ee4cbb23abc84c9ca.tar.gz |
i2c: mv64xxx: Set bus frequency to 100kHz if clock-frequency is not provided
This commit adds checking whether clock-frequency property acquisition
has succeeded. If not, the frequency is set to 100kHz by default.
The Device Tree binding documentation is updated accordingly.
Based on the intials patches from Zbigniew Bodek
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: Zbigniew Bodek <zbb@semihalf.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/devicetree/bindings/i2c/i2c-mv64xxx.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Documentation/devicetree/bindings/i2c/i2c-mv64xxx.txt b/Documentation/devicetree/bindings/i2c/i2c-mv64xxx.txt index f46d928..a1ee681 100644 --- a/Documentation/devicetree/bindings/i2c/i2c-mv64xxx.txt +++ b/Documentation/devicetree/bindings/i2c/i2c-mv64xxx.txt @@ -6,7 +6,11 @@ Required properties : - reg : Offset and length of the register set for the device - compatible : Should be "marvell,mv64xxx-i2c" - interrupts : The interrupt number - - clock-frequency : Desired I2C bus clock frequency in Hz. + +Optional properties : + + - clock-frequency : Desired I2C bus clock frequency in Hz. If not set the +default frequency is 100kHz Examples: |