1// SPDX-License-Identifier: GPL-2.0 2/* Copyright (c) 2019, Jeffrey Hugo. All rights reserved. */ 3 4/* 5 * Common include for MSM8998 clamshell devices, ie the Lenovo Miix 630, 6 * Asus NovaGo TP370QL, and HP Envy x2. All three devices are basically the 7 * same, with differences in peripherals. 8 */ 9 10#include "msm8998.dtsi" 11#include "pm8998.dtsi" 12#include "pm8005.dtsi" 13 14/ { 15 chosen { 16 }; 17 18 vph_pwr: vph-pwr-regulator { 19 compatible = "regulator-fixed"; 20 regulator-name = "vph_pwr"; 21 regulator-always-on; 22 regulator-boot-on; 23 }; 24}; 25 26&qusb2phy { 27 status = "okay"; 28 29 vdda-pll-supply = <&vreg_l12a_1p8>; 30 vdda-phy-dpdm-supply = <&vreg_l24a_3p075>; 31}; 32 33&rpm_requests { 34 pm8998-regulators { 35 compatible = "qcom,rpm-pm8998-regulators"; 36 37 vdd_s1-supply = <&vph_pwr>; 38 vdd_s2-supply = <&vph_pwr>; 39 vdd_s3-supply = <&vph_pwr>; 40 vdd_s4-supply = <&vph_pwr>; 41 vdd_s5-supply = <&vph_pwr>; 42 vdd_s6-supply = <&vph_pwr>; 43 vdd_s7-supply = <&vph_pwr>; 44 vdd_s8-supply = <&vph_pwr>; 45 vdd_s9-supply = <&vph_pwr>; 46 vdd_s10-supply = <&vph_pwr>; 47 vdd_s11-supply = <&vph_pwr>; 48 vdd_s12-supply = <&vph_pwr>; 49 vdd_s13-supply = <&vph_pwr>; 50 vdd_l1_l27-supply = <&vreg_s7a_1p025>; 51 vdd_l2_l8_l17-supply = <&vreg_s3a_1p35>; 52 vdd_l3_l11-supply = <&vreg_s7a_1p025>; 53 vdd_l4_l5-supply = <&vreg_s7a_1p025>; 54 vdd_l6-supply = <&vreg_s5a_2p04>; 55 vdd_l7_l12_l14_l15-supply = <&vreg_s5a_2p04>; 56 vdd_l9-supply = <&vph_pwr>; 57 vdd_l10_l23_l25-supply = <&vph_pwr>; 58 vdd_l13_l19_l21-supply = <&vph_pwr>; 59 vdd_l16_l28-supply = <&vph_pwr>; 60 vdd_l18_l22-supply = <&vph_pwr>; 61 vdd_l20_l24-supply = <&vph_pwr>; 62 vdd_l26-supply = <&vreg_s3a_1p35>; 63 vdd_lvs1_lvs2-supply = <&vreg_s4a_1p8>; 64 65 vreg_s3a_1p35: s3 { 66 regulator-min-microvolt = <1352000>; 67 regulator-max-microvolt = <1352000>; 68 }; 69 vreg_s4a_1p8: s4 { 70 regulator-min-microvolt = <1800000>; 71 regulator-max-microvolt = <1800000>; 72 regulator-allow-set-load; 73 }; 74 vreg_s5a_2p04: s5 { 75 regulator-min-microvolt = <1904000>; 76 regulator-max-microvolt = <2040000>; 77 }; 78 vreg_s7a_1p025: s7 { 79 regulator-min-microvolt = <900000>; 80 regulator-max-microvolt = <1028000>; 81 }; 82 vreg_l1a_0p875: l1 { 83 regulator-min-microvolt = <880000>; 84 regulator-max-microvolt = <880000>; 85 regulator-allow-set-load; 86 }; 87 vreg_l2a_1p2: l2 { 88 regulator-min-microvolt = <1200000>; 89 regulator-max-microvolt = <1200000>; 90 regulator-allow-set-load; 91 }; 92 vreg_l3a_1p0: l3 { 93 regulator-min-microvolt = <1000000>; 94 regulator-max-microvolt = <1000000>; 95 }; 96 vreg_l5a_0p8: l5 { 97 regulator-min-microvolt = <800000>; 98 regulator-max-microvolt = <800000>; 99 }; 100 vreg_l6a_1p8: l6 { 101 regulator-min-microvolt = <1808000>; 102 regulator-max-microvolt = <1808000>; 103 }; 104 vreg_l7a_1p8: l7 { 105 regulator-min-microvolt = <1800000>; 106 regulator-max-microvolt = <1800000>; 107 }; 108 vreg_l8a_1p2: l8 { 109 regulator-min-microvolt = <1200000>; 110 regulator-max-microvolt = <1200000>; 111 }; 112 vreg_l9a_1p8: l9 { 113 regulator-min-microvolt = <1808000>; 114 regulator-max-microvolt = <2960000>; 115 }; 116 vreg_l10a_1p8: l10 { 117 regulator-min-microvolt = <1808000>; 118 regulator-max-microvolt = <2960000>; 119 }; 120 vreg_l11a_1p0: l11 { 121 regulator-min-microvolt = <1000000>; 122 regulator-max-microvolt = <1000000>; 123 }; 124 vreg_l12a_1p8: l12 { 125 regulator-min-microvolt = <1800000>; 126 regulator-max-microvolt = <1800000>; 127 }; 128 vreg_l13a_2p95: l13 { 129 regulator-min-microvolt = <1808000>; 130 regulator-max-microvolt = <2960000>; 131 }; 132 vreg_l14a_1p88: l14 { 133 regulator-min-microvolt = <1880000>; 134 regulator-max-microvolt = <1880000>; 135 }; 136 vreg_15a_1p8: l15 { 137 regulator-min-microvolt = <1800000>; 138 regulator-max-microvolt = <1800000>; 139 }; 140 vreg_l16a_2p7: l16 { 141 regulator-min-microvolt = <2704000>; 142 regulator-max-microvolt = <2704000>; 143 }; 144 vreg_l17a_1p3: l17 { 145 regulator-min-microvolt = <1304000>; 146 regulator-max-microvolt = <1304000>; 147 }; 148 vreg_l18a_2p7: l18 { 149 regulator-min-microvolt = <2704000>; 150 regulator-max-microvolt = <2704000>; 151 }; 152 vreg_l19a_3p0: l19 { 153 regulator-min-microvolt = <3008000>; 154 regulator-max-microvolt = <3008000>; 155 }; 156 vreg_l20a_2p95: l20 { 157 regulator-min-microvolt = <2960000>; 158 regulator-max-microvolt = <2960000>; 159 regulator-allow-set-load; 160 }; 161 vreg_l21a_2p95: l21 { 162 regulator-min-microvolt = <2960000>; 163 regulator-max-microvolt = <2960000>; 164 regulator-allow-set-load; 165 regulator-system-load = <800000>; 166 }; 167 vreg_l22a_2p85: l22 { 168 regulator-min-microvolt = <2864000>; 169 regulator-max-microvolt = <2864000>; 170 }; 171 vreg_l23a_3p3: l23 { 172 regulator-min-microvolt = <3312000>; 173 regulator-max-microvolt = <3312000>; 174 }; 175 vreg_l24a_3p075: l24 { 176 regulator-min-microvolt = <3088000>; 177 regulator-max-microvolt = <3088000>; 178 }; 179 vreg_l25a_3p3: l25 { 180 regulator-min-microvolt = <3104000>; 181 regulator-max-microvolt = <3312000>; 182 }; 183 vreg_l26a_1p2: l26 { 184 regulator-min-microvolt = <1200000>; 185 regulator-max-microvolt = <1200000>; 186 }; 187 vreg_l28_3p0: l28 { 188 regulator-min-microvolt = <3008000>; 189 regulator-max-microvolt = <3008000>; 190 }; 191 192 vreg_lvs1a_1p8: lvs1 { 193 regulator-min-microvolt = <1800000>; 194 regulator-max-microvolt = <1800000>; 195 }; 196 197 vreg_lvs2a_1p8: lvs2 { 198 regulator-min-microvolt = <1800000>; 199 regulator-max-microvolt = <1800000>; 200 }; 201 202 }; 203}; 204 205&tlmm { 206 gpio-reserved-ranges = <0 4>, <81 4>; 207 208 touchpad: touchpad { 209 config { 210 pins = "gpio123"; 211 bias-pull-up; /* pull up */ 212 }; 213 }; 214}; 215 216&sdhc2 { 217 status = "okay"; 218 219 vmmc-supply = <&vreg_l21a_2p95>; 220 vqmmc-supply = <&vreg_l13a_2p95>; 221 222 pinctrl-names = "default", "sleep"; 223 pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>; 224 pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>; 225}; 226 227&usb3 { 228 status = "okay"; 229}; 230 231&usb3_dwc3 { 232 dr_mode = "host"; /* Force to host until we have Type-C hooked up */ 233}; 234 235&usb3phy { 236 status = "okay"; 237 238 vdda-phy-supply = <&vreg_l1a_0p875>; 239 vdda-pll-supply = <&vreg_l2a_1p2>; 240}; 241