1 // SPDX-License-Identifier: BSD-3-Clause
3 * Copyright (c) 2022, Matti Lehtimäki <matti.lehtimaki@gmail.com>
8 #include <dt-bindings/input/input.h>
9 #include "qcom-msm8226.dtsi"
10 #include "pm8226.dtsi"
12 /delete-node/ &adsp_region;
13 /delete-node/ &smem_region;
16 model = "Samsung Galaxy Tab 4 10.1";
17 compatible = "samsung,matisse-wifi", "qcom,apq8026";
18 chassis-type = "tablet";
21 mmc0 = &sdhc_1; /* SDC1 eMMC slot */
22 mmc1 = &sdhc_2; /* SDC2 SD card slot */
23 display0 = &framebuffer0;
31 stdout-path = "display0";
33 framebuffer0: framebuffer@3200000 {
34 compatible = "simple-framebuffer";
35 reg = <0x03200000 0x800000>;
38 stride = <(1280 * 3)>;
44 compatible = "gpio-keys";
47 label = "Hall Effect Sensor";
48 gpios = <&tlmm 110 GPIO_ACTIVE_LOW>;
49 linux,input-type = <EV_SW>;
50 linux,code = <SW_LID>;
51 debounce-interval = <15>;
58 compatible = "gpio-keys";
63 gpios = <&tlmm 108 GPIO_ACTIVE_LOW>;
64 linux,code = <KEY_HOMEPAGE>;
65 debounce-interval = <15>;
69 label = "Volume Down";
70 gpios = <&tlmm 107 GPIO_ACTIVE_LOW>;
71 linux,code = <KEY_VOLUMEDOWN>;
72 debounce-interval = <15>;
77 gpios = <&tlmm 106 GPIO_ACTIVE_LOW>;
78 linux,code = <KEY_VOLUMEUP>;
79 debounce-interval = <15>;
84 compatible = "i2c-gpio";
85 sda-gpios = <&tlmm 20 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
86 scl-gpios = <&tlmm 21 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
88 pinctrl-0 = <&backlight_i2c_default_state>;
89 pinctrl-names = "default";
91 i2c-gpio,delay-us = <4>;
97 compatible = "ti,lp8556";
100 dev-ctrl = /bits/ 8 <0x80>;
101 init-brt = /bits/ 8 <0x3f>;
103 pwms = <&backlight_pwm 0 100000>;
104 pwm-names = "lp8556";
107 rom-addr = /bits/ 8 <0xa0>;
108 rom-val = /bits/ 8 <0x44>;
112 rom-addr = /bits/ 8 <0xa1>;
113 rom-val = /bits/ 8 <0x6c>;
117 rom-addr = /bits/ 8 <0xa5>;
118 rom-val = /bits/ 8 <0x24>;
124 compatible = "clk-pwm";
126 clocks = <&mmcc CAMSS_GP0_CLK>;
127 pinctrl-0 = <&backlight_pwm_default_state>;
128 pinctrl-names = "default";
131 reg_tsp_1p8v: regulator-tsp-1p8v {
132 compatible = "regulator-fixed";
133 regulator-name = "tsp_1p8v";
134 regulator-min-microvolt = <1800000>;
135 regulator-max-microvolt = <1800000>;
137 gpio = <&tlmm 31 GPIO_ACTIVE_HIGH>;
140 pinctrl-names = "default";
141 pinctrl-0 = <&tsp_en_default_state>;
144 reg_tsp_3p3v: regulator-tsp-3p3v {
145 compatible = "regulator-fixed";
146 regulator-name = "tsp_3p3v";
147 regulator-min-microvolt = <3300000>;
148 regulator-max-microvolt = <3300000>;
150 gpio = <&tlmm 73 GPIO_ACTIVE_HIGH>;
153 pinctrl-names = "default";
154 pinctrl-0 = <&tsp_en1_default_state>;
158 #address-cells = <1>;
162 framebuffer@3200000 {
163 reg = <0x03200000 0x800000>;
168 reg = <0x08400000 0x1f00000>;
173 reg = <0x0a300000 0x100000>;
178 reg = <0x0cb00000 0x700000>;
183 reg = <0x0d200000 0x700000>;
187 adsp_region: adsp@d900000 {
188 reg = <0x0d900000 0x1800000>;
193 reg = <0x0f100000 0x500000>;
197 smem_region: smem@fa00000 {
198 reg = <0x0fa00000 0x100000>;
203 reg = <0x0fb00000 0x260000>;
208 reg = <0x0fd60000 0x20000>;
213 compatible = "qcom,rmtfs-mem";
214 reg = <0x0fd80000 0x180000>;
217 qcom,client-id = <1>;
230 compatible = "st,lis2hh12";
233 interrupt-parent = <&tlmm>;
234 interrupts = <54 IRQ_TYPE_LEVEL_HIGH>;
236 pinctrl-names = "default";
237 pinctrl-0 = <&accel_int_default_state>;
239 st,drdy-int-pin = <1>;
241 vdd-supply = <&pm8226_l19>;
242 vddio-supply = <&pm8226_lvs1>;
249 muic: usb-switch@25 {
250 compatible = "siliconmitus,sm5502-muic";
253 interrupt-parent = <&tlmm>;
254 interrupts = <67 IRQ_TYPE_EDGE_FALLING>;
256 pinctrl-names = "default";
257 pinctrl-0 = <&muic_int_default_state>;
265 compatible = "atmel,maxtouch";
268 interrupt-parent = <&tlmm>;
269 interrupts = <17 IRQ_TYPE_LEVEL_LOW>;
271 pinctrl-names = "default";
272 pinctrl-0 = <&tsp_int_rst_default_state>;
274 reset-gpios = <&pm8226_gpios 6 GPIO_ACTIVE_LOW>;
276 vdd-supply = <®_tsp_1p8v>;
277 vdda-supply = <®_tsp_3p3v>;
283 compatible = "qcom,rpm-pm8226-regulators";
286 regulator-min-microvolt = <1200000>;
287 regulator-max-microvolt = <1300000>;
291 regulator-min-microvolt = <1800000>;
292 regulator-max-microvolt = <1800000>;
296 regulator-min-microvolt = <1150000>;
297 regulator-max-microvolt = <1150000>;
301 regulator-min-microvolt = <1225000>;
302 regulator-max-microvolt = <1225000>;
306 regulator-min-microvolt = <1200000>;
307 regulator-max-microvolt = <1200000>;
311 regulator-min-microvolt = <750000>;
312 regulator-max-microvolt = <1337500>;
317 regulator-min-microvolt = <1200000>;
318 regulator-max-microvolt = <1200000>;
322 regulator-min-microvolt = <1200000>;
323 regulator-max-microvolt = <1200000>;
327 regulator-min-microvolt = <1800000>;
328 regulator-max-microvolt = <1800000>;
333 regulator-min-microvolt = <1850000>;
334 regulator-max-microvolt = <1850000>;
338 regulator-min-microvolt = <1800000>;
339 regulator-max-microvolt = <1800000>;
344 regulator-min-microvolt = <2050000>;
345 regulator-max-microvolt = <2050000>;
349 regulator-min-microvolt = <1800000>;
350 regulator-max-microvolt = <1800000>;
354 regulator-min-microvolt = <1800000>;
355 regulator-max-microvolt = <1800000>;
359 regulator-min-microvolt = <2750000>;
360 regulator-max-microvolt = <2750000>;
364 regulator-min-microvolt = <1800000>;
365 regulator-max-microvolt = <3300000>;
369 regulator-min-microvolt = <3000000>;
370 regulator-max-microvolt = <3350000>;
374 regulator-min-microvolt = <2950000>;
375 regulator-max-microvolt = <2950000>;
377 regulator-system-load = <200000>;
378 regulator-allow-set-load;
383 regulator-min-microvolt = <2950000>;
384 regulator-max-microvolt = <2950000>;
388 regulator-min-microvolt = <2850000>;
389 regulator-max-microvolt = <3000000>;
393 regulator-min-microvolt = <3075000>;
394 regulator-max-microvolt = <3075000>;
398 regulator-min-microvolt = <1800000>;
399 regulator-max-microvolt = <2950000>;
403 regulator-min-microvolt = <1800000>;
404 regulator-max-microvolt = <3000000>;
408 regulator-min-microvolt = <1800000>;
409 regulator-max-microvolt = <3300000>;
413 regulator-min-microvolt = <1300000>;
414 regulator-max-microvolt = <1350000>;
418 regulator-min-microvolt = <1775000>;
419 regulator-max-microvolt = <2125000>;
423 regulator-min-microvolt = <1225000>;
424 regulator-max-microvolt = <1300000>;
428 regulator-min-microvolt = <1800000>;
429 regulator-max-microvolt = <1800000>;
433 regulator-min-microvolt = <1800000>;
434 regulator-max-microvolt = <2950000>;
437 pm8226_lvs1: lvs1 {};
442 vmmc-supply = <&pm8226_l17>;
443 vqmmc-supply = <&pm8226_l6>;
452 vmmc-supply = <&pm8226_l18>;
453 vqmmc-supply = <&pm8226_l21>;
456 cd-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>;
462 accel_int_default_state: accel-int-default-state {
465 drive-strength = <2>;
469 backlight_i2c_default_state: backlight-i2c-default-state {
470 pins = "gpio20", "gpio21";
472 drive-strength = <2>;
476 backlight_pwm_default_state: backlight-pwm-default-state {
478 function = "gp0_clk";
481 muic_int_default_state: muic-int-default-state {
484 drive-strength = <2>;
488 tsp_en_default_state: tsp-en-default-state {
491 drive-strength = <2>;
495 tsp_en1_default_state: tsp-en1-default-state {
498 drive-strength = <2>;
502 tsp_int_rst_default_state: tsp-int-rst-default-state {
505 drive-strength = <10>;
511 extcon = <&muic>, <&muic>;
517 v1p8-supply = <&pm8226_l10>;
518 v3p3-supply = <&pm8226_l20>;