Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame^] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Bhushan Shah | b1100d8 | 2016-07-29 11:39:06 +0530 | [diff] [blame] | 2 | #include "qcom-msm8974.dtsi" |
| 3 | #include "qcom-pm8841.dtsi" |
| 4 | #include "qcom-pm8941.dtsi" |
Bhushan Shah | b806664 | 2016-07-29 11:39:09 +0530 | [diff] [blame] | 5 | #include <dt-bindings/gpio/gpio.h> |
Bhushan Shah | f7af7de | 2016-07-29 11:39:10 +0530 | [diff] [blame] | 6 | #include <dt-bindings/input/input.h> |
Bhushan Shah | b806664 | 2016-07-29 11:39:09 +0530 | [diff] [blame] | 7 | #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> |
Bhushan Shah | b1100d8 | 2016-07-29 11:39:06 +0530 | [diff] [blame] | 8 | |
| 9 | / { |
| 10 | model = "LGE MSM 8974 HAMMERHEAD"; |
| 11 | compatible = "lge,hammerhead", "qcom,msm8974"; |
| 12 | |
| 13 | aliases { |
| 14 | serial0 = &blsp1_uart1; |
| 15 | }; |
| 16 | |
| 17 | chosen { |
| 18 | stdout-path = "serial0:115200n8"; |
| 19 | }; |
Bhushan Shah | b806664 | 2016-07-29 11:39:09 +0530 | [diff] [blame] | 20 | |
| 21 | smd { |
| 22 | rpm { |
| 23 | rpm_requests { |
| 24 | pm8841-regulators { |
| 25 | s1 { |
| 26 | regulator-min-microvolt = <675000>; |
| 27 | regulator-max-microvolt = <1050000>; |
| 28 | }; |
| 29 | |
| 30 | s2 { |
| 31 | regulator-min-microvolt = <500000>; |
| 32 | regulator-max-microvolt = <1050000>; |
| 33 | }; |
| 34 | |
| 35 | s3 { |
| 36 | regulator-min-microvolt = <1050000>; |
| 37 | regulator-max-microvolt = <1050000>; |
| 38 | }; |
| 39 | |
| 40 | s4 { |
| 41 | regulator-min-microvolt = <815000>; |
| 42 | regulator-max-microvolt = <900000>; |
| 43 | }; |
| 44 | }; |
| 45 | |
| 46 | pm8941-regulators { |
| 47 | vdd_l1_l3-supply = <&pm8941_s1>; |
| 48 | vdd_l2_lvs1_2_3-supply = <&pm8941_s3>; |
| 49 | vdd_l4_l11-supply = <&pm8941_s1>; |
| 50 | vdd_l5_l7-supply = <&pm8941_s2>; |
| 51 | vdd_l6_l12_l14_l15-supply = <&pm8941_s2>; |
| 52 | vdd_l8_l16_l18_l19-supply = <&vreg_vph_pwr>; |
| 53 | vdd_l9_l10_l17_l22-supply = <&vreg_boost>; |
| 54 | vdd_l13_l20_l23_l24-supply = <&vreg_boost>; |
| 55 | vdd_l21-supply = <&vreg_boost>; |
| 56 | |
| 57 | s1 { |
| 58 | regulator-min-microvolt = <1300000>; |
| 59 | regulator-max-microvolt = <1300000>; |
| 60 | |
| 61 | regulator-always-on; |
| 62 | regulator-boot-on; |
| 63 | }; |
| 64 | |
| 65 | s2 { |
| 66 | regulator-min-microvolt = <2150000>; |
| 67 | regulator-max-microvolt = <2150000>; |
| 68 | |
| 69 | regulator-boot-on; |
| 70 | }; |
| 71 | |
| 72 | s3 { |
| 73 | regulator-min-microvolt = <1800000>; |
| 74 | regulator-max-microvolt = <1800000>; |
| 75 | |
| 76 | regulator-always-on; |
| 77 | regulator-boot-on; |
| 78 | }; |
| 79 | |
| 80 | l1 { |
| 81 | regulator-min-microvolt = <1225000>; |
| 82 | regulator-max-microvolt = <1225000>; |
| 83 | |
| 84 | regulator-always-on; |
| 85 | regulator-boot-on; |
| 86 | }; |
| 87 | |
| 88 | l2 { |
| 89 | regulator-min-microvolt = <1200000>; |
| 90 | regulator-max-microvolt = <1200000>; |
| 91 | }; |
| 92 | |
| 93 | l3 { |
| 94 | regulator-min-microvolt = <1225000>; |
| 95 | regulator-max-microvolt = <1225000>; |
| 96 | }; |
| 97 | |
| 98 | l4 { |
| 99 | regulator-min-microvolt = <1225000>; |
| 100 | regulator-max-microvolt = <1225000>; |
| 101 | }; |
| 102 | |
| 103 | l5 { |
| 104 | regulator-min-microvolt = <1800000>; |
| 105 | regulator-max-microvolt = <1800000>; |
| 106 | }; |
| 107 | |
| 108 | l6 { |
| 109 | regulator-min-microvolt = <1800000>; |
| 110 | regulator-max-microvolt = <1800000>; |
| 111 | |
| 112 | regulator-boot-on; |
| 113 | }; |
| 114 | |
| 115 | l7 { |
| 116 | regulator-min-microvolt = <1800000>; |
| 117 | regulator-max-microvolt = <1800000>; |
| 118 | |
| 119 | regulator-boot-on; |
| 120 | }; |
| 121 | |
| 122 | l8 { |
| 123 | regulator-min-microvolt = <1800000>; |
| 124 | regulator-max-microvolt = <1800000>; |
| 125 | }; |
| 126 | |
| 127 | l9 { |
| 128 | regulator-min-microvolt = <1800000>; |
| 129 | regulator-max-microvolt = <2950000>; |
| 130 | }; |
| 131 | |
| 132 | l10 { |
| 133 | regulator-min-microvolt = <1800000>; |
| 134 | regulator-max-microvolt = <2950000>; |
| 135 | }; |
| 136 | |
| 137 | l11 { |
| 138 | regulator-min-microvolt = <1300000>; |
| 139 | regulator-max-microvolt = <1300000>; |
| 140 | }; |
| 141 | |
| 142 | l12 { |
| 143 | regulator-min-microvolt = <1800000>; |
| 144 | regulator-max-microvolt = <1800000>; |
| 145 | |
| 146 | regulator-always-on; |
| 147 | regulator-boot-on; |
| 148 | }; |
| 149 | |
| 150 | l13 { |
| 151 | regulator-min-microvolt = <1800000>; |
| 152 | regulator-max-microvolt = <2950000>; |
| 153 | |
| 154 | regulator-boot-on; |
| 155 | }; |
| 156 | |
| 157 | l14 { |
| 158 | regulator-min-microvolt = <1800000>; |
| 159 | regulator-max-microvolt = <1800000>; |
| 160 | }; |
| 161 | |
| 162 | l15 { |
| 163 | regulator-min-microvolt = <2050000>; |
| 164 | regulator-max-microvolt = <2050000>; |
| 165 | }; |
| 166 | |
| 167 | l16 { |
| 168 | regulator-min-microvolt = <2700000>; |
| 169 | regulator-max-microvolt = <2700000>; |
| 170 | }; |
| 171 | |
| 172 | l17 { |
| 173 | regulator-min-microvolt = <2850000>; |
| 174 | regulator-max-microvolt = <2850000>; |
| 175 | }; |
| 176 | |
| 177 | l18 { |
| 178 | regulator-min-microvolt = <2850000>; |
| 179 | regulator-max-microvolt = <2850000>; |
| 180 | }; |
| 181 | |
| 182 | l19 { |
| 183 | regulator-min-microvolt = <3000000>; |
| 184 | regulator-max-microvolt = <3300000>; |
| 185 | }; |
| 186 | |
| 187 | l20 { |
| 188 | regulator-min-microvolt = <2950000>; |
| 189 | regulator-max-microvolt = <2950000>; |
| 190 | |
| 191 | regulator-boot-on; |
| 192 | }; |
| 193 | |
| 194 | l21 { |
| 195 | regulator-min-microvolt = <2950000>; |
| 196 | regulator-max-microvolt = <2950000>; |
| 197 | |
| 198 | regulator-boot-on; |
| 199 | }; |
| 200 | |
| 201 | l22 { |
| 202 | regulator-min-microvolt = <3000000>; |
| 203 | regulator-max-microvolt = <3300000>; |
| 204 | }; |
| 205 | |
| 206 | l23 { |
| 207 | regulator-min-microvolt = <3000000>; |
| 208 | regulator-max-microvolt = <3000000>; |
| 209 | }; |
| 210 | |
| 211 | l24 { |
| 212 | regulator-min-microvolt = <3075000>; |
| 213 | regulator-max-microvolt = <3075000>; |
| 214 | |
| 215 | regulator-boot-on; |
| 216 | }; |
| 217 | }; |
| 218 | }; |
| 219 | }; |
| 220 | }; |
Bhushan Shah | b1100d8 | 2016-07-29 11:39:06 +0530 | [diff] [blame] | 221 | }; |
| 222 | |
| 223 | &soc { |
| 224 | serial@f991d000 { |
| 225 | status = "ok"; |
| 226 | }; |
| 227 | |
Bhushan Shah | a511e97 | 2016-07-20 11:56:10 +0530 | [diff] [blame] | 228 | pinctrl@fd510000 { |
| 229 | sdhc1_pin_a: sdhc1-pin-active { |
| 230 | clk { |
| 231 | pins = "sdc1_clk"; |
| 232 | drive-strength = <16>; |
| 233 | bias-disable; |
| 234 | }; |
| 235 | |
| 236 | cmd-data { |
| 237 | pins = "sdc1_cmd", "sdc1_data"; |
| 238 | drive-strength = <10>; |
| 239 | bias-pull-up; |
| 240 | }; |
| 241 | }; |
| 242 | }; |
| 243 | |
| 244 | sdhci@f9824900 { |
| 245 | status = "ok"; |
| 246 | |
| 247 | vmmc-supply = <&pm8941_l20>; |
| 248 | vqmmc-supply = <&pm8941_s3>; |
| 249 | |
| 250 | bus-width = <8>; |
| 251 | non-removable; |
| 252 | |
| 253 | pinctrl-names = "default"; |
| 254 | pinctrl-0 = <&sdhc1_pin_a>; |
| 255 | }; |
| 256 | |
Bhushan Shah | f7af7de | 2016-07-29 11:39:10 +0530 | [diff] [blame] | 257 | gpio-keys { |
| 258 | compatible = "gpio-keys"; |
| 259 | input-name = "gpio-keys"; |
| 260 | |
| 261 | pinctrl-names = "default"; |
| 262 | pinctrl-0 = <&gpio_keys_pin_a>; |
| 263 | |
| 264 | volume-up { |
| 265 | label = "volume_up"; |
| 266 | gpios = <&pm8941_gpios 2 GPIO_ACTIVE_LOW>; |
| 267 | linux,input-type = <1>; |
| 268 | linux,code = <KEY_VOLUMEUP>; |
| 269 | }; |
| 270 | |
| 271 | volume-down { |
| 272 | label = "volume_down"; |
| 273 | gpios = <&pm8941_gpios 3 GPIO_ACTIVE_LOW>; |
| 274 | linux,input-type = <1>; |
| 275 | linux,code = <KEY_VOLUMEDOWN>; |
| 276 | }; |
| 277 | }; |
| 278 | }; |
| 279 | |
| 280 | &spmi_bus { |
| 281 | pm8941@0 { |
| 282 | gpios@c000 { |
| 283 | gpio_keys_pin_a: gpio-keys-active { |
| 284 | pins = "gpio2", "gpio3"; |
| 285 | function = "normal"; |
| 286 | |
| 287 | bias-pull-up; |
| 288 | power-source = <PM8941_GPIO_S3>; |
| 289 | }; |
| 290 | }; |
| 291 | }; |
Bhushan Shah | b1100d8 | 2016-07-29 11:39:06 +0530 | [diff] [blame] | 292 | }; |