Skip to content

Commit

Permalink
lenovo-l38011: Add NT36525 touchscreen node
Browse files Browse the repository at this point in the history
  • Loading branch information
archeYR committed Nov 21, 2023
1 parent 685e9eb commit 53302f7
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions arch/arm64/boot/dts/qcom/msm8937-lenovo-l38011.dts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,23 @@
};
};

&blsp_i2c3 {
status = "okay";

novatek@62 {
compatible = "novatek,nt36525";
reg = <0x62>;

pinctrl-0 = <&touchscreen_default>;
pinctrl-names = "default";

interrupt-parent = <&tlmm>;
interrupts = <65 IRQ_TYPE_EDGE_RISING>;

reset-gpios = <&tlmm 64 GPIO_ACTIVE_HIGH>;
};
};

&blsp_i2c5 {
status = "okay";

Expand Down Expand Up @@ -267,6 +284,24 @@
status = "okay";
};

&tlmm {
touchscreen_default: touchscreen-default-state {
reset-pins {
pins = "gpio64";
function = "gpio";
drive-strength = <2>;
bias-disable;
};

touchscreen-pins {
pins = "gpio65";
function = "gpio";
drive-strength = <2>;
bias-pull-up;
};
};
};

&usb_hs_phy {
vdd-supply = <&pm8937_l2>;
vdda1p8-supply = <&pm8937_l7>;
Expand Down

0 comments on commit 53302f7

Please sign in to comment.