Skip to content

Commit be2bb36

Browse files
committed
ARM: dts: qcom: msm8226-samsung-matisse-common: move accelerometer and
touchscreen node into common dtsi I checked the downstream. Accelerometer and touchscreen node in the downstream device tree of matisselte matisse-wifi are quite similar.Therefore they should be in the common dtsi. Signed-off-by: Karl Chan <[email protected]>
1 parent 5ca1e21 commit be2bb36

File tree

3 files changed

+71
-89
lines changed

3 files changed

+71
-89
lines changed

arch/arm/boot/dts/qcom/qcom-apq8026-samsung-matisse-wifi.dts

Lines changed: 6 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -12,66 +12,6 @@
1212
model = "Samsung Galaxy Tab 4 10.1";
1313
compatible = "samsung,matisse-wifi", "qcom,apq8026";
1414
chassis-type = "tablet";
15-
16-
reg_tsp_3p3v: regulator-tsp-3p3v {
17-
compatible = "regulator-fixed";
18-
regulator-name = "tsp_3p3v";
19-
regulator-min-microvolt = <3300000>;
20-
regulator-max-microvolt = <3300000>;
21-
22-
gpio = <&tlmm 73 GPIO_ACTIVE_HIGH>;
23-
enable-active-high;
24-
25-
pinctrl-names = "default";
26-
pinctrl-0 = <&tsp_en1_default_state>;
27-
};
28-
};
29-
30-
&blsp1_i2c2 {
31-
status = "okay";
32-
33-
accelerometer@1d {
34-
compatible = "st,lis2hh12";
35-
reg = <0x1d>;
36-
37-
interrupt-parent = <&tlmm>;
38-
interrupts = <54 IRQ_TYPE_LEVEL_HIGH>;
39-
40-
pinctrl-names = "default";
41-
pinctrl-0 = <&accel_int_default_state>;
42-
43-
st,drdy-int-pin = <1>;
44-
45-
vdd-supply = <&pm8226_l19>;
46-
vddio-supply = <&pm8226_lvs1>;
47-
};
48-
};
49-
50-
&blsp1_i2c5 {
51-
status = "okay";
52-
53-
touchscreen@4a {
54-
compatible = "atmel,maxtouch";
55-
reg = <0x4a>;
56-
57-
interrupt-parent = <&tlmm>;
58-
interrupts = <17 IRQ_TYPE_LEVEL_LOW>;
59-
60-
linux,keycodes = <KEY_RESERVED>,
61-
<KEY_RESERVED>,
62-
<KEY_RESERVED>,
63-
<KEY_RESERVED>,
64-
<KEY_APPSELECT>,
65-
<KEY_BACK>;
66-
67-
pinctrl-names = "default";
68-
pinctrl-0 = <&tsp_int_rst_default_state>;
69-
70-
reset-gpios = <&pm8226_gpios 6 GPIO_ACTIVE_LOW>;
71-
72-
vdd-supply = <&reg_tsp_1p8v>;
73-
vdda-supply = <&reg_tsp_3p3v>;
74-
};
7515
};
7616

7717
&pm8226_l3 {
@@ -82,11 +22,10 @@
8222
regulator-max-microvolt = <1800000>;
8323
};
8424

85-
&tlmm {
86-
tsp_en1_default_state: tsp-en1-default-state {
87-
pins = "gpio73";
88-
function = "gpio";
89-
drive-strength = <2>;
90-
bias-disable;
91-
};
25+
&reg_tsp_3p3v {
26+
gpio = <&tlmm 73 GPIO_ACTIVE_HIGH>;
27+
};
28+
29+
&tsp_en1_default_state {
30+
pins = "gpio73";
9231
};

arch/arm/boot/dts/qcom/qcom-msm8226-samsung-matisse-common.dtsi

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,19 @@
142142
pinctrl-0 = <&tsp_en_default_state>;
143143
};
144144

