Skip to content
Merged
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
12 changes: 11 additions & 1 deletion arch/arm64/boot/dts/qcom/pm660.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,24 @@

reg = <0x800>;

pwrkey {
pon_pwrkey: pwrkey {
compatible = "qcom,pm8941-pwrkey";
interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
debounce = <15625>;
bias-pull-up;
linux,code = <KEY_POWER>;

status = "disabled";
};

pon_resin: resin {
compatible = "qcom,pm8941-resin";
interrupts = <0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>;
debounce = <15625>;
bias-pull-up;

status = "disabled";
};
};

pm660_temp: temp-alarm@2400 {
Expand Down
60 changes: 53 additions & 7 deletions arch/arm64/boot/dts/qcom/sdm660-xiaomi-platina.dts
Original file line number Diff line number Diff line change
Expand Up @@ -192,17 +192,17 @@

gpio_keys {
status = "okay";
compatible = "gpio-keys";
input-name = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
compatible = "gpio-keys-polled";
Copy link
Member

Choose a reason for hiding this comment

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

on mainline (>=5.16) keys work on lavender without polling btw. This will need to be reverted when moving to mainline kernel

poll-interval = <100>;
label = "Volume up";
pinctrl-names = "default";
pinctrl-0 = <&vol_up_gpio_default>;

vol_up {
label = "Volume Up";
gpios = <&pm660l_gpios 7 GPIO_ACTIVE_LOW>;
linux,input-type = <1>;
linux,input-type = <EV_KEY>;
linux,code = <KEY_VOLUMEUP>;
wakeup-source;
debounce-interval = <15>;
};
};
Expand Down Expand Up @@ -245,6 +245,23 @@
*/
};

&blsp_i2c4 {
status = "okay";
/* Novatek device tree node */
novatek@62 {
compatible = "novatek,nt36525";
reg = <0x62>;
vcc-supply = <&vreg_l11a_1p8>;
pinctrl-0 = <&ts_int_active &ts_rst_n>;
pinctrl-names = "default";
interrupt-parent = <&tlmm>;
interrupts = <67 IRQ_TYPE_EDGE_FALLING>;
reset-gpios = <&tlmm 66 GPIO_ACTIVE_LOW>;
touchscreen-size-x = <1080>;
touchscreen-size-y = <2280>;
};
};

&blsp1_uart2 {
status = "okay";
};
Expand Down Expand Up @@ -601,7 +618,7 @@
power-source = <0>;
};

vol_key_gpio_default: vol-key-gpio-default {
vol_up_gpio_default: vol-up-gpio-default {
pins = "gpio7";
function = "normal";
bias-pull-up;
Expand All @@ -610,6 +627,15 @@
};
};

&pon_resin {
linux,code = <KEY_VOLUMEDOWN>;
status = "okay";
};

&pon_pwrkey {
status = "okay";
};

&tlmm {
gpio-reserved-ranges = <8 4>;

Expand Down Expand Up @@ -726,6 +752,26 @@

};

&adreno_gpu{
status = "disabled";
};

&gpucc{
status = "disabled";
};

&mmcc{
status = "disabled";
};

&qusb2phy {
status = "okay";

vdd-supply = <&vreg_l1b_0p925>;
vdda-pll-supply = <&vreg_l10a_1p8>;
vdda-phy-dpdm-supply = <&vreg_l7b_3p125>;
};

&usb3 {
status = "okay";
};
Expand Down