diff options
author | Stephen Warren <swarren@wwwdotorg.org> | 2013-02-11 21:47:56 -0500 |
---|---|---|
committer | Wolfram Sang <wolfram@the-dreams.de> | 2013-02-12 05:33:59 -0500 |
commit | f3b54b9a066edeac5c06e1cdcd82e1cb1224aaef (patch) | |
tree | a98bbfac8ccd16ac6535107a066bb78a226adc7d /Documentation/devicetree | |
parent | cb7f07a4c58659d971a60ebbb8547f6611278622 (diff) |
i2c: add bcm2835 driver
This implements a very basic I2C host driver for the BCM2835 SoC. Missing
features so far are:
* 10-bit addressing.
* DMA.
Reviewed-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Wolfram Sang <wolfram@the-dreams.de>
Diffstat (limited to 'Documentation/devicetree')
-rw-r--r-- | Documentation/devicetree/bindings/i2c/brcm,bcm2835-i2c.txt | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/i2c/brcm,bcm2835-i2c.txt b/Documentation/devicetree/bindings/i2c/brcm,bcm2835-i2c.txt new file mode 100644 index 000000000000..e9de3756752b --- /dev/null +++ b/Documentation/devicetree/bindings/i2c/brcm,bcm2835-i2c.txt | |||
@@ -0,0 +1,20 @@ | |||
1 | Broadcom BCM2835 I2C controller | ||
2 | |||
3 | Required properties: | ||
4 | - compatible : Should be "brcm,bcm2835-i2c". | ||
5 | - reg: Should contain register location and length. | ||
6 | - interrupts: Should contain interrupt. | ||
7 | - clocks : The clock feeding the I2C controller. | ||
8 | |||
9 | Recommended properties: | ||
10 | - clock-frequency : desired I2C bus clock frequency in Hz. | ||
11 | |||
12 | Example: | ||
13 | |||
14 | i2c@20205000 { | ||
15 | compatible = "brcm,bcm2835-i2c"; | ||
16 | reg = <0x7e205000 0x1000>; | ||
17 | interrupts = <2 21>; | ||
18 | clocks = <&clk_i2c>; | ||
19 | clock-frequency = <100000>; | ||
20 | }; | ||