18bab661aSEmmanuel Vadot// SPDX-License-Identifier: BSD-3-Clause 28bab661aSEmmanuel Vadot/* 38bab661aSEmmanuel Vadot * Xiaomi Mi 6 (sagit) device tree source based on msm8998-mtp.dtsi 48bab661aSEmmanuel Vadot * 58bab661aSEmmanuel Vadot * Copyright (c) 2022, The Linux Foundation. All rights reserved. 68bab661aSEmmanuel Vadot * Copyright (c) 2022, Degdag Mohamed <degdagmohamed@gmail.com> 78bab661aSEmmanuel Vadot * Copyright (c) 2022, Dzmitry Sankouski <dsankouski@gmail.com> 88bab661aSEmmanuel Vadot */ 98bab661aSEmmanuel Vadot 108bab661aSEmmanuel Vadot/dts-v1/; 118bab661aSEmmanuel Vadot 128bab661aSEmmanuel Vadot#include "msm8998.dtsi" 138bab661aSEmmanuel Vadot#include "pm8005.dtsi" 148bab661aSEmmanuel Vadot#include "pm8998.dtsi" 158bab661aSEmmanuel Vadot#include "pmi8998.dtsi" 168bab661aSEmmanuel Vadot#include <dt-bindings/input/input.h> 178bab661aSEmmanuel Vadot#include <dt-bindings/leds/common.h> 188bab661aSEmmanuel Vadot#include <dt-bindings/pinctrl/qcom,pmic-gpio.h> 198bab661aSEmmanuel Vadot 208bab661aSEmmanuel Vadot/* 218bab661aSEmmanuel Vadot * Delete following upstream (msm8998.dtsi) reserved 228bab661aSEmmanuel Vadot * memory mappings which are different in this device. 238bab661aSEmmanuel Vadot */ 248bab661aSEmmanuel Vadot/delete-node/ &adsp_mem; 258bab661aSEmmanuel Vadot/delete-node/ &mpss_mem; 268bab661aSEmmanuel Vadot/delete-node/ &venus_mem; 278bab661aSEmmanuel Vadot/delete-node/ &mba_mem; 288bab661aSEmmanuel Vadot/delete-node/ &slpi_mem; 298bab661aSEmmanuel Vadot/delete-node/ &ipa_fw_mem; 308bab661aSEmmanuel Vadot/delete-node/ &ipa_gsi_mem; 318bab661aSEmmanuel Vadot/delete-node/ &gpu_mem; 328bab661aSEmmanuel Vadot/delete-node/ &wlan_msa_mem; 338bab661aSEmmanuel Vadot 348bab661aSEmmanuel Vadot/ { 358bab661aSEmmanuel Vadot model = "Xiaomi Mi 6"; 368bab661aSEmmanuel Vadot compatible = "xiaomi,sagit", "qcom,msm8998"; 378bab661aSEmmanuel Vadot chassis-type = "handset"; 388bab661aSEmmanuel Vadot /* Required for bootloader to select correct board */ 398bab661aSEmmanuel Vadot qcom,board-id = <30 0>; 408bab661aSEmmanuel Vadot 418bab661aSEmmanuel Vadot reserved-memory { 428bab661aSEmmanuel Vadot /* 438bab661aSEmmanuel Vadot * Xiaomi's ADSP firmware requires 30 MiB in total, so increase the adsp_mem 448bab661aSEmmanuel Vadot * region by 4 MiB to account for this while relocating the other now 458bab661aSEmmanuel Vadot * conflicting memory nodes accordingly. 468bab661aSEmmanuel Vadot */ 478bab661aSEmmanuel Vadot adsp_mem: memory@8b200000 { 488bab661aSEmmanuel Vadot reg = <0x0 0x8b200000 0x0 0x1e00000>; 498bab661aSEmmanuel Vadot no-map; 508bab661aSEmmanuel Vadot }; 518bab661aSEmmanuel Vadot 528bab661aSEmmanuel Vadot mpss_mem: memory@8d000000 { 538bab661aSEmmanuel Vadot reg = <0x0 0x8d000000 0x0 0x7000000>; 548bab661aSEmmanuel Vadot no-map; 558bab661aSEmmanuel Vadot }; 568bab661aSEmmanuel Vadot 578bab661aSEmmanuel Vadot venus_mem: memory@94000000 { 588bab661aSEmmanuel Vadot reg = <0x0 0x94000000 0x0 0x500000>; 598bab661aSEmmanuel Vadot no-map; 608bab661aSEmmanuel Vadot }; 618bab661aSEmmanuel Vadot 628bab661aSEmmanuel Vadot mba_mem: memory@94500000 { 638bab661aSEmmanuel Vadot reg = <0x0 0x94500000 0x0 0x200000>; 648bab661aSEmmanuel Vadot no-map; 658bab661aSEmmanuel Vadot }; 668bab661aSEmmanuel Vadot 678bab661aSEmmanuel Vadot slpi_mem: memory@94700000 { 688bab661aSEmmanuel Vadot reg = <0x0 0x94700000 0x0 0xf00000>; 698bab661aSEmmanuel Vadot no-map; 708bab661aSEmmanuel Vadot }; 718bab661aSEmmanuel Vadot 728bab661aSEmmanuel Vadot ipa_fw_mem: memory@95600000 { 738bab661aSEmmanuel Vadot reg = <0x0 0x95600000 0x0 0x10000>; 748bab661aSEmmanuel Vadot no-map; 758bab661aSEmmanuel Vadot }; 768bab661aSEmmanuel Vadot 778bab661aSEmmanuel Vadot ipa_gsi_mem: memory@95610000 { 788bab661aSEmmanuel Vadot reg = <0x0 0x95610000 0x0 0x5000>; 798bab661aSEmmanuel Vadot no-map; 808bab661aSEmmanuel Vadot }; 818bab661aSEmmanuel Vadot 828bab661aSEmmanuel Vadot gpu_mem: memory@95615000 { 838bab661aSEmmanuel Vadot reg = <0x0 0x95615000 0x0 0x100000>; 848bab661aSEmmanuel Vadot no-map; 858bab661aSEmmanuel Vadot }; 868bab661aSEmmanuel Vadot 878bab661aSEmmanuel Vadot wlan_msa_mem: memory@95715000 { 888bab661aSEmmanuel Vadot reg = <0x0 0x95715000 0x0 0x100000>; 898bab661aSEmmanuel Vadot no-map; 908bab661aSEmmanuel Vadot }; 918bab661aSEmmanuel Vadot 928bab661aSEmmanuel Vadot /* Bootloader display framebuffer region */ 938bab661aSEmmanuel Vadot cont_splash_mem: memory@9d400000 { 948bab661aSEmmanuel Vadot reg = <0x0 0x9d400000 0x0 0x2400000>; 958bab661aSEmmanuel Vadot no-map; 968bab661aSEmmanuel Vadot }; 978bab661aSEmmanuel Vadot 988bab661aSEmmanuel Vadot /* For getting crash logs using Android downstream kernels */ 998bab661aSEmmanuel Vadot ramoops@ac000000 { 1008bab661aSEmmanuel Vadot compatible = "ramoops"; 1018bab661aSEmmanuel Vadot reg = <0x0 0xac000000 0x0 0x200000>; 1028bab661aSEmmanuel Vadot console-size = <0x80000>; 1038bab661aSEmmanuel Vadot pmsg-size = <0x40000>; 1048bab661aSEmmanuel Vadot record-size = <0x8000>; 1058bab661aSEmmanuel Vadot ftrace-size = <0x20000>; 1068bab661aSEmmanuel Vadot }; 1078bab661aSEmmanuel Vadot 1088bab661aSEmmanuel Vadot /* 1098bab661aSEmmanuel Vadot * The following memory regions on downstream are "dynamically allocated" 1108bab661aSEmmanuel Vadot * but given the same addresses every time. Hard code them as these addresses 1118bab661aSEmmanuel Vadot * are where the Xiaomi signed firmware expects them to be. 1128bab661aSEmmanuel Vadot */ 1138bab661aSEmmanuel Vadot ipa_fws_region: memory@f7800000 { 1148bab661aSEmmanuel Vadot compatible = "shared-dma-pool"; 1158bab661aSEmmanuel Vadot reg = <0x0 0xf7800000 0x0 0x5000>; 1168bab661aSEmmanuel Vadot no-map; 1178bab661aSEmmanuel Vadot }; 1188bab661aSEmmanuel Vadot 1198bab661aSEmmanuel Vadot zap_shader_region: memory@f7900000 { 1208bab661aSEmmanuel Vadot compatible = "shared-dma-pool"; 1218bab661aSEmmanuel Vadot reg = <0x0 0xf7900000 0x0 0x2000>; 1228bab661aSEmmanuel Vadot no-map; 1238bab661aSEmmanuel Vadot }; 1248bab661aSEmmanuel Vadot }; 1258bab661aSEmmanuel Vadot 1268bab661aSEmmanuel Vadot gpio-keys { 1278bab661aSEmmanuel Vadot compatible = "gpio-keys"; 1288bab661aSEmmanuel Vadot label = "Volume buttons"; 1298bab661aSEmmanuel Vadot autorepeat; 1308bab661aSEmmanuel Vadot 1318bab661aSEmmanuel Vadot pinctrl-names = "default"; 1328bab661aSEmmanuel Vadot pinctrl-0 = <&vol_up_key_default>; 1338bab661aSEmmanuel Vadot 1348bab661aSEmmanuel Vadot key-vol-up { 1358bab661aSEmmanuel Vadot label = "Volume up"; 136cb7aa33aSEmmanuel Vadot gpios = <&pm8998_gpios 6 GPIO_ACTIVE_LOW>; 1378bab661aSEmmanuel Vadot linux,code = <KEY_VOLUMEUP>; 1388bab661aSEmmanuel Vadot debounce-interval = <15>; 1398bab661aSEmmanuel Vadot wakeup-source; 1408bab661aSEmmanuel Vadot }; 1418bab661aSEmmanuel Vadot }; 1428bab661aSEmmanuel Vadot 1438bab661aSEmmanuel Vadot gpio-hall-sensor { 1448bab661aSEmmanuel Vadot compatible = "gpio-keys"; 1458bab661aSEmmanuel Vadot label = "Hall effect sensor"; 1468bab661aSEmmanuel Vadot 1478bab661aSEmmanuel Vadot pinctrl-names = "default"; 1488bab661aSEmmanuel Vadot pinctrl-0 = <&hall_sensor_default_state>; 1498bab661aSEmmanuel Vadot 1508bab661aSEmmanuel Vadot event-hall-sensor { 1518bab661aSEmmanuel Vadot label = "Hall Effect Sensor"; 1528bab661aSEmmanuel Vadot gpios = <&tlmm 124 GPIO_ACTIVE_LOW>; 1538bab661aSEmmanuel Vadot linux,input-type = <EV_SW>; 1548bab661aSEmmanuel Vadot linux,code = <SW_LID>; 1558bab661aSEmmanuel Vadot linux,can-disable; 1568bab661aSEmmanuel Vadot wakeup-source; 1578bab661aSEmmanuel Vadot }; 1588bab661aSEmmanuel Vadot }; 1598bab661aSEmmanuel Vadot 1608bab661aSEmmanuel Vadot vph_pwr: vph-pwr-regulator { 1618bab661aSEmmanuel Vadot compatible = "regulator-fixed"; 1628bab661aSEmmanuel Vadot regulator-name = "vph_pwr"; 1638bab661aSEmmanuel Vadot regulator-min-microvolt = <3700000>; 1648bab661aSEmmanuel Vadot regulator-max-microvolt = <3700000>; 1658bab661aSEmmanuel Vadot regulator-always-on; 1668bab661aSEmmanuel Vadot regulator-boot-on; 1678bab661aSEmmanuel Vadot }; 1688bab661aSEmmanuel Vadot 1698bab661aSEmmanuel Vadot disp_vddts_vreg: disp-vddts-regulator { 1708bab661aSEmmanuel Vadot compatible = "regulator-fixed"; 1718bab661aSEmmanuel Vadot regulator-name = "disp-vddts-regulator"; 1728bab661aSEmmanuel Vadot gpio = <&tlmm 50 GPIO_ACTIVE_HIGH>; 1738bab661aSEmmanuel Vadot enable-active-high; 1748bab661aSEmmanuel Vadot regulator-boot-on; 1758bab661aSEmmanuel Vadot }; 1768bab661aSEmmanuel Vadot}; 1778bab661aSEmmanuel Vadot 1788bab661aSEmmanuel Vadot&blsp1_i2c5 { 1798bab661aSEmmanuel Vadot pinctrl-names = "default", "sleep"; 1808bab661aSEmmanuel Vadot status = "okay"; 1818bab661aSEmmanuel Vadot 1828bab661aSEmmanuel Vadot touchscreen@20 { 1838bab661aSEmmanuel Vadot compatible = "syna,rmi4-i2c"; 1848bab661aSEmmanuel Vadot reg = <0x20>; 1858bab661aSEmmanuel Vadot #address-cells = <1>; 1868bab661aSEmmanuel Vadot #size-cells = <0>; 1878bab661aSEmmanuel Vadot 1888bab661aSEmmanuel Vadot interrupt-parent = <&tlmm>; 1898bab661aSEmmanuel Vadot interrupts = <125 IRQ_TYPE_EDGE_FALLING>; 1908bab661aSEmmanuel Vadot 1918bab661aSEmmanuel Vadot pinctrl-names = "default", "sleep"; 1928bab661aSEmmanuel Vadot pinctrl-0 = <&ts_active_state>; 1938bab661aSEmmanuel Vadot pinctrl-1 = <&ts_int_suspend_state &ts_reset_suspend_state>; 1948bab661aSEmmanuel Vadot 1958bab661aSEmmanuel Vadot vdd-supply = <&disp_vddts_vreg>; 1968bab661aSEmmanuel Vadot vio-supply = <&vreg_l6a_1p8>; 1978bab661aSEmmanuel Vadot 1988bab661aSEmmanuel Vadot syna,reset-delay-ms = <20>; 1998bab661aSEmmanuel Vadot syna,startup-delay-ms = <20>; 2008bab661aSEmmanuel Vadot 2018bab661aSEmmanuel Vadot rmi4-f01@1 { 2028bab661aSEmmanuel Vadot reg = <0x01>; 2038bab661aSEmmanuel Vadot syna,nosleep-mode = <1>; 2048bab661aSEmmanuel Vadot }; 2058bab661aSEmmanuel Vadot 2068bab661aSEmmanuel Vadot rmi4-f12@12 { 2078bab661aSEmmanuel Vadot reg = <0x12>; 2088bab661aSEmmanuel Vadot touchscreen-x-mm = <64>; 2098bab661aSEmmanuel Vadot touchscreen-y-mm = <114>; 2108bab661aSEmmanuel Vadot syna,sensor-type = <1>; 2118bab661aSEmmanuel Vadot syna,rezero-wait-ms = <20>; 2128bab661aSEmmanuel Vadot }; 2138bab661aSEmmanuel Vadot 2148bab661aSEmmanuel Vadot rmi4-f1a@1a { 2158bab661aSEmmanuel Vadot reg = <0x1a>; 2168bab661aSEmmanuel Vadot }; 2178bab661aSEmmanuel Vadot }; 2188bab661aSEmmanuel Vadot}; 2198bab661aSEmmanuel Vadot 2208bab661aSEmmanuel Vadot&blsp1_i2c5_sleep { 2218bab661aSEmmanuel Vadot /delete-property/ bias-pull-up; 2228bab661aSEmmanuel Vadot bias-disable; 2238bab661aSEmmanuel Vadot}; 2248bab661aSEmmanuel Vadot 2258bab661aSEmmanuel Vadot&blsp1_uart3 { 2268bab661aSEmmanuel Vadot status = "okay"; 2278bab661aSEmmanuel Vadot 2288bab661aSEmmanuel Vadot bluetooth { 2298bab661aSEmmanuel Vadot compatible = "qcom,wcn3990-bt"; 2308bab661aSEmmanuel Vadot 2318bab661aSEmmanuel Vadot vddio-supply = <&vreg_s4a_1p8>; 2328bab661aSEmmanuel Vadot vddxo-supply = <&vreg_l7a_1p8>; 2338bab661aSEmmanuel Vadot vddrf-supply = <&vreg_l17a_1p3>; 2348bab661aSEmmanuel Vadot vddch0-supply = <&vreg_l25a_3p3>; 2358bab661aSEmmanuel Vadot max-speed = <3200000>; 2368bab661aSEmmanuel Vadot }; 2378bab661aSEmmanuel Vadot}; 2388bab661aSEmmanuel Vadot 2398bab661aSEmmanuel Vadot&blsp1_uart3_on { 2408bab661aSEmmanuel Vadot rx-pins { 2418bab661aSEmmanuel Vadot /delete-property/ bias-disable; 2428bab661aSEmmanuel Vadot /* 2438bab661aSEmmanuel Vadot * Configure a pull-up on 46 (RX). This is needed to 2448bab661aSEmmanuel Vadot * avoid garbage data when the TX pin of the Bluetooth 2458bab661aSEmmanuel Vadot * module is in tri-state (module powered off or not 2468bab661aSEmmanuel Vadot * driving the signal yet). 2478bab661aSEmmanuel Vadot */ 2488bab661aSEmmanuel Vadot bias-pull-up; 2498bab661aSEmmanuel Vadot }; 2508bab661aSEmmanuel Vadot 2518bab661aSEmmanuel Vadot cts-pins { 2528bab661aSEmmanuel Vadot /delete-property/ bias-disable; 2538bab661aSEmmanuel Vadot /* 2548bab661aSEmmanuel Vadot * Configure a pull-down on 47 (CTS) to match the pull 2558bab661aSEmmanuel Vadot * of the Bluetooth module. 2568bab661aSEmmanuel Vadot */ 2578bab661aSEmmanuel Vadot bias-pull-down; 2588bab661aSEmmanuel Vadot }; 2598bab661aSEmmanuel Vadot}; 2608bab661aSEmmanuel Vadot 2618bab661aSEmmanuel Vadot&blsp2_uart1 { 2628bab661aSEmmanuel Vadot status = "okay"; 2638bab661aSEmmanuel Vadot}; 2648bab661aSEmmanuel Vadot 2658bab661aSEmmanuel Vadot&pm8005_regulators { 2668bab661aSEmmanuel Vadot compatible = "qcom,pm8005-regulators"; 2678bab661aSEmmanuel Vadot 2688bab661aSEmmanuel Vadot vdd_s1-supply = <&vph_pwr>; 2698bab661aSEmmanuel Vadot 2708bab661aSEmmanuel Vadot pm8005_s1: s1 { /* VDD_GFX supply */ 2718bab661aSEmmanuel Vadot regulator-min-microvolt = <524000>; 2728bab661aSEmmanuel Vadot regulator-max-microvolt = <1100000>; 2738bab661aSEmmanuel Vadot regulator-enable-ramp-delay = <500>; 2748bab661aSEmmanuel Vadot 2758bab661aSEmmanuel Vadot /* hack until we rig up the gpu consumer */ 2768bab661aSEmmanuel Vadot regulator-always-on; 2778bab661aSEmmanuel Vadot }; 2788bab661aSEmmanuel Vadot}; 2798bab661aSEmmanuel Vadot 280cb7aa33aSEmmanuel Vadot&pm8998_gpios { 2818bab661aSEmmanuel Vadot vol_up_key_default: vol-up-key-default-state { 2828bab661aSEmmanuel Vadot pins = "gpio6"; 2838bab661aSEmmanuel Vadot function = "normal"; 2848bab661aSEmmanuel Vadot bias-pull-up; 2858bab661aSEmmanuel Vadot input-enable; 2868bab661aSEmmanuel Vadot qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>; 2878bab661aSEmmanuel Vadot }; 2888bab661aSEmmanuel Vadot 2898bab661aSEmmanuel Vadot audio_mclk_pin: audio-mclk-pin-active-state { 2908bab661aSEmmanuel Vadot pins = "gpio13"; 2918bab661aSEmmanuel Vadot function = "func2"; 2928bab661aSEmmanuel Vadot power-source = <0>; 2938bab661aSEmmanuel Vadot }; 2948bab661aSEmmanuel Vadot}; 2958bab661aSEmmanuel Vadot 2968bab661aSEmmanuel Vadot&qusb2phy { 2978bab661aSEmmanuel Vadot vdd-supply = <&vreg_l1a_0p875>; 2988bab661aSEmmanuel Vadot vdda-pll-supply = <&vreg_l12a_1p8>; 2998bab661aSEmmanuel Vadot vdda-phy-dpdm-supply = <&vreg_l24a_3p075>; 3008bab661aSEmmanuel Vadot status = "okay"; 3018bab661aSEmmanuel Vadot}; 3028bab661aSEmmanuel Vadot 3038bab661aSEmmanuel Vadot&rpm_requests { 3048bab661aSEmmanuel Vadot regulators-0 { 3058bab661aSEmmanuel Vadot compatible = "qcom,rpm-pm8998-regulators"; 3068bab661aSEmmanuel Vadot 3078bab661aSEmmanuel Vadot vdd_s1-supply = <&vph_pwr>; 3088bab661aSEmmanuel Vadot vdd_s2-supply = <&vph_pwr>; 3098bab661aSEmmanuel Vadot vdd_s3-supply = <&vph_pwr>; 3108bab661aSEmmanuel Vadot vdd_s4-supply = <&vph_pwr>; 3118bab661aSEmmanuel Vadot vdd_s5-supply = <&vph_pwr>; 3128bab661aSEmmanuel Vadot vdd_s6-supply = <&vph_pwr>; 3138bab661aSEmmanuel Vadot vdd_s7-supply = <&vph_pwr>; 3148bab661aSEmmanuel Vadot vdd_s8-supply = <&vph_pwr>; 3158bab661aSEmmanuel Vadot vdd_s9-supply = <&vph_pwr>; 3168bab661aSEmmanuel Vadot vdd_s10-supply = <&vph_pwr>; 3178bab661aSEmmanuel Vadot vdd_s11-supply = <&vph_pwr>; 3188bab661aSEmmanuel Vadot vdd_s12-supply = <&vph_pwr>; 3198bab661aSEmmanuel Vadot vdd_s13-supply = <&vph_pwr>; 3208bab661aSEmmanuel Vadot vdd_l1_l27-supply = <&vreg_s7a_1p025>; 3218bab661aSEmmanuel Vadot vdd_l2_l8_l17-supply = <&vreg_s3a_1p35>; 3228bab661aSEmmanuel Vadot vdd_l3_l11-supply = <&vreg_s7a_1p025>; 3238bab661aSEmmanuel Vadot vdd_l4_l5-supply = <&vreg_s7a_1p025>; 3248bab661aSEmmanuel Vadot vdd_l6-supply = <&vreg_s5a_2p04>; 3258bab661aSEmmanuel Vadot vdd_l7_l12_l14_l15-supply = <&vreg_s5a_2p04>; 3268bab661aSEmmanuel Vadot vdd_l9-supply = <&vreg_bob>; 3278bab661aSEmmanuel Vadot vdd_l10_l23_l25-supply = <&vreg_bob>; 3288bab661aSEmmanuel Vadot vdd_l13_l19_l21-supply = <&vreg_bob>; 3298bab661aSEmmanuel Vadot vdd_l16_l28-supply = <&vreg_bob>; 3308bab661aSEmmanuel Vadot vdd_l18_l22-supply = <&vreg_bob>; 3318bab661aSEmmanuel Vadot vdd_l20_l24-supply = <&vreg_bob>; 3328bab661aSEmmanuel Vadot vdd_l26-supply = <&vreg_s3a_1p35>; 3338bab661aSEmmanuel Vadot vdd_lvs1_lvs2-supply = <&vreg_s4a_1p8>; 3348bab661aSEmmanuel Vadot 3358bab661aSEmmanuel Vadot vreg_s3a_1p35: s3 { 3368bab661aSEmmanuel Vadot regulator-min-microvolt = <1352000>; 3378bab661aSEmmanuel Vadot regulator-max-microvolt = <1352000>; 3388bab661aSEmmanuel Vadot }; 3398bab661aSEmmanuel Vadot 3408bab661aSEmmanuel Vadot vreg_s4a_1p8: s4 { 3418bab661aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 3428bab661aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 3438bab661aSEmmanuel Vadot regulator-allow-set-load; 3448bab661aSEmmanuel Vadot }; 3458bab661aSEmmanuel Vadot 3468bab661aSEmmanuel Vadot vreg_s5a_2p04: s5 { 3478bab661aSEmmanuel Vadot regulator-min-microvolt = <1904000>; 3488bab661aSEmmanuel Vadot regulator-max-microvolt = <2040000>; 3498bab661aSEmmanuel Vadot }; 3508bab661aSEmmanuel Vadot 3518bab661aSEmmanuel Vadot vreg_s7a_1p025: s7 { 3528bab661aSEmmanuel Vadot regulator-min-microvolt = <900000>; 3538bab661aSEmmanuel Vadot regulator-max-microvolt = <1028000>; 3548bab661aSEmmanuel Vadot }; 3558bab661aSEmmanuel Vadot 3568bab661aSEmmanuel Vadot vreg_l1a_0p875: l1 { 3578bab661aSEmmanuel Vadot regulator-min-microvolt = <880000>; 3588bab661aSEmmanuel Vadot regulator-max-microvolt = <880000>; 3598bab661aSEmmanuel Vadot }; 3608bab661aSEmmanuel Vadot 3618bab661aSEmmanuel Vadot vreg_l2a_1p2: l2 { 3628bab661aSEmmanuel Vadot regulator-min-microvolt = <1200000>; 3638bab661aSEmmanuel Vadot regulator-max-microvolt = <1200000>; 3648bab661aSEmmanuel Vadot }; 3658bab661aSEmmanuel Vadot 3668bab661aSEmmanuel Vadot vreg_l3a_1p0: l3 { 3678bab661aSEmmanuel Vadot regulator-min-microvolt = <1000000>; 3688bab661aSEmmanuel Vadot regulator-max-microvolt = <1000000>; 3698bab661aSEmmanuel Vadot }; 3708bab661aSEmmanuel Vadot 3718bab661aSEmmanuel Vadot vreg_l5a_0p8: l5 { 3728bab661aSEmmanuel Vadot regulator-min-microvolt = <800000>; 3738bab661aSEmmanuel Vadot regulator-max-microvolt = <800000>; 3748bab661aSEmmanuel Vadot }; 3758bab661aSEmmanuel Vadot 3768bab661aSEmmanuel Vadot vreg_l6a_1p8: l6 { 3778bab661aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 3788bab661aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 3798bab661aSEmmanuel Vadot }; 3808bab661aSEmmanuel Vadot 3818bab661aSEmmanuel Vadot vreg_l7a_1p8: l7 { 3828bab661aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 3838bab661aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 3848bab661aSEmmanuel Vadot }; 3858bab661aSEmmanuel Vadot 3868bab661aSEmmanuel Vadot vreg_l8a_1p2: l8 { 3878bab661aSEmmanuel Vadot regulator-min-microvolt = <1200000>; 3888bab661aSEmmanuel Vadot regulator-max-microvolt = <1200000>; 3898bab661aSEmmanuel Vadot }; 3908bab661aSEmmanuel Vadot 3918bab661aSEmmanuel Vadot vreg_l9a_1p8: l9 { 3928bab661aSEmmanuel Vadot regulator-min-microvolt = <1808000>; 3938bab661aSEmmanuel Vadot regulator-max-microvolt = <2960000>; 3948bab661aSEmmanuel Vadot }; 3958bab661aSEmmanuel Vadot 3968bab661aSEmmanuel Vadot vreg_l10a_1p8: l10 { 3978bab661aSEmmanuel Vadot regulator-min-microvolt = <1808000>; 3988bab661aSEmmanuel Vadot regulator-max-microvolt = <2960000>; 3998bab661aSEmmanuel Vadot }; 4008bab661aSEmmanuel Vadot 4018bab661aSEmmanuel Vadot vreg_l11a_1p0: l11 { 4028bab661aSEmmanuel Vadot regulator-min-microvolt = <1000000>; 4038bab661aSEmmanuel Vadot regulator-max-microvolt = <1000000>; 4048bab661aSEmmanuel Vadot }; 4058bab661aSEmmanuel Vadot 4068bab661aSEmmanuel Vadot vreg_l12a_1p8: l12 { 4078bab661aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 4088bab661aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 4098bab661aSEmmanuel Vadot }; 4108bab661aSEmmanuel Vadot 4118bab661aSEmmanuel Vadot vreg_l13a_2p95: l13 { 4128bab661aSEmmanuel Vadot regulator-min-microvolt = <1808000>; 4138bab661aSEmmanuel Vadot regulator-max-microvolt = <2960000>; 4148bab661aSEmmanuel Vadot }; 4158bab661aSEmmanuel Vadot 4168bab661aSEmmanuel Vadot vreg_l14a_1p8: l14 { 4178bab661aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 4188bab661aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 4198bab661aSEmmanuel Vadot }; 4208bab661aSEmmanuel Vadot 4218bab661aSEmmanuel Vadot vreg_l15a_1p8: l15 { 4228bab661aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 4238bab661aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 4248bab661aSEmmanuel Vadot }; 4258bab661aSEmmanuel Vadot 4268bab661aSEmmanuel Vadot vreg_l16a_2p7: l16 { 4278bab661aSEmmanuel Vadot regulator-min-microvolt = <2704000>; 4288bab661aSEmmanuel Vadot regulator-max-microvolt = <2704000>; 4298bab661aSEmmanuel Vadot }; 4308bab661aSEmmanuel Vadot 4318bab661aSEmmanuel Vadot vreg_l17a_1p3: l17 { 4328bab661aSEmmanuel Vadot regulator-min-microvolt = <1304000>; 4338bab661aSEmmanuel Vadot regulator-max-microvolt = <1304000>; 4348bab661aSEmmanuel Vadot }; 4358bab661aSEmmanuel Vadot 4368bab661aSEmmanuel Vadot vreg_l18a_2p7: l18 { 4378bab661aSEmmanuel Vadot regulator-min-microvolt = <2704000>; 4388bab661aSEmmanuel Vadot regulator-max-microvolt = <2704000>; 4398bab661aSEmmanuel Vadot }; 4408bab661aSEmmanuel Vadot 4418bab661aSEmmanuel Vadot vreg_l19a_3p0: l19 { 4428bab661aSEmmanuel Vadot regulator-min-microvolt = <3008000>; 4438bab661aSEmmanuel Vadot regulator-max-microvolt = <3008000>; 4448bab661aSEmmanuel Vadot }; 4458bab661aSEmmanuel Vadot 4468bab661aSEmmanuel Vadot vreg_l20a_2p95: l20 { 4478bab661aSEmmanuel Vadot regulator-min-microvolt = <2960000>; 4488bab661aSEmmanuel Vadot regulator-max-microvolt = <2960000>; 4498bab661aSEmmanuel Vadot regulator-allow-set-load; 4508bab661aSEmmanuel Vadot }; 4518bab661aSEmmanuel Vadot 4528bab661aSEmmanuel Vadot vreg_l21a_2p95: l21 { 4538bab661aSEmmanuel Vadot regulator-min-microvolt = <2960000>; 4548bab661aSEmmanuel Vadot regulator-max-microvolt = <2960000>; 4558bab661aSEmmanuel Vadot regulator-system-load = <800000>; 4568bab661aSEmmanuel Vadot regulator-allow-set-load; 4578bab661aSEmmanuel Vadot }; 4588bab661aSEmmanuel Vadot 4598bab661aSEmmanuel Vadot vreg_l22a_2p85: l22 { 4608bab661aSEmmanuel Vadot regulator-min-microvolt = <2864000>; 4618bab661aSEmmanuel Vadot regulator-max-microvolt = <2864000>; 4628bab661aSEmmanuel Vadot }; 4638bab661aSEmmanuel Vadot 4648bab661aSEmmanuel Vadot vreg_l23a_3p3: l23 { 4658bab661aSEmmanuel Vadot regulator-min-microvolt = <3312000>; 4668bab661aSEmmanuel Vadot regulator-max-microvolt = <3312000>; 4678bab661aSEmmanuel Vadot }; 4688bab661aSEmmanuel Vadot 4698bab661aSEmmanuel Vadot vreg_l24a_3p075: l24 { 4708bab661aSEmmanuel Vadot regulator-min-microvolt = <3088000>; 4718bab661aSEmmanuel Vadot regulator-max-microvolt = <3088000>; 4728bab661aSEmmanuel Vadot }; 4738bab661aSEmmanuel Vadot 4748bab661aSEmmanuel Vadot vreg_l25a_3p3: l25 { 4758bab661aSEmmanuel Vadot regulator-min-microvolt = <3104000>; 4768bab661aSEmmanuel Vadot regulator-max-microvolt = <3312000>; 4778bab661aSEmmanuel Vadot }; 4788bab661aSEmmanuel Vadot 4798bab661aSEmmanuel Vadot vreg_l26a_1p2: l26 { 4808bab661aSEmmanuel Vadot regulator-min-microvolt = <1200000>; 4818bab661aSEmmanuel Vadot regulator-max-microvolt = <1200000>; 4828bab661aSEmmanuel Vadot regulator-allow-set-load; 4838bab661aSEmmanuel Vadot }; 4848bab661aSEmmanuel Vadot 4858bab661aSEmmanuel Vadot vreg_l28_3p0: l28 { 4868bab661aSEmmanuel Vadot regulator-min-microvolt = <3008000>; 4878bab661aSEmmanuel Vadot regulator-max-microvolt = <3008000>; 4888bab661aSEmmanuel Vadot }; 4898bab661aSEmmanuel Vadot 4908bab661aSEmmanuel Vadot vreg_lvs1a_1p8: lvs1 { }; 4918bab661aSEmmanuel Vadot 4928bab661aSEmmanuel Vadot vreg_lvs2a_1p8: lvs2 { }; 4938bab661aSEmmanuel Vadot }; 4948bab661aSEmmanuel Vadot 4958bab661aSEmmanuel Vadot regulators-1 { 4968bab661aSEmmanuel Vadot compatible = "qcom,rpm-pmi8998-regulators"; 4978bab661aSEmmanuel Vadot 4988bab661aSEmmanuel Vadot vdd_bob-supply = <&vph_pwr>; 4998bab661aSEmmanuel Vadot 5008bab661aSEmmanuel Vadot vreg_bob: bob { 5018bab661aSEmmanuel Vadot regulator-min-microvolt = <3312000>; 5028bab661aSEmmanuel Vadot regulator-max-microvolt = <3600000>; 5038bab661aSEmmanuel Vadot }; 5048bab661aSEmmanuel Vadot }; 5058bab661aSEmmanuel Vadot}; 5068bab661aSEmmanuel Vadot 5078bab661aSEmmanuel Vadot&tlmm { 5088bab661aSEmmanuel Vadot gpio-reserved-ranges = <0 4>, <81 4>; 5098bab661aSEmmanuel Vadot 5108bab661aSEmmanuel Vadot cci1_default_state: cci1-default-state { 5118bab661aSEmmanuel Vadot pins = "gpio19", "gpio20"; 5128bab661aSEmmanuel Vadot function = "cci_i2c"; 5138bab661aSEmmanuel Vadot bias-disable; 5148bab661aSEmmanuel Vadot drive-strength = <2>; 5158bab661aSEmmanuel Vadot }; 5168bab661aSEmmanuel Vadot 5178bab661aSEmmanuel Vadot cdc_reset_n_state: cdc-reset-n-state { 5188bab661aSEmmanuel Vadot pins = "gpio64"; 5198bab661aSEmmanuel Vadot function = "gpio"; 5208bab661aSEmmanuel Vadot bias-pull-down; 5218bab661aSEmmanuel Vadot drive-strength = <16>; 5228bab661aSEmmanuel Vadot output-high; 5238bab661aSEmmanuel Vadot }; 5248bab661aSEmmanuel Vadot 5258bab661aSEmmanuel Vadot hall_sensor_default_state: hall-sensor-default-state { 5268bab661aSEmmanuel Vadot pins = "gpio124"; 5278bab661aSEmmanuel Vadot function = "gpio"; 5288bab661aSEmmanuel Vadot drive-strength = <2>; 5298bab661aSEmmanuel Vadot bias-disable; 5308bab661aSEmmanuel Vadot }; 5318bab661aSEmmanuel Vadot 5328bab661aSEmmanuel Vadot mdss_dsi_active_state: mdss-dsi-active-state { 5338bab661aSEmmanuel Vadot pins = "gpio94"; 5348bab661aSEmmanuel Vadot function = "gpio"; 5358bab661aSEmmanuel Vadot drive-strength = <8>; 5368bab661aSEmmanuel Vadot bias-disable; 5378bab661aSEmmanuel Vadot }; 5388bab661aSEmmanuel Vadot 5398bab661aSEmmanuel Vadot mdss_dsi_suspend_state: mdss-dsi-suspend-state { 5408bab661aSEmmanuel Vadot pins = "gpio94"; 5418bab661aSEmmanuel Vadot function = "gpio"; 5428bab661aSEmmanuel Vadot drive-strength = <2>; 5438bab661aSEmmanuel Vadot bias-pull-down; 5448bab661aSEmmanuel Vadot }; 5458bab661aSEmmanuel Vadot 5468bab661aSEmmanuel Vadot mdss_te_active_state: mdss-te-active-state { 5478bab661aSEmmanuel Vadot pins = "gpio10"; 5488bab661aSEmmanuel Vadot function = "mdp_vsync_a"; 5498bab661aSEmmanuel Vadot drive-strength = <2>; 5508bab661aSEmmanuel Vadot bias-pull-down; 5518bab661aSEmmanuel Vadot }; 5528bab661aSEmmanuel Vadot 5538bab661aSEmmanuel Vadot mdss_te_suspend_state: mdss-te-suspend-state { 5548bab661aSEmmanuel Vadot pins = "gpio10"; 5558bab661aSEmmanuel Vadot function = "mdp_vsync_a"; 5568bab661aSEmmanuel Vadot drive-strength = <2>; 5578bab661aSEmmanuel Vadot bias-pull-down; 5588bab661aSEmmanuel Vadot }; 5598bab661aSEmmanuel Vadot 5608bab661aSEmmanuel Vadot msm_mclk0_active_state: msm-mclk0-active-state { 5618bab661aSEmmanuel Vadot pins = "gpio13"; 5628bab661aSEmmanuel Vadot function = "cam_mclk"; 5638bab661aSEmmanuel Vadot drive-strength = <2>; 5648bab661aSEmmanuel Vadot bias-disable; 5658bab661aSEmmanuel Vadot }; 5668bab661aSEmmanuel Vadot 5678bab661aSEmmanuel Vadot msm_mclk0_suspend_state: msm-mclk0-suspend-state { 5688bab661aSEmmanuel Vadot pins = "gpio13"; 5698bab661aSEmmanuel Vadot function = "cam_mclk"; 5708bab661aSEmmanuel Vadot drive-strength = <2>; 5718bab661aSEmmanuel Vadot bias-pull-down; 5728bab661aSEmmanuel Vadot }; 5738bab661aSEmmanuel Vadot 5748bab661aSEmmanuel Vadot msm_mclk1_active_state: msm-mclk1-active-state { 5758bab661aSEmmanuel Vadot pins = "gpio14"; 5768bab661aSEmmanuel Vadot function = "cam_mclk"; 5778bab661aSEmmanuel Vadot drive-strength = <2>; 5788bab661aSEmmanuel Vadot bias-disable; 5798bab661aSEmmanuel Vadot }; 5808bab661aSEmmanuel Vadot 5818bab661aSEmmanuel Vadot msm_mclk1_suspend_state: msm-mclk1-suspend-state { 5828bab661aSEmmanuel Vadot pins = "gpio14"; 5838bab661aSEmmanuel Vadot function = "cam_mclk"; 5848bab661aSEmmanuel Vadot drive-strength = <2>; 5858bab661aSEmmanuel Vadot bias-pull-down; 5868bab661aSEmmanuel Vadot }; 5878bab661aSEmmanuel Vadot 5888bab661aSEmmanuel Vadot nfc_int_active_state: nfc-int-active-state { 5898bab661aSEmmanuel Vadot pins = "gpio92"; 5908bab661aSEmmanuel Vadot function = "gpio"; 5918bab661aSEmmanuel Vadot drive-strength = <6>; 5928bab661aSEmmanuel Vadot bias-pull-up; 5938bab661aSEmmanuel Vadot }; 5948bab661aSEmmanuel Vadot 5958bab661aSEmmanuel Vadot nfc_int_suspend_state: nfc-int-suspend-state { 5968bab661aSEmmanuel Vadot pins = "gpio92"; 5978bab661aSEmmanuel Vadot function = "gpio"; 5988bab661aSEmmanuel Vadot drive-strength = <6>; 5998bab661aSEmmanuel Vadot bias-pull-up; 6008bab661aSEmmanuel Vadot }; 6018bab661aSEmmanuel Vadot 6028bab661aSEmmanuel Vadot nfc_enable_active_state: nfc-enable-active-state { 6038bab661aSEmmanuel Vadot pins = "gpio12", "gpio116"; 6048bab661aSEmmanuel Vadot function = "gpio"; 6058bab661aSEmmanuel Vadot drive-strength = <6>; 6068bab661aSEmmanuel Vadot bias-pull-up; 6078bab661aSEmmanuel Vadot }; 6088bab661aSEmmanuel Vadot 6098bab661aSEmmanuel Vadot nfc_enable_suspend_state: nfc-enable-suspend-state { 6108bab661aSEmmanuel Vadot pins = "gpio12", "gpio116"; 6118bab661aSEmmanuel Vadot function = "gpio"; 6128bab661aSEmmanuel Vadot drive-strength = <6>; 6138bab661aSEmmanuel Vadot bias-disable; 6148bab661aSEmmanuel Vadot }; 6158bab661aSEmmanuel Vadot 6168bab661aSEmmanuel Vadot ts_active_state: ts-active-state { 6178bab661aSEmmanuel Vadot pins = "gpio89", "gpio125"; 6188bab661aSEmmanuel Vadot function = "gpio"; 6198bab661aSEmmanuel Vadot drive-strength = <16>; 6208bab661aSEmmanuel Vadot bias-pull-up; 6218bab661aSEmmanuel Vadot }; 6228bab661aSEmmanuel Vadot 6238bab661aSEmmanuel Vadot ts_int_suspend_state: ts-int-suspend-state { 6248bab661aSEmmanuel Vadot pins = "gpio125"; 6258bab661aSEmmanuel Vadot function = "gpio"; 6268bab661aSEmmanuel Vadot drive-strength = <2>; 6278bab661aSEmmanuel Vadot bias-disable; 6288bab661aSEmmanuel Vadot }; 6298bab661aSEmmanuel Vadot 6308bab661aSEmmanuel Vadot ts_reset_suspend_state: ts-reset-suspend-state { 6318bab661aSEmmanuel Vadot pins = "gpio89"; 6328bab661aSEmmanuel Vadot function = "gpio"; 6338bab661aSEmmanuel Vadot drive-strength = <2>; 6348bab661aSEmmanuel Vadot bias-disable; 6358bab661aSEmmanuel Vadot }; 6368bab661aSEmmanuel Vadot 6378bab661aSEmmanuel Vadot wcd_int_n_state: wcd-int-n-state { 6388bab661aSEmmanuel Vadot pins = "gpio54"; 6398bab661aSEmmanuel Vadot function = "gpio"; 6408bab661aSEmmanuel Vadot bias-pull-down; 6418bab661aSEmmanuel Vadot drive-strength = <2>; 6428bab661aSEmmanuel Vadot }; 6438bab661aSEmmanuel Vadot 6448bab661aSEmmanuel Vadot wsa_leftspk_pwr_n_state: wsa-leftspk-pwr-n-state { 6458bab661aSEmmanuel Vadot pins = "gpio65"; 6468bab661aSEmmanuel Vadot function = "gpio"; 6478bab661aSEmmanuel Vadot bias-disable; 6488bab661aSEmmanuel Vadot drive-strength = <2>; 6498bab661aSEmmanuel Vadot output-low; 6508bab661aSEmmanuel Vadot }; 6518bab661aSEmmanuel Vadot 6528bab661aSEmmanuel Vadot wsa_rightspk_pwr_n_state: wsa-rightspk-pwr-n-state { 6538bab661aSEmmanuel Vadot pins = "gpio66"; 6548bab661aSEmmanuel Vadot function = "gpio"; 6558bab661aSEmmanuel Vadot bias-disable; 6568bab661aSEmmanuel Vadot drive-strength = <2>; 6578bab661aSEmmanuel Vadot output-low; 6588bab661aSEmmanuel Vadot }; 6598bab661aSEmmanuel Vadot}; 6608bab661aSEmmanuel Vadot 6618bab661aSEmmanuel Vadot&pm8998_resin { 6628bab661aSEmmanuel Vadot linux,code = <KEY_VOLUMEDOWN>; 6638bab661aSEmmanuel Vadot status = "okay"; 6648bab661aSEmmanuel Vadot}; 6658bab661aSEmmanuel Vadot 6668bab661aSEmmanuel Vadot&ufshc { 6678bab661aSEmmanuel Vadot vcc-supply = <&vreg_l20a_2p95>; 6688bab661aSEmmanuel Vadot vccq-supply = <&vreg_l26a_1p2>; 6698bab661aSEmmanuel Vadot vccq2-supply = <&vreg_s4a_1p8>; 670*84943d6fSEmmanuel Vadot vdd-hba-supply = <&vreg_l26a_1p2>; 6718bab661aSEmmanuel Vadot vcc-max-microamp = <750000>; 6728bab661aSEmmanuel Vadot vccq-max-microamp = <560000>; 6738bab661aSEmmanuel Vadot vccq2-max-microamp = <750000>; 6748bab661aSEmmanuel Vadot status = "okay"; 6758bab661aSEmmanuel Vadot}; 6768bab661aSEmmanuel Vadot 6778bab661aSEmmanuel Vadot&ufsphy { 6788bab661aSEmmanuel Vadot vdda-phy-supply = <&vreg_l1a_0p875>; 6798bab661aSEmmanuel Vadot vdda-pll-supply = <&vreg_l2a_1p2>; 6808bab661aSEmmanuel Vadot status = "okay"; 6818bab661aSEmmanuel Vadot}; 6828bab661aSEmmanuel Vadot 6838bab661aSEmmanuel Vadot&usb3 { 6848bab661aSEmmanuel Vadot /* Disable USB3 clock requirement as the device only supports USB2 */ 6858bab661aSEmmanuel Vadot qcom,select-utmi-as-pipe-clk; 6868bab661aSEmmanuel Vadot status = "okay"; 6878bab661aSEmmanuel Vadot}; 6888bab661aSEmmanuel Vadot 6898bab661aSEmmanuel Vadot&usb3_dwc3 { 6908bab661aSEmmanuel Vadot /* Drop the unused USB 3 PHY */ 6918bab661aSEmmanuel Vadot phys = <&qusb2phy>; 6928bab661aSEmmanuel Vadot phy-names = "usb2-phy"; 6938bab661aSEmmanuel Vadot 6948bab661aSEmmanuel Vadot /* Fastest mode for USB 2 */ 6958bab661aSEmmanuel Vadot maximum-speed = "high-speed"; 6968bab661aSEmmanuel Vadot 6978bab661aSEmmanuel Vadot /* Force to peripheral until we can switch modes */ 6988bab661aSEmmanuel Vadot dr_mode = "peripheral"; 6998bab661aSEmmanuel Vadot}; 7008bab661aSEmmanuel Vadot 7018bab661aSEmmanuel Vadot&wifi { 7028bab661aSEmmanuel Vadot vdd-0.8-cx-mx-supply = <&vreg_l5a_0p8>; 7038bab661aSEmmanuel Vadot vdd-1.8-xo-supply = <&vreg_l7a_1p8>; 7048bab661aSEmmanuel Vadot vdd-1.3-rfa-supply = <&vreg_l17a_1p3>; 7058bab661aSEmmanuel Vadot vdd-3.3-ch0-supply = <&vreg_l25a_3p3>; 7068bab661aSEmmanuel Vadot status = "okay"; 7078bab661aSEmmanuel Vadot}; 708