OMAPDSS: HDMI5: Change DDC timings
Subsystems (5)
PATCH 1/1 OMAPDSS: HDMI5: Change DDC timings
From: "Lodes, Jim" <[email protected]>
The DDC scl high and low times were set to the minimum values from the i2c specification, but the i2c specification takes into account the rise time and fall time to calculate the frequency. To pass HDMI certification DDC can not exceed 100kHz therefore in a system where the rise times and fall times are negligible the high and low times for scl need to be 10us.
--- drivers/gpu/drm/omapdrm/dss/hdmi5_core.c | 4 ++-- drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/omapdrm/dss/hdmi5_core.c +2 -2
@@ -51,8 +51,8 @@ static void hdmi_core_ddc_init(struct hdmi_core_data *core) {void __iomem *base = core->base;const unsigned long long iclk =266000000 ;/* DSS L3 ICLK */ -const unsigned ss_scl_high =4000 ;/* ns */ -const unsigned ss_scl_low =4700 ;/* ns */ +const unsigned ss_scl_high =4600 ;/* ns */ +const unsigned ss_scl_low =5400 ;/* ns */ const unsigned fs_scl_high =600 ;/* ns */ const unsigned fs_scl_low =1300 ;/* ns */ const unsigned sda_hold =1000 ;/* ns */
drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c +2 -2
@@ -51,8 +51,8 @@ static void hdmi_core_ddc_init(struct hdmi_core_data *core) {void __iomem *base = core->base;const unsigned long long iclk =266000000 ;/* DSS L3 ICLK */ -const unsigned ss_scl_high =4000 ;/* ns */ -const unsigned ss_scl_low =4700 ;/* ns */ +const unsigned ss_scl_high =4600 ;/* ns */ +const unsigned ss_scl_low =5400 ;/* ns */ const unsigned fs_scl_high =600 ;/* ns */ const unsigned fs_scl_low =1300 ;/* ns */ const unsigned sda_hold =1000 ;/* ns */
Signature · 1 line
1.9.1
Hi,
Quoted 8 lines · J.D. Schroeder
From: "Lodes, Jim" <[email protected]>
The DDC scl high and low times were set to the minimum values from the i2c specification, but the i2c specification takes into account the rise time and fall time to calculate the frequency. To pass HDMI certification DDC can not exceed 100kHz therefore in a system where the rise times and fall times are negligible the high and low times for scl need to be 10us.
Thanks, makes sense. Did you measure the rise & fall times? Do you get more or less exactly 100kHz with the new times?
Quoted 1 line
Signed-off-by Lodes, Jim <[email protected]>
The email format should be
Firstname Lastname <[email protected]>
Or something similar, but not "Lastname, Firstname"
Tomi
Quoted 2 lines · Tomi Valkeinen
Thanks, makes sense. Did you measure the rise & fall times? Do you get more or less exactly 100kHz with the new times?
Rise time is around 600 nsec and fall time is around 140 nsec. When the clock frequency is measured we get right at 100 kHz and the rise and fall times are negligible. When the HDMI certification test equipment is attached it is just slightly less than 100 kHz, which is okay. The HDMI specification states less than 100 kHz is acceptable not greater. If a particular system has slower rise and fall times then that should be okay also. This change ensures that we stay below 100 kHz regardless of the rise and fall times.
Quoted 5 lines
Quoted 1 line
Signed-off-by Lodes, Jim <[email protected]>The email format should be
Firstname Lastname <[email protected]>
Yes. I'll fix the email and resubmit.
PATCH v2 1/1 OMAPDSS: HDMI5: Change DDC timings
In reply to J.D. SchroederFrom: Jim Lodes <[email protected]>
The DDC scl high and low times were set to the minimum values from the i2c specification, but the i2c specification takes into account the rise time and fall time to calculate the frequency. To pass HDMI certification DDC can not exceed 100kHz therefore in a system where the rise times and fall times are negligible the high and low times for scl need to be 10us.
--- drivers/gpu/drm/omapdrm/dss/hdmi5_core.c | 4 ++-- drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/omapdrm/dss/hdmi5_core.c +2 -2
@@ -51,8 +51,8 @@ static void hdmi_core_ddc_init(struct hdmi_core_data *core) {void __iomem *base = core->base;const unsigned long long iclk =266000000 ;/* DSS L3 ICLK */ -const unsigned ss_scl_high =4000 ;/* ns */ -const unsigned ss_scl_low =4700 ;/* ns */ +const unsigned ss_scl_high =4600 ;/* ns */ +const unsigned ss_scl_low =5400 ;/* ns */ const unsigned fs_scl_high =600 ;/* ns */ const unsigned fs_scl_low =1300 ;/* ns */ const unsigned sda_hold =1000 ;/* ns */
drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c +2 -2
@@ -51,8 +51,8 @@ static void hdmi_core_ddc_init(struct hdmi_core_data *core) {void __iomem *base = core->base;const unsigned long long iclk =266000000 ;/* DSS L3 ICLK */ -const unsigned ss_scl_high =4000 ;/* ns */ -const unsigned ss_scl_low =4700 ;/* ns */ +const unsigned ss_scl_high =4600 ;/* ns */ +const unsigned ss_scl_low =5400 ;/* ns */ const unsigned fs_scl_high =600 ;/* ns */ const unsigned fs_scl_low =1300 ;/* ns */ const unsigned sda_hold =1000 ;/* ns */
Signature · 1 line
1.9.1
Quoted 9 lines · J.D. Schroeder
From: Jim Lodes <[email protected]>
The DDC scl high and low times were set to the minimum values from the i2c specification, but the i2c specification takes into account the rise time and fall time to calculate the frequency. To pass HDMI certification DDC can not exceed 100kHz therefore in a system where the rise times and fall times are negligible the high and low times for scl need to be 10us.
Quoted 6 lines
Signed-off-by Jim Lodes <[email protected]>Signed-off-by J.D. Schroeder <[email protected]>--- drivers/gpu/drm/omapdrm/dss/hdmi5_core.c | 4 ++-- drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
Thanks! Queuing this for 4.7.
Tomi