Skip to content

Commit 378a0ff

Browse files
committed
arm64: dts: qcom: msm8916-samsung-heatqlte: Add touchkeys
Add support for the tm2-touchkey input device providing the menu and back keys and their backlight leds. Signed-off-by: Celeste Lucero <[email protected]>
1 parent 6cc2342 commit 378a0ff

File tree

1 file changed

+85
-0
lines changed

1 file changed

+85
-0
lines changed

arch/arm64/boot/dts/qcom/msm8916-samsung-heatqlte.dts

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,91 @@
2020
model = "Samsung Galaxy Ace 4 (SM-G357FZ)";
2121
compatible = "samsung,heatqlte", "qcom,msm8916";
2222
chassis-type = "handset";
23+
24+
reg_vcc_touchkey: regulator-vcc-touchkey {
25+
compatible = "regulator-fixed";
26+
regulator-name = "vcc_touchkey";
27+
regulator-min-microvolt = <1800000>;
28+
regulator-max-microvolt = <1800000>;
29+
30+
gpio = <&tlmm 11 GPIO_ACTIVE_HIGH>;
31+
enable-active-high;
32+
33+
pinctrl-0 = <&vdd_touchkey_default>;
34+
pinctrl-names = "default";
35+
};
36+
37+
reg_vdd_touchkey_led: regulator-vdd-touchkey-led {
38+
compatible = "regulator-fixed";
39+
regulator-name = "vdd_touchkey_led";
40+
regulator-min-microvolt = <3300000>;
41+
regulator-max-microvolt = <3300000>;
42+
43+
gpio = <&tlmm 60 GPIO_ACTIVE_HIGH>;
44+
enable-active-high;
45+
46+
pinctrl-0 = <&vdd_touchkey_led_default>;
47+
pinctrl-names = "default";
48+
};
49+
50+
i2c_touchkey: i2c-touchkey {
51+
compatible = "i2c-gpio";
52+
sda-gpios = <&tlmm 8 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
53+
scl-gpios = <&tlmm 10 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
54+
55+
pinctrl-0 = <&nfc_touchkey_default>;
56+
pinctrl-names = "default";
57+
58+
#address-cells = <1>;
59+
#size-cells = <0>;
60+
61+
touchkey@20 {
62+
compatible = "cypress,tm2-touchkey";
63+
reg = <0x20>;
64+
65+
interrupt-parent = <&tlmm>;
66+
interrupts = <9 IRQ_TYPE_EDGE_RISING>;
67+
68+
vcc-supply = <&reg_vcc_touchkey>;
69+
vdd-supply = <&reg_vdd_touchkey_led>;
70+
71+
linux,keycodes = <KEY_APPSELECT KEY_BACK>;
72+
73+
pinctrl-0 = <&touchkey_int_default>;
74+
pinctrl-names = "default";
75+
};
76+
};
77+
78+
};
79+
80+
&tlmm {
81+
vdd_touchkey_default: vdd-touchkey-default-state {
82+
pins = "gpio11";
83+
function = "gpio";
84+
drive-strength = <2>;
85+
bias-disable;
86+
};
87+
88+
vdd_touchkey_led_default: vdd-touchkey-led-default-state {
89+
pins = "gpio60";
90+
function = "gpio";
91+
drive-strength = <2>;
92+
bias-disable;
93+
};
94+
95+
nfc_touchkey_default: nfc-touchkey-default-state {
96+
pins = "gpio8", "gpio10";
97+
function = "gpio";
98+
drive-strength = <2>;
99+
bias-disable;
100+
};
101+
102+
touchkey_int_default: touchkey-int-default-state {
103+
pins = "gpio9";
104+
function = "gpio";
105+
drive-strength = <2>;
106+
bias-disable;
107+
};
23108
};
24109

25110
&battery {

0 commit comments

Comments
 (0)