Skip to content

Commit

Permalink
Add panel driver
Browse files Browse the repository at this point in the history
  • Loading branch information
archeYR committed Nov 9, 2023
1 parent bf48a56 commit a86d73c
Show file tree
Hide file tree
Showing 4 changed files with 387 additions and 0 deletions.
40 changes: 40 additions & 0 deletions arch/arm64/boot/dts/qcom/msm8937-lenovo-l38011.dts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,46 @@
status = "disabled";
};

&gpu {
status = "okay";
};

&mdss {
status = "okay";
};

&dsi0 {
status = "okay";
vdda-supply = <&pm8937_l2>;
vddio-supply = <&pm8937_l6>;

panel@0 {
compatible = "lenovo,l38011-panel";
reg = <0>;

reset-gpios = <&tlmm 98 GPIO_ACTIVE_LOW>;

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

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


&dsi_phy0 {
vddio-supply = <&pm8937_l6>;
vcca-supply = <&pm8937_s3>;
qcom,dsi-phy-regulator-ldo-mode;
status = "okay";
};

&wcnss {
status = "okay";
};
Expand Down
4 changes: 4 additions & 0 deletions drivers/gpu/drm/panel/msm8916-generated/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ config DRM_PANEL_HUAWEI_TIANMA_NT35521
tristate "Huawei TIANMA NT35521"
default DRM_PANEL_MSM8916_GENERATED

config DRM_PANEL_LENOVO_NOVATEK_NT36525
tristate "Lenovo Novatek NT36525"
default DRM_PANEL_MSM8916_GENERATED

config DRM_PANEL_LONGCHEER_BOOYI_OTM1287
tristate "Longcheer BOOYI OTM1287"
default DRM_PANEL_MSM8916_GENERATED
Expand Down
1 change: 1 addition & 0 deletions drivers/gpu/drm/panel/msm8916-generated/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ obj-$(CONFIG_DRM_PANEL_HUAWEI_BOE_OTM8019A) += panel-huawei-boe-otm8019a.o
obj-$(CONFIG_DRM_PANEL_HUAWEI_KIWI_CMI_NT35532) += panel-huawei-kiwi-cmi-nt35532.o
obj-$(CONFIG_DRM_PANEL_HUAWEI_KIWI_TIANMA_NT35596) += panel-huawei-kiwi-tianma-nt35596.o
obj-$(CONFIG_DRM_PANEL_HUAWEI_TIANMA_NT35521) += panel-huawei-tianma-nt35521.o
obj-$(CONFIG_DRM_PANEL_WINGTECH_YASSY_ILI9881) += panel-lenovo-novatek-nt36525.o
obj-$(CONFIG_DRM_PANEL_LONGCHEER_BOOYI_OTM1287) += panel-longcheer-booyi-otm1287.o
obj-$(CONFIG_DRM_PANEL_LONGCHEER_DIJING_ILI9881C) += panel-longcheer-dijing-ili9881c.o
obj-$(CONFIG_DRM_PANEL_LONGCHEER_TRULY_NT35695) += panel-longcheer-truly-nt35695.o
Expand Down
Loading

0 comments on commit a86d73c

Please sign in to comment.