xref: /linux/arch/arm/boot/dts/qcom/qcom-apq8026-samsung-matisse-wifi.dts (revision 34f2573661e3e644efaf383178af634a2fd67828)
1// SPDX-License-Identifier: BSD-3-Clause
2/*
3 * Copyright (c) 2022, Matti Lehtimäki <matti.lehtimaki@gmail.com>
4 */
5
6/dts-v1/;
7
8#include "qcom-msm8226.dtsi"
9#include "qcom-msm8226-samsung-matisse-common.dtsi"
10
11/ {
12	model = "Samsung Galaxy Tab 4 10.1";
13	compatible = "samsung,matisse-wifi", "qcom,apq8026";
14	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	};
75};
76
77&pm8226_l3 {
78	regulator-max-microvolt = <1337500>;
79};
80
81&pm8226_s4 {
82	regulator-max-microvolt = <1800000>;
83};
84
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	};
92};
93