xref: /freebsd/sys/contrib/device-tree/src/arm64/qcom/msm8916-motorola-osprey.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 G 2015";
9*0e8011faSEmmanuel Vadot	compatible = "motorola,osprey", "qcom,msm8916";
10*0e8011faSEmmanuel Vadot	chassis-type = "handset";
11*0e8011faSEmmanuel Vadot
12*0e8011faSEmmanuel Vadot	reg_touch_vdda: regulator-touch-vdda {
13*0e8011faSEmmanuel Vadot		compatible = "regulator-fixed";
14*0e8011faSEmmanuel Vadot		regulator-name = "touch_vdda";
15*0e8011faSEmmanuel Vadot		gpio = <&tlmm 114 GPIO_ACTIVE_HIGH>;
16*0e8011faSEmmanuel Vadot		enable-active-high;
17*0e8011faSEmmanuel Vadot		pinctrl-0 = <&touch_vdda_default>;
18*0e8011faSEmmanuel Vadot		pinctrl-names = "default";
19*0e8011faSEmmanuel Vadot		startup-delay-us = <300>;
20*0e8011faSEmmanuel Vadot		vin-supply = <&pm8916_l16>;
21*0e8011faSEmmanuel Vadot	};
22*0e8011faSEmmanuel Vadot};
23*0e8011faSEmmanuel Vadot
24*0e8011faSEmmanuel Vadot&blsp_i2c1 {
25*0e8011faSEmmanuel Vadot	status = "okay";
26*0e8011faSEmmanuel Vadot
27*0e8011faSEmmanuel Vadot	battery@36 {
28*0e8011faSEmmanuel Vadot		compatible = "maxim,max17050";
29*0e8011faSEmmanuel Vadot		reg = <0x36>;
30*0e8011faSEmmanuel Vadot
31*0e8011faSEmmanuel Vadot		interrupts-extended = <&tlmm 49 IRQ_TYPE_EDGE_FALLING>;
32*0e8011faSEmmanuel Vadot
33*0e8011faSEmmanuel Vadot		pinctrl-0 = <&battery_alert_default>;
34*0e8011faSEmmanuel Vadot		pinctrl-names = "default";
35*0e8011faSEmmanuel Vadot
36*0e8011faSEmmanuel Vadot		maxim,rsns-microohm = <10000>;
37*0e8011faSEmmanuel Vadot		maxim,over-heat-temp = <600>;
38*0e8011faSEmmanuel Vadot		maxim,cold-temp = <(-200)>;
39*0e8011faSEmmanuel Vadot		maxim,dead-volt = <3200>;
40*0e8011faSEmmanuel Vadot		maxim,over-volt = <4500>;
41*0e8011faSEmmanuel Vadot
42*0e8011faSEmmanuel Vadot	};
43*0e8011faSEmmanuel Vadot};
44*0e8011faSEmmanuel Vadot
45*0e8011faSEmmanuel Vadot&blsp_i2c6 {
46*0e8011faSEmmanuel Vadot	/* magnetometer@c */
47*0e8011faSEmmanuel Vadot};
48*0e8011faSEmmanuel Vadot
49*0e8011faSEmmanuel Vadot&pm8916_codec {
50*0e8011faSEmmanuel Vadot	qcom,micbias1-ext-cap;
51*0e8011faSEmmanuel Vadot	qcom,micbias2-ext-cap;
52*0e8011faSEmmanuel Vadot};
53*0e8011faSEmmanuel Vadot
54*0e8011faSEmmanuel Vadot&sdhc_2 {
55*0e8011faSEmmanuel Vadot	pinctrl-0 = <&sdc2_default &sdc2_cd_default>;
56*0e8011faSEmmanuel Vadot	pinctrl-1 = <&sdc2_sleep &sdc2_cd_default>;
57*0e8011faSEmmanuel Vadot	pinctrl-names = "default", "sleep";
58*0e8011faSEmmanuel Vadot
59*0e8011faSEmmanuel Vadot	cd-gpios = <&tlmm 25 GPIO_ACTIVE_LOW>;
60*0e8011faSEmmanuel Vadot};
61*0e8011faSEmmanuel Vadot
62*0e8011faSEmmanuel Vadot&sound {
63*0e8011faSEmmanuel Vadot	audio-routing =
64*0e8011faSEmmanuel Vadot		"AMIC1", "MIC BIAS External1",
65*0e8011faSEmmanuel Vadot		"AMIC3", "MIC BIAS External1";
66*0e8011faSEmmanuel Vadot};
67*0e8011faSEmmanuel Vadot
68*0e8011faSEmmanuel Vadot&touchscreen {
69*0e8011faSEmmanuel Vadot	interrupts-extended = <&tlmm 21 IRQ_TYPE_EDGE_FALLING>;
70*0e8011faSEmmanuel Vadot
71*0e8011faSEmmanuel Vadot	vdd-supply = <&reg_touch_vdda>;
72*0e8011faSEmmanuel Vadot
73*0e8011faSEmmanuel Vadot	pinctrl-0 = <&ts_int_default>;
74*0e8011faSEmmanuel Vadot	pinctrl-names = "default";
75*0e8011faSEmmanuel Vadot};
76*0e8011faSEmmanuel Vadot
77*0e8011faSEmmanuel Vadot&tlmm {
78*0e8011faSEmmanuel Vadot	battery_alert_default: battery-alert-default-state {
79*0e8011faSEmmanuel Vadot		pins = "gpio49";
80*0e8011faSEmmanuel Vadot		function = "gpio";
81*0e8011faSEmmanuel Vadot		drive-strength = <2>;
82*0e8011faSEmmanuel Vadot		bias-pull-up;
83*0e8011faSEmmanuel Vadot	};
84*0e8011faSEmmanuel Vadot
85*0e8011faSEmmanuel Vadot	sdc2_cd_default: sdc2-cd-default-state {
86*0e8011faSEmmanuel Vadot		pins = "gpio25";
87*0e8011faSEmmanuel Vadot		function = "gpio";
88*0e8011faSEmmanuel Vadot		drive-strength = <2>;
89*0e8011faSEmmanuel Vadot		bias-disable;
90*0e8011faSEmmanuel Vadot	};
91*0e8011faSEmmanuel Vadot
92*0e8011faSEmmanuel Vadot	ts_int_default: ts-int-default-state {
93*0e8011faSEmmanuel Vadot		pins = "gpio21";
94*0e8011faSEmmanuel Vadot		function = "gpio";
95*0e8011faSEmmanuel Vadot		drive-strength = <2>;
96*0e8011faSEmmanuel Vadot		bias-disable;
97*0e8011faSEmmanuel Vadot	};
98*0e8011faSEmmanuel Vadot
99*0e8011faSEmmanuel Vadot	touch_vdda_default: touch-vdda-default-state {
100*0e8011faSEmmanuel Vadot		pins = "gpio114";
101*0e8011faSEmmanuel Vadot		function = "gpio";
102*0e8011faSEmmanuel Vadot		drive-strength = <2>;
103*0e8011faSEmmanuel Vadot		bias-disable;
104*0e8011faSEmmanuel Vadot	};
105*0e8011faSEmmanuel Vadot};
106