Amir Samuelov | f3f4258 | 2012-09-06 14:34:09 +0300 | [diff] [blame] | 1 | /* Copyright (c) 2012, 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 | |
| 15 | /include/ "msm8974.dtsi" |
| 16 | |
| 17 | / { |
| 18 | model = "Qualcomm MSM 8974 LIQUID"; |
| 19 | compatible = "qcom,msm8974-liquid", "qcom,msm8974"; |
| 20 | qcom,msm-id = <126 9 0>; |
| 21 | |
| 22 | serial@f991e000 { |
| 23 | status = "ok"; |
| 24 | }; |
| 25 | }; |
| 26 | |
Michael Bohan | d5ea724 | 2012-10-01 18:01:51 -0700 | [diff] [blame^] | 27 | &pm8941_gpios { |
| 28 | gpio@c000 { /* GPIO 1 */ |
| 29 | }; |
Amir Samuelov | f3f4258 | 2012-09-06 14:34:09 +0300 | [diff] [blame] | 30 | |
Michael Bohan | d5ea724 | 2012-10-01 18:01:51 -0700 | [diff] [blame^] | 31 | gpio@c100 { /* GPIO 2 */ |
| 32 | }; |
| 33 | |
| 34 | gpio@c200 { /* GPIO 3 */ |
| 35 | qcom,mode = <0>; |
| 36 | qcom,pull = <0>; |
| 37 | qcom,vin-sel = <2>; |
| 38 | qcom,select = <0>; |
| 39 | }; |
| 40 | |
| 41 | gpio@c300 { /* GPIO 4 */ |
| 42 | qcom,mode = <0>; |
| 43 | qcom,pull = <0>; |
| 44 | qcom,vin-sel = <2>; |
| 45 | qcom,select = <0>; |
| 46 | }; |
| 47 | |
| 48 | gpio@c400 { /* GPIO 5 */ |
| 49 | qcom,mode = <0>; |
| 50 | qcom,pull = <0>; |
| 51 | qcom,vin-sel = <2>; |
| 52 | qcom,select = <0>; |
| 53 | }; |
| 54 | |
| 55 | gpio@c500 { /* GPIO 6 */ |
| 56 | }; |
| 57 | |
| 58 | gpio@c600 { /* GPIO 7 */ |
| 59 | }; |
| 60 | |
| 61 | gpio@c700 { /* GPIO 8 */ |
| 62 | }; |
| 63 | |
| 64 | gpio@c800 { /* GPIO 9 */ |
| 65 | }; |
| 66 | |
| 67 | gpio@c900 { /* GPIO 10 */ |
| 68 | }; |
| 69 | |
| 70 | gpio@ca00 { /* GPIO 11 */ |
| 71 | }; |
| 72 | |
| 73 | gpio@cb00 { /* GPIO 12 */ |
| 74 | }; |
| 75 | |
| 76 | gpio@cc00 { /* GPIO 13 */ |
| 77 | }; |
| 78 | |
| 79 | gpio@cd00 { /* GPIO 14 */ |
| 80 | }; |
| 81 | |
| 82 | gpio@ce00 { /* GPIO 15 */ |
| 83 | qcom,mode = <1>; |
| 84 | qcom,output-type = <0>; |
| 85 | qcom,pull = <5>; |
| 86 | qcom,vin-sel = <2>; |
| 87 | qcom,out-strength = <3>; |
| 88 | qcom,src-select = <2>; |
| 89 | qcom,master-en = <1>; |
| 90 | }; |
| 91 | |
| 92 | gpio@cf00 { /* GPIO 16 */ |
| 93 | }; |
| 94 | |
| 95 | gpio@d000 { /* GPIO 17 */ |
| 96 | }; |
| 97 | |
| 98 | gpio@d100 { /* GPIO 18 */ |
| 99 | }; |
| 100 | |
| 101 | gpio@d200 { /* GPIO 19 */ |
| 102 | qcom,mode = <1>; /* QPNP_PIN_MODE_DIG_OUT */ |
| 103 | qcom,output-type = <0>; /* QPNP_PIN_OUT_BUF_CMOS */ |
| 104 | qcom,pull = <5>; /* QPNP_PIN_PULL_NO */ |
| 105 | qcom,vin-sel = <2>; /* QPNP_PIN_VIN2 */ |
| 106 | qcom,out-strength = <2>; /* QPNP_PIN_OUT_STRENGTH_MED */ |
| 107 | qcom,src-select = <0>; /* QPNP_PIN_SEL_FUNC_CONSTANT */ |
| 108 | qcom,master-en = <1>; |
| 109 | }; |
| 110 | |
| 111 | gpio@d300 { /* GPIO 20 */ |
| 112 | }; |
| 113 | |
| 114 | gpio@d400 { /* GPIO 21 */ |
| 115 | }; |
| 116 | |
| 117 | gpio@d500 { /* GPIO 22 */ |
| 118 | }; |
| 119 | |
| 120 | gpio@d600 { /* GPIO 23 */ |
| 121 | }; |
| 122 | |
| 123 | gpio@d700 { /* GPIO 24 */ |
| 124 | }; |
| 125 | |
| 126 | gpio@d800 { /* GPIO 25 */ |
| 127 | }; |
| 128 | |
| 129 | gpio@d900 { /* GPIO 26 */ |
| 130 | }; |
| 131 | |
| 132 | gpio@da00 { /* GPIO 27 */ |
| 133 | }; |
| 134 | |
| 135 | gpio@db00 { /* GPIO 28 */ |
| 136 | }; |
| 137 | |
| 138 | gpio@dc00 { /* GPIO 29 */ |
| 139 | qcom,pull = <0>; /* set to default pull */ |
| 140 | qcom,master-en = <1>; |
| 141 | qcom,vin-sel = <2>; /* select 1.8 V source */ |
| 142 | }; |
| 143 | |
| 144 | gpio@dd00 { /* GPIO 30 */ |
| 145 | }; |
| 146 | |
| 147 | gpio@de00 { /* GPIO 31 */ |
| 148 | }; |
| 149 | |
| 150 | gpio@df00 { /* GPIO 32 */ |
| 151 | }; |
| 152 | |
| 153 | gpio@e000 { /* GPIO 33 */ |
| 154 | }; |
| 155 | |
| 156 | gpio@e100 { /* GPIO 34 */ |
| 157 | }; |
| 158 | |
| 159 | gpio@e200 { /* GPIO 35 */ |
| 160 | }; |
| 161 | |
| 162 | gpio@e300 { /* GPIO 36 */ |
| 163 | }; |
| 164 | }; |
| 165 | |
| 166 | &pm8941_mpps { |
| 167 | |
| 168 | mpp@a000 { /* MPP 1 */ |
| 169 | }; |
| 170 | |
| 171 | mpp@a100 { /* MPP 2 */ |
| 172 | }; |
| 173 | |
| 174 | mpp@a200 { /* MPP 3 */ |
| 175 | }; |
| 176 | |
| 177 | mpp@a300 { /* MPP 4 */ |
| 178 | }; |
| 179 | |
| 180 | mpp@a400 { /* MPP 5 */ |
| 181 | /* SPI_ETH config */ |
| 182 | qcom,mode = <1>; /* DIG_OUT */ |
| 183 | qcom,output-type = <0>; /* CMOS */ |
| 184 | qcom,vin-sel = <2>; /* PM8941_S3 1.8V > 1.6V */ |
| 185 | qcom,src-select = <0>; /* CONSTANT */ |
| 186 | qcom,master-en = <1>; /* ENABLE MPP */ |
| 187 | }; |
| 188 | |
| 189 | mpp@a500 { /* MPP 6 */ |
| 190 | /* SPI_ETH_RST config */ |
| 191 | qcom,mode = <1>; /* DIG_OUT */ |
| 192 | qcom,output-type = <0>; /* CMOS */ |
| 193 | qcom,vin-sel = <2>; /* PM8941_S3 1.8V > 1.6V */ |
| 194 | qcom,src-select = <0>; /* CONSTANT */ |
| 195 | qcom,master-en = <1>; /* ENABLE MPP */ |
| 196 | }; |
| 197 | |
| 198 | mpp@a600 { /* MPP 7 */ |
| 199 | }; |
| 200 | |
| 201 | mpp@a700 { /* MPP 8 */ |
| 202 | }; |
| 203 | }; |
| 204 | |
| 205 | &pm8841_mpps { |
| 206 | |
| 207 | mpp@a000 { /* MPP 1 */ |
| 208 | }; |
| 209 | |
| 210 | mpp@a100 { /* MPP 2 */ |
| 211 | }; |
| 212 | |
| 213 | mpp@a200 { /* MPP 3 */ |
| 214 | }; |
| 215 | |
| 216 | mpp@a300 { /* MPP 4 */ |
| 217 | }; |
| 218 | }; |