-
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: axxia: Add I2C driver for AXM55xx
Add I2C bus driver for the controller found in the LSI Axxia family SoCs. The driver implements 10-bit addressing and SMBus transfer modes via emulation (including SMBus block data read). Signed-off-by: Anders Berg <anders.berg@avagotech.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
- Loading branch information
Anders Berg
authored and
Wolfram Sang
committed
Oct 3, 2014
1 parent
2374a53
commit 08678b8
Showing
4 changed files
with
601 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,30 @@ | ||
LSI Axxia I2C | ||
|
||
Required properties : | ||
- compatible : Must be "lsi,api2c" | ||
- reg : Offset and length of the register set for the device | ||
- interrupts : the interrupt specifier | ||
- #address-cells : Must be <1>; | ||
- #size-cells : Must be <0>; | ||
- clock-names : Must contain "i2c". | ||
- clocks: Must contain an entry for each name in clock-names. See the common | ||
clock bindings. | ||
|
||
Optional properties : | ||
- clock-frequency : Desired I2C bus clock frequency in Hz. If not specified, | ||
the default 100 kHz frequency will be used. As only Normal and Fast modes | ||
are supported, possible values are 100000 and 400000. | ||
|
||
Example : | ||
|
||
i2c@02010084000 { | ||
compatible = "lsi,api2c"; | ||
device_type = "i2c"; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
reg = <0x20 0x10084000 0x00 0x1000>; | ||
interrupts = <0 19 4>; | ||
clocks = <&clk_per>; | ||
clock-names = "i2c"; | ||
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
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
Oops, something went wrong.