Linux 6.7-rc7
[linux-modified.git] / arch / arm64 / boot / dts / qcom / msm8916-samsung-gt58.dts
1 // SPDX-License-Identifier: GPL-2.0-only
2
3 /dts-v1/;
4
5 #include "msm8916-samsung-gt5-common.dtsi"
6
7 / {
8         model = "Samsung Galaxy Tab A 8.0 (2015)";
9         compatible = "samsung,gt58", "qcom,msm8916";
10         chassis-type = "tablet";
11
12         reg_5p4v: regulator-5p4v {
13                 compatible = "regulator-fixed";
14                 regulator-name = "vlcd_5p4v";
15                 regulator-min-microvolt = <5400000>;
16                 regulator-max-microvolt = <5400000>;
17
18                 gpio = <&tlmm 8 GPIO_ACTIVE_HIGH>;
19                 enable-active-high;
20
21                 pinctrl-0 = <&buckbooster_en_default>;
22                 pinctrl-names = "default";
23         };
24
25         reg_vdd_tsp: regulator-vdd-tsp {
26                 compatible = "regulator-fixed";
27                 regulator-name = "vdd_tsp";
28                 regulator-min-microvolt = <3300000>;
29                 regulator-max-microvolt = <3300000>;
30
31                 gpio = <&tlmm 73 GPIO_ACTIVE_HIGH>;
32                 enable-active-high;
33
34                 pinctrl-0 = <&reg_tsp_en_default>;
35                 pinctrl-names = "default";
36         };
37
38         vibrator {
39                 compatible = "gpio-vibrator";
40                 enable-gpios = <&tlmm 76 GPIO_ACTIVE_HIGH>;
41
42                 pinctrl-0 = <&vibrator_en_default>;
43                 pinctrl-names = "default";
44         };
45 };
46
47 &blsp_i2c5 {
48         status = "okay";
49
50         touchscreen@20 {
51                 compatible = "zinitix,bt532";
52                 reg = <0x20>;
53                 interrupt-parent = <&tlmm>;
54                 interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
55
56                 touchscreen-size-x = <768>;
57                 touchscreen-size-y = <1024>;
58
59                 vcca-supply = <&reg_vdd_tsp>;
60                 vdd-supply = <&pm8916_l6>;
61
62                 pinctrl-0 = <&tsp_int_default>;
63                 pinctrl-names = "default";
64         };
65 };
66
67 &mdss {
68         status = "okay";
69 };
70
71 &mdss_dsi0 {
72         pinctrl-0 = <&mdss_default>;
73         pinctrl-1 = <&mdss_sleep>;
74         pinctrl-names = "default", "sleep";
75
76         panel@0 {
77                 compatible = "samsung,lsl080al03", "samsung,s6d7aa0";
78                 reg = <0>;
79
80                 power-supply = <&reg_5p4v>;
81                 vmipi-supply = <&pm8916_l5>;
82                 reset-gpios = <&tlmm 97 GPIO_ACTIVE_LOW>;
83
84                 port {
85                         panel_in: endpoint {
86                                 remote-endpoint = <&mdss_dsi0_out>;
87                         };
88                 };
89         };
90 };
91
92 &mdss_dsi0_out {
93         data-lanes = <0 1 2 3>;
94         remote-endpoint = <&panel_in>;
95 };
96
97 &tlmm {
98         buckbooster_en_default: buckbooster-en-default-state {
99                 pins = "gpio8";
100                 function = "gpio";
101                 drive-strength = <2>;
102                 bias-disable;
103         };
104
105         mdss_default: mdss-default-state {
106                 pins = "gpio97";
107                 function = "gpio";
108                 drive-strength = <8>;
109                 bias-disable;
110         };
111
112         mdss_sleep: mdss-sleep-state {
113                 pins = "gpio97";
114                 function = "gpio";
115                 drive-strength = <2>;
116                 bias-pull-down;
117         };
118
119         reg_tsp_en_default: reg-tsp-en-default-state {
120                 pins = "gpio73";
121                 function = "gpio";
122                 drive-strength = <2>;
123                 bias-disable;
124         };
125
126         tsp_int_default: tsp-int-default-state {
127                 pins = "gpio13";
128                 function = "gpio";
129                 drive-strength = <2>;
130                 bias-disable;
131         };
132
133         vibrator_en_default: vibrator-en-default-state {
134                 pins = "gpio76";
135                 function = "gpio";
136                 drive-strength = <2>;
137                 bias-disable;
138         };
139 };