1// SPDX-License-Identifier: BSD-3-Clause 2/* 3 * Copyright (c) 2022, Luca Weiss <luca@z3ntu.xyz> 4 */ 5/dts-v1/; 6 7#include "sdm632.dtsi" 8#include "pm8953.dtsi" 9 10/ { 11 model = "Fairphone 3"; 12 compatible = "fairphone,fp3", "qcom,sdm632"; 13 chassis-type = "handset"; 14 qcom,msm-id = <349 0>; 15 qcom,board-id = <8 0x10000>; 16 17 aliases { 18 mmc0 = &sdhc_1; 19 mmc1 = &sdhc_2; 20 serial0 = &uart_0; 21 }; 22 23 chosen { 24 stdout-path = "serial0:115200n8"; 25 }; 26 27 gpio-keys { 28 compatible = "gpio-keys"; 29 30 key-volume-up { 31 label = "volume_up"; 32 linux,code = <KEY_VOLUMEUP>; 33 gpios = <&tlmm 85 GPIO_ACTIVE_LOW>; 34 }; 35 }; 36 37 vph_pwr: vph-pwr-regulator { 38 compatible = "regulator-fixed"; 39 regulator-name = "vph_pwr"; 40 regulator-always-on; 41 regulator-boot-on; 42 }; 43}; 44 45&hsusb_phy { 46 status = "okay"; 47 vdd-supply = <&pm8953_l3>; 48 vdda-pll-supply = <&pm8953_l7>; 49 vdda-phy-dpdm-supply = <&pm8953_l13>; 50}; 51 52&i2c_3 { 53 status = "okay"; 54 55 touchscreen@48 { 56 compatible = "himax,hx83112b"; 57 reg = <0x48>; 58 interrupt-parent = <&tlmm>; 59 interrupts = <65 IRQ_TYPE_LEVEL_LOW>; 60 touchscreen-size-x = <1080>; 61 touchscreen-size-y = <2160>; 62 reset-gpios = <&tlmm 64 GPIO_ACTIVE_LOW>; 63 }; 64}; 65 66&i2c_5 { 67 status = "okay"; 68 69 nfc@28 { 70 compatible = "nxp,nq310", "nxp,nxp-nci-i2c"; 71 reg = <0x28>; 72 73 interrupt-parent = <&tlmm>; 74 interrupts = <17 IRQ_TYPE_LEVEL_HIGH>; 75 76 enable-gpios = <&tlmm 16 GPIO_ACTIVE_HIGH>; 77 firmware-gpios = <&tlmm 62 GPIO_ACTIVE_HIGH>; 78 }; 79}; 80 81&pm8953_resin { 82 status = "okay"; 83 linux,code = <KEY_VOLUMEDOWN>; 84}; 85 86&sdhc_1 { 87 status = "okay"; 88 vmmc-supply = <&pm8953_l8>; 89 vqmmc-supply = <&pm8953_l5>; 90}; 91 92&sdhc_2 { 93 status = "okay"; 94 vmmc-supply = <&pm8953_l11>; 95 vqmmc-supply = <&pm8953_l12>; 96 97 cd-gpios = <&tlmm 133 GPIO_ACTIVE_LOW>; 98}; 99 100&rpm_requests { 101 regulators { 102 compatible = "qcom,rpm-pm8953-regulators"; 103 104 vdd_l1-supply = <&pm8953_s3>; 105 vdd_l2_l3-supply = <&pm8953_s3>; 106 vdd_l4_l5_l6_l7_l16_l19-supply = <&pm8953_s4>; 107 vdd_l8_l11_l12_l13_l14_l15-supply = <&vph_pwr>; 108 vdd_l9_l10_l17_l18_l22-supply = <&vph_pwr>; 109 110 pm8953_s3: s3 { 111 regulator-min-microvolt = <984000>; 112 regulator-max-microvolt = <1240000>; 113 }; 114 pm8953_s4: s4 { 115 regulator-min-microvolt = <1036000>; 116 regulator-max-microvolt = <2040000>; 117 }; 118 pm8953_s5: s5 { 119 regulator-min-microvolt = <1036000>; 120 regulator-max-microvolt = <2040000>; 121 }; 122 123 pm8953_l1: l1 { 124 regulator-min-microvolt = <975000>; 125 regulator-max-microvolt = <1050000>; 126 }; 127 pm8953_l2: l2 { 128 regulator-min-microvolt = <975000>; 129 regulator-max-microvolt = <1175000>; 130 }; 131 pm8953_l3: l3 { 132 regulator-min-microvolt = <925000>; 133 regulator-max-microvolt = <925000>; 134 }; 135 pm8953_l5: l5 { 136 regulator-min-microvolt = <1800000>; 137 regulator-max-microvolt = <1800000>; 138 }; 139 pm8953_l6: l6 { 140 regulator-min-microvolt = <1800000>; 141 regulator-max-microvolt = <1800000>; 142 }; 143 pm8953_l7: l7 { 144 regulator-min-microvolt = <1800000>; 145 regulator-max-microvolt = <1900000>; 146 }; 147 pm8953_l8: l8 { 148 regulator-min-microvolt = <2900000>; 149 regulator-max-microvolt = <2900000>; 150 }; 151 pm8953_l9: l9 { 152 regulator-min-microvolt = <3000000>; 153 regulator-max-microvolt = <3300000>; 154 }; 155 pm8953_l10: l10 { 156 regulator-min-microvolt = <2800000>; 157 regulator-max-microvolt = <3000000>; 158 }; 159 pm8953_l11: l11 { 160 regulator-min-microvolt = <2950000>; 161 regulator-max-microvolt = <2950000>; 162 }; 163 pm8953_l12: l12 { 164 regulator-min-microvolt = <1800000>; 165 regulator-max-microvolt = <2950000>; 166 }; 167 pm8953_l13: l13 { 168 regulator-min-microvolt = <3125000>; 169 regulator-max-microvolt = <3125000>; 170 }; 171 pm8953_l16: l16 { 172 regulator-min-microvolt = <1800000>; 173 regulator-max-microvolt = <1800000>; 174 }; 175 pm8953_l17: l17 { 176 regulator-min-microvolt = <2850000>; 177 regulator-max-microvolt = <2850000>; 178 }; 179 pm8953_l19: l19 { 180 regulator-min-microvolt = <1200000>; 181 regulator-max-microvolt = <1350000>; 182 }; 183 pm8953_l22: l22 { 184 regulator-min-microvolt = <2800000>; 185 regulator-max-microvolt = <2800000>; 186 }; 187 pm8953_l23: l23 { 188 regulator-min-microvolt = <975000>; 189 regulator-max-microvolt = <1225000>; 190 }; 191 }; 192}; 193 194&tlmm { 195 /* 196 * 0-3: unused but protected by TZ 197 * 135-138: fingerprint reader (SPI) 198 */ 199 gpio-reserved-ranges = <0 4>, <135 4>; 200}; 201 202&uart_0 { 203 status = "okay"; 204}; 205 206&usb3 { 207 status = "okay"; 208}; 209 210&usb3_dwc3 { 211 dr_mode = "peripheral"; 212}; 213