-
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.
Add support for the I2C controller found on several NXP devices including LPC2xxx, LPC178x/7x and LPC18xx/43xx. The controller is implemented as a state machine and the driver act upon the state changes when the bus is accessed. The I2C controller supports master/slave operation, bus arbitration, programmable clock rate, and speeds up to 1 Mbit/s. Signed-off-by: Joachim Eastwood <manabian@gmail.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
- Loading branch information
Joachim Eastwood
authored and
Wolfram Sang
committed
Aug 24, 2015
1 parent
b3fdd32
commit 3f9c37a
Showing
4 changed files
with
557 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,33 @@ | ||
NXP I2C controller for LPC2xxx/178x/18xx/43xx | ||
|
||
Required properties: | ||
- compatible: must be "nxp,lpc1788-i2c" | ||
- reg: physical address and length of the device registers | ||
- interrupts: a single interrupt specifier | ||
- clocks: clock for the device | ||
- #address-cells: should be <1> | ||
- #size-cells: should be <0> | ||
|
||
Optional properties: | ||
- clock-frequency: the desired I2C bus clock frequency in Hz; in | ||
absence of this property the default value is used (100 kHz). | ||
|
||
Example: | ||
i2c0: i2c@400a1000 { | ||
compatible = "nxp,lpc1788-i2c"; | ||
reg = <0x400a1000 0x1000>; | ||
interrupts = <18>; | ||
clocks = <&ccu1 CLK_APB1_I2C0>; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
}; | ||
|
||
&i2c0 { | ||
clock-frequency = <400000>; | ||
|
||
lm75@48 { | ||
compatible = "nxp,lm75"; | ||
reg = <0x48>; | ||
}; | ||
}; | ||
|
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.