1f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0 2f126890aSEmmanuel Vadot#include "qcom-msm8974.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 aliases { 11f126890aSEmmanuel Vadot serial0 = &blsp1_uart2; 12f126890aSEmmanuel Vadot }; 13f126890aSEmmanuel Vadot 14f126890aSEmmanuel Vadot chosen { 15f126890aSEmmanuel Vadot stdout-path = "serial0:115200n8"; 16f126890aSEmmanuel Vadot }; 17f126890aSEmmanuel Vadot 18f126890aSEmmanuel Vadot gpio-keys { 19f126890aSEmmanuel Vadot compatible = "gpio-keys"; 20f126890aSEmmanuel Vadot 21f126890aSEmmanuel Vadot pinctrl-names = "default"; 22f126890aSEmmanuel Vadot pinctrl-0 = <&gpio_keys_pin_a>; 23f126890aSEmmanuel Vadot 24f126890aSEmmanuel Vadot key-volume-down { 25f126890aSEmmanuel Vadot label = "volume_down"; 26f126890aSEmmanuel Vadot gpios = <&pm8941_gpios 2 GPIO_ACTIVE_LOW>; 27f126890aSEmmanuel Vadot linux,input-type = <1>; 28f126890aSEmmanuel Vadot linux,code = <KEY_VOLUMEDOWN>; 29f126890aSEmmanuel Vadot }; 30f126890aSEmmanuel Vadot 31f126890aSEmmanuel Vadot key-camera-snapshot { 32f126890aSEmmanuel Vadot label = "camera_snapshot"; 33f126890aSEmmanuel Vadot gpios = <&pm8941_gpios 3 GPIO_ACTIVE_LOW>; 34f126890aSEmmanuel Vadot linux,input-type = <1>; 35f126890aSEmmanuel Vadot linux,code = <KEY_CAMERA>; 36f126890aSEmmanuel Vadot }; 37f126890aSEmmanuel Vadot 38f126890aSEmmanuel Vadot key-camera-focus { 39f126890aSEmmanuel Vadot label = "camera_focus"; 40f126890aSEmmanuel Vadot gpios = <&pm8941_gpios 4 GPIO_ACTIVE_LOW>; 41f126890aSEmmanuel Vadot linux,input-type = <1>; 42f126890aSEmmanuel Vadot linux,code = <KEY_CAMERA_FOCUS>; 43f126890aSEmmanuel Vadot }; 44f126890aSEmmanuel Vadot 45f126890aSEmmanuel Vadot key-volume-up { 46f126890aSEmmanuel Vadot label = "volume_up"; 47f126890aSEmmanuel Vadot gpios = <&pm8941_gpios 5 GPIO_ACTIVE_LOW>; 48f126890aSEmmanuel Vadot linux,input-type = <1>; 49f126890aSEmmanuel Vadot linux,code = <KEY_VOLUMEUP>; 50f126890aSEmmanuel Vadot }; 51f126890aSEmmanuel Vadot }; 52f126890aSEmmanuel Vadot 53f126890aSEmmanuel Vadot reserved-memory { 54f126890aSEmmanuel Vadot #address-cells = <1>; 55f126890aSEmmanuel Vadot #size-cells = <1>; 56f126890aSEmmanuel Vadot ranges; 57f126890aSEmmanuel Vadot 58f126890aSEmmanuel Vadot ramoops@3e8e0000 { 59f126890aSEmmanuel Vadot compatible = "ramoops"; 60f126890aSEmmanuel Vadot reg = <0x3e8e0000 0x200000>; 61f126890aSEmmanuel Vadot 62f126890aSEmmanuel Vadot console-size = <0x100000>; 63f126890aSEmmanuel Vadot record-size = <0x10000>; 64f126890aSEmmanuel Vadot ftrace-size = <0x10000>; 65f126890aSEmmanuel Vadot pmsg-size = <0x80000>; 66f126890aSEmmanuel Vadot }; 67f126890aSEmmanuel Vadot }; 68*8d13bc63SEmmanuel Vadot 69*8d13bc63SEmmanuel Vadot vreg_boost: vreg-boost { 70*8d13bc63SEmmanuel Vadot compatible = "regulator-fixed"; 71*8d13bc63SEmmanuel Vadot 72*8d13bc63SEmmanuel Vadot regulator-name = "vreg-boost"; 73*8d13bc63SEmmanuel Vadot regulator-min-microvolt = <3150000>; 74*8d13bc63SEmmanuel Vadot regulator-max-microvolt = <3150000>; 75*8d13bc63SEmmanuel Vadot 76*8d13bc63SEmmanuel Vadot regulator-always-on; 77*8d13bc63SEmmanuel Vadot regulator-boot-on; 78*8d13bc63SEmmanuel Vadot 79*8d13bc63SEmmanuel Vadot gpio = <&pm8941_gpios 21 GPIO_ACTIVE_HIGH>; 80*8d13bc63SEmmanuel Vadot enable-active-high; 81*8d13bc63SEmmanuel Vadot 82*8d13bc63SEmmanuel Vadot pinctrl-names = "default"; 83*8d13bc63SEmmanuel Vadot pinctrl-0 = <&boost_bypass_n_pin>; 84*8d13bc63SEmmanuel Vadot }; 85*8d13bc63SEmmanuel Vadot 86*8d13bc63SEmmanuel Vadot vreg_vph_pwr: vreg-vph-pwr { 87*8d13bc63SEmmanuel Vadot compatible = "regulator-fixed"; 88*8d13bc63SEmmanuel Vadot regulator-name = "vph-pwr"; 89*8d13bc63SEmmanuel Vadot 90*8d13bc63SEmmanuel Vadot regulator-min-microvolt = <3600000>; 91*8d13bc63SEmmanuel Vadot regulator-max-microvolt = <3600000>; 92*8d13bc63SEmmanuel Vadot 93*8d13bc63SEmmanuel Vadot regulator-always-on; 94*8d13bc63SEmmanuel Vadot }; 95f126890aSEmmanuel Vadot}; 96f126890aSEmmanuel Vadot 97f126890aSEmmanuel Vadot&blsp1_i2c2 { 98f126890aSEmmanuel Vadot status = "okay"; 99f126890aSEmmanuel Vadot clock-frequency = <355000>; 100f126890aSEmmanuel Vadot 101f126890aSEmmanuel Vadot synaptics@2c { 102f126890aSEmmanuel Vadot compatible = "syna,rmi4-i2c"; 103f126890aSEmmanuel Vadot reg = <0x2c>; 104f126890aSEmmanuel Vadot 105f126890aSEmmanuel Vadot interrupts-extended = <&tlmm 61 IRQ_TYPE_EDGE_FALLING>; 106f126890aSEmmanuel Vadot 107f126890aSEmmanuel Vadot #address-cells = <1>; 108f126890aSEmmanuel Vadot #size-cells = <0>; 109f126890aSEmmanuel Vadot 110f126890aSEmmanuel Vadot vdd-supply = <&pm8941_l22>; 111f126890aSEmmanuel Vadot vio-supply = <&pm8941_lvs3>; 112f126890aSEmmanuel Vadot 113f126890aSEmmanuel Vadot pinctrl-names = "default"; 114f126890aSEmmanuel Vadot pinctrl-0 = <&ts_int_pin>; 115f126890aSEmmanuel Vadot 116f126890aSEmmanuel Vadot syna,startup-delay-ms = <10>; 117f126890aSEmmanuel Vadot 118f126890aSEmmanuel Vadot rmi4-f01@1 { 119f126890aSEmmanuel Vadot reg = <0x1>; 120f126890aSEmmanuel Vadot syna,nosleep-mode = <1>; 121f126890aSEmmanuel Vadot }; 122f126890aSEmmanuel Vadot 123f126890aSEmmanuel Vadot rmi4-f11@11 { 124f126890aSEmmanuel Vadot reg = <0x11>; 125f126890aSEmmanuel Vadot touchscreen-inverted-x; 126f126890aSEmmanuel Vadot syna,sensor-type = <1>; 127f126890aSEmmanuel Vadot }; 128f126890aSEmmanuel Vadot }; 129f126890aSEmmanuel Vadot}; 130f126890aSEmmanuel Vadot 131f126890aSEmmanuel Vadot&blsp1_i2c6 { 132f126890aSEmmanuel Vadot status = "okay"; 133f126890aSEmmanuel Vadot clock-frequency = <355000>; 134f126890aSEmmanuel Vadot 135f126890aSEmmanuel Vadot nfc@28 { 136f126890aSEmmanuel Vadot compatible = "nxp,pn544-i2c"; 137f126890aSEmmanuel Vadot reg = <0x28>; 138f126890aSEmmanuel Vadot 139f126890aSEmmanuel Vadot interrupt-parent = <&tlmm>; 140f126890aSEmmanuel Vadot interrupts = <59 IRQ_TYPE_EDGE_RISING>; 141f126890aSEmmanuel Vadot 142f126890aSEmmanuel Vadot enable-gpios = <&pm8941_gpios 23 GPIO_ACTIVE_HIGH>; 143f126890aSEmmanuel Vadot firmware-gpios = <&tlmm 77 GPIO_ACTIVE_HIGH>; 144f126890aSEmmanuel Vadot }; 145f126890aSEmmanuel Vadot}; 146f126890aSEmmanuel Vadot 147f126890aSEmmanuel Vadot&blsp1_uart2 { 148f126890aSEmmanuel Vadot status = "okay"; 149f126890aSEmmanuel Vadot}; 150f126890aSEmmanuel Vadot 151f126890aSEmmanuel Vadot&blsp2_dma { 152f126890aSEmmanuel Vadot qcom,controlled-remotely; 153f126890aSEmmanuel Vadot}; 154f126890aSEmmanuel Vadot 155f126890aSEmmanuel Vadot&blsp2_i2c5 { 156f126890aSEmmanuel Vadot status = "okay"; 157f126890aSEmmanuel Vadot clock-frequency = <355000>; 158f126890aSEmmanuel Vadot 159f126890aSEmmanuel Vadot /* sii8334 MHL HDMI bridge */ 160f126890aSEmmanuel Vadot}; 161f126890aSEmmanuel Vadot 162f126890aSEmmanuel Vadot&pm8941_coincell { 163f126890aSEmmanuel Vadot status = "okay"; 164f126890aSEmmanuel Vadot qcom,rset-ohms = <2100>; 165f126890aSEmmanuel Vadot qcom,vset-millivolts = <3000>; 166f126890aSEmmanuel Vadot}; 167f126890aSEmmanuel Vadot 168f126890aSEmmanuel Vadot&pm8941_gpios { 169f126890aSEmmanuel Vadot gpio_keys_pin_a: gpio-keys-active-state { 170f126890aSEmmanuel Vadot pins = "gpio2", "gpio3", "gpio4", "gpio5"; 171f126890aSEmmanuel Vadot function = "normal"; 172f126890aSEmmanuel Vadot 173f126890aSEmmanuel Vadot bias-pull-up; 174f126890aSEmmanuel Vadot power-source = <PM8941_GPIO_S3>; 175f126890aSEmmanuel Vadot }; 176f126890aSEmmanuel Vadot}; 177f126890aSEmmanuel Vadot 178f126890aSEmmanuel Vadot&pm8941_lpg { 179f126890aSEmmanuel Vadot status = "okay"; 180f126890aSEmmanuel Vadot 181f126890aSEmmanuel Vadot qcom,power-source = <1>; 182f126890aSEmmanuel Vadot 183f126890aSEmmanuel Vadot multi-led { 184f126890aSEmmanuel Vadot color = <LED_COLOR_ID_RGB>; 185f126890aSEmmanuel Vadot function = LED_FUNCTION_STATUS; 186f126890aSEmmanuel Vadot 187f126890aSEmmanuel Vadot #address-cells = <1>; 188f126890aSEmmanuel Vadot #size-cells = <0>; 189f126890aSEmmanuel Vadot 190f126890aSEmmanuel Vadot led@5 { 191f126890aSEmmanuel Vadot reg = <5>; 192f126890aSEmmanuel Vadot color = <LED_COLOR_ID_BLUE>; 193f126890aSEmmanuel Vadot }; 194f126890aSEmmanuel Vadot 195f126890aSEmmanuel Vadot led@6 { 196f126890aSEmmanuel Vadot reg = <6>; 197f126890aSEmmanuel Vadot color = <LED_COLOR_ID_GREEN>; 198f126890aSEmmanuel Vadot }; 199f126890aSEmmanuel Vadot 200f126890aSEmmanuel Vadot led@7 { 201f126890aSEmmanuel Vadot reg = <7>; 202f126890aSEmmanuel Vadot color = <LED_COLOR_ID_RED>; 203f126890aSEmmanuel Vadot }; 204f126890aSEmmanuel Vadot }; 205f126890aSEmmanuel Vadot}; 206f126890aSEmmanuel Vadot 207f126890aSEmmanuel Vadot&pm8941_wled { 208f126890aSEmmanuel Vadot status = "okay"; 209f126890aSEmmanuel Vadot 210f126890aSEmmanuel Vadot qcom,cs-out; 211f126890aSEmmanuel Vadot qcom,current-limit = <20>; 212f126890aSEmmanuel Vadot qcom,current-boost-limit = <805>; 213f126890aSEmmanuel Vadot qcom,switching-freq = <1600>; 214f126890aSEmmanuel Vadot qcom,ovp = <29>; 215f126890aSEmmanuel Vadot qcom,num-strings = <2>; 216f126890aSEmmanuel Vadot}; 217f126890aSEmmanuel Vadot 218f126890aSEmmanuel Vadot&remoteproc_adsp { 219f126890aSEmmanuel Vadot cx-supply = <&pm8841_s2>; 220*8d13bc63SEmmanuel Vadot status = "okay"; 221f126890aSEmmanuel Vadot}; 222f126890aSEmmanuel Vadot 223f126890aSEmmanuel Vadot&remoteproc_mss { 224f126890aSEmmanuel Vadot cx-supply = <&pm8841_s2>; 225f126890aSEmmanuel Vadot mss-supply = <&pm8841_s3>; 226f126890aSEmmanuel Vadot mx-supply = <&pm8841_s1>; 227f126890aSEmmanuel Vadot pll-supply = <&pm8941_l12>; 228*8d13bc63SEmmanuel Vadot status = "okay"; 229f126890aSEmmanuel Vadot}; 230f126890aSEmmanuel Vadot 231f126890aSEmmanuel Vadot&rpm_requests { 232f126890aSEmmanuel Vadot regulators-0 { 233f126890aSEmmanuel Vadot compatible = "qcom,rpm-pm8841-regulators"; 234f126890aSEmmanuel Vadot 235f126890aSEmmanuel Vadot pm8841_s1: s1 { 236f126890aSEmmanuel Vadot regulator-min-microvolt = <675000>; 237f126890aSEmmanuel Vadot regulator-max-microvolt = <1050000>; 238f126890aSEmmanuel Vadot }; 239f126890aSEmmanuel Vadot 240f126890aSEmmanuel Vadot pm8841_s2: s2 { 241f126890aSEmmanuel Vadot regulator-min-microvolt = <500000>; 242f126890aSEmmanuel Vadot regulator-max-microvolt = <1050000>; 243f126890aSEmmanuel Vadot }; 244f126890aSEmmanuel Vadot 245f126890aSEmmanuel Vadot pm8841_s3: s3 { 246f126890aSEmmanuel Vadot regulator-min-microvolt = <500000>; 247f126890aSEmmanuel Vadot regulator-max-microvolt = <1050000>; 248f126890aSEmmanuel Vadot }; 249f126890aSEmmanuel Vadot 250f126890aSEmmanuel Vadot pm8841_s4: s4 { 251f126890aSEmmanuel Vadot regulator-min-microvolt = <500000>; 252f126890aSEmmanuel Vadot regulator-max-microvolt = <1050000>; 253f126890aSEmmanuel Vadot }; 254f126890aSEmmanuel Vadot }; 255f126890aSEmmanuel Vadot 256f126890aSEmmanuel Vadot regulators-1 { 257f126890aSEmmanuel Vadot compatible = "qcom,rpm-pm8941-regulators"; 258f126890aSEmmanuel Vadot 259f126890aSEmmanuel Vadot vdd_l1_l3-supply = <&pm8941_s1>; 260f126890aSEmmanuel Vadot vdd_l2_lvs1_2_3-supply = <&pm8941_s3>; 261f126890aSEmmanuel Vadot vdd_l4_l11-supply = <&pm8941_s1>; 262f126890aSEmmanuel Vadot vdd_l5_l7-supply = <&pm8941_s2>; 263f126890aSEmmanuel Vadot vdd_l6_l12_l14_l15-supply = <&pm8941_s2>; 264f126890aSEmmanuel Vadot vdd_l9_l10_l17_l22-supply = <&vreg_boost>; 265f126890aSEmmanuel Vadot vdd_l13_l20_l23_l24-supply = <&vreg_boost>; 266f126890aSEmmanuel Vadot vdd_l21-supply = <&vreg_boost>; 267f126890aSEmmanuel Vadot 268f126890aSEmmanuel Vadot pm8941_s1: s1 { 269f126890aSEmmanuel Vadot regulator-min-microvolt = <1300000>; 270f126890aSEmmanuel Vadot regulator-max-microvolt = <1300000>; 271f126890aSEmmanuel Vadot regulator-always-on; 272f126890aSEmmanuel Vadot regulator-boot-on; 273f126890aSEmmanuel Vadot }; 274f126890aSEmmanuel Vadot 275f126890aSEmmanuel Vadot pm8941_s2: s2 { 276f126890aSEmmanuel Vadot regulator-min-microvolt = <2150000>; 277f126890aSEmmanuel Vadot regulator-max-microvolt = <2150000>; 278f126890aSEmmanuel Vadot regulator-boot-on; 279f126890aSEmmanuel Vadot }; 280f126890aSEmmanuel Vadot 281f126890aSEmmanuel Vadot pm8941_s3: s3 { 282f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 283f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 284f126890aSEmmanuel Vadot regulator-always-on; 285f126890aSEmmanuel Vadot regulator-boot-on; 286f126890aSEmmanuel Vadot }; 287f126890aSEmmanuel Vadot 288f126890aSEmmanuel Vadot pm8941_s4: s4 { 289f126890aSEmmanuel Vadot regulator-min-microvolt = <5000000>; 290f126890aSEmmanuel Vadot regulator-max-microvolt = <5000000>; 291f126890aSEmmanuel Vadot }; 292f126890aSEmmanuel Vadot 293f126890aSEmmanuel Vadot pm8941_l1: l1 { 294f126890aSEmmanuel Vadot regulator-min-microvolt = <1225000>; 295f126890aSEmmanuel Vadot regulator-max-microvolt = <1225000>; 296f126890aSEmmanuel Vadot regulator-always-on; 297f126890aSEmmanuel Vadot regulator-boot-on; 298f126890aSEmmanuel Vadot }; 299f126890aSEmmanuel Vadot 300f126890aSEmmanuel Vadot pm8941_l2: l2 { 301f126890aSEmmanuel Vadot regulator-min-microvolt = <1200000>; 302f126890aSEmmanuel Vadot regulator-max-microvolt = <1200000>; 303f126890aSEmmanuel Vadot }; 304f126890aSEmmanuel Vadot 305f126890aSEmmanuel Vadot pm8941_l3: l3 { 306f126890aSEmmanuel Vadot regulator-min-microvolt = <1200000>; 307f126890aSEmmanuel Vadot regulator-max-microvolt = <1200000>; 308f126890aSEmmanuel Vadot }; 309f126890aSEmmanuel Vadot 310f126890aSEmmanuel Vadot pm8941_l4: l4 { 311f126890aSEmmanuel Vadot regulator-min-microvolt = <1225000>; 312f126890aSEmmanuel Vadot regulator-max-microvolt = <1225000>; 313f126890aSEmmanuel Vadot }; 314f126890aSEmmanuel Vadot 315f126890aSEmmanuel Vadot pm8941_l5: l5 { 316f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 317f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 318f126890aSEmmanuel Vadot }; 319f126890aSEmmanuel Vadot 320f126890aSEmmanuel Vadot pm8941_l6: l6 { 321f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 322f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 323f126890aSEmmanuel Vadot regulator-boot-on; 324f126890aSEmmanuel Vadot }; 325f126890aSEmmanuel Vadot 326f126890aSEmmanuel Vadot pm8941_l7: l7 { 327f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 328f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 329f126890aSEmmanuel Vadot regulator-boot-on; 330f126890aSEmmanuel Vadot }; 331f126890aSEmmanuel Vadot 332f126890aSEmmanuel Vadot pm8941_l8: l8 { 333f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 334f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 335f126890aSEmmanuel Vadot }; 336f126890aSEmmanuel Vadot 337f126890aSEmmanuel Vadot pm8941_l9: l9 { 338f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 339f126890aSEmmanuel Vadot regulator-max-microvolt = <2950000>; 340f126890aSEmmanuel Vadot }; 341f126890aSEmmanuel Vadot 342f126890aSEmmanuel Vadot pm8941_l11: l11 { 343f126890aSEmmanuel Vadot regulator-min-microvolt = <1300000>; 344f126890aSEmmanuel Vadot regulator-max-microvolt = <1350000>; 345f126890aSEmmanuel Vadot }; 346f126890aSEmmanuel Vadot 347f126890aSEmmanuel Vadot pm8941_l12: l12 { 348f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 349f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 350f126890aSEmmanuel Vadot regulator-always-on; 351f126890aSEmmanuel Vadot regulator-boot-on; 352f126890aSEmmanuel Vadot }; 353f126890aSEmmanuel Vadot 354f126890aSEmmanuel Vadot pm8941_l13: l13 { 355f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 356f126890aSEmmanuel Vadot regulator-max-microvolt = <2950000>; 357f126890aSEmmanuel Vadot regulator-boot-on; 358f126890aSEmmanuel Vadot }; 359f126890aSEmmanuel Vadot 360f126890aSEmmanuel Vadot pm8941_l14: l14 { 361f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 362f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 363f126890aSEmmanuel Vadot }; 364f126890aSEmmanuel Vadot 365f126890aSEmmanuel Vadot pm8941_l15: l15 { 366f126890aSEmmanuel Vadot regulator-min-microvolt = <2050000>; 367f126890aSEmmanuel Vadot regulator-max-microvolt = <2050000>; 368f126890aSEmmanuel Vadot }; 369f126890aSEmmanuel Vadot 370f126890aSEmmanuel Vadot pm8941_l16: l16 { 371f126890aSEmmanuel Vadot regulator-min-microvolt = <2700000>; 372f126890aSEmmanuel Vadot regulator-max-microvolt = <2700000>; 373f126890aSEmmanuel Vadot }; 374f126890aSEmmanuel Vadot 375f126890aSEmmanuel Vadot pm8941_l17: l17 { 376f126890aSEmmanuel Vadot regulator-min-microvolt = <2700000>; 377f126890aSEmmanuel Vadot regulator-max-microvolt = <2700000>; 378f126890aSEmmanuel Vadot }; 379f126890aSEmmanuel Vadot 380f126890aSEmmanuel Vadot pm8941_l18: l18 { 381f126890aSEmmanuel Vadot regulator-min-microvolt = <2850000>; 382f126890aSEmmanuel Vadot regulator-max-microvolt = <2850000>; 383f126890aSEmmanuel Vadot }; 384f126890aSEmmanuel Vadot 385f126890aSEmmanuel Vadot pm8941_l19: l19 { 386f126890aSEmmanuel Vadot regulator-min-microvolt = <3300000>; 387f126890aSEmmanuel Vadot regulator-max-microvolt = <3300000>; 388f126890aSEmmanuel Vadot }; 389f126890aSEmmanuel Vadot 390f126890aSEmmanuel Vadot pm8941_l20: l20 { 391f126890aSEmmanuel Vadot regulator-min-microvolt = <2950000>; 392f126890aSEmmanuel Vadot regulator-max-microvolt = <2950000>; 393f126890aSEmmanuel Vadot regulator-system-load = <200000>; 394f126890aSEmmanuel Vadot regulator-allow-set-load; 395f126890aSEmmanuel Vadot regulator-boot-on; 396f126890aSEmmanuel Vadot }; 397f126890aSEmmanuel Vadot 398f126890aSEmmanuel Vadot pm8941_l21: l21 { 399f126890aSEmmanuel Vadot regulator-min-microvolt = <2950000>; 400f126890aSEmmanuel Vadot regulator-max-microvolt = <2950000>; 401f126890aSEmmanuel Vadot regulator-boot-on; 402f126890aSEmmanuel Vadot }; 403f126890aSEmmanuel Vadot 404f126890aSEmmanuel Vadot pm8941_l22: l22 { 405f126890aSEmmanuel Vadot regulator-min-microvolt = <3000000>; 406f126890aSEmmanuel Vadot regulator-max-microvolt = <3000000>; 407f126890aSEmmanuel Vadot }; 408f126890aSEmmanuel Vadot 409f126890aSEmmanuel Vadot pm8941_l23: l23 { 410f126890aSEmmanuel Vadot regulator-min-microvolt = <2800000>; 411f126890aSEmmanuel Vadot regulator-max-microvolt = <2800000>; 412f126890aSEmmanuel Vadot }; 413f126890aSEmmanuel Vadot 414f126890aSEmmanuel Vadot pm8941_l24: l24 { 415f126890aSEmmanuel Vadot regulator-min-microvolt = <3075000>; 416f126890aSEmmanuel Vadot regulator-max-microvolt = <3075000>; 417f126890aSEmmanuel Vadot regulator-boot-on; 418f126890aSEmmanuel Vadot }; 419f126890aSEmmanuel Vadot 420f126890aSEmmanuel Vadot pm8941_lvs3: lvs3 {}; 421f126890aSEmmanuel Vadot }; 422f126890aSEmmanuel Vadot}; 423f126890aSEmmanuel Vadot 424f126890aSEmmanuel Vadot&sdhc_1 { 425f126890aSEmmanuel Vadot status = "okay"; 426f126890aSEmmanuel Vadot 427f126890aSEmmanuel Vadot vmmc-supply = <&pm8941_l20>; 428f126890aSEmmanuel Vadot vqmmc-supply = <&pm8941_s3>; 429f126890aSEmmanuel Vadot 430f126890aSEmmanuel Vadot pinctrl-names = "default", "sleep"; 431f126890aSEmmanuel Vadot pinctrl-0 = <&sdc1_on>; 432f126890aSEmmanuel Vadot pinctrl-1 = <&sdc1_off>; 433f126890aSEmmanuel Vadot}; 434f126890aSEmmanuel Vadot 435f126890aSEmmanuel Vadot&sdhc_2 { 436f126890aSEmmanuel Vadot status = "okay"; 437f126890aSEmmanuel Vadot 438f126890aSEmmanuel Vadot vmmc-supply = <&pm8941_l21>; 439f126890aSEmmanuel Vadot vqmmc-supply = <&pm8941_l13>; 440f126890aSEmmanuel Vadot 441f126890aSEmmanuel Vadot cd-gpios = <&tlmm 62 GPIO_ACTIVE_LOW>; 442f126890aSEmmanuel Vadot 443f126890aSEmmanuel Vadot pinctrl-names = "default", "sleep"; 444f126890aSEmmanuel Vadot pinctrl-0 = <&sdc2_on>; 445f126890aSEmmanuel Vadot pinctrl-1 = <&sdc2_off>; 446f126890aSEmmanuel Vadot}; 447f126890aSEmmanuel Vadot 448f126890aSEmmanuel Vadot&smbb { 449f126890aSEmmanuel Vadot qcom,fast-charge-safe-current = <1500000>; 450f126890aSEmmanuel Vadot qcom,fast-charge-current-limit = <1500000>; 451f126890aSEmmanuel Vadot qcom,dc-current-limit = <1800000>; 452f126890aSEmmanuel Vadot qcom,fast-charge-safe-voltage = <4400000>; 453f126890aSEmmanuel Vadot qcom,fast-charge-high-threshold-voltage = <4350000>; 454f126890aSEmmanuel Vadot qcom,fast-charge-low-threshold-voltage = <3400000>; 455f126890aSEmmanuel Vadot qcom,auto-recharge-threshold-voltage = <4200000>; 456f126890aSEmmanuel Vadot qcom,minimum-input-voltage = <4300000>; 457*8d13bc63SEmmanuel Vadot 458*8d13bc63SEmmanuel Vadot status = "okay"; 459f126890aSEmmanuel Vadot}; 460f126890aSEmmanuel Vadot 461f126890aSEmmanuel Vadot&tlmm { 462f126890aSEmmanuel Vadot ts_int_pin: touch-int-state { 463f126890aSEmmanuel Vadot pins = "gpio61"; 464f126890aSEmmanuel Vadot function = "gpio"; 465f126890aSEmmanuel Vadot drive-strength = <2>; 466f126890aSEmmanuel Vadot bias-disable; 467f126890aSEmmanuel Vadot }; 468f126890aSEmmanuel Vadot 469f126890aSEmmanuel Vadot sdc1_on: sdc1-on-state { 470f126890aSEmmanuel Vadot clk-pins { 471f126890aSEmmanuel Vadot pins = "sdc1_clk"; 472f126890aSEmmanuel Vadot drive-strength = <16>; 473f126890aSEmmanuel Vadot bias-disable; 474f126890aSEmmanuel Vadot }; 475f126890aSEmmanuel Vadot 476f126890aSEmmanuel Vadot cmd-data-pins { 477f126890aSEmmanuel Vadot pins = "sdc1_cmd", "sdc1_data"; 478f126890aSEmmanuel Vadot drive-strength = <10>; 479f126890aSEmmanuel Vadot bias-pull-up; 480f126890aSEmmanuel Vadot }; 481f126890aSEmmanuel Vadot }; 482f126890aSEmmanuel Vadot 483f126890aSEmmanuel Vadot sdc2_on: sdc-on-state { 484f126890aSEmmanuel Vadot clk-pins { 485f126890aSEmmanuel Vadot pins = "sdc2_clk"; 486f126890aSEmmanuel Vadot drive-strength = <10>; 487f126890aSEmmanuel Vadot bias-disable; 488f126890aSEmmanuel Vadot }; 489f126890aSEmmanuel Vadot 490f126890aSEmmanuel Vadot cmd-data-pins { 491f126890aSEmmanuel Vadot pins = "sdc2_cmd", "sdc2_data"; 492f126890aSEmmanuel Vadot drive-strength = <6>; 493f126890aSEmmanuel Vadot bias-pull-up; 494f126890aSEmmanuel Vadot }; 495f126890aSEmmanuel Vadot 496f126890aSEmmanuel Vadot cd-pins { 497f126890aSEmmanuel Vadot pins = "gpio62"; 498f126890aSEmmanuel Vadot function = "gpio"; 499f126890aSEmmanuel Vadot drive-strength = <2>; 500f126890aSEmmanuel Vadot bias-disable; 501f126890aSEmmanuel Vadot }; 502f126890aSEmmanuel Vadot }; 503f126890aSEmmanuel Vadot}; 504f126890aSEmmanuel Vadot 505f126890aSEmmanuel Vadot&usb { 506f126890aSEmmanuel Vadot status = "okay"; 507f126890aSEmmanuel Vadot 508f126890aSEmmanuel Vadot phys = <&usb_hs1_phy>; 509f126890aSEmmanuel Vadot phy-select = <&tcsr 0xb000 0>; 510f126890aSEmmanuel Vadot extcon = <&smbb>, <&usb_id>; 511f126890aSEmmanuel Vadot vbus-supply = <&chg_otg>; 512f126890aSEmmanuel Vadot 513f126890aSEmmanuel Vadot hnp-disable; 514f126890aSEmmanuel Vadot srp-disable; 515f126890aSEmmanuel Vadot adp-disable; 516f126890aSEmmanuel Vadot}; 517f126890aSEmmanuel Vadot 518f126890aSEmmanuel Vadot&usb_hs1_phy { 519f126890aSEmmanuel Vadot status = "okay"; 520f126890aSEmmanuel Vadot 521f126890aSEmmanuel Vadot v1p8-supply = <&pm8941_l6>; 522f126890aSEmmanuel Vadot v3p3-supply = <&pm8941_l24>; 523f126890aSEmmanuel Vadot 524f126890aSEmmanuel Vadot extcon = <&smbb>; 525f126890aSEmmanuel Vadot qcom,init-seq = /bits/ 8 <0x1 0x64>; 526f126890aSEmmanuel Vadot}; 527