1f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0 2f126890aSEmmanuel Vadot#include "qcom-msm8974pro.dtsi" 3*8d13bc63SEmmanuel Vadot#include "pm8841.dtsi" 4*8d13bc63SEmmanuel Vadot#include "pm8941.dtsi" 5f126890aSEmmanuel Vadot#include <dt-bindings/input/input.h> 6f126890aSEmmanuel Vadot#include <dt-bindings/leds/common.h> 7f126890aSEmmanuel Vadot#include <dt-bindings/pinctrl/qcom,pmic-gpio.h> 8f126890aSEmmanuel Vadot 9f126890aSEmmanuel Vadot/ { 10f126890aSEmmanuel Vadot model = "Fairphone 2"; 11f126890aSEmmanuel Vadot compatible = "fairphone,fp2", "qcom,msm8974pro", "qcom,msm8974"; 12f126890aSEmmanuel Vadot chassis-type = "handset"; 13f126890aSEmmanuel Vadot 14f126890aSEmmanuel Vadot aliases { 15f126890aSEmmanuel Vadot mmc0 = &sdhc_1; 16f126890aSEmmanuel Vadot mmc1 = &sdhc_2; 17f126890aSEmmanuel Vadot serial0 = &blsp1_uart2; 18f126890aSEmmanuel Vadot }; 19f126890aSEmmanuel Vadot 20f126890aSEmmanuel Vadot chosen { 21f126890aSEmmanuel Vadot stdout-path = "serial0:115200n8"; 22f126890aSEmmanuel Vadot }; 23f126890aSEmmanuel Vadot 24f126890aSEmmanuel Vadot gpio-keys { 25f126890aSEmmanuel Vadot compatible = "gpio-keys"; 26f126890aSEmmanuel Vadot 27f126890aSEmmanuel Vadot pinctrl-names = "default"; 28f126890aSEmmanuel Vadot pinctrl-0 = <&gpio_keys_pin_a>; 29f126890aSEmmanuel Vadot 30f126890aSEmmanuel Vadot key-camera-snapshot { 31f126890aSEmmanuel Vadot label = "camera_snapshot"; 32f126890aSEmmanuel Vadot gpios = <&pm8941_gpios 1 GPIO_ACTIVE_LOW>; 33f126890aSEmmanuel Vadot linux,code = <KEY_CAMERA>; 34f126890aSEmmanuel Vadot wakeup-source; 35f126890aSEmmanuel Vadot debounce-interval = <15>; 36f126890aSEmmanuel Vadot }; 37f126890aSEmmanuel Vadot 38f126890aSEmmanuel Vadot key-volume-down { 39f126890aSEmmanuel Vadot label = "volume_down"; 40f126890aSEmmanuel Vadot gpios = <&pm8941_gpios 2 GPIO_ACTIVE_LOW>; 41f126890aSEmmanuel Vadot linux,code = <KEY_VOLUMEDOWN>; 42f126890aSEmmanuel Vadot wakeup-source; 43f126890aSEmmanuel Vadot debounce-interval = <15>; 44f126890aSEmmanuel Vadot }; 45f126890aSEmmanuel Vadot 46f126890aSEmmanuel Vadot key-volume-up { 47f126890aSEmmanuel Vadot label = "volume_up"; 48f126890aSEmmanuel Vadot gpios = <&pm8941_gpios 5 GPIO_ACTIVE_LOW>; 49f126890aSEmmanuel Vadot linux,code = <KEY_VOLUMEUP>; 50f126890aSEmmanuel Vadot wakeup-source; 51f126890aSEmmanuel Vadot debounce-interval = <15>; 52f126890aSEmmanuel Vadot }; 53f126890aSEmmanuel Vadot }; 54f126890aSEmmanuel Vadot 55f126890aSEmmanuel Vadot vibrator { 56f126890aSEmmanuel Vadot compatible = "gpio-vibrator"; 57f126890aSEmmanuel Vadot enable-gpios = <&tlmm 86 GPIO_ACTIVE_HIGH>; 58f126890aSEmmanuel Vadot vcc-supply = <&pm8941_l18>; 59f126890aSEmmanuel Vadot }; 60*8d13bc63SEmmanuel Vadot 61*8d13bc63SEmmanuel Vadot vreg_boost: vreg-boost { 62*8d13bc63SEmmanuel Vadot compatible = "regulator-fixed"; 63*8d13bc63SEmmanuel Vadot 64*8d13bc63SEmmanuel Vadot regulator-name = "vreg-boost"; 65*8d13bc63SEmmanuel Vadot regulator-min-microvolt = <3150000>; 66*8d13bc63SEmmanuel Vadot regulator-max-microvolt = <3150000>; 67*8d13bc63SEmmanuel Vadot 68*8d13bc63SEmmanuel Vadot regulator-always-on; 69*8d13bc63SEmmanuel Vadot regulator-boot-on; 70*8d13bc63SEmmanuel Vadot 71*8d13bc63SEmmanuel Vadot gpio = <&pm8941_gpios 21 GPIO_ACTIVE_HIGH>; 72*8d13bc63SEmmanuel Vadot enable-active-high; 73*8d13bc63SEmmanuel Vadot 74*8d13bc63SEmmanuel Vadot pinctrl-names = "default"; 75*8d13bc63SEmmanuel Vadot pinctrl-0 = <&boost_bypass_n_pin>; 76*8d13bc63SEmmanuel Vadot }; 77*8d13bc63SEmmanuel Vadot 78*8d13bc63SEmmanuel Vadot vreg_vph_pwr: vreg-vph-pwr { 79*8d13bc63SEmmanuel Vadot compatible = "regulator-fixed"; 80*8d13bc63SEmmanuel Vadot regulator-name = "vph-pwr"; 81*8d13bc63SEmmanuel Vadot 82*8d13bc63SEmmanuel Vadot regulator-min-microvolt = <3600000>; 83*8d13bc63SEmmanuel Vadot regulator-max-microvolt = <3600000>; 84*8d13bc63SEmmanuel Vadot 85*8d13bc63SEmmanuel Vadot regulator-always-on; 86*8d13bc63SEmmanuel Vadot }; 87f126890aSEmmanuel Vadot}; 88f126890aSEmmanuel Vadot 89f126890aSEmmanuel Vadot&blsp1_i2c2 { 90f126890aSEmmanuel Vadot status = "okay"; 91f126890aSEmmanuel Vadot 92f126890aSEmmanuel Vadot touchscreen@41 { 93f126890aSEmmanuel Vadot compatible = "ilitek,ili2120"; 94f126890aSEmmanuel Vadot reg = <0x41>; 95f126890aSEmmanuel Vadot interrupt-parent = <&tlmm>; 96f126890aSEmmanuel Vadot interrupts = <28 IRQ_TYPE_EDGE_FALLING>; 97f126890aSEmmanuel Vadot reset-gpios = <&tlmm 55 GPIO_ACTIVE_LOW>; 98f126890aSEmmanuel Vadot 99f126890aSEmmanuel Vadot touchscreen-size-x = <1080>; 100f126890aSEmmanuel Vadot touchscreen-size-y = <1920>; 101f126890aSEmmanuel Vadot }; 102f126890aSEmmanuel Vadot}; 103f126890aSEmmanuel Vadot 104f126890aSEmmanuel Vadot&blsp1_uart2 { 105f126890aSEmmanuel Vadot status = "okay"; 106f126890aSEmmanuel Vadot}; 107f126890aSEmmanuel Vadot 108f126890aSEmmanuel Vadot&imem { 109f126890aSEmmanuel Vadot reboot-mode { 110f126890aSEmmanuel Vadot mode-normal = <0x77665501>; 111f126890aSEmmanuel Vadot mode-bootloader = <0x77665500>; 112f126890aSEmmanuel Vadot mode-recovery = <0x77665502>; 113f126890aSEmmanuel Vadot }; 114f126890aSEmmanuel Vadot}; 115f126890aSEmmanuel Vadot 116f126890aSEmmanuel Vadot&pm8941_gpios { 117f126890aSEmmanuel Vadot gpio_keys_pin_a: gpio-keys-active-state { 118f126890aSEmmanuel Vadot pins = "gpio1", "gpio2", "gpio5"; 119f126890aSEmmanuel Vadot function = "normal"; 120f126890aSEmmanuel Vadot 121f126890aSEmmanuel Vadot bias-pull-up; 122f126890aSEmmanuel Vadot power-source = <PM8941_GPIO_S3>; 123f126890aSEmmanuel Vadot }; 124f126890aSEmmanuel Vadot}; 125f126890aSEmmanuel Vadot 126f126890aSEmmanuel Vadot&pm8941_lpg { 127f126890aSEmmanuel Vadot status = "okay"; 128f126890aSEmmanuel Vadot 129f126890aSEmmanuel Vadot qcom,power-source = <1>; 130f126890aSEmmanuel Vadot 131f126890aSEmmanuel Vadot multi-led { 132f126890aSEmmanuel Vadot color = <LED_COLOR_ID_RGB>; 133f126890aSEmmanuel Vadot function = LED_FUNCTION_STATUS; 134f126890aSEmmanuel Vadot 135f126890aSEmmanuel Vadot #address-cells = <1>; 136f126890aSEmmanuel Vadot #size-cells = <0>; 137f126890aSEmmanuel Vadot 138f126890aSEmmanuel Vadot led@7 { 139f126890aSEmmanuel Vadot reg = <7>; 140f126890aSEmmanuel Vadot color = <LED_COLOR_ID_RED>; 141f126890aSEmmanuel Vadot }; 142f126890aSEmmanuel Vadot 143f126890aSEmmanuel Vadot led@6 { 144f126890aSEmmanuel Vadot reg = <6>; 145f126890aSEmmanuel Vadot color = <LED_COLOR_ID_GREEN>; 146f126890aSEmmanuel Vadot }; 147f126890aSEmmanuel Vadot 148f126890aSEmmanuel Vadot led@5 { 149f126890aSEmmanuel Vadot reg = <5>; 150f126890aSEmmanuel Vadot color = <LED_COLOR_ID_BLUE>; 151f126890aSEmmanuel Vadot }; 152f126890aSEmmanuel Vadot }; 153f126890aSEmmanuel Vadot}; 154f126890aSEmmanuel Vadot 155f126890aSEmmanuel Vadot&pronto { 156f126890aSEmmanuel Vadot status = "okay"; 157f126890aSEmmanuel Vadot 158f126890aSEmmanuel Vadot vddmx-supply = <&pm8841_s1>; 159f126890aSEmmanuel Vadot vddcx-supply = <&pm8841_s2>; 160f126890aSEmmanuel Vadot vddpx-supply = <&pm8941_s3>; 161f126890aSEmmanuel Vadot 162f126890aSEmmanuel Vadot pinctrl-names = "default"; 163f126890aSEmmanuel Vadot pinctrl-0 = <&wcnss_pin_a>; 164f126890aSEmmanuel Vadot 165f126890aSEmmanuel Vadot iris { 166f126890aSEmmanuel Vadot vddxo-supply = <&pm8941_l6>; 167f126890aSEmmanuel Vadot vddrfa-supply = <&pm8941_l11>; 168f126890aSEmmanuel Vadot vddpa-supply = <&pm8941_l19>; 169f126890aSEmmanuel Vadot vdddig-supply = <&pm8941_s3>; 170f126890aSEmmanuel Vadot }; 171f126890aSEmmanuel Vadot 172f126890aSEmmanuel Vadot smd-edge { 173f126890aSEmmanuel Vadot qcom,remote-pid = <4>; 174f126890aSEmmanuel Vadot label = "pronto"; 175f126890aSEmmanuel Vadot 176f126890aSEmmanuel Vadot wcnss { 177f126890aSEmmanuel Vadot status = "okay"; 178f126890aSEmmanuel Vadot }; 179f126890aSEmmanuel Vadot }; 180f126890aSEmmanuel Vadot}; 181f126890aSEmmanuel Vadot 182f126890aSEmmanuel Vadot&remoteproc_adsp { 183f126890aSEmmanuel Vadot status = "okay"; 184f126890aSEmmanuel Vadot cx-supply = <&pm8841_s2>; 185f126890aSEmmanuel Vadot}; 186f126890aSEmmanuel Vadot 187f126890aSEmmanuel Vadot&remoteproc_mss { 188f126890aSEmmanuel Vadot status = "okay"; 189f126890aSEmmanuel Vadot cx-supply = <&pm8841_s2>; 190f126890aSEmmanuel Vadot mss-supply = <&pm8841_s3>; 191f126890aSEmmanuel Vadot mx-supply = <&pm8841_s1>; 192f126890aSEmmanuel Vadot pll-supply = <&pm8941_l12>; 193f126890aSEmmanuel Vadot}; 194f126890aSEmmanuel Vadot 195f126890aSEmmanuel Vadot&rpm_requests { 196f126890aSEmmanuel Vadot regulators-0 { 197f126890aSEmmanuel Vadot compatible = "qcom,rpm-pm8841-regulators"; 198f126890aSEmmanuel Vadot 199f126890aSEmmanuel Vadot pm8841_s1: s1 { 200f126890aSEmmanuel Vadot regulator-min-microvolt = <675000>; 201f126890aSEmmanuel Vadot regulator-max-microvolt = <1050000>; 202f126890aSEmmanuel Vadot }; 203f126890aSEmmanuel Vadot 204f126890aSEmmanuel Vadot pm8841_s2: s2 { 205f126890aSEmmanuel Vadot regulator-min-microvolt = <500000>; 206f126890aSEmmanuel Vadot regulator-max-microvolt = <1050000>; 207f126890aSEmmanuel Vadot }; 208f126890aSEmmanuel Vadot 209f126890aSEmmanuel Vadot pm8841_s3: s3 { 210f126890aSEmmanuel Vadot regulator-min-microvolt = <1050000>; 211f126890aSEmmanuel Vadot regulator-max-microvolt = <1050000>; 212f126890aSEmmanuel Vadot }; 213f126890aSEmmanuel Vadot }; 214f126890aSEmmanuel Vadot 215f126890aSEmmanuel Vadot regulators-1 { 216f126890aSEmmanuel Vadot compatible = "qcom,rpm-pm8941-regulators"; 217f126890aSEmmanuel Vadot 218f126890aSEmmanuel Vadot vdd_l1_l3-supply = <&pm8941_s1>; 219f126890aSEmmanuel Vadot vdd_l2_lvs1_2_3-supply = <&pm8941_s3>; 220f126890aSEmmanuel Vadot vdd_l4_l11-supply = <&pm8941_s1>; 221f126890aSEmmanuel Vadot vdd_l5_l7-supply = <&pm8941_s2>; 222f126890aSEmmanuel Vadot vdd_l6_l12_l14_l15-supply = <&pm8941_s2>; 223f126890aSEmmanuel Vadot vdd_l9_l10_l17_l22-supply = <&vreg_boost>; 224f126890aSEmmanuel Vadot vdd_l13_l20_l23_l24-supply = <&vreg_boost>; 225f126890aSEmmanuel Vadot vdd_l21-supply = <&vreg_boost>; 226f126890aSEmmanuel Vadot 227f126890aSEmmanuel Vadot pm8941_s1: s1 { 228f126890aSEmmanuel Vadot regulator-min-microvolt = <1300000>; 229f126890aSEmmanuel Vadot regulator-max-microvolt = <1300000>; 230f126890aSEmmanuel Vadot regulator-always-on; 231f126890aSEmmanuel Vadot regulator-boot-on; 232f126890aSEmmanuel Vadot }; 233f126890aSEmmanuel Vadot 234f126890aSEmmanuel Vadot pm8941_s2: s2 { 235f126890aSEmmanuel Vadot regulator-min-microvolt = <2150000>; 236f126890aSEmmanuel Vadot regulator-max-microvolt = <2150000>; 237f126890aSEmmanuel Vadot regulator-boot-on; 238f126890aSEmmanuel Vadot }; 239f126890aSEmmanuel Vadot 240f126890aSEmmanuel Vadot pm8941_s3: s3 { 241f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 242f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 243f126890aSEmmanuel Vadot regulator-always-on; 244f126890aSEmmanuel Vadot regulator-boot-on; 245f126890aSEmmanuel Vadot }; 246f126890aSEmmanuel Vadot 247f126890aSEmmanuel Vadot pm8941_l1: l1 { 248f126890aSEmmanuel Vadot regulator-min-microvolt = <1225000>; 249f126890aSEmmanuel Vadot regulator-max-microvolt = <1225000>; 250f126890aSEmmanuel Vadot regulator-always-on; 251f126890aSEmmanuel Vadot regulator-boot-on; 252f126890aSEmmanuel Vadot }; 253f126890aSEmmanuel Vadot 254f126890aSEmmanuel Vadot pm8941_l2: l2 { 255f126890aSEmmanuel Vadot regulator-min-microvolt = <1200000>; 256f126890aSEmmanuel Vadot regulator-max-microvolt = <1200000>; 257f126890aSEmmanuel Vadot }; 258f126890aSEmmanuel Vadot 259f126890aSEmmanuel Vadot pm8941_l3: l3 { 260f126890aSEmmanuel Vadot regulator-min-microvolt = <1225000>; 261f126890aSEmmanuel Vadot regulator-max-microvolt = <1225000>; 262f126890aSEmmanuel Vadot }; 263f126890aSEmmanuel Vadot 264f126890aSEmmanuel Vadot pm8941_l4: l4 { 265f126890aSEmmanuel Vadot regulator-min-microvolt = <1225000>; 266f126890aSEmmanuel Vadot regulator-max-microvolt = <1225000>; 267f126890aSEmmanuel Vadot }; 268f126890aSEmmanuel Vadot 269f126890aSEmmanuel Vadot pm8941_l5: l5 { 270f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 271f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 272f126890aSEmmanuel Vadot }; 273f126890aSEmmanuel Vadot 274f126890aSEmmanuel Vadot pm8941_l6: l6 { 275f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 276f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 277f126890aSEmmanuel Vadot regulator-boot-on; 278f126890aSEmmanuel Vadot }; 279f126890aSEmmanuel Vadot 280f126890aSEmmanuel Vadot pm8941_l7: l7 { 281f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 282f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 283f126890aSEmmanuel Vadot regulator-boot-on; 284f126890aSEmmanuel Vadot }; 285f126890aSEmmanuel Vadot 286f126890aSEmmanuel Vadot pm8941_l8: l8 { 287f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 288f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 289f126890aSEmmanuel Vadot }; 290f126890aSEmmanuel Vadot 291f126890aSEmmanuel Vadot pm8941_l9: l9 { 292f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 293f126890aSEmmanuel Vadot regulator-max-microvolt = <2950000>; 294f126890aSEmmanuel Vadot }; 295f126890aSEmmanuel Vadot 296f126890aSEmmanuel Vadot pm8941_l10: l10 { 297f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 298f126890aSEmmanuel Vadot regulator-max-microvolt = <2950000>; 299f126890aSEmmanuel Vadot }; 300f126890aSEmmanuel Vadot 301f126890aSEmmanuel Vadot pm8941_l11: l11 { 302f126890aSEmmanuel Vadot regulator-min-microvolt = <1225000>; 303f126890aSEmmanuel Vadot regulator-max-microvolt = <1350000>; 304f126890aSEmmanuel Vadot }; 305f126890aSEmmanuel Vadot 306f126890aSEmmanuel Vadot pm8941_l12: l12 { 307f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 308f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 309f126890aSEmmanuel Vadot regulator-always-on; 310f126890aSEmmanuel Vadot regulator-boot-on; 311f126890aSEmmanuel Vadot }; 312f126890aSEmmanuel Vadot 313f126890aSEmmanuel Vadot pm8941_l13: l13 { 314f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 315f126890aSEmmanuel Vadot regulator-max-microvolt = <2950000>; 316f126890aSEmmanuel Vadot regulator-boot-on; 317f126890aSEmmanuel Vadot }; 318f126890aSEmmanuel Vadot 319f126890aSEmmanuel Vadot pm8941_l14: l14 { 320f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 321f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 322f126890aSEmmanuel Vadot }; 323f126890aSEmmanuel Vadot 324f126890aSEmmanuel Vadot pm8941_l15: l15 { 325f126890aSEmmanuel Vadot regulator-min-microvolt = <2050000>; 326f126890aSEmmanuel Vadot regulator-max-microvolt = <2050000>; 327f126890aSEmmanuel Vadot }; 328f126890aSEmmanuel Vadot 329f126890aSEmmanuel Vadot pm8941_l16: l16 { 330f126890aSEmmanuel Vadot regulator-min-microvolt = <2700000>; 331f126890aSEmmanuel Vadot regulator-max-microvolt = <2700000>; 332f126890aSEmmanuel Vadot }; 333f126890aSEmmanuel Vadot 334f126890aSEmmanuel Vadot pm8941_l17: l17 { 335f126890aSEmmanuel Vadot regulator-min-microvolt = <2850000>; 336f126890aSEmmanuel Vadot regulator-max-microvolt = <2850000>; 337f126890aSEmmanuel Vadot }; 338f126890aSEmmanuel Vadot 339f126890aSEmmanuel Vadot pm8941_l18: l18 { 340f126890aSEmmanuel Vadot regulator-min-microvolt = <2850000>; 341f126890aSEmmanuel Vadot regulator-max-microvolt = <2850000>; 342f126890aSEmmanuel Vadot }; 343f126890aSEmmanuel Vadot 344f126890aSEmmanuel Vadot pm8941_l19: l19 { 345f126890aSEmmanuel Vadot regulator-min-microvolt = <2900000>; 346f126890aSEmmanuel Vadot regulator-max-microvolt = <3350000>; 347f126890aSEmmanuel Vadot }; 348f126890aSEmmanuel Vadot 349f126890aSEmmanuel Vadot pm8941_l20: l20 { 350f126890aSEmmanuel Vadot regulator-min-microvolt = <2950000>; 351f126890aSEmmanuel Vadot regulator-max-microvolt = <2950000>; 352f126890aSEmmanuel Vadot regulator-system-load = <200000>; 353f126890aSEmmanuel Vadot regulator-allow-set-load; 354f126890aSEmmanuel Vadot regulator-boot-on; 355f126890aSEmmanuel Vadot }; 356f126890aSEmmanuel Vadot 357f126890aSEmmanuel Vadot pm8941_l21: l21 { 358f126890aSEmmanuel Vadot regulator-min-microvolt = <2950000>; 359f126890aSEmmanuel Vadot regulator-max-microvolt = <2950000>; 360f126890aSEmmanuel Vadot regulator-boot-on; 361f126890aSEmmanuel Vadot }; 362f126890aSEmmanuel Vadot 363f126890aSEmmanuel Vadot pm8941_l22: l22 { 364f126890aSEmmanuel Vadot regulator-min-microvolt = <3000000>; 365f126890aSEmmanuel Vadot regulator-max-microvolt = <3300000>; 366f126890aSEmmanuel Vadot }; 367f126890aSEmmanuel Vadot 368f126890aSEmmanuel Vadot pm8941_l23: l23 { 369f126890aSEmmanuel Vadot regulator-min-microvolt = <3000000>; 370f126890aSEmmanuel Vadot regulator-max-microvolt = <3000000>; 371f126890aSEmmanuel Vadot }; 372f126890aSEmmanuel Vadot 373f126890aSEmmanuel Vadot pm8941_l24: l24 { 374f126890aSEmmanuel Vadot regulator-min-microvolt = <3075000>; 375f126890aSEmmanuel Vadot regulator-max-microvolt = <3075000>; 376f126890aSEmmanuel Vadot regulator-boot-on; 377f126890aSEmmanuel Vadot }; 378f126890aSEmmanuel Vadot }; 379f126890aSEmmanuel Vadot}; 380f126890aSEmmanuel Vadot 381f126890aSEmmanuel Vadot&sdhc_1 { 382f126890aSEmmanuel Vadot status = "okay"; 383f126890aSEmmanuel Vadot 384f126890aSEmmanuel Vadot vmmc-supply = <&pm8941_l20>; 385f126890aSEmmanuel Vadot vqmmc-supply = <&pm8941_s3>; 386f126890aSEmmanuel Vadot 387f126890aSEmmanuel Vadot pinctrl-names = "default", "sleep"; 388f126890aSEmmanuel Vadot pinctrl-0 = <&sdc1_on>; 389f126890aSEmmanuel Vadot pinctrl-1 = <&sdc1_off>; 390f126890aSEmmanuel Vadot}; 391f126890aSEmmanuel Vadot 392f126890aSEmmanuel Vadot&sdhc_2 { 393f126890aSEmmanuel Vadot status = "okay"; 394f126890aSEmmanuel Vadot 395f126890aSEmmanuel Vadot vmmc-supply = <&pm8941_l21>; 396f126890aSEmmanuel Vadot vqmmc-supply = <&pm8941_l13>; 397f126890aSEmmanuel Vadot 398f126890aSEmmanuel Vadot pinctrl-names = "default", "sleep"; 399f126890aSEmmanuel Vadot pinctrl-0 = <&sdc2_on>; 400f126890aSEmmanuel Vadot pinctrl-1 = <&sdc2_off>; 401f126890aSEmmanuel Vadot}; 402f126890aSEmmanuel Vadot 403f126890aSEmmanuel Vadot&smbb { 404f126890aSEmmanuel Vadot usb-charge-current-limit = <1500000>; 405f126890aSEmmanuel Vadot qcom,fast-charge-safe-current = <1500000>; 406f126890aSEmmanuel Vadot qcom,fast-charge-current-limit = <1500000>; 407f126890aSEmmanuel Vadot qcom,fast-charge-safe-voltage = <4380000>; 408f126890aSEmmanuel Vadot qcom,fast-charge-high-threshold-voltage = <4350000>; 409f126890aSEmmanuel Vadot qcom,auto-recharge-threshold-voltage = <4240000>; 410f126890aSEmmanuel Vadot qcom,minimum-input-voltage = <4450000>; 411*8d13bc63SEmmanuel Vadot 412*8d13bc63SEmmanuel Vadot status = "okay"; 413f126890aSEmmanuel Vadot}; 414f126890aSEmmanuel Vadot 415f126890aSEmmanuel Vadot&tlmm { 416f126890aSEmmanuel Vadot sdc1_on: sdc1-on-state { 417f126890aSEmmanuel Vadot clk-pins { 418f126890aSEmmanuel Vadot pins = "sdc1_clk"; 419f126890aSEmmanuel Vadot drive-strength = <16>; 420f126890aSEmmanuel Vadot bias-disable; 421f126890aSEmmanuel Vadot }; 422f126890aSEmmanuel Vadot 423f126890aSEmmanuel Vadot cmd-data-pins { 424f126890aSEmmanuel Vadot pins = "sdc1_cmd", "sdc1_data"; 425f126890aSEmmanuel Vadot drive-strength = <10>; 426f126890aSEmmanuel Vadot bias-pull-up; 427f126890aSEmmanuel Vadot }; 428f126890aSEmmanuel Vadot }; 429f126890aSEmmanuel Vadot 430f126890aSEmmanuel Vadot sdc2_on: sdc2-on-state { 431f126890aSEmmanuel Vadot clk-pins { 432f126890aSEmmanuel Vadot pins = "sdc2_clk"; 433f126890aSEmmanuel Vadot drive-strength = <10>; 434f126890aSEmmanuel Vadot bias-disable; 435f126890aSEmmanuel Vadot }; 436f126890aSEmmanuel Vadot 437f126890aSEmmanuel Vadot cmd-data-pins { 438f126890aSEmmanuel Vadot pins = "sdc2_cmd", "sdc2_data"; 439f126890aSEmmanuel Vadot drive-strength = <6>; 440f126890aSEmmanuel Vadot bias-pull-up; 441f126890aSEmmanuel Vadot }; 442f126890aSEmmanuel Vadot }; 443f126890aSEmmanuel Vadot 444f126890aSEmmanuel Vadot wcnss_pin_a: wcnss-pin-active-state { 445f126890aSEmmanuel Vadot wlan-pins { 446f126890aSEmmanuel Vadot pins = "gpio36", "gpio37", "gpio38", "gpio39", "gpio40"; 447f126890aSEmmanuel Vadot function = "wlan"; 448f126890aSEmmanuel Vadot 449f126890aSEmmanuel Vadot drive-strength = <6>; 450f126890aSEmmanuel Vadot bias-pull-down; 451f126890aSEmmanuel Vadot }; 452f126890aSEmmanuel Vadot 453f126890aSEmmanuel Vadot bt-pins { 454f126890aSEmmanuel Vadot pins = "gpio35", "gpio43", "gpio44"; 455f126890aSEmmanuel Vadot function = "bt"; 456f126890aSEmmanuel Vadot 457f126890aSEmmanuel Vadot drive-strength = <2>; 458f126890aSEmmanuel Vadot bias-pull-down; 459f126890aSEmmanuel Vadot }; 460f126890aSEmmanuel Vadot 461f126890aSEmmanuel Vadot fm-pins { 462f126890aSEmmanuel Vadot pins = "gpio41", "gpio42"; 463f126890aSEmmanuel Vadot function = "fm"; 464f126890aSEmmanuel Vadot 465f126890aSEmmanuel Vadot drive-strength = <2>; 466f126890aSEmmanuel Vadot bias-pull-down; 467f126890aSEmmanuel Vadot }; 468f126890aSEmmanuel Vadot }; 469f126890aSEmmanuel Vadot}; 470f126890aSEmmanuel Vadot 471f126890aSEmmanuel Vadot&usb { 472f126890aSEmmanuel Vadot status = "okay"; 473f126890aSEmmanuel Vadot 474f126890aSEmmanuel Vadot phys = <&usb_hs1_phy>; 475f126890aSEmmanuel Vadot phy-select = <&tcsr 0xb000 0>; 476f126890aSEmmanuel Vadot extcon = <&smbb>, <&usb_id>; 477f126890aSEmmanuel Vadot vbus-supply = <&chg_otg>; 478f126890aSEmmanuel Vadot 479f126890aSEmmanuel Vadot hnp-disable; 480f126890aSEmmanuel Vadot srp-disable; 481f126890aSEmmanuel Vadot adp-disable; 482f126890aSEmmanuel Vadot}; 483f126890aSEmmanuel Vadot 484f126890aSEmmanuel Vadot&usb_hs1_phy { 485f126890aSEmmanuel Vadot status = "okay"; 486f126890aSEmmanuel Vadot 487f126890aSEmmanuel Vadot v1p8-supply = <&pm8941_l6>; 488f126890aSEmmanuel Vadot v3p3-supply = <&pm8941_l24>; 489f126890aSEmmanuel Vadot 490f126890aSEmmanuel Vadot extcon = <&smbb>; 491f126890aSEmmanuel Vadot qcom,init-seq = /bits/ 8 <0x1 0x64>; 492f126890aSEmmanuel Vadot}; 493