xref: /freebsd/sys/contrib/device-tree/src/arm64/qcom/msm8916-motorola-surnia.dts (revision 0e8011faf58b743cc652e3b2ad0f7671227610df)
1*0e8011faSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-only
2*0e8011faSEmmanuel Vadot
3*0e8011faSEmmanuel Vadot/dts-v1/;
4*0e8011faSEmmanuel Vadot
5*0e8011faSEmmanuel Vadot#include "msm8916-motorola-common.dtsi"
6*0e8011faSEmmanuel Vadot
7*0e8011faSEmmanuel Vadot/ {
8*0e8011faSEmmanuel Vadot	model = "Motorola Moto E 2015 LTE";
9*0e8011faSEmmanuel Vadot	compatible = "motorola,surnia", "qcom,msm8916";
10*0e8011faSEmmanuel Vadot	chassis-type = "handset";
11*0e8011faSEmmanuel Vadot};
12*0e8011faSEmmanuel Vadot
13*0e8011faSEmmanuel Vadot&blsp_i2c4 {
14*0e8011faSEmmanuel Vadot	status = "okay";
15*0e8011faSEmmanuel Vadot
16*0e8011faSEmmanuel Vadot	battery@36 {
17*0e8011faSEmmanuel Vadot		compatible = "maxim,max17050";
18*0e8011faSEmmanuel Vadot		reg = <0x36>;
19*0e8011faSEmmanuel Vadot
20*0e8011faSEmmanuel Vadot		interrupts-extended = <&tlmm 12 IRQ_TYPE_EDGE_FALLING>;
21*0e8011faSEmmanuel Vadot
22*0e8011faSEmmanuel Vadot		pinctrl-0 = <&battery_alert_default>;
23*0e8011faSEmmanuel Vadot		pinctrl-names = "default";
24*0e8011faSEmmanuel Vadot
25*0e8011faSEmmanuel Vadot		maxim,rsns-microohm = <10000>;
26*0e8011faSEmmanuel Vadot		maxim,over-heat-temp = <600>;
27*0e8011faSEmmanuel Vadot		maxim,cold-temp = <(-200)>;
28*0e8011faSEmmanuel Vadot		maxim,dead-volt = <3200>;
29*0e8011faSEmmanuel Vadot		maxim,over-volt = <4500>;
30*0e8011faSEmmanuel Vadot
31*0e8011faSEmmanuel Vadot	};
32*0e8011faSEmmanuel Vadot};
33*0e8011faSEmmanuel Vadot
34*0e8011faSEmmanuel Vadot&pm8916_codec {
35*0e8011faSEmmanuel Vadot	qcom,micbias1-ext-cap;
36*0e8011faSEmmanuel Vadot	qcom,micbias2-ext-cap;
37*0e8011faSEmmanuel Vadot};
38*0e8011faSEmmanuel Vadot
39*0e8011faSEmmanuel Vadot&sdhc_2 {
40*0e8011faSEmmanuel Vadot	pinctrl-0 = <&sdc2_default &sdc2_cd_default>;
41*0e8011faSEmmanuel Vadot	pinctrl-1 = <&sdc2_sleep &sdc2_cd_default>;
42*0e8011faSEmmanuel Vadot	pinctrl-names = "default", "sleep";
43*0e8011faSEmmanuel Vadot
44*0e8011faSEmmanuel Vadot	cd-gpios = <&tlmm 25 GPIO_ACTIVE_LOW>;
45*0e8011faSEmmanuel Vadot};
46*0e8011faSEmmanuel Vadot
47*0e8011faSEmmanuel Vadot&sound {
48*0e8011faSEmmanuel Vadot	audio-routing =
49*0e8011faSEmmanuel Vadot		"AMIC1", "MIC BIAS External1",
50*0e8011faSEmmanuel Vadot		"AMIC3", "MIC BIAS External1";
51*0e8011faSEmmanuel Vadot};
52*0e8011faSEmmanuel Vadot
53*0e8011faSEmmanuel Vadot&touchscreen {
54*0e8011faSEmmanuel Vadot	interrupts-extended = <&tlmm 21 IRQ_TYPE_EDGE_FALLING>;
55*0e8011faSEmmanuel Vadot
56*0e8011faSEmmanuel Vadot	vdd-supply = <&pm8916_l16>;
57*0e8011faSEmmanuel Vadot
58*0e8011faSEmmanuel Vadot	pinctrl-0 = <&ts_int_default>;
59*0e8011faSEmmanuel Vadot	pinctrl-names = "default";
60*0e8011faSEmmanuel Vadot};
61*0e8011faSEmmanuel Vadot
62*0e8011faSEmmanuel Vadot&tlmm {
63*0e8011faSEmmanuel Vadot	battery_alert_default: battery-alert-default-state {
64*0e8011faSEmmanuel Vadot		pins = "gpio12";
65*0e8011faSEmmanuel Vadot		function = "gpio";
66*0e8011faSEmmanuel Vadot		drive-strength = <2>;
67*0e8011faSEmmanuel Vadot		bias-pull-up;
68*0e8011faSEmmanuel Vadot	};
69*0e8011faSEmmanuel Vadot
70*0e8011faSEmmanuel Vadot	sdc2_cd_default: sdc2-cd-default-state {
71*0e8011faSEmmanuel Vadot		pins = "gpio25";
72*0e8011faSEmmanuel Vadot		function = "gpio";
73*0e8011faSEmmanuel Vadot		drive-strength = <2>;
74*0e8011faSEmmanuel Vadot		bias-disable;
75*0e8011faSEmmanuel Vadot	};
76*0e8011faSEmmanuel Vadot
77*0e8011faSEmmanuel Vadot	ts_int_default: ts-int-default-state {
78*0e8011faSEmmanuel Vadot		pins = "gpio21";
79*0e8011faSEmmanuel Vadot		function = "gpio";
80*0e8011faSEmmanuel Vadot		drive-strength = <2>;
81*0e8011faSEmmanuel Vadot		bias-disable;
82*0e8011faSEmmanuel Vadot	};
83*0e8011faSEmmanuel Vadot};
84