-
Notifications
You must be signed in to change notification settings - Fork 31
Update DTS/Panel for HTC One M8 #28
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
base: qcom-msm8974-6.15.y
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,6 +4,9 @@ | |
| #include "pm8941.dtsi" | ||
| #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> | ||
| #include <dt-bindings/power/qcom-rpmpd.h> | ||
|
|
||
| / { | ||
| model = "HTC One (M8)"; | ||
|
|
@@ -65,6 +68,50 @@ | |
| }; | ||
| }; | ||
|
|
||
| &gpu { | ||
| status = "okay"; | ||
| }; | ||
|
|
||
| &mdss { | ||
| status = "okay"; | ||
| }; | ||
|
|
||
| &mdss_dsi0 { | ||
| status = "okay"; | ||
|
|
||
| vdd-supply = <&pm8941_l22>; | ||
| vddio-supply = <&pm8941_l12>; | ||
| vdda-supply = <&pm8941_l2>; | ||
| panel@0 { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
||
| compatible = "mdss,m8-sharp-novatek-35595"; | ||
| reg = <0>; | ||
| power-supply = <&pm8941_l12>; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. do you not have any better name than |
||
|
|
||
| pinctrl-names = "default"; | ||
| pinctrl-0 = <&panel_te_pin>, <&panel_rst_pin>; | ||
| backlight-gpios = <&pm8941_gpios 4 GPIO_ACTIVE_HIGH>; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
||
|
|
||
| port { | ||
| panel_in: endpoint { | ||
| remote-endpoint = <&mdss_dsi0_out>; | ||
| }; | ||
| }; | ||
| }; | ||
| }; | ||
|
|
||
| &mdss_dsi0_out { | ||
| data-lanes = <0 1 2 3>; | ||
| remote-endpoint = <&panel_in>; | ||
| }; | ||
|
|
||
| &mdss_dsi0_phy { | ||
| status = "okay"; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. status goes last |
||
|
|
||
| vdd-supply = <&pm8941_l22>; | ||
| vddio-supply = <&pm8941_l12>; | ||
| vdda-supply = <&pm8941_l2>; | ||
| }; | ||
|
|
||
| &blsp1_i2c2 { | ||
| clock-frequency = <384000>; | ||
|
|
||
|
|
@@ -398,6 +445,21 @@ | |
| bias-pull-down; | ||
| }; | ||
| }; | ||
|
|
||
| panel_te_pin: panel-te-state { | ||
| pins = "gpio12"; | ||
| function = "mdp_vsync"; | ||
| drive-strength = <2>; | ||
| bias-disable; | ||
| }; | ||
|
|
||
| panel_rst_pin: panel-rst-state { | ||
| pins = "gpio13"; | ||
| function = "gpio"; | ||
| bias-disable; | ||
| power-source = <PM8941_GPIO_S3>; | ||
| qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>; | ||
| }; | ||
| }; | ||
|
|
||
| &usb { | ||
|
|
||
There was a problem hiding this comment.
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