Skip to content

Update DTS/Panel for HTC One M8#28

Open
XirXes wants to merge 3 commits intomsm8974-mainline:qcom-msm8974-6.15.yfrom
XirXes:qcom-msm8974-6.15.y
Open

Update DTS/Panel for HTC One M8#28
XirXes wants to merge 3 commits intomsm8974-mainline:qcom-msm8974-6.15.yfrom
XirXes:qcom-msm8974-6.15.y

Conversation

@XirXes
Copy link
Copy Markdown

@XirXes XirXes commented Feb 24, 2026

These changes enable the display on the HTC One M8, and enable the GPU. Tested and working with Phosh UI with Wayland.

Enable Panel and Adreno GPU on HTC One M8 device tree.
Sharp 1080p command mode DSI panel with Novatek 35595 controller and DCS backlight. Found in the HTC One M8.
Accidentally included this monitored battery, the rest of the battery code wasn't included in the change due to lack of smbb-bms driver
@z3ntu
Copy link
Copy Markdown
Member

z3ntu commented Mar 14, 2026

Please add your downstream dtb that you used to generate the panel driver from to https://github.com/msm8974-mainline/linux-panel-drivers

I'd also highly encourage you to clean up the panel driver and submit it for inclusion upstream, then also the panel can be enabled upstream. Not strictly required though, we have enough panel drivers lying around in msm8974-mainline/linux

#include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sort the headers alphabetically, irq.h goes between input.h and leds/common.h

vdd-supply = <&pm8941_l22>;
vddio-supply = <&pm8941_l12>;
vdda-supply = <&pm8941_l2>;
panel@0 {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make the sorting/formatting like this

	vdd-supply = <&pm8941_l22>;
	vddio-supply = <&pm8941_l12>;
	vdda-supply = <&pm8941_l2>;

	status = "okay";

	panel@0 {

Status property goes last. Keep an empty line between properties and subnodes

panel@0 {
compatible = "mdss,m8-sharp-novatek-35595";
reg = <0>;
power-supply = <&pm8941_l12>;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you not have any better name than power-supply? Do you have schematics? If so, the proper names should be visible there

};

&mdss_dsi0_phy {
status = "okay";
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

status goes last


pinctrl-names = "default";
pinctrl-0 = <&panel_te_pin>, <&panel_rst_pin>;
backlight-gpios = <&pm8941_gpios 4 GPIO_ACTIVE_HIGH>;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

put backlight-gpios up next to power-supply.

for pinctrl, first pinctrl-0, then pinctrl-names

@z3ntu z3ntu added the enhancement New feature or request label Mar 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants