Maria Yu | c82b7bc | 2013-05-21 17:49:31 +0800 | [diff] [blame] | 1 | /* Copyright (c) 2013, The Linux Foundation. All rights reserved. |
| 2 | * |
| 3 | * This program is free software; you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License version 2 and |
| 5 | * only version 2 as published by the Free Software Foundation. |
| 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | */ |
| 12 | |
| 13 | /dts-v1/; |
| 14 | /include/ "msm8226-v2.dtsi" |
| 15 | /include/ "msm8226-qrd.dtsi" |
Ray Zhang | 6e8dcef | 2013-06-09 17:50:26 +0800 | [diff] [blame] | 16 | /include/ "dsi-panel-nt35521-720p-video.dtsi" |
Maria Yu | c82b7bc | 2013-05-21 17:49:31 +0800 | [diff] [blame] | 17 | |
| 18 | / { |
| 19 | model = "Qualcomm MSM 8226v2 QRD"; |
| 20 | compatible = "qcom,msm8226-qrd", "qcom,msm8226", "qcom,qrd"; |
| 21 | qcom,board-id = <0xb 0x2>; |
| 22 | qcom,msm-id = <145 0x20000>, |
| 23 | <158 0x20000>, |
| 24 | <159 0x20000>, |
| 25 | <198 0x20000>, |
| 26 | <205 0x20000>; |
| 27 | }; |
| 28 | |
Ray Zhang | f25afa3 | 2013-06-20 14:58:19 +0800 | [diff] [blame] | 29 | &soc { |
Ray Zhang | 6e8dcef | 2013-06-09 17:50:26 +0800 | [diff] [blame] | 30 | qcom,mdss_dsi_nt35521_720p_video { |
Ray Zhang | f25afa3 | 2013-06-20 14:58:19 +0800 | [diff] [blame] | 31 | status = "ok"; |
Ray Zhang | 6e8dcef | 2013-06-09 17:50:26 +0800 | [diff] [blame] | 32 | qcom,cont-splash-enabled; |
Ray Zhang | f25afa3 | 2013-06-20 14:58:19 +0800 | [diff] [blame] | 33 | }; |
mengw | 9756f3a | 2013-06-20 16:10:05 +0800 | [diff] [blame] | 34 | |
| 35 | sound { |
| 36 | qcom,model = "msm8226-tapan-skuf-snd-card"; |
| 37 | |
| 38 | qcom,audio-routing = |
| 39 | "RX_BIAS", "MCLK", |
| 40 | "LDO_H", "MCLK", |
| 41 | "SPK_OUT", "MCLK", |
| 42 | "SPK_OUT", "EXT_VDD_SPKR", |
| 43 | "Lineout_1 amp", "LINEOUT1", |
| 44 | "Lineout_2 amp", "LINEOUT2", |
| 45 | "AMIC1", "MIC BIAS1 External", |
| 46 | "MIC BIAS1 External", "Handset Mic", |
| 47 | "AMIC2", "MIC BIAS2 External", |
| 48 | "MIC BIAS2 External", "Headset Mic", |
| 49 | "AMIC3", "MIC BIAS1 External", |
| 50 | "MIC BIAS1 External", "ANCRight Headset Mic", |
| 51 | "AMIC4", "MIC BIAS2 External", |
| 52 | "MIC BIAS2 External", "ANCLeft Headset Mic"; |
| 53 | |
| 54 | qcom,cdc-mclk-gpios = <&pm8226_gpios 1 0>; |
| 55 | qcom,cdc-lineout-spkr-gpios = <&pm8226_gpios 2 0>; |
| 56 | qcom,cdc-vdd-spkr-gpios; |
| 57 | qcom,cdc-us-euro-gpios; |
| 58 | }; |
Bingzhe Cai | 560dec0 | 2013-08-01 17:21:12 +0800 | [diff] [blame] | 59 | |
| 60 | tp_power: regulator-tp { |
| 61 | compatible = "regulator-fixed"; |
| 62 | regulator-name = "tp_power"; |
| 63 | regulator-min-microvolt = <2800000>; |
| 64 | regulator-max-microvolt = <2800000>; |
| 65 | gpio = <&msmgpio 15 0>; |
| 66 | startup-delay-us = <20000>; |
| 67 | enable-active-high; |
| 68 | }; |
| 69 | |
| 70 | i2c@f9927000 { |
| 71 | goodix@5d { |
| 72 | compatible = "goodix,gt9xx"; |
| 73 | reg = <0x5d>; |
| 74 | interrupt-parent = <&msmgpio>; |
| 75 | interrupts = <17 0x2008>; |
| 76 | reset-gpios = <&msmgpio 16 0x00>; |
| 77 | interrupt-gpios = <&msmgpio 17 0x00>; |
| 78 | avdd-supply = <&tp_power>; |
| 79 | goodix,panel-coords = <0 0 720 1200>; |
| 80 | goodix,display-coords = <0 0 720 1080>; |
| 81 | goodix,button-map= <158 102 139>; |
| 82 | goodix,family-id = <0x0>; |
| 83 | goodix,cfg-data = [ |
Bingzhe Cai | 5842b67 | 2013-08-08 21:22:42 +0800 | [diff] [blame] | 84 | 41 D0 02 00 05 0A 35 01 01 0F |
| 85 | 2D 08 55 32 03 04 00 00 00 00 |
| 86 | 00 00 05 0A 0C 0F 0A 8C 0E 0E |
| 87 | 30 2E B8 08 00 00 00 83 03 1D |
| 88 | 00 00 00 00 00 00 00 00 00 00 |
| 89 | 00 2D 62 94 C5 02 05 00 00 04 |
| 90 | 96 30 00 80 39 00 71 42 00 63 |
| 91 | 4D 00 56 5A 00 56 10 38 68 00 |
| 92 | 56 50 35 AA AA 27 00 00 00 00 |
Bingzhe Cai | 560dec0 | 2013-08-01 17:21:12 +0800 | [diff] [blame] | 93 | 00 01 1B 14 0C 14 00 00 01 00 |
| 94 | 00 00 00 00 00 00 00 00 00 00 |
| 95 | 00 00 02 04 06 08 0A 0C 0E 10 |
| 96 | 12 14 16 18 1A 1C FF FF FF FF |
| 97 | FF FF FF FF FF FF FF FF FF FF |
| 98 | FF FF 00 02 04 06 08 0A 0C 0F |
| 99 | 10 12 13 14 16 18 1C 1D 1E 1F |
| 100 | 20 21 22 24 26 28 29 2A FF FF |
Bingzhe Cai | 5842b67 | 2013-08-08 21:22:42 +0800 | [diff] [blame] | 101 | FF FF FF FF FF FF FF FF FF FF |
| 102 | FF FF FF FF 06 01]; |
Bingzhe Cai | 560dec0 | 2013-08-01 17:21:12 +0800 | [diff] [blame] | 103 | }; |
| 104 | }; |
Ray Zhang | f25afa3 | 2013-06-20 14:58:19 +0800 | [diff] [blame] | 105 | }; |
Jie Cheng | 5ef10f9 | 2013-07-12 16:47:11 +0800 | [diff] [blame] | 106 | |
| 107 | &spmi_bus { |
| 108 | qcom,pm8226@0 { |
| 109 | qcom,leds@a300 { |
| 110 | status = "disabled"; |
| 111 | }; |
| 112 | |
| 113 | qcom,leds@a500 { |
| 114 | status = "disabled"; |
| 115 | }; |
| 116 | }; |
| 117 | }; |
| 118 | |
| 119 | &pm8226_mpps { |
| 120 | mpp@a300 { /* MPP 4 */ |
| 121 | /* camera2_id */ |
| 122 | qcom,mode = <4>; /* AIN input */ |
| 123 | qcom,invert = <1>; /* Enable MPP */ |
| 124 | qcom,ain-route = <3>; /* AMUX 8 */ |
| 125 | qcom,master-en = <1>; |
| 126 | qcom,src-sel = <0>; /* Function constant */ |
| 127 | }; |
| 128 | |
| 129 | mpp@a500 { /* MPP 6 */ |
| 130 | /* camera_id */ |
| 131 | qcom,mode = <4>; /* AIN input */ |
| 132 | qcom,invert = <1>; /* Enable MPP */ |
| 133 | qcom,ain-route = <1>; /* AMUX 6 */ |
| 134 | qcom,master-en = <1>; |
| 135 | qcom,src-sel = <0>; /* Function constant */ |
| 136 | }; |
| 137 | |
| 138 | }; |
| 139 | |
| 140 | &pm8226_vadc { |
| 141 | chan@13 { |
| 142 | label = "camera2_id"; |
| 143 | reg = <0x13>; |
| 144 | qcom,decimation = <0>; |
| 145 | qcom,pre-div-channel-scaling = <0>; |
| 146 | qcom,calibration-type = "absolute"; |
| 147 | qcom,scale-function = <0>; |
| 148 | qcom,hw-settle-time = <0>; |
| 149 | qcom,fast-avg-setup = <0>; |
| 150 | }; |
| 151 | |
| 152 | chan@15 { |
| 153 | label = "camera_id"; |
| 154 | reg = <0x15>; |
| 155 | qcom,decimation = <0>; |
| 156 | qcom,pre-div-channel-scaling = <0>; |
| 157 | qcom,calibration-type = "absolute"; |
| 158 | qcom,scale-function = <0>; |
| 159 | qcom,hw-settle-time = <0>; |
| 160 | qcom,fast-avg-setup = <0>; |
| 161 | }; |
| 162 | }; |
Xu Kai | ab48148 | 2013-08-15 15:34:24 +0800 | [diff] [blame] | 163 | |
Xu Kai | cbd255a | 2013-07-31 14:00:25 +0800 | [diff] [blame] | 164 | &pm8226_bms { |
| 165 | qcom,use-external-rsense; |
| 166 | }; |
| 167 | |
Xu Kai | ab48148 | 2013-08-15 15:34:24 +0800 | [diff] [blame] | 168 | &pm8226_iadc { |
| 169 | qcom,rsense = <10000000>; |
| 170 | }; |