Skip to content

Commit eba92b3

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 eba92b3

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,59 @@
2020
model = "Samsung Galaxy Ace 4 (SM-G357FZ)";
2121
compatible = "samsung,heatqlte", "qcom,msm8916";
2222
chassis-type = "handset";
23+
24+
i2c-touchkey {
25+
compatible = "i2c-gpio";
26+
sda-gpios = <&tlmm 8 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
27+
scl-gpios = <&tlmm 10 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
28+
29+
pinctrl-0 = <&touchkey_i2c_default>;
30+
pinctrl-names = "default";
31+
32+
#address-cells = <1>;
33+
#size-cells = <0>;
34+
35+
touchkey@20 {
36+
compatible = "cypress,tm2-touchkey";
37+
reg = <0x20>;
38+
39+
interrupts-extended = <&tlmm 9 IRQ_TYPE_EDGE_RISING>;
40+
41+
vcc-supply = <&reg_vcc_touchkey>;
42+
vdd-supply = <&reg_vdd_touchkey_led>;
43+
44+
pinctrl-0 = <&touchkey_int_default>;
45+
pinctrl-names = "default";
46+
47+
linux,keycodes = <KEY_APPSELECT KEY_BACK>;
48+
};
49+
};
50+
51+
reg_vcc_touchkey: regulator-vcc-touchkey {
52+
compatible = "regulator-fixed";
53+
regulator-name = "vcc_touchkey";
54+
regulator-min-microvolt = <1800000>;
55+
regulator-max-microvolt = <1800000>;
56+
57+
gpio = <&tlmm 11 GPIO_ACTIVE_HIGH>;
58+
enable-active-high;
59+
60+
pinctrl-0 = <&vdd_touchkey_default>;
61+
pinctrl-names = "default";
62+
};
63+
64+
reg_vdd_touchkey_led: regulator-vdd-touchkey-led {
65+
compatible = "regulator-fixed";
66+
regulator-name = "vdd_touchkey_led";
67+
regulator-min-microvolt = <3300000>;
68+
regulator-max-microvolt = <3300000>;
69+
70+
gpio = <&tlmm 60 GPIO_ACTIVE_HIGH>;
71+
enable-active-high;
72+
73+
pinctrl-0 = <&vdd_touchkey_led_default>;
74+
pinctrl-names = "default";
75+
};
2376
};
2477

2578
&battery {
@@ -35,3 +88,33 @@
3588
&panel {
3689
compatible = "samsung,s6288a0";
3790
};
91+
92+
&tlmm {
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+
};
106+
107+
vdd_touchkey_default: vdd-touchkey-default-state {
108+
pins = "gpio11";
109+
function = "gpio";
110+
drive-strength = <2>;
111+
bias-disable;
112+
};
113+
114+
vdd_touchkey_led_default: vdd-touchkey-led-default-state {
115+
pins = "gpio60";
116+
function = "gpio";
117+
drive-strength = <2>;
118+
bias-disable;
119+
};
120+
};

0 commit comments

Comments
 (0)