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