1// SPDX-License-Identifier: GPL-2.0 2#include <dt-bindings/input/input.h> 3 4#include "qcom-msm8960.dtsi" 5#include <dt-bindings/reset/qcom,gcc-msm8960.h> 6 7/ { 8 model = "Samsung Galaxy Express SGH-I437"; 9 compatible = "samsung,expressatt", "qcom,msm8960"; 10 chassis-type = "handset"; 11 12 aliases { 13 serial0 = &gsbi5_serial; 14 mmc0 = &sdcc1; /* SDCC1 eMMC slot */ 15 mmc1 = &sdcc3; /* SDCC3 SD card slot */ 16 }; 17 18 chosen { 19 stdout-path = "serial0:115200n8"; 20 }; 21}; 22 23&gsbi5 { 24 qcom,mode = <GSBI_PROT_I2C_UART>; 25 status = "okay"; 26}; 27 28&gsbi5_serial { 29 status = "okay"; 30}; 31 32&sdcc1 { 33 vmmc-supply = <&pm8921_l5>; 34 status = "okay"; 35}; 36 37&sdcc3 { 38 vmmc-supply = <&pm8921_l6>; 39 vqmmc-supply = <&pm8921_l7>; 40 status = "okay"; 41}; 42 43&gsbi1 { 44 qcom,mode = <GSBI_PROT_SPI>; 45 pinctrl-0 = <&spi1_default>; 46 pinctrl-names = "default"; 47 status = "okay"; 48}; 49 50&gsbi1_spi { 51 status = "okay"; 52}; 53 54&msmgpio { 55 spi1_default: spi1-default-state { 56 mosi-pins { 57 pins = "gpio6"; 58 function = "gsbi1"; 59 drive-strength = <12>; 60 bias-disable; 61 }; 62 63 miso-pins { 64 pins = "gpio7"; 65 function = "gsbi1"; 66 drive-strength = <12>; 67 bias-disable; 68 }; 69 70 cs-pins { 71 pins = "gpio8"; 72 function = "gsbi1"; 73 drive-strength = <12>; 74 bias-disable; 75 output-low; 76 }; 77 78 clk-pins { 79 pins = "gpio9"; 80 function = "gsbi1"; 81 drive-strength = <12>; 82 bias-disable; 83 }; 84 }; 85}; 86 87&pm8921 { 88 interrupts-extended = <&msmgpio 104 IRQ_TYPE_LEVEL_LOW>; 89}; 90 91&rpm { 92 regulators { 93 compatible = "qcom,rpm-pm8921-regulators"; 94 vin_lvs1_3_6-supply = <&pm8921_s4>; 95 vin_lvs2-supply = <&pm8921_s4>; 96 vin_lvs4_5_7-supply = <&pm8921_s4>; 97 vdd_ncp-supply = <&pm8921_l6>; 98 vdd_l1_l2_l12_l18-supply = <&pm8921_s4>; 99 vdd_l21_l23_l29-supply = <&pm8921_s8>; 100 vdd_l24-supply = <&pm8921_s1>; 101 vdd_l25-supply = <&pm8921_s1>; 102 vdd_l27-supply = <&pm8921_s7>; 103 vdd_l28-supply = <&pm8921_s7>; 104 105 /* Buck SMPS */ 106 pm8921_s1: s1 { 107 regulator-always-on; 108 regulator-min-microvolt = <1225000>; 109 regulator-max-microvolt = <1225000>; 110 qcom,switch-mode-frequency = <3200000>; 111 bias-pull-down; 112 }; 113 114 pm8921_s2: s2 { 115 regulator-min-microvolt = <1300000>; 116 regulator-max-microvolt = <1300000>; 117 qcom,switch-mode-frequency = <1600000>; 118 bias-pull-down; 119 }; 120 121 pm8921_s3: s3 { 122 regulator-min-microvolt = <500000>; 123 regulator-max-microvolt = <1150000>; 124 qcom,switch-mode-frequency = <4800000>; 125 bias-pull-down; 126 }; 127 128 pm8921_s4: s4 { 129 regulator-always-on; 130 regulator-min-microvolt = <1800000>; 131 regulator-max-microvolt = <1800000>; 132 qcom,switch-mode-frequency = <1600000>; 133 bias-pull-down; 134 qcom,force-mode = <QCOM_RPM_FORCE_MODE_AUTO>; 135 }; 136 137 pm8921_s7: s7 { 138 regulator-min-microvolt = <1150000>; 139 regulator-max-microvolt = <1150000>; 140 qcom,switch-mode-frequency = <3200000>; 141 bias-pull-down; 142 }; 143 144 pm8921_s8: s8 { 145 regulator-always-on; 146 regulator-min-microvolt = <2050000>; 147 regulator-max-microvolt = <2050000>; 148 qcom,switch-mode-frequency = <1600000>; 149 bias-pull-down; 150 }; 151 152 /* PMOS LDO */ 153 pm8921_l1: l1 { 154 regulator-always-on; 155 regulator-min-microvolt = <1050000>; 156 regulator-max-microvolt = <1050000>; 157 bias-pull-down; 158 }; 159 160 pm8921_l2: l2 { 161 regulator-min-microvolt = <1200000>; 162 regulator-max-microvolt = <1200000>; 163 bias-pull-down; 164 }; 165 166 pm8921_l3: l3 { 167 regulator-min-microvolt = <3075000>; 168 regulator-max-microvolt = <3300000>; 169 bias-pull-down; 170 }; 171 172 pm8921_l4: l4 { 173 regulator-always-on; 174 regulator-min-microvolt = <1800000>; 175 regulator-max-microvolt = <1800000>; 176 bias-pull-down; 177 }; 178 179 pm8921_l5: l5 { 180 regulator-min-microvolt = <2950000>; 181 regulator-max-microvolt = <2950000>; 182 bias-pull-down; 183 }; 184 185 pm8921_l6: l6 { 186 regulator-min-microvolt = <2950000>; 187 regulator-max-microvolt = <2950000>; 188 bias-pull-down; 189 }; 190 191 pm8921_l7: l7 { 192 regulator-always-on; 193 regulator-min-microvolt = <1850000>; 194 regulator-max-microvolt = <2950000>; 195 bias-pull-down; 196 }; 197 198 pm8921_l8: l8 { 199 regulator-min-microvolt = <3000000>; 200 regulator-max-microvolt = <3100000>; 201 bias-pull-down; 202 }; 203 204 pm8921_l9: l9 { 205 regulator-min-microvolt = <2850000>; 206 regulator-max-microvolt = <2850000>; 207 bias-pull-down; 208 }; 209 210 pm8921_l10: l10 { 211 regulator-min-microvolt = <3000000>; 212 regulator-max-microvolt = <3000000>; 213 bias-pull-down; 214 }; 215 216 pm8921_l11: l11 { 217 regulator-min-microvolt = <2800000>; 218 regulator-max-microvolt = <3300000>; 219 bias-pull-down; 220 }; 221 222 pm8921_l12: l12 { 223 regulator-min-microvolt = <1200000>; 224 regulator-max-microvolt = <1200000>; 225 bias-pull-down; 226 }; 227 228 pm8921_l14: l14 { 229 regulator-min-microvolt = <1800000>; 230 regulator-max-microvolt = <1800000>; 231 bias-pull-down; 232 }; 233 234 pm8921_l15: l15 { 235 regulator-min-microvolt = <1800000>; 236 regulator-max-microvolt = <2950000>; 237 bias-pull-down; 238 }; 239 240 pm8921_l16: l16 { 241 regulator-min-microvolt = <2800000>; 242 regulator-max-microvolt = <3000000>; 243 bias-pull-down; 244 }; 245 246 pm8921_l17: l17 { 247 regulator-min-microvolt = <1800000>; 248 regulator-max-microvolt = <3300000>; 249 bias-pull-down; 250 }; 251 252 pm8921_l18: l18 { 253 regulator-min-microvolt = <1200000>; 254 regulator-max-microvolt = <1500000>; 255 bias-pull-down; 256 }; 257 258 pm8921_l21: l21 { 259 regulator-min-microvolt = <1900000>; 260 regulator-max-microvolt = <1900000>; 261 bias-pull-down; 262 }; 263 264 pm8921_l22: l22 { 265 regulator-min-microvolt = <2750000>; 266 regulator-max-microvolt = <2750000>; 267 bias-pull-down; 268 }; 269 270 pm8921_l23: l23 { 271 regulator-always-on; 272 regulator-min-microvolt = <1800000>; 273 regulator-max-microvolt = <1800000>; 274 bias-pull-down; 275 }; 276 277 pm8921_l24: l24 { 278 regulator-min-microvolt = <750000>; 279 regulator-max-microvolt = <1150000>; 280 bias-pull-down; 281 }; 282 283 pm8921_l25: l25 { 284 regulator-always-on; 285 regulator-min-microvolt = <1225000>; 286 regulator-max-microvolt = <1225000>; 287 bias-pull-down; 288 }; 289 290 /* Low Voltage Switch */ 291 pm8921_lvs1: lvs1 { 292 bias-pull-down; 293 }; 294 295 pm8921_lvs2: lvs2 { 296 bias-pull-down; 297 }; 298 299 pm8921_lvs3: lvs3 { 300 bias-pull-down; 301 }; 302 303 pm8921_lvs4: lvs4 { 304 bias-pull-down; 305 }; 306 307 pm8921_lvs5: lvs5 { 308 bias-pull-down; 309 }; 310 311 pm8921_lvs6: lvs6 { 312 bias-pull-down; 313 }; 314 315 pm8921_lvs7: lvs7 { 316 bias-pull-down; 317 }; 318 319 pm8921_ncp: ncp { 320 regulator-min-microvolt = <1800000>; 321 regulator-max-microvolt = <1800000>; 322 qcom,switch-mode-frequency = <1600000>; 323 }; 324 }; 325}; 326 327&usb_hs1_phy { 328 v3p3-supply = <&pm8921_l3>; 329 v1p8-supply = <&pm8921_l4>; 330}; 331 332&usb1 { 333 dr_mode = "otg"; 334 status = "okay"; 335}; 336