Skip to content

Commit 883e723

Browse files
authored
Merge pull request #8 from Etn40ff/gpio-keys
arm64: dts: qcom: sm7150-xiaomi-sweet: Add gpio-keys
2 parents ab2c3bb + 1dcd867 commit 883e723

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

arch/arm64/boot/dts/qcom/sm7150-xiaomi-sweet.dts

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,19 @@
5050
};
5151
};
5252

53+
gpio-keys {
54+
compatible = "gpio-keys";
55+
pinctrl-names = "default";
56+
pinctrl-0 = <&key_vol_up_default>;
57+
58+
key-vol-up {
59+
label = "Volume Up";
60+
linux,code = <KEY_VOLUMEUP>;
61+
gpios = <&pm8150l_gpios 2 GPIO_ACTIVE_LOW>;
62+
debounce-interval = <15>;
63+
};
64+
};
65+
5366
reserved-memory {
5467
#address-cells = <2>;
5568
#size-cells = <2>;
@@ -365,6 +378,27 @@
365378
};
366379
};
367380

381+
&pm6150_pon {
382+
pm6150_resin: resin {
383+
compatible = "qcom,pm8941-resin";
384+
interrupts = <0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>;
385+
debounce = <15625>;
386+
bias-pull-up;
387+
linux,code = <KEY_VOLUMEDOWN>;
388+
};
389+
};
390+
391+
&pm8150l_gpios {
392+
key_vol_up_default: key_vol_up_default {
393+
pins = "gpio2";
394+
function = "normal";
395+
input-enable;
396+
bias-pull-up;
397+
power-source = <0>;
398+
};
399+
400+
};
401+
368402
&sdhc_2 {
369403
status = "okay";
370404

0 commit comments

Comments
 (0)