-
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: xlp9xx: Driver for Netlogic XLP9XX/5XX I2C controller
Add an I2C bus driver i2c-xlp9xx.c to support the I2C block in the XLP9xx/XLP5xx MIPS SoC. Update Kconfig and Makefile to add the CONFIG_I2C_XLP9XX option. Signed-off-by: Subhendu Sekhar Behera <sbehera@broadcom.com> Signed-off-by: Jayachandran C <jchandra@broadcom.com> Reviewed-by: Ray Jui <rjui@broadcom.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
- Loading branch information
Subhendu Sekhar Behera
authored and
Wolfram Sang
committed
Apr 10, 2015
1 parent
85e4564
commit 2bbd681
Showing
4 changed files
with
478 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 @@ | ||
Device tree configuration for the I2C controller on the XLP9xx/5xx SoC | ||
|
||
Required properties: | ||
- compatible : should be "netlogic,xlp980-i2c" | ||
- reg : bus address start and address range size of device | ||
- interrupts : interrupt number | ||
|
||
Optional properties: | ||
- clock-frequency : frequency of bus clock in Hz | ||
Defaults to 100 KHz when the property is not specified | ||
|
||
Example: | ||
|
||
i2c0: i2c@113100 { | ||
compatible = "netlogic,xlp980-i2c"; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
reg = <0 0x113100 0x100>; | ||
clock-frequency = <400000>; | ||
interrupts = <30>; | ||
interrupt-parent = <&pic>; | ||
}; |
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.