0001 // SPDX-License-Identifier: BSD-3-Clause
0002 /*
0003 * Copyright (c) 2022, Luca Weiss <luca@z3ntu.xyz>
0004 */
0005 /dts-v1/;
0006
0007 #include "sdm632.dtsi"
0008 #include "pm8953.dtsi"
0009
0010 / {
0011 model = "Fairphone 3";
0012 compatible = "fairphone,fp3", "qcom,sdm632";
0013 chassis-type = "handset";
0014 qcom,msm-id = <349 0>;
0015 qcom,board-id = <8 0x10000>;
0016
0017 aliases {
0018 mmc0 = &sdhc_1;
0019 mmc1 = &sdhc_2;
0020 serial0 = &uart_0;
0021 };
0022
0023 chosen {
0024 stdout-path = "serial0:115200n8";
0025 };
0026
0027 gpio-keys {
0028 compatible = "gpio-keys";
0029
0030 key-volume-up {
0031 label = "volume_up";
0032 linux,code = <KEY_VOLUMEUP>;
0033 gpios = <&tlmm 85 GPIO_ACTIVE_LOW>;
0034 };
0035 };
0036
0037 vph_pwr: vph-pwr-regulator {
0038 compatible = "regulator-fixed";
0039 regulator-name = "vph_pwr";
0040 regulator-always-on;
0041 regulator-boot-on;
0042 };
0043 };
0044
0045 &hsusb_phy {
0046 status = "okay";
0047 vdd-supply = <&pm8953_l3>;
0048 vdda-pll-supply = <&pm8953_l7>;
0049 vdda-phy-dpdm-supply = <&pm8953_l13>;
0050 };
0051
0052 &pm8953_resin {
0053 status = "okay";
0054 linux,code = <KEY_VOLUMEDOWN>;
0055 };
0056
0057 &sdhc_1 {
0058 status = "okay";
0059 vmmc-supply = <&pm8953_l8>;
0060 vqmmc-supply = <&pm8953_l5>;
0061 };
0062
0063 &sdhc_2 {
0064 status = "okay";
0065 vmmc-supply = <&pm8953_l11>;
0066 vqmmc-supply = <&pm8953_l12>;
0067
0068 cd-gpios = <&tlmm 133 GPIO_ACTIVE_LOW>;
0069 };
0070
0071 &rpm_requests {
0072 pm8953-regulators {
0073 compatible = "qcom,rpm-pm8953-regulators";
0074
0075 vdd_l1-supply = <&pm8953_s3>;
0076 vdd_l2_l3-supply = <&pm8953_s3>;
0077 vdd_l4_l5_l6_l7_l16_l19-supply = <&pm8953_s4>;
0078 vdd_l8_l11_l12_l13_l14_l15-supply = <&vph_pwr>;
0079 vdd_l9_l10_l17_l18_l22-supply = <&vph_pwr>;
0080
0081 pm8953_s3: s3 {
0082 regulator-min-microvolt = <984000>;
0083 regulator-max-microvolt = <1240000>;
0084 };
0085 pm8953_s4: s4 {
0086 regulator-min-microvolt = <1036000>;
0087 regulator-max-microvolt = <2040000>;
0088 };
0089 pm8953_s5: s5 {
0090 regulator-min-microvolt = <1036000>;
0091 regulator-max-microvolt = <2040000>;
0092 };
0093
0094 pm8953_l1: l1 {
0095 regulator-min-microvolt = <975000>;
0096 regulator-max-microvolt = <1050000>;
0097 };
0098 pm8953_l2: l2 {
0099 regulator-min-microvolt = <975000>;
0100 regulator-max-microvolt = <1175000>;
0101 };
0102 pm8953_l3: l3 {
0103 regulator-min-microvolt = <925000>;
0104 regulator-max-microvolt = <925000>;
0105 };
0106 pm8953_l5: l5 {
0107 regulator-min-microvolt = <1800000>;
0108 regulator-max-microvolt = <1800000>;
0109 };
0110 pm8953_l6: l6 {
0111 regulator-min-microvolt = <1800000>;
0112 regulator-max-microvolt = <1800000>;
0113 };
0114 pm8953_l7: l7 {
0115 regulator-min-microvolt = <1800000>;
0116 regulator-max-microvolt = <1900000>;
0117 };
0118 pm8953_l8: l8 {
0119 regulator-min-microvolt = <2900000>;
0120 regulator-max-microvolt = <2900000>;
0121 };
0122 pm8953_l9: l9 {
0123 regulator-min-microvolt = <3000000>;
0124 regulator-max-microvolt = <3300000>;
0125 };
0126 pm8953_l10: l10 {
0127 regulator-min-microvolt = <2800000>;
0128 regulator-max-microvolt = <3000000>;
0129 };
0130 pm8953_l11: l11 {
0131 regulator-min-microvolt = <2950000>;
0132 regulator-max-microvolt = <2950000>;
0133 };
0134 pm8953_l12: l12 {
0135 regulator-min-microvolt = <1800000>;
0136 regulator-max-microvolt = <2950000>;
0137 };
0138 pm8953_l13: l13 {
0139 regulator-min-microvolt = <3125000>;
0140 regulator-max-microvolt = <3125000>;
0141 };
0142 pm8953_l16: l16 {
0143 regulator-min-microvolt = <1800000>;
0144 regulator-max-microvolt = <1800000>;
0145 };
0146 pm8953_l17: l17 {
0147 regulator-min-microvolt = <2850000>;
0148 regulator-max-microvolt = <2850000>;
0149 };
0150 pm8953_l19: l19 {
0151 regulator-min-microvolt = <1200000>;
0152 regulator-max-microvolt = <1350000>;
0153 };
0154 pm8953_l22: l22 {
0155 regulator-min-microvolt = <2800000>;
0156 regulator-max-microvolt = <2800000>;
0157 };
0158 pm8953_l23: l23 {
0159 regulator-min-microvolt = <975000>;
0160 regulator-max-microvolt = <1225000>;
0161 };
0162 };
0163 };
0164
0165 &tlmm {
0166 /*
0167 * 0-3: unused but protected by TZ
0168 * 135-138: fingerprint reader (SPI)
0169 */
0170 gpio-reserved-ranges = <0 4>, <135 4>;
0171 };
0172
0173 &uart_0 {
0174 status = "okay";
0175 };
0176
0177 &usb3 {
0178 status = "okay";
0179 };
0180
0181 &usb3_dwc3 {
0182 dr_mode = "peripheral";
0183 };