145+
reg_tsp_3p3v: regulator-tsp-3p3v {
146+
compatible = "regulator-fixed";
147+
regulator-name = "tsp_3p3v";
148+
regulator-min-microvolt = <3300000>;
149+
regulator-max-microvolt = <3300000>;
150+
151+
gpio = <&tlmm 32 GPIO_ACTIVE_HIGH>;
152+
enable-active-high;
153+
154+
pinctrl-0 = <&tsp_en1_default_state>;
155+
pinctrl-names = "default";
156+
};
157+
145158
reserved-memory {
146159
#address-cells = <1>;
147160
#size-cells = <1>;
@@ -211,6 +224,25 @@
211224
status = "okay";
212225
};
213226

227+
&blsp1_i2c2 {
228+
status = "okay";
229+
230+
accelerometer@1d {
231+
compatible = "st,lis2hh12";
232+
reg = <0x1d>;
233+
234+
interrupts-extended = <&tlmm 54 IRQ_TYPE_LEVEL_HIGH>;
235+
236+
pinctrl-0 = <&accel_int_default_state>;
237+
pinctrl-names = "default";
238+
239+
st,drdy-int-pin = <1>;
240+
241+
vdd-supply = <&pm8226_l19>;
242+
vddio-supply = <&pm8226_lvs1>;
243+
};
244+
};
245+
214246
&blsp1_i2c4 {
215247
status = "okay";
216248

@@ -226,6 +258,32 @@
226258
};
227259
};
228260

261+
&blsp1_i2c5 {
262+
status = "okay";
263+
264+
touchscreen@4a {
265+
compatible = "atmel,maxtouch";
266+
reg = <0x4a>;
267+
268+
interrupts-extended = <&tlmm 17 IRQ_TYPE_LEVEL_LOW>;
269+
270+
linux,keycodes = <KEY_RESERVED>,
271+
<KEY_RESERVED>,
272+
<KEY_RESERVED>,
273+
<KEY_RESERVED>,
274+
<KEY_APPSELECT>,
275+
<KEY_BACK>;
276+
277+
pinctrl-0 = <&tsp_int_rst_default_state>;
278+
pinctrl-names = "default";
279+
280+
reset-gpios = <&pm8226_gpios 6 GPIO_ACTIVE_LOW>;
281+
282+
vdd-supply = <&reg_tsp_1p8v>;
283+
vdda-supply = <&reg_tsp_3p3v>;
284+
};
285+
};
286+
229287
&blsp1_uart3 {
230288
status = "okay";
231289
};
@@ -474,6 +532,13 @@
474532
bias-disable;
475533
};
476534

535+
tsp_en1_default_state: tsp-en1-default-state {
536+
pins = "gpio32";
537+
function = "gpio";
538+
drive-strength = <2>;
539+
bias-disable;
540+
};
541+
477542
tsp_int_rst_default_state: tsp-int-rst-default-state {
478543
pins = "gpio17";
479544
function = "gpio";

arch/arm/boot/dts/qcom/qcom-msm8926-samsung-matisselte.dts

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -13,30 +13,8 @@
1313
model = "Samsung Galaxy Tab 4 10.1 LTE";
1414
compatible = "samsung,matisselte", "qcom,msm8926", "qcom,msm8226";
1515
chassis-type = "tablet";
16-
17-
reg_tsp_3p3v: regulator-tsp-3p3v {
18-
compatible = "regulator-fixed";
19-
regulator-name = "tsp_3p3v";
20-
regulator-min-microvolt = <3300000>;
21-
regulator-max-microvolt = <3300000>;
22-
23-
gpio = <&tlmm 32 GPIO_ACTIVE_HIGH>;
24-
enable-active-high;
25-
26-
pinctrl-names = "default";
27-
pinctrl-0 = <&tsp_en1_default_state>;
28-
};
2916
};
3017

3118
&modem {
3219
mss-supply = <&pm8226_s5>;
3320
};
34-
35-
&tlmm {
36-
tsp_en1_default_state: tsp-en1-default-state {
37-
pins = "gpio32";
38-
function = "gpio";
39-
drive-strength = <2>;
40-
bias-disable;
41-
};
42-
};

0 commit comments

Comments
 (0)