1*eee5a89bSJulian Braha// SPDX-License-Identifier: BSD-3-Clause 2*eee5a89bSJulian Braha/* 3*eee5a89bSJulian Braha * Copyright (c) 2022, Julian Braha <julianbraha@gmail.com> 4*eee5a89bSJulian Braha */ 5*eee5a89bSJulian Braha/dts-v1/; 6*eee5a89bSJulian Braha 7*eee5a89bSJulian Braha#include "msm8953.dtsi" 8*eee5a89bSJulian Braha#include "pm8953.dtsi" 9*eee5a89bSJulian Braha#include "pmi8950.dtsi" 10*eee5a89bSJulian Braha 11*eee5a89bSJulian Braha/delete-node/ &qseecom_mem; 12*eee5a89bSJulian Braha 13*eee5a89bSJulian Braha/ { 14*eee5a89bSJulian Braha model = "Motorola Moto G6"; 15*eee5a89bSJulian Braha compatible = "motorola,ali", "qcom,sdm450"; 16*eee5a89bSJulian Braha chassis-type = "handset"; 17*eee5a89bSJulian Braha qcom,msm-id = <338 0>; 18*eee5a89bSJulian Braha qcom,board-id = <0x43 0xc200>; 19*eee5a89bSJulian Braha 20*eee5a89bSJulian Braha gpio-keys { 21*eee5a89bSJulian Braha compatible = "gpio-keys"; 22*eee5a89bSJulian Braha 23*eee5a89bSJulian Braha key-volume-up { 24*eee5a89bSJulian Braha label = "volume_up"; 25*eee5a89bSJulian Braha gpios = <&tlmm 85 GPIO_ACTIVE_LOW>; 26*eee5a89bSJulian Braha linux,code = <KEY_VOLUMEUP>; 27*eee5a89bSJulian Braha }; 28*eee5a89bSJulian Braha }; 29*eee5a89bSJulian Braha 30*eee5a89bSJulian Braha reserved-memory { 31*eee5a89bSJulian Braha qseecom_mem: qseecom@84300000 { 32*eee5a89bSJulian Braha reg = <0x0 0x84300000 0x0 0x2000000>; 33*eee5a89bSJulian Braha no-map; 34*eee5a89bSJulian Braha }; 35*eee5a89bSJulian Braha 36*eee5a89bSJulian Braha ramoops@ef000000 { 37*eee5a89bSJulian Braha compatible = "ramoops"; 38*eee5a89bSJulian Braha reg = <0x0 0xef000000 0x0 0xc0000>; 39*eee5a89bSJulian Braha console-size = <0x40000>; 40*eee5a89bSJulian Braha }; 41*eee5a89bSJulian Braha }; 42*eee5a89bSJulian Braha 43*eee5a89bSJulian Braha vph_pwr: vph-pwr-regulator { 44*eee5a89bSJulian Braha compatible = "regulator-fixed"; 45*eee5a89bSJulian Braha regulator-name = "vph_pwr"; 46*eee5a89bSJulian Braha regulator-always-on; 47*eee5a89bSJulian Braha regulator-boot-on; 48*eee5a89bSJulian Braha }; 49*eee5a89bSJulian Braha}; 50*eee5a89bSJulian Braha 51*eee5a89bSJulian Braha&hsusb_phy { 52*eee5a89bSJulian Braha vdd-supply = <&pm8953_l3>; 53*eee5a89bSJulian Braha vdda-pll-supply = <&pm8953_l7>; 54*eee5a89bSJulian Braha vdda-phy-dpdm-supply = <&pm8953_l13>; 55*eee5a89bSJulian Braha 56*eee5a89bSJulian Braha status = "okay"; 57*eee5a89bSJulian Braha}; 58*eee5a89bSJulian Braha 59*eee5a89bSJulian Braha&i2c_3 { 60*eee5a89bSJulian Braha status = "okay"; 61*eee5a89bSJulian Braha 62*eee5a89bSJulian Braha touchscreen@38 { 63*eee5a89bSJulian Braha compatible = "edt,edt-ft5406"; 64*eee5a89bSJulian Braha reg = <0x38>; 65*eee5a89bSJulian Braha interrupt-parent = <&tlmm>; 66*eee5a89bSJulian Braha interrupts = <65 IRQ_TYPE_EDGE_FALLING>; 67*eee5a89bSJulian Braha vcc-supply = <&pm8953_l10>; 68*eee5a89bSJulian Braha 69*eee5a89bSJulian Braha pinctrl-names = "default"; 70*eee5a89bSJulian Braha pinctrl-0 = <&ts_int_active &ts_reset_active>; 71*eee5a89bSJulian Braha 72*eee5a89bSJulian Braha reset-gpios = <&tlmm 64 GPIO_ACTIVE_LOW>; 73*eee5a89bSJulian Braha touchscreen-size-x = <1080>; 74*eee5a89bSJulian Braha touchscreen-size-y = <2160>; 75*eee5a89bSJulian Braha }; 76*eee5a89bSJulian Braha}; 77*eee5a89bSJulian Braha 78*eee5a89bSJulian Braha&pm8953_resin { 79*eee5a89bSJulian Braha linux,code = <KEY_VOLUMEDOWN>; 80*eee5a89bSJulian Braha status = "okay"; 81*eee5a89bSJulian Braha}; 82*eee5a89bSJulian Braha 83*eee5a89bSJulian Braha&pmi8950_wled { 84*eee5a89bSJulian Braha qcom,num-strings = <3>; 85*eee5a89bSJulian Braha qcom,external-pfet; 86*eee5a89bSJulian Braha qcom,cabc; 87*eee5a89bSJulian Braha 88*eee5a89bSJulian Braha status = "okay"; 89*eee5a89bSJulian Braha}; 90*eee5a89bSJulian Braha 91*eee5a89bSJulian Braha&rpm_requests { 92*eee5a89bSJulian Braha regulators { 93*eee5a89bSJulian Braha compatible = "qcom,rpm-pm8953-regulators"; 94*eee5a89bSJulian Braha 95*eee5a89bSJulian Braha vdd_s1-supply = <&vph_pwr>; 96*eee5a89bSJulian Braha vdd_s2-supply = <&vph_pwr>; 97*eee5a89bSJulian Braha vdd_s3-supply = <&vph_pwr>; 98*eee5a89bSJulian Braha vdd_s4-supply = <&vph_pwr>; 99*eee5a89bSJulian Braha vdd_s5-supply = <&vph_pwr>; 100*eee5a89bSJulian Braha vdd_s6-supply = <&vph_pwr>; 101*eee5a89bSJulian Braha vdd_s7-supply = <&vph_pwr>; 102*eee5a89bSJulian Braha vdd_l1-supply = <&pm8953_s3>; 103*eee5a89bSJulian Braha vdd_l2_l3-supply = <&pm8953_s3>; 104*eee5a89bSJulian Braha vdd_l4_l5_l6_l7_l16_l19-supply = <&pm8953_s4>; 105*eee5a89bSJulian Braha vdd_l8_l11_l12_l13_l14_l15-supply = <&vph_pwr>; 106*eee5a89bSJulian Braha vdd_l9_l10_l17_l18_l22-supply = <&vph_pwr>; 107*eee5a89bSJulian Braha 108*eee5a89bSJulian Braha pm8953_s1: s1 { 109*eee5a89bSJulian Braha regulator-min-microvolt = <795000>; 110*eee5a89bSJulian Braha regulator-max-microvolt = <1081000>; 111*eee5a89bSJulian Braha }; 112*eee5a89bSJulian Braha 113*eee5a89bSJulian Braha pm8953_s3: s3 { 114*eee5a89bSJulian Braha regulator-min-microvolt = <1224000>; 115*eee5a89bSJulian Braha regulator-max-microvolt = <1224000>; 116*eee5a89bSJulian Braha }; 117*eee5a89bSJulian Braha 118*eee5a89bSJulian Braha pm8953_s4: s4 { 119*eee5a89bSJulian Braha regulator-min-microvolt = <1900000>; 120*eee5a89bSJulian Braha regulator-max-microvolt = <2050000>; 121*eee5a89bSJulian Braha }; 122*eee5a89bSJulian Braha 123*eee5a89bSJulian Braha pm8953_l1: l1 { 124*eee5a89bSJulian Braha regulator-min-microvolt = <1000000>; 125*eee5a89bSJulian Braha regulator-max-microvolt = <1100000>; 126*eee5a89bSJulian Braha }; 127*eee5a89bSJulian Braha 128*eee5a89bSJulian Braha pm8953_l2: l2 { 129*eee5a89bSJulian Braha regulator-min-microvolt = <975000>; 130*eee5a89bSJulian Braha regulator-max-microvolt = <1225000>; 131*eee5a89bSJulian Braha }; 132*eee5a89bSJulian Braha 133*eee5a89bSJulian Braha pm8953_l3: l3 { 134*eee5a89bSJulian Braha regulator-min-microvolt = <925000>; 135*eee5a89bSJulian Braha regulator-max-microvolt = <925000>; 136*eee5a89bSJulian Braha }; 137*eee5a89bSJulian Braha 138*eee5a89bSJulian Braha pm8953_l5: l5 { 139*eee5a89bSJulian Braha regulator-min-microvolt = <1800000>; 140*eee5a89bSJulian Braha regulator-max-microvolt = <1800000>; 141*eee5a89bSJulian Braha }; 142*eee5a89bSJulian Braha 143*eee5a89bSJulian Braha pm8953_l6: l6 { 144*eee5a89bSJulian Braha regulator-min-microvolt = <1800000>; 145*eee5a89bSJulian Braha regulator-max-microvolt = <1800000>; 146*eee5a89bSJulian Braha }; 147*eee5a89bSJulian Braha 148*eee5a89bSJulian Braha pm8953_l7: l7 { 149*eee5a89bSJulian Braha regulator-min-microvolt = <1800000>; 150*eee5a89bSJulian Braha regulator-max-microvolt = <1900000>; 151*eee5a89bSJulian Braha }; 152*eee5a89bSJulian Braha 153*eee5a89bSJulian Braha pm8953_l8: l8 { 154*eee5a89bSJulian Braha regulator-min-microvolt = <2900000>; 155*eee5a89bSJulian Braha regulator-max-microvolt = <2900000>; 156*eee5a89bSJulian Braha }; 157*eee5a89bSJulian Braha 158*eee5a89bSJulian Braha pm8953_l9: l9 { 159*eee5a89bSJulian Braha regulator-min-microvolt = <3000000>; 160*eee5a89bSJulian Braha regulator-max-microvolt = <3300000>; 161*eee5a89bSJulian Braha }; 162*eee5a89bSJulian Braha 163*eee5a89bSJulian Braha pm8953_l10: l10 { 164*eee5a89bSJulian Braha regulator-min-microvolt = <2850000>; 165*eee5a89bSJulian Braha regulator-max-microvolt = <2850000>; 166*eee5a89bSJulian Braha }; 167*eee5a89bSJulian Braha 168*eee5a89bSJulian Braha pm8953_l11: l11 { 169*eee5a89bSJulian Braha regulator-min-microvolt = <2950000>; 170*eee5a89bSJulian Braha regulator-max-microvolt = <2950000>; 171*eee5a89bSJulian Braha }; 172*eee5a89bSJulian Braha 173*eee5a89bSJulian Braha pm8953_l12: l12 { 174*eee5a89bSJulian Braha regulator-min-microvolt = <1800000>; 175*eee5a89bSJulian Braha regulator-max-microvolt = <2950000>; 176*eee5a89bSJulian Braha }; 177*eee5a89bSJulian Braha 178*eee5a89bSJulian Braha pm8953_l13: l13 { 179*eee5a89bSJulian Braha regulator-min-microvolt = <3125000>; 180*eee5a89bSJulian Braha regulator-max-microvolt = <3125000>; 181*eee5a89bSJulian Braha }; 182*eee5a89bSJulian Braha 183*eee5a89bSJulian Braha pm8953_l16: l16 { 184*eee5a89bSJulian Braha regulator-min-microvolt = <1800000>; 185*eee5a89bSJulian Braha regulator-max-microvolt = <1800000>; 186*eee5a89bSJulian Braha }; 187*eee5a89bSJulian Braha 188*eee5a89bSJulian Braha pm8953_l17: l17 { 189*eee5a89bSJulian Braha regulator-min-microvolt = <2850000>; 190*eee5a89bSJulian Braha regulator-max-microvolt = <2850000>; 191*eee5a89bSJulian Braha }; 192*eee5a89bSJulian Braha 193*eee5a89bSJulian Braha pm8953_l19: l19 { 194*eee5a89bSJulian Braha regulator-min-microvolt = <1200000>; 195*eee5a89bSJulian Braha regulator-max-microvolt = <1350000>; 196*eee5a89bSJulian Braha }; 197*eee5a89bSJulian Braha 198*eee5a89bSJulian Braha pm8953_l22: l22 { 199*eee5a89bSJulian Braha regulator-min-microvolt = <2800000>; 200*eee5a89bSJulian Braha regulator-max-microvolt = <2850000>; 201*eee5a89bSJulian Braha }; 202*eee5a89bSJulian Braha 203*eee5a89bSJulian Braha pm8953_l23: l23 { 204*eee5a89bSJulian Braha regulator-min-microvolt = <975000>; 205*eee5a89bSJulian Braha regulator-max-microvolt = <1225000>; 206*eee5a89bSJulian Braha }; 207*eee5a89bSJulian Braha }; 208*eee5a89bSJulian Braha}; 209*eee5a89bSJulian Braha 210*eee5a89bSJulian Braha&sdhc_1 { 211*eee5a89bSJulian Braha vmmc-supply = <&pm8953_l8>; 212*eee5a89bSJulian Braha vqmmc-supply = <&pm8953_l5>; 213*eee5a89bSJulian Braha 214*eee5a89bSJulian Braha status = "okay"; 215*eee5a89bSJulian Braha}; 216*eee5a89bSJulian Braha 217*eee5a89bSJulian Braha&sdhc_2 { 218*eee5a89bSJulian Braha vmmc-supply = <&pm8953_l11>; 219*eee5a89bSJulian Braha vqmmc-supply = <&pm8953_l12>; 220*eee5a89bSJulian Braha 221*eee5a89bSJulian Braha pinctrl-names = "default", "sleep"; 222*eee5a89bSJulian Braha pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_off>; 223*eee5a89bSJulian Braha pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>; 224*eee5a89bSJulian Braha 225*eee5a89bSJulian Braha status = "okay"; 226*eee5a89bSJulian Braha}; 227*eee5a89bSJulian Braha 228*eee5a89bSJulian Braha&tlmm { 229*eee5a89bSJulian Braha gpio-reserved-ranges = <95 5>, <111 1>, <126 1>; 230*eee5a89bSJulian Braha 231*eee5a89bSJulian Braha ts_int_active: ts-int-active-state { 232*eee5a89bSJulian Braha pins = "gpio65"; 233*eee5a89bSJulian Braha function = "gpio"; 234*eee5a89bSJulian Braha drive-strength = <8>; 235*eee5a89bSJulian Braha bias-pull-up; 236*eee5a89bSJulian Braha }; 237*eee5a89bSJulian Braha 238*eee5a89bSJulian Braha ts_reset_active: ts-reset-active-state { 239*eee5a89bSJulian Braha pins = "gpio64"; 240*eee5a89bSJulian Braha function = "gpio"; 241*eee5a89bSJulian Braha drive-strength = <0x08>; 242*eee5a89bSJulian Braha bias-pull-up; 243*eee5a89bSJulian Braha }; 244*eee5a89bSJulian Braha}; 245*eee5a89bSJulian Braha 246*eee5a89bSJulian Braha&usb3 { 247*eee5a89bSJulian Braha status = "okay"; 248*eee5a89bSJulian Braha}; 249*eee5a89bSJulian Braha 250*eee5a89bSJulian Braha&usb3_dwc3 { 251*eee5a89bSJulian Braha dr_mode = "peripheral"; 252*eee5a89bSJulian Braha}; 253