-
Notifications
You must be signed in to change notification settings - Fork 53.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
i2c: jz4780: Add i2c bus controller driver for Ingenic JZ4780
Adds the i2c bus controller driver for the Ingenic JZ4780 SoC. Signed-off-by: Zubair Lutfullah Kakakhel <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
- Loading branch information
Zubair Lutfullah Kakakhel
authored and
Wolfram Sang
committed
Apr 3, 2015
1 parent
3b10db2
commit ba92222
Showing
4 changed files
with
877 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,35 @@ | ||
* Ingenic JZ4780 I2C Bus controller | ||
|
||
Required properties: | ||
- compatible: should be "ingenic,jz4780-i2c" | ||
- reg: Should contain the address & size of the I2C controller registers. | ||
- interrupts: Should specify the interrupt provided by parent. | ||
- clocks: Should contain a single clock specifier for the JZ4780 I2C clock. | ||
- clock-frequency: desired I2C bus clock frequency in Hz. | ||
|
||
Recommended properties: | ||
- pinctrl-names: should be "default"; | ||
- pinctrl-0: phandle to pinctrl function | ||
|
||
Optional properties: | ||
- interrupt-parent: Should be the phandle of the interrupt controller that | ||
delivers interrupts to the I2C block. | ||
|
||
Example | ||
|
||
/ { | ||
i2c4: i2c4@0x10054000 { | ||
compatible = "ingenic,jz4780-i2c"; | ||
reg = <0x10054000 0x1000>; | ||
|
||
interrupt-parent = <&intc>; | ||
interrupts = <56>; | ||
|
||
clocks = <&cgu JZ4780_CLK_SMB4>; | ||
clock-frequency = <100000>; | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&pins_i2c4_data>; | ||
|
||
}; | ||
}; | ||
|
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.