xref: /freebsd/sys/contrib/device-tree/src/arm64/qcom/msm8916-samsung-j3-common.dtsi (revision b2d2a78ad80ec68d4a17f5aef97d21686cb1e29b)
1*b2d2a78aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-only
2*b2d2a78aSEmmanuel Vadot
3*b2d2a78aSEmmanuel Vadot#include "msm8916-samsung-j5-common.dtsi"
4*b2d2a78aSEmmanuel Vadot
5*b2d2a78aSEmmanuel Vadot/ {
6*b2d2a78aSEmmanuel Vadot	reserved-memory {
7*b2d2a78aSEmmanuel Vadot		/delete-node/ tz-apps@85500000;
8*b2d2a78aSEmmanuel Vadot
9*b2d2a78aSEmmanuel Vadot		/* Additional memory used by Samsung firmware modifications */
10*b2d2a78aSEmmanuel Vadot		tz-apps@85800000 {
11*b2d2a78aSEmmanuel Vadot			reg = <0x0 0x85800000 0x0 0x800000>;
12*b2d2a78aSEmmanuel Vadot			no-map;
13*b2d2a78aSEmmanuel Vadot		};
14*b2d2a78aSEmmanuel Vadot	};
15*b2d2a78aSEmmanuel Vadot
16*b2d2a78aSEmmanuel Vadot	reg_vdd_tsp_a: regulator-vdd-tsp-a {
17*b2d2a78aSEmmanuel Vadot		compatible = "regulator-fixed";
18*b2d2a78aSEmmanuel Vadot		regulator-name = "vdd_tsp_a";
19*b2d2a78aSEmmanuel Vadot		regulator-min-microvolt = <3000000>;
20*b2d2a78aSEmmanuel Vadot		regulator-max-microvolt = <3000000>;
21*b2d2a78aSEmmanuel Vadot
22*b2d2a78aSEmmanuel Vadot		gpio = <&tlmm 16 GPIO_ACTIVE_HIGH>;
23*b2d2a78aSEmmanuel Vadot		enable-active-high;
24*b2d2a78aSEmmanuel Vadot
25*b2d2a78aSEmmanuel Vadot		pinctrl-0 = <&tsp_ldo_en_default>;
26*b2d2a78aSEmmanuel Vadot		pinctrl-names = "default";
27*b2d2a78aSEmmanuel Vadot	};
28*b2d2a78aSEmmanuel Vadot};
29*b2d2a78aSEmmanuel Vadot
30*b2d2a78aSEmmanuel Vadot&accelerometer {
31*b2d2a78aSEmmanuel Vadot	vdd-supply = <&pm8916_l5>;
32*b2d2a78aSEmmanuel Vadot	vddio-supply = <&pm8916_l5>;
33*b2d2a78aSEmmanuel Vadot
34*b2d2a78aSEmmanuel Vadot	mount-matrix = "0", "-1", "0",
35*b2d2a78aSEmmanuel Vadot		       "1", "0", "0",
36*b2d2a78aSEmmanuel Vadot		       "0", "0", "-1";
37*b2d2a78aSEmmanuel Vadot};
38*b2d2a78aSEmmanuel Vadot
39*b2d2a78aSEmmanuel Vadot&gpio_hall_sensor {
40*b2d2a78aSEmmanuel Vadot	status = "disabled";
41*b2d2a78aSEmmanuel Vadot};
42*b2d2a78aSEmmanuel Vadot
43*b2d2a78aSEmmanuel Vadot&i2c_muic {
44*b2d2a78aSEmmanuel Vadot	/* GPIO pins vary depending on model variant */
45*b2d2a78aSEmmanuel Vadot};
46*b2d2a78aSEmmanuel Vadot
47*b2d2a78aSEmmanuel Vadot&i2c_sensors {
48*b2d2a78aSEmmanuel Vadot	/* GPIO pins vary depending on model variant */
49*b2d2a78aSEmmanuel Vadot};
50*b2d2a78aSEmmanuel Vadot
51*b2d2a78aSEmmanuel Vadot&touchscreen {
52*b2d2a78aSEmmanuel Vadot	vdd-supply = <&reg_vdd_tsp_a>;
53*b2d2a78aSEmmanuel Vadot};
54*b2d2a78aSEmmanuel Vadot
55*b2d2a78aSEmmanuel Vadot&tlmm {
56*b2d2a78aSEmmanuel Vadot	tsp_ldo_en_default: tsp-ldo-en-default-state {
57*b2d2a78aSEmmanuel Vadot		pins = "gpio16";
58*b2d2a78aSEmmanuel Vadot		function = "gpio";
59*b2d2a78aSEmmanuel Vadot		drive-strength = <2>;
60*b2d2a78aSEmmanuel Vadot		bias-disable;
61*b2d2a78aSEmmanuel Vadot	};
62*b2d2a78aSEmmanuel Vadot};
63