mirror of
https://github.com/torvalds/linux.git
synced 2024-12-26 21:02:19 +00:00
ec39ef83eb
This patch adds support for s3c2440 I2C bus controller dedicated HDMIPHY device on Exynos4 platform. Some quirks are introduced due to differences between HDMIPHY and other I2C controllers on Exynos4. These differences are: - no GPIOs, HDMIPHY is inside the SoC and the controller is connected internally - due to unknown reason (probably HW bug in HDMIPHY and/or the controller) a transfer fails to finish. The controller hangs after sending the last byte, the workaround for this bug is resetting the controller after each transfer Signed-off-by: Tomasz Stanislawski <t.stanislaws@samsung.com> Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com> Tested-by: Tomasz Stanislawski <t.stanislaws@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
44 lines
1.5 KiB
Plaintext
44 lines
1.5 KiB
Plaintext
* Samsung's I2C controller
|
|
|
|
The Samsung's I2C controller is used to interface with I2C devices.
|
|
|
|
Required properties:
|
|
- compatible: value should be either of the following.
|
|
(a) "samsung, s3c2410-i2c", for i2c compatible with s3c2410 i2c.
|
|
(b) "samsung, s3c2440-i2c", for i2c compatible with s3c2440 i2c.
|
|
(c) "samsung, s3c2440-hdmiphy-i2c", for s3c2440-like i2c used
|
|
inside HDMIPHY block found on several samsung SoCs
|
|
- reg: physical base address of the controller and length of memory mapped
|
|
region.
|
|
- interrupts: interrupt number to the cpu.
|
|
- samsung,i2c-sda-delay: Delay (in ns) applied to data line (SDA) edges.
|
|
|
|
Optional properties:
|
|
- gpios: The order of the gpios should be the following: <SDA, SCL>.
|
|
The gpio specifier depends on the gpio controller. Required in all
|
|
cases except for "samsung,s3c2440-hdmiphy-i2c" whose input/output
|
|
lines are permanently wired to the respective client
|
|
- samsung,i2c-slave-addr: Slave address in multi-master enviroment. If not
|
|
specified, default value is 0.
|
|
- samsung,i2c-max-bus-freq: Desired frequency in Hz of the bus. If not
|
|
specified, the default value in Hz is 100000.
|
|
|
|
Example:
|
|
|
|
i2c@13870000 {
|
|
compatible = "samsung,s3c2440-i2c";
|
|
reg = <0x13870000 0x100>;
|
|
interrupts = <345>;
|
|
samsung,i2c-sda-delay = <100>;
|
|
samsung,i2c-max-bus-freq = <100000>;
|
|
gpios = <&gpd1 2 0 /* SDA */
|
|
&gpd1 3 0 /* SCL */>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
wm8994@1a {
|
|
compatible = "wlf,wm8994";
|
|
reg = <0x1a>;
|
|
};
|
|
};
|