mirror of
https://github.com/torvalds/linux.git
synced 2024-12-26 12:52:30 +00:00
9803f86894
This patch makes the SDA hold time configurable through device tree. Signed-off-by: Christian Ruppert <christian.ruppert@abilis.com> Signed-off-by: Pierrick Hascoet <pierrick.hascoet@abilis.com> Acked-by: Vineet Gupta <vgupta@synopsys.com> for arch/arc bits Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
38 lines
913 B
Plaintext
38 lines
913 B
Plaintext
* 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.
|
|
|
|
Optional properties :
|
|
- i2c-sda-hold-time-ns : should contain the SDA hold time in nanoseconds.
|
|
This option is only supported in hardware blocks version 1.11a or newer.
|
|
|
|
Example :
|
|
|
|
i2c@f0000 {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
compatible = "snps,designware-i2c";
|
|
reg = <0xf0000 0x1000>;
|
|
interrupts = <11>;
|
|
clock-frequency = <400000>;
|
|
};
|
|
|
|
i2c@1120000 {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
compatible = "snps,designware-i2c";
|
|
reg = <0x1120000 0x1000>;
|
|
interrupt-parent = <&ictl>;
|
|
interrupts = <12 1>;
|
|
clock-frequency = <400000>;
|
|
i2c-sda-hold-time-ns = <300>;
|
|
};
|