File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 50
50
};
51
51
};
52
52
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
+
53
66
reserved-memory {
54
67
#address-cells = <2>;
55
68
#size-cells = <2>;
365
378
};
366
379
};
367
380
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
+
368
402
&sdhc_2 {
369
403
status = "okay";
370
404
You can’t perform that action at this time.
0 commit comments