Skip to content
Closed
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
39 changes: 39 additions & 0 deletions arch/arm64/boot/dts/qcom/sm7150-xiaomi-surya.dts
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,45 @@
status = "okay";
};

&dispcc {
status = "okay";
};


&dsi0 {
status = "okay";

panel: panel@0 {
compatible = "huaxing,nt36672c";
reg = <0>;

//reset-gpios = <&tlmm 8 GPIO_ACTIVE_LOW>;

port {
panel_in: endpoint {
remote-endpoint = <&dsi0_out>;
};
};
};
};

&dsi0_out {
data-lanes = <0 1 2 3>;
remote-endpoint = <&panel_in>;
};

&dsi_phy {
status = "okay";
};

&mdp {
status = "okay";
};

&mdss {
status = "okay";
};

&gpu {
status = "okay";
};
Expand Down
8 changes: 6 additions & 2 deletions drivers/gpu/drm/panel/panel-huaxing-nt36672c.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include <drm/drm_mipi_dsi.h>
#include <drm/drm_modes.h>
#include <drm/drm_panel.h>

struct nt36672c {
struct drm_panel panel;
struct mipi_dsi_device *dsi;
Expand Down Expand Up @@ -317,7 +316,12 @@ static int nt36672c_probe(struct mipi_dsi_device *dsi)
drm_panel_remove(&ctx->panel);
return ret;
}


ret = mipi_dsi_compression_mode(dsi, true);
if (ret < 0) {
dev_err(dev, "Failed to Enable DSC Compression %d\n", ret);
}

return 0;
}

Expand Down