diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2018-02-09 16:49:40 +0100 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2018-09-27 18:09:03 +0200 |
commit | 030c1155fb13ade4f279df8ae9c33ad49dde8014 (patch) | |
tree | 063a806ff341eb32a60fb5250d4f8318842123c9 /Documentation | |
parent | ba01a34d91b3cc65484edea5930ac85c5ebf524d (diff) |
i2c: sw-edid: add a driver which simulates edid
This adds a driver which simulates a i2c bus with an attached EDID
memory. The memory content is read from the device tree.
This allows to simulate EDID data which may differ from an attached
display.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Dominik Sliwa <dominik.sliwa@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/devicetree/bindings/i2c/i2c-sw-edid.txt | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/i2c/i2c-sw-edid.txt b/Documentation/devicetree/bindings/i2c/i2c-sw-edid.txt new file mode 100644 index 000000000000..1320b24e1458 --- /dev/null +++ b/Documentation/devicetree/bindings/i2c/i2c-sw-edid.txt @@ -0,0 +1,31 @@ +Simulated I2C adapter which provides EDID data out of the device tree + +Required properties: +- compatible : + - "sw-edid" for I2C compatible with the one integrated on i.MX1 SoC +- edit-data : + - a list of 8 bit values representing the EDID data. + +Examples: + +i2c-sw-edid { + compatible = "sw-edid"; + edid-data = [ + 00 FF ff FF FF FF FF 00 06 AF 3C 10 00 00 00 00 + 00 16 01 04 90 1F 11 78 02 10 B5 97 58 57 92 26 + 00 FF FF FF FF FF FF FF 01 01 01 01 01 01 01 01 + 01 01 01 01 01 01 CE 1D 56 D2 50 00 26 30 10 10 + 3E 00 35 AD 10 00 00 18 DF 13 56 D2 50 00 26 30 + 10 10 3E 00 35 AD 10 00 00 18 00 00 00 00 00 00 + 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 + 00 0C 39 CC 0D 3C 64 0F 0C 1B 6F 20 20 20 00 d8 + ]; + #address-cells = <1>; + #size-cells = <0>; + + /* device driver which is using the simulated I2C device */ + hdmi_ddc: edid@50 { + compatible = "fsl,imx6-hdmi-i2c"; + reg = <0x50>; + }; +}; |