Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arm64: dts: turing-rk1: Fix reading EDID information #133

Merged
merged 2 commits into from
Dec 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions arch/arm64/boot/dts/rockchip/rk3588-turing-rk1.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,7 @@

&hdmi0 {
status = "okay";
ddc-i2c-rxfilter = <0x10>;
};

&hdmi0_in_vp0 {
Expand Down
6 changes: 6 additions & 0 deletions drivers/gpu/drm/bridge/synopsys/dw-hdmi-qp.c
Original file line number Diff line number Diff line change
Expand Up @@ -963,9 +963,15 @@ static int hdmi_bus_fmt_color_depth(unsigned int bus_format)

static void dw_hdmi_i2c_init(struct dw_hdmi_qp *hdmi)
{
u32 ddc_i2c_rxfilter;

/* Software reset */
hdmi_writel(hdmi, 0x01, I2CM_CONTROL0);

/* Configure I2CM hold time and rxfilter */
if (device_property_read_u32(hdmi->dev, "ddc-i2c-rxfilter", &ddc_i2c_rxfilter))
hdmi_writel(hdmi, ddc_i2c_rxfilter, I2CM_CONFIG0);

hdmi_modb(hdmi, 0, I2CM_FM_EN, I2CM_INTERFACE_CONTROL0);

/* Clear DONE and ERROR interrupts */
Expand Down
Loading