blob: da3be658e822fb6408738e7e79453b87c39478e1 [file] [log] [blame]
Tom Rini53633a82024-02-29 12:33:36 -05001// SPDX-License-Identifier: BSD-3-Clause
2/*
3 * Copyright (c) 2022, Matti Lehtimäki <matti.lehtimaki@gmail.com>
4 */
5
6/dts-v1/;
7
Tom Rini6bb92fc2024-05-20 09:54:58 -06008#include "qcom-msm8226-samsung-matisse-common.dtsi"
Tom Rini53633a82024-02-29 12:33:36 -05009
10/ {
11 model = "Samsung Galaxy Tab 4 10.1";
12 compatible = "samsung,matisse-wifi", "qcom,apq8026";
13 chassis-type = "tablet";
14
Tom Rini53633a82024-02-29 12:33:36 -050015 reg_tsp_3p3v: regulator-tsp-3p3v {
16 compatible = "regulator-fixed";
17 regulator-name = "tsp_3p3v";
18 regulator-min-microvolt = <3300000>;
19 regulator-max-microvolt = <3300000>;
20
21 gpio = <&tlmm 73 GPIO_ACTIVE_HIGH>;
22 enable-active-high;
23
24 pinctrl-names = "default";
25 pinctrl-0 = <&tsp_en1_default_state>;
26 };
Tom Rini53633a82024-02-29 12:33:36 -050027};
28
Tom Rini53633a82024-02-29 12:33:36 -050029&blsp1_i2c2 {
30 status = "okay";
31
32 accelerometer@1d {
33 compatible = "st,lis2hh12";
34 reg = <0x1d>;
35
36 interrupt-parent = <&tlmm>;
37 interrupts = <54 IRQ_TYPE_LEVEL_HIGH>;
38
39 pinctrl-names = "default";
40 pinctrl-0 = <&accel_int_default_state>;
41
42 st,drdy-int-pin = <1>;
43
44 vdd-supply = <&pm8226_l19>;
45 vddio-supply = <&pm8226_lvs1>;
46 };
47};
48
Tom Rini53633a82024-02-29 12:33:36 -050049&blsp1_i2c5 {
50 status = "okay";
51
52 touchscreen@4a {
53 compatible = "atmel,maxtouch";
54 reg = <0x4a>;
55
56 interrupt-parent = <&tlmm>;
57 interrupts = <17 IRQ_TYPE_LEVEL_LOW>;
58
Tom Rini6bb92fc2024-05-20 09:54:58 -060059 linux,keycodes = <KEY_RESERVED>,
60 <KEY_RESERVED>,
61 <KEY_RESERVED>,
62 <KEY_RESERVED>,
63 <KEY_APPSELECT>,
64 <KEY_BACK>;
65
Tom Rini53633a82024-02-29 12:33:36 -050066 pinctrl-names = "default";
67 pinctrl-0 = <&tsp_int_rst_default_state>;
68
69 reset-gpios = <&pm8226_gpios 6 GPIO_ACTIVE_LOW>;
70
71 vdd-supply = <&reg_tsp_1p8v>;
72 vdda-supply = <&reg_tsp_3p3v>;
73 };
74};
75
Tom Rini6bb92fc2024-05-20 09:54:58 -060076&pm8226_l3 {
77 regulator-max-microvolt = <1337500>;
Tom Rini53633a82024-02-29 12:33:36 -050078};
79
Tom Rini6bb92fc2024-05-20 09:54:58 -060080&pm8226_s4 {
81 regulator-max-microvolt = <1800000>;
Tom Rini53633a82024-02-29 12:33:36 -050082};
83
84&tlmm {
Tom Rini53633a82024-02-29 12:33:36 -050085 tsp_en1_default_state: tsp-en1-default-state {
86 pins = "gpio73";
87 function = "gpio";
88 drive-strength = <2>;
89 bias-disable;
90 };
Tom Rini53633a82024-02-29 12:33:36 -050091};