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/pinctrl/qcom,pmic-gpio.h> 7f126890aSEmmanuel Vadot 8f126890aSEmmanuel Vadot/ { 9f126890aSEmmanuel Vadot model = "OnePlus One"; 10f126890aSEmmanuel Vadot compatible = "oneplus,bacon", "qcom,msm8974pro", "qcom,msm8974"; 11f126890aSEmmanuel Vadot chassis-type = "handset"; 12f126890aSEmmanuel Vadot qcom,msm-id = <194 0x10000>; 13f126890aSEmmanuel Vadot qcom,board-id = <8 0>; 14f126890aSEmmanuel Vadot 15f126890aSEmmanuel Vadot aliases { 16f126890aSEmmanuel Vadot serial0 = &blsp1_uart2; 17f126890aSEmmanuel Vadot }; 18f126890aSEmmanuel Vadot 19f126890aSEmmanuel Vadot chosen { 20f126890aSEmmanuel Vadot stdout-path = "serial0:115200n8"; 21f126890aSEmmanuel Vadot }; 22f126890aSEmmanuel Vadot 23f126890aSEmmanuel Vadot gpio-keys { 24f126890aSEmmanuel Vadot compatible = "gpio-keys"; 25f126890aSEmmanuel Vadot 26f126890aSEmmanuel Vadot pinctrl-0 = <&gpio_keys_default>, <&gpio_hall_sensor_default>; 27f126890aSEmmanuel Vadot pinctrl-names = "default"; 28f126890aSEmmanuel Vadot 29f126890aSEmmanuel Vadot key-volume-down { 30f126890aSEmmanuel Vadot label = "Volume Down"; 31f126890aSEmmanuel Vadot gpios = <&pm8941_gpios 2 GPIO_ACTIVE_LOW>; 32f126890aSEmmanuel Vadot linux,code = <KEY_VOLUMEDOWN>; 33f126890aSEmmanuel Vadot wakeup-source; 34f126890aSEmmanuel Vadot debounce-interval = <15>; 35f126890aSEmmanuel Vadot }; 36f126890aSEmmanuel Vadot 37f126890aSEmmanuel Vadot key-volume-up { 38f126890aSEmmanuel Vadot label = "Volume Up"; 39f126890aSEmmanuel Vadot gpios = <&pm8941_gpios 5 GPIO_ACTIVE_LOW>; 40f126890aSEmmanuel Vadot linux,code = <KEY_VOLUMEUP>; 41f126890aSEmmanuel Vadot wakeup-source; 42f126890aSEmmanuel Vadot debounce-interval = <15>; 43f126890aSEmmanuel Vadot }; 44f126890aSEmmanuel Vadot 45f126890aSEmmanuel Vadot event-hall-sensor { 46f126890aSEmmanuel Vadot label = "Hall Effect Sensor"; 47f126890aSEmmanuel Vadot gpios = <&tlmm 68 GPIO_ACTIVE_LOW>; 48f126890aSEmmanuel Vadot linux,input-type = <EV_SW>; 49f126890aSEmmanuel Vadot linux,code = <SW_LID>; 50f126890aSEmmanuel Vadot linux,can-disable; 51f126890aSEmmanuel Vadot debounce-interval = <150>; 52f126890aSEmmanuel Vadot }; 53f126890aSEmmanuel Vadot }; 54*8d13bc63SEmmanuel Vadot 55*8d13bc63SEmmanuel Vadot vreg_boost: vreg-boost { 56*8d13bc63SEmmanuel Vadot compatible = "regulator-fixed"; 57*8d13bc63SEmmanuel Vadot 58*8d13bc63SEmmanuel Vadot regulator-name = "vreg-boost"; 59*8d13bc63SEmmanuel Vadot regulator-min-microvolt = <3150000>; 60*8d13bc63SEmmanuel Vadot regulator-max-microvolt = <3150000>; 61*8d13bc63SEmmanuel Vadot 62*8d13bc63SEmmanuel Vadot regulator-always-on; 63*8d13bc63SEmmanuel Vadot regulator-boot-on; 64*8d13bc63SEmmanuel Vadot 65*8d13bc63SEmmanuel Vadot gpio = <&pm8941_gpios 21 GPIO_ACTIVE_HIGH>; 66*8d13bc63SEmmanuel Vadot enable-active-high; 67*8d13bc63SEmmanuel Vadot 68*8d13bc63SEmmanuel Vadot pinctrl-names = "default"; 69*8d13bc63SEmmanuel Vadot pinctrl-0 = <&boost_bypass_n_pin>; 70*8d13bc63SEmmanuel Vadot }; 71*8d13bc63SEmmanuel Vadot 72*8d13bc63SEmmanuel Vadot vreg_vph_pwr: vreg-vph-pwr { 73*8d13bc63SEmmanuel Vadot compatible = "regulator-fixed"; 74*8d13bc63SEmmanuel Vadot regulator-name = "vph-pwr"; 75*8d13bc63SEmmanuel Vadot 76*8d13bc63SEmmanuel Vadot regulator-min-microvolt = <3600000>; 77*8d13bc63SEmmanuel Vadot regulator-max-microvolt = <3600000>; 78*8d13bc63SEmmanuel Vadot 79*8d13bc63SEmmanuel Vadot regulator-always-on; 80*8d13bc63SEmmanuel Vadot }; 81f126890aSEmmanuel Vadot}; 82f126890aSEmmanuel Vadot 83f126890aSEmmanuel Vadot&blsp1_i2c1 { 84f126890aSEmmanuel Vadot status = "okay"; 85f126890aSEmmanuel Vadot 86f126890aSEmmanuel Vadot fuel-gauge@55 { 87f126890aSEmmanuel Vadot compatible = "ti,bq27541"; 88f126890aSEmmanuel Vadot reg = <0x55>; 89f126890aSEmmanuel Vadot power-supplies = <&bq24196_charger>; 90f126890aSEmmanuel Vadot }; 91f126890aSEmmanuel Vadot}; 92f126890aSEmmanuel Vadot 93f126890aSEmmanuel Vadot&blsp1_i2c2 { 94f126890aSEmmanuel Vadot status = "okay"; 95f126890aSEmmanuel Vadot 96f126890aSEmmanuel Vadot rmi4-i2c-dev@20 { 97f126890aSEmmanuel Vadot compatible = "syna,rmi4-i2c"; 98f126890aSEmmanuel Vadot reg = <0x20>; 99f126890aSEmmanuel Vadot 100f126890aSEmmanuel Vadot syna,startup-delay-ms = <100>; 101f126890aSEmmanuel Vadot 102f126890aSEmmanuel Vadot interrupts-extended = <&tlmm 61 IRQ_TYPE_EDGE_FALLING>; 103f126890aSEmmanuel Vadot vdd-supply = <&pm8941_l22>; 104f126890aSEmmanuel Vadot vio-supply = <&pm8941_lvs3>; 105f126890aSEmmanuel Vadot 106f126890aSEmmanuel Vadot pinctrl-names = "default"; 107f126890aSEmmanuel Vadot pinctrl-0 = <&touch_default_state>; 108f126890aSEmmanuel Vadot 109f126890aSEmmanuel Vadot #address-cells = <1>; 110f126890aSEmmanuel Vadot #size-cells = <0>; 111f126890aSEmmanuel Vadot 112f126890aSEmmanuel Vadot rmi4-f01@1 { 113f126890aSEmmanuel Vadot reg = <0x1>; 114f126890aSEmmanuel Vadot syna,nosleep-mode = <1>; 115f126890aSEmmanuel Vadot }; 116f126890aSEmmanuel Vadot 117f126890aSEmmanuel Vadot rmi4-f12@12 { 118f126890aSEmmanuel Vadot reg = <0x12>; 119f126890aSEmmanuel Vadot syna,sensor-type = <1>; 120f126890aSEmmanuel Vadot /* 121f126890aSEmmanuel Vadot * Touchscreen size is 2040x1080, y-values between 122f126890aSEmmanuel Vadot * 1920-2040 are used for touchkey (menu, home & back). 123f126890aSEmmanuel Vadot * For now clip it off so we don't get touch events 124f126890aSEmmanuel Vadot * outside of the display area. 125f126890aSEmmanuel Vadot */ 126f126890aSEmmanuel Vadot syna,clip-y-high = <1920>; 127f126890aSEmmanuel Vadot }; 128f126890aSEmmanuel Vadot }; 129f126890aSEmmanuel Vadot 130f126890aSEmmanuel Vadot led-controller@36 { 131f126890aSEmmanuel Vadot compatible = "ti,lm3630a"; 132f126890aSEmmanuel Vadot reg = <0x36>; 133f126890aSEmmanuel Vadot 134f126890aSEmmanuel Vadot #address-cells = <1>; 135f126890aSEmmanuel Vadot #size-cells = <0>; 136f126890aSEmmanuel Vadot 137f126890aSEmmanuel Vadot led@0 { 138f126890aSEmmanuel Vadot reg = <0>; 139f126890aSEmmanuel Vadot led-sources = <0 1>; 140f126890aSEmmanuel Vadot label = "lcd-backlight"; 141f126890aSEmmanuel Vadot default-brightness = <80>; 142f126890aSEmmanuel Vadot }; 143f126890aSEmmanuel Vadot }; 144f126890aSEmmanuel Vadot 145f126890aSEmmanuel Vadot led-controller@68 { 146f126890aSEmmanuel Vadot compatible = "si-en,sn3193"; 147f126890aSEmmanuel Vadot reg = <0x68>; 148f126890aSEmmanuel Vadot 149f126890aSEmmanuel Vadot shutdown-gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>; 150f126890aSEmmanuel Vadot 151f126890aSEmmanuel Vadot #address-cells = <1>; 152f126890aSEmmanuel Vadot #size-cells = <0>; 153f126890aSEmmanuel Vadot 154f126890aSEmmanuel Vadot led@1 { 155f126890aSEmmanuel Vadot reg = <1>; 156f126890aSEmmanuel Vadot label = "red:status"; 157f126890aSEmmanuel Vadot led-max-microamp = <17500>; 158f126890aSEmmanuel Vadot }; 159f126890aSEmmanuel Vadot 160f126890aSEmmanuel Vadot led@2 { 161f126890aSEmmanuel Vadot reg = <2>; 162f126890aSEmmanuel Vadot label = "green:status"; 163f126890aSEmmanuel Vadot led-max-microamp = <17500>; 164f126890aSEmmanuel Vadot }; 165f126890aSEmmanuel Vadot 166f126890aSEmmanuel Vadot led@3 { 167f126890aSEmmanuel Vadot reg = <3>; 168f126890aSEmmanuel Vadot label = "blue:status"; 169f126890aSEmmanuel Vadot led-max-microamp = <17500>; 170f126890aSEmmanuel Vadot }; 171f126890aSEmmanuel Vadot }; 172f126890aSEmmanuel Vadot}; 173f126890aSEmmanuel Vadot 174f126890aSEmmanuel Vadot&blsp1_i2c6 { 175f126890aSEmmanuel Vadot status = "okay"; 176f126890aSEmmanuel Vadot 177f126890aSEmmanuel Vadot bq24196_charger: charger@6b { 178f126890aSEmmanuel Vadot compatible = "ti,bq24196"; 179f126890aSEmmanuel Vadot reg = <0x6b>; 180f126890aSEmmanuel Vadot interrupts-extended = <&tlmm 31 IRQ_TYPE_EDGE_FALLING>; 181f126890aSEmmanuel Vadot omit-battery-class; 182f126890aSEmmanuel Vadot }; 183f126890aSEmmanuel Vadot}; 184f126890aSEmmanuel Vadot 185f126890aSEmmanuel Vadot&blsp1_uart2 { 186f126890aSEmmanuel Vadot status = "okay"; 187f126890aSEmmanuel Vadot}; 188f126890aSEmmanuel Vadot 189f126890aSEmmanuel Vadot&gcc { 190f126890aSEmmanuel Vadot compatible = "qcom,gcc-msm8974pro-ac"; 191f126890aSEmmanuel Vadot}; 192f126890aSEmmanuel Vadot 193f126890aSEmmanuel Vadot&pm8941_coincell { 194f126890aSEmmanuel Vadot qcom,rset-ohms = <800>; 195f126890aSEmmanuel Vadot qcom,vset-millivolts = <3200>; 196f126890aSEmmanuel Vadot 197f126890aSEmmanuel Vadot status = "okay"; 198f126890aSEmmanuel Vadot}; 199f126890aSEmmanuel Vadot 200f126890aSEmmanuel Vadot&pm8941_gpios { 201f126890aSEmmanuel Vadot gpio_keys_default: gpio-keys-active-state { 202f126890aSEmmanuel Vadot pins = "gpio2", "gpio5"; 203f126890aSEmmanuel Vadot function = "normal"; 204f126890aSEmmanuel Vadot input-enable; 205f126890aSEmmanuel Vadot bias-disable; 206f126890aSEmmanuel Vadot power-source = <PM8941_GPIO_S3>; 207f126890aSEmmanuel Vadot }; 208f126890aSEmmanuel Vadot}; 209f126890aSEmmanuel Vadot 210f126890aSEmmanuel Vadot&pm8941_vib { 211f126890aSEmmanuel Vadot status = "okay"; 212f126890aSEmmanuel Vadot}; 213f126890aSEmmanuel Vadot 214f126890aSEmmanuel Vadot&pronto { 215f126890aSEmmanuel Vadot vddmx-supply = <&pm8841_s1>; 216f126890aSEmmanuel Vadot vddcx-supply = <&pm8841_s2>; 217f126890aSEmmanuel Vadot vddpx-supply = <&pm8941_s3>; 218f126890aSEmmanuel Vadot 219f126890aSEmmanuel Vadot pinctrl-names = "default"; 220f126890aSEmmanuel Vadot pinctrl-0 = <&wcnss_pin_a>; 221f126890aSEmmanuel Vadot 222f126890aSEmmanuel Vadot status = "okay"; 223f126890aSEmmanuel Vadot 224f126890aSEmmanuel Vadot iris { 225f126890aSEmmanuel Vadot vddxo-supply = <&pm8941_l6>; 226f126890aSEmmanuel Vadot vddrfa-supply = <&pm8941_l11>; 227f126890aSEmmanuel Vadot vddpa-supply = <&pm8941_l19>; 228f126890aSEmmanuel Vadot vdddig-supply = <&pm8941_s3>; 229f126890aSEmmanuel Vadot }; 230f126890aSEmmanuel Vadot 231f126890aSEmmanuel Vadot smd-edge { 232f126890aSEmmanuel Vadot qcom,remote-pid = <4>; 233f126890aSEmmanuel Vadot label = "pronto"; 234f126890aSEmmanuel Vadot 235f126890aSEmmanuel Vadot wcnss { 236f126890aSEmmanuel Vadot status = "okay"; 237f126890aSEmmanuel Vadot }; 238f126890aSEmmanuel Vadot }; 239f126890aSEmmanuel Vadot}; 240f126890aSEmmanuel Vadot 241f126890aSEmmanuel Vadot&remoteproc_adsp { 242f126890aSEmmanuel Vadot cx-supply = <&pm8841_s2>; 243f126890aSEmmanuel Vadot 244f126890aSEmmanuel Vadot status = "okay"; 245f126890aSEmmanuel Vadot}; 246f126890aSEmmanuel Vadot 247f126890aSEmmanuel Vadot&rpm_requests { 248f126890aSEmmanuel Vadot regulators-0 { 249f126890aSEmmanuel Vadot compatible = "qcom,rpm-pm8841-regulators"; 250f126890aSEmmanuel Vadot 251f126890aSEmmanuel Vadot pm8841_s1: s1 { 252f126890aSEmmanuel Vadot regulator-min-microvolt = <675000>; 253f126890aSEmmanuel Vadot regulator-max-microvolt = <1050000>; 254f126890aSEmmanuel Vadot }; 255f126890aSEmmanuel Vadot 256f126890aSEmmanuel Vadot pm8841_s2: s2 { 257f126890aSEmmanuel Vadot regulator-min-microvolt = <875000>; 258f126890aSEmmanuel Vadot regulator-max-microvolt = <1050000>; 259f126890aSEmmanuel Vadot regulator-always-on; 260f126890aSEmmanuel Vadot }; 261f126890aSEmmanuel Vadot 262f126890aSEmmanuel Vadot pm8841_s3: s3 { 263f126890aSEmmanuel Vadot regulator-min-microvolt = <1050000>; 264f126890aSEmmanuel Vadot regulator-max-microvolt = <1050000>; 265f126890aSEmmanuel Vadot }; 266f126890aSEmmanuel Vadot }; 267f126890aSEmmanuel Vadot 268f126890aSEmmanuel Vadot regulators-1 { 269f126890aSEmmanuel Vadot compatible = "qcom,rpm-pm8941-regulators"; 270f126890aSEmmanuel Vadot 271f126890aSEmmanuel Vadot vdd_l1_l3-supply = <&pm8941_s1>; 272f126890aSEmmanuel Vadot vdd_l2_lvs1_2_3-supply = <&pm8941_s3>; 273f126890aSEmmanuel Vadot vdd_l4_l11-supply = <&pm8941_s1>; 274f126890aSEmmanuel Vadot vdd_l5_l7-supply = <&pm8941_s2>; 275f126890aSEmmanuel Vadot vdd_l6_l12_l14_l15-supply = <&pm8941_s2>; 276f126890aSEmmanuel Vadot vdd_l8_l16_l18_l19-supply = <&vreg_vph_pwr>; 277f126890aSEmmanuel Vadot vdd_l9_l10_l17_l22-supply = <&vreg_boost>; 278f126890aSEmmanuel Vadot vdd_l13_l20_l23_l24-supply = <&vreg_boost>; 279f126890aSEmmanuel Vadot vdd_l21-supply = <&vreg_boost>; 280f126890aSEmmanuel Vadot 281f126890aSEmmanuel Vadot pm8941_s1: s1 { 282f126890aSEmmanuel Vadot regulator-min-microvolt = <1300000>; 283f126890aSEmmanuel Vadot regulator-max-microvolt = <1300000>; 284f126890aSEmmanuel Vadot 285f126890aSEmmanuel Vadot regulator-always-on; 286f126890aSEmmanuel Vadot regulator-boot-on; 287f126890aSEmmanuel Vadot }; 288f126890aSEmmanuel Vadot 289f126890aSEmmanuel Vadot pm8941_s2: s2 { 290f126890aSEmmanuel Vadot regulator-min-microvolt = <2150000>; 291f126890aSEmmanuel Vadot regulator-max-microvolt = <2150000>; 292f126890aSEmmanuel Vadot 293f126890aSEmmanuel Vadot regulator-boot-on; 294f126890aSEmmanuel Vadot }; 295f126890aSEmmanuel Vadot 296f126890aSEmmanuel Vadot pm8941_s3: s3 { 297f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 298f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 299f126890aSEmmanuel Vadot regulator-system-load = <154000>; 300f126890aSEmmanuel Vadot 301f126890aSEmmanuel Vadot regulator-always-on; 302f126890aSEmmanuel Vadot regulator-boot-on; 303f126890aSEmmanuel Vadot regulator-allow-set-load; 304f126890aSEmmanuel Vadot }; 305f126890aSEmmanuel Vadot 306f126890aSEmmanuel Vadot pm8941_l1: l1 { 307f126890aSEmmanuel Vadot regulator-min-microvolt = <1225000>; 308f126890aSEmmanuel Vadot regulator-max-microvolt = <1225000>; 309f126890aSEmmanuel Vadot 310f126890aSEmmanuel Vadot regulator-always-on; 311f126890aSEmmanuel Vadot regulator-boot-on; 312f126890aSEmmanuel Vadot }; 313f126890aSEmmanuel Vadot 314f126890aSEmmanuel Vadot pm8941_l2: l2 { 315f126890aSEmmanuel Vadot regulator-min-microvolt = <1200000>; 316f126890aSEmmanuel Vadot regulator-max-microvolt = <1200000>; 317f126890aSEmmanuel Vadot }; 318f126890aSEmmanuel Vadot 319f126890aSEmmanuel Vadot pm8941_l3: l3 { 320f126890aSEmmanuel Vadot regulator-min-microvolt = <1225000>; 321f126890aSEmmanuel Vadot regulator-max-microvolt = <1225000>; 322f126890aSEmmanuel Vadot }; 323f126890aSEmmanuel Vadot 324f126890aSEmmanuel Vadot pm8941_l4: l4 { 325f126890aSEmmanuel Vadot regulator-min-microvolt = <1225000>; 326f126890aSEmmanuel Vadot regulator-max-microvolt = <1225000>; 327f126890aSEmmanuel Vadot }; 328f126890aSEmmanuel Vadot 329f126890aSEmmanuel Vadot pm8941_l5: l5 { 330f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 331f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 332f126890aSEmmanuel Vadot }; 333f126890aSEmmanuel Vadot 334f126890aSEmmanuel Vadot pm8941_l6: l6 { 335f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 336f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 337f126890aSEmmanuel Vadot 338f126890aSEmmanuel Vadot regulator-boot-on; 339f126890aSEmmanuel Vadot }; 340f126890aSEmmanuel Vadot 341f126890aSEmmanuel Vadot pm8941_l7: l7 { 342f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 343f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 344f126890aSEmmanuel Vadot 345f126890aSEmmanuel Vadot regulator-boot-on; 346f126890aSEmmanuel Vadot }; 347f126890aSEmmanuel Vadot 348f126890aSEmmanuel Vadot pm8941_l8: l8 { 349f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 350f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 351f126890aSEmmanuel Vadot }; 352f126890aSEmmanuel Vadot 353f126890aSEmmanuel Vadot pm8941_l9: l9 { 354f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 355f126890aSEmmanuel Vadot regulator-max-microvolt = <2950000>; 356f126890aSEmmanuel Vadot }; 357f126890aSEmmanuel Vadot 358f126890aSEmmanuel Vadot pm8941_l10: l10 { 359f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 360f126890aSEmmanuel Vadot regulator-max-microvolt = <2950000>; 361f126890aSEmmanuel Vadot }; 362f126890aSEmmanuel Vadot 363f126890aSEmmanuel Vadot pm8941_l11: l11 { 364f126890aSEmmanuel Vadot regulator-min-microvolt = <1225000>; 365f126890aSEmmanuel Vadot regulator-max-microvolt = <1350000>; 366f126890aSEmmanuel Vadot }; 367f126890aSEmmanuel Vadot 368f126890aSEmmanuel Vadot pm8941_l12: l12 { 369f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 370f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 371f126890aSEmmanuel Vadot 372f126890aSEmmanuel Vadot regulator-always-on; 373f126890aSEmmanuel Vadot regulator-boot-on; 374f126890aSEmmanuel Vadot regulator-allow-set-load; 375f126890aSEmmanuel Vadot }; 376f126890aSEmmanuel Vadot 377f126890aSEmmanuel Vadot pm8941_l13: l13 { 378f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 379f126890aSEmmanuel Vadot regulator-max-microvolt = <2950000>; 380f126890aSEmmanuel Vadot 381f126890aSEmmanuel Vadot regulator-boot-on; 382f126890aSEmmanuel Vadot }; 383f126890aSEmmanuel Vadot 384f126890aSEmmanuel Vadot pm8941_l14: l14 { 385f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 386f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 387f126890aSEmmanuel Vadot }; 388f126890aSEmmanuel Vadot 389f126890aSEmmanuel Vadot pm8941_l15: l15 { 390f126890aSEmmanuel Vadot regulator-min-microvolt = <2050000>; 391f126890aSEmmanuel Vadot regulator-max-microvolt = <2050000>; 392f126890aSEmmanuel Vadot }; 393f126890aSEmmanuel Vadot 394f126890aSEmmanuel Vadot pm8941_l16: l16 { 395f126890aSEmmanuel Vadot regulator-min-microvolt = <2700000>; 396f126890aSEmmanuel Vadot regulator-max-microvolt = <2700000>; 397f126890aSEmmanuel Vadot }; 398f126890aSEmmanuel Vadot 399f126890aSEmmanuel Vadot pm8941_l17: l17 { 400f126890aSEmmanuel Vadot regulator-min-microvolt = <2850000>; 401f126890aSEmmanuel Vadot regulator-max-microvolt = <2850000>; 402f126890aSEmmanuel Vadot }; 403f126890aSEmmanuel Vadot 404f126890aSEmmanuel Vadot pm8941_l18: l18 { 405f126890aSEmmanuel Vadot regulator-min-microvolt = <2850000>; 406f126890aSEmmanuel Vadot regulator-max-microvolt = <2850000>; 407f126890aSEmmanuel Vadot }; 408f126890aSEmmanuel Vadot 409f126890aSEmmanuel Vadot pm8941_l19: l19 { 410f126890aSEmmanuel Vadot regulator-min-microvolt = <2900000>; 411f126890aSEmmanuel Vadot regulator-max-microvolt = <3350000>; 412f126890aSEmmanuel Vadot }; 413f126890aSEmmanuel Vadot 414f126890aSEmmanuel Vadot pm8941_l20: l20 { 415f126890aSEmmanuel Vadot regulator-min-microvolt = <2950000>; 416f126890aSEmmanuel Vadot regulator-max-microvolt = <2950000>; 417f126890aSEmmanuel Vadot 418f126890aSEmmanuel Vadot regulator-system-load = <200000>; 419f126890aSEmmanuel Vadot regulator-allow-set-load; 420f126890aSEmmanuel Vadot regulator-boot-on; 421f126890aSEmmanuel Vadot }; 422f126890aSEmmanuel Vadot 423f126890aSEmmanuel Vadot pm8941_l21: l21 { 424f126890aSEmmanuel Vadot regulator-min-microvolt = <2950000>; 425f126890aSEmmanuel Vadot regulator-max-microvolt = <2950000>; 426f126890aSEmmanuel Vadot 427f126890aSEmmanuel Vadot regulator-boot-on; 428f126890aSEmmanuel Vadot }; 429f126890aSEmmanuel Vadot 430f126890aSEmmanuel Vadot pm8941_l22: l22 { 431f126890aSEmmanuel Vadot regulator-min-microvolt = <3000000>; 432f126890aSEmmanuel Vadot regulator-max-microvolt = <3000000>; 433f126890aSEmmanuel Vadot regulator-allow-set-load; 434f126890aSEmmanuel Vadot }; 435f126890aSEmmanuel Vadot 436f126890aSEmmanuel Vadot pm8941_l23: l23 { 437f126890aSEmmanuel Vadot regulator-min-microvolt = <3000000>; 438f126890aSEmmanuel Vadot regulator-max-microvolt = <3000000>; 439f126890aSEmmanuel Vadot }; 440f126890aSEmmanuel Vadot 441f126890aSEmmanuel Vadot pm8941_l24: l24 { 442f126890aSEmmanuel Vadot regulator-min-microvolt = <3075000>; 443f126890aSEmmanuel Vadot regulator-max-microvolt = <3075000>; 444f126890aSEmmanuel Vadot 445f126890aSEmmanuel Vadot regulator-boot-on; 446f126890aSEmmanuel Vadot }; 447f126890aSEmmanuel Vadot 448f126890aSEmmanuel Vadot pm8941_lvs3: lvs3 {}; 449f126890aSEmmanuel Vadot }; 450f126890aSEmmanuel Vadot}; 451f126890aSEmmanuel Vadot 452f126890aSEmmanuel Vadot&sdhc_1 { 453f126890aSEmmanuel Vadot vmmc-supply = <&pm8941_l20>; 454f126890aSEmmanuel Vadot vqmmc-supply = <&pm8941_s3>; 455f126890aSEmmanuel Vadot 456f126890aSEmmanuel Vadot pinctrl-names = "default", "sleep"; 457f126890aSEmmanuel Vadot pinctrl-0 = <&sdc1_on>; 458f126890aSEmmanuel Vadot pinctrl-1 = <&sdc1_off>; 459f126890aSEmmanuel Vadot 460f126890aSEmmanuel Vadot status = "okay"; 461f126890aSEmmanuel Vadot}; 462f126890aSEmmanuel Vadot 463*8d13bc63SEmmanuel Vadot&smbb { 464*8d13bc63SEmmanuel Vadot status = "okay"; 465*8d13bc63SEmmanuel Vadot}; 466*8d13bc63SEmmanuel Vadot 467f126890aSEmmanuel Vadot&tlmm { 468f126890aSEmmanuel Vadot gpio_hall_sensor_default: gpio-hall-sensor-default-state { 469f126890aSEmmanuel Vadot pins = "gpio68"; 470f126890aSEmmanuel Vadot function = "gpio"; 471f126890aSEmmanuel Vadot drive-strength = <8>; 472f126890aSEmmanuel Vadot bias-pull-up; 473f126890aSEmmanuel Vadot }; 474f126890aSEmmanuel Vadot 475f126890aSEmmanuel Vadot sdc1_on: sdc1-on-state { 476f126890aSEmmanuel Vadot clk-pins { 477f126890aSEmmanuel Vadot pins = "sdc1_clk"; 478f126890aSEmmanuel Vadot drive-strength = <4>; 479f126890aSEmmanuel Vadot bias-disable; 480f126890aSEmmanuel Vadot }; 481f126890aSEmmanuel Vadot 482f126890aSEmmanuel Vadot cmd-data-pins { 483f126890aSEmmanuel Vadot pins = "sdc1_cmd", "sdc1_data"; 484f126890aSEmmanuel Vadot drive-strength = <4>; 485f126890aSEmmanuel Vadot bias-pull-up; 486f126890aSEmmanuel Vadot }; 487f126890aSEmmanuel Vadot }; 488f126890aSEmmanuel Vadot 489f126890aSEmmanuel Vadot touch_default_state: touch-default-state { 490f126890aSEmmanuel Vadot int-pins { 491f126890aSEmmanuel Vadot pins = "gpio61"; 492f126890aSEmmanuel Vadot function = "gpio"; 493f126890aSEmmanuel Vadot drive-strength = <2>; 494f126890aSEmmanuel Vadot bias-disable; 495f126890aSEmmanuel Vadot }; 496f126890aSEmmanuel Vadot 497f126890aSEmmanuel Vadot reset-pins { 498f126890aSEmmanuel Vadot pins = "gpio60"; 499f126890aSEmmanuel Vadot function = "gpio"; 500f126890aSEmmanuel Vadot drive-strength = <2>; 501f126890aSEmmanuel Vadot bias-pull-up; 502f126890aSEmmanuel Vadot }; 503f126890aSEmmanuel Vadot }; 504f126890aSEmmanuel Vadot 505f126890aSEmmanuel Vadot wcnss_pin_a: wcnss-pin-active-state { 506f126890aSEmmanuel Vadot wlan-pins { 507f126890aSEmmanuel Vadot pins = "gpio36", "gpio37", "gpio38", "gpio39", "gpio40"; 508f126890aSEmmanuel Vadot function = "wlan"; 509f126890aSEmmanuel Vadot drive-strength = <6>; 510f126890aSEmmanuel Vadot bias-pull-down; 511f126890aSEmmanuel Vadot }; 512f126890aSEmmanuel Vadot 513f126890aSEmmanuel Vadot bt-pins { 514f126890aSEmmanuel Vadot pins = "gpio35", "gpio43", "gpio44"; 515f126890aSEmmanuel Vadot function = "bt"; 516f126890aSEmmanuel Vadot drive-strength = <2>; 517f126890aSEmmanuel Vadot bias-pull-down; 518f126890aSEmmanuel Vadot }; 519f126890aSEmmanuel Vadot }; 520f126890aSEmmanuel Vadot}; 521f126890aSEmmanuel Vadot 522f126890aSEmmanuel Vadot&usb { 523f126890aSEmmanuel Vadot phys = <&usb_hs1_phy>; 524f126890aSEmmanuel Vadot phy-select = <&tcsr 0xb000 0>; 525f126890aSEmmanuel Vadot extcon = <&smbb>, <&usb_id>; 526f126890aSEmmanuel Vadot vbus-supply = <&chg_otg>; 527f126890aSEmmanuel Vadot 528f126890aSEmmanuel Vadot hnp-disable; 529f126890aSEmmanuel Vadot srp-disable; 530f126890aSEmmanuel Vadot adp-disable; 531f126890aSEmmanuel Vadot 532f126890aSEmmanuel Vadot status = "okay"; 533f126890aSEmmanuel Vadot}; 534f126890aSEmmanuel Vadot 535f126890aSEmmanuel Vadot&usb_hs1_phy { 536f126890aSEmmanuel Vadot status = "okay"; 537f126890aSEmmanuel Vadot 538f126890aSEmmanuel Vadot v1p8-supply = <&pm8941_l6>; 539f126890aSEmmanuel Vadot v3p3-supply = <&pm8941_l24>; 540f126890aSEmmanuel Vadot 541f126890aSEmmanuel Vadot extcon = <&smbb>; 542f126890aSEmmanuel Vadot qcom,init-seq = /bits/ 8 <0x1 0x64>; 543f126890aSEmmanuel Vadot}; 544