-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
i2c-designware: add OF binding support
Add of_match_table and DT style i2c registration to designware i2c driver. Refactored for pci/plat split by Dirk Brandewie. Signed-off-by: Rob Herring <rob.herring@calxeda.com> Acked-by: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Dirk Brandewie <dirk.brandewie@gmail.com>
- Loading branch information
Rob Herring
committed
Dec 27, 2011
1 parent
02bca5f
commit af71100
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
* Synopsys DesignWare I2C | ||
|
||
Required properties : | ||
|
||
- compatible : should be "snps,designware-i2c" | ||
- reg : Offset and length of the register set for the device | ||
- interrupts : <IRQ> where IRQ is the interrupt number. | ||
|
||
Recommended properties : | ||
|
||
- clock-frequency : desired I2C bus clock frequency in Hz. | ||
|
||
Example : | ||
|
||
i2c@f0000 { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
compatible = "snps,designware-i2c"; | ||
reg = <0xf0000 0x1000>; | ||
interrupts = <11>; | ||
clock-frequency = <400000>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters