Skip to content

Commit 13b110b

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 13b110b

File tree

1 file changed

+83
-0
lines changed

1 file changed

+83
-0
lines changed

Diff for: arch/arm64/boot/dts/qcom/msm8916-samsung-heatqlte.dts

+83
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,89 @@
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 {
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 = <&touchkey_i2c_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+
interrupts-extended = <&tlmm 9 IRQ_TYPE_EDGE_RISING>;
66+
67+
vcc-supply = <&reg_vcc_touchkey>;
68+
vdd-supply = <&reg_vdd_touchkey_led>;
69+
70+
pinctrl-0 = <&touchkey_int_default>;
71+
pinctrl-names = "default";
72+
73+
linux,keycodes = <KEY_APPSELECT KEY_BACK>;
74+
};
75+
};
76+
};
77+
78+
&tlmm {
79+
vdd_touchkey_default: vdd-touchkey-default-state {
80+
pins = "gpio11";
81+
function = "gpio";
82+
drive-strength = <2>;
83+
bias-disable;
84+
};
85+
86+
vdd_touchkey_led_default: vdd-touchkey-led-default-state {
87+
pins = "gpio60";
88+
function = "gpio";
89+
drive-strength = <2>;
90+
bias-disable;
91+
};
92+
93+
touchkey_i2c_default: touchkey-i2c-default-state {
94+
pins = "gpio8", "gpio10";
95+
function = "gpio";
96+
drive-strength = <2>;
97+
bias-disable;
98+
};
99+
100+
touchkey_int_default: touchkey-int-default-state {
101+
pins = "gpio9";
102+
function = "gpio";
103+
drive-strength = <2>;
104+
bias-disable;
105+
};
23106
};
24107

25108
&battery {

0 commit comments

Comments
 (0)