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