summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/i2c/i2c-at91.txt
diff options
context:
space:
mode:
authorMarek Roszko <mark.roszko@gmail.com>2014-03-11 00:25:38 -0400
committerWolfram Sang <wsa@the-dreams.de>2014-03-12 08:26:04 +0100
commit75b6c4b68f0b4cb94b1780f1863766a589aebc95 (patch)
tree34757b34ef8c9e222a66424127a9c287690b3754 /Documentation/devicetree/bindings/i2c/i2c-at91.txt
parent6808b002520de85aaa77237f4a9d33376fa393e9 (diff)
i2c: at91: Add device tree property to set clock-frequency
This adds the ability to set "clock-frequency" in the device tree for the at91 i2cbus following the naming of other i2c bus implementations. If the property is not set,the clock frequency will default to the previously used define of 100KHz. Signed-off-by: Marek Roszko <mark.roszko@gmail.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'Documentation/devicetree/bindings/i2c/i2c-at91.txt')
-rw-r--r--Documentation/devicetree/bindings/i2c/i2c-at91.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/i2c/i2c-at91.txt b/Documentation/devicetree/bindings/i2c/i2c-at91.txt
index 4fade84bea16..388f0a275fba 100644
--- a/Documentation/devicetree/bindings/i2c/i2c-at91.txt
+++ b/Documentation/devicetree/bindings/i2c/i2c-at91.txt
@@ -12,6 +12,7 @@ Required properties :
- clocks: phandles to input clocks.
Optional properties:
+- clock-frequency: Desired I2C bus frequency in Hz, otherwise defaults to 100000
- Child nodes conforming to i2c bus binding
Examples :
@@ -23,6 +24,7 @@ i2c0: i2c@fff84000 {
#address-cells = <1>;
#size-cells = <0>;
clocks = <&twi0_clk>;
+ clock-frequency = <400000>;
24c512@50 {
compatible = "24c512";