1 // SPDX-License-Identifier: BSD-3-Clause
3 * Copyright (c) 2023, Luca Weiss <luca.weiss@fairphone.com>
8 /* PM7250B is configured to use SID8/9 */
10 #define PM7250B_SID1 9
12 #include <dt-bindings/leds/common.h>
13 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
14 #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
15 #include "sc7280.dtsi"
16 #include "pm7250b.dtsi"
17 #include "pm7325.dtsi"
18 #include "pm8350c.dtsi" /* PM7350C */
19 #include "pmk8350.dtsi" /* PMK7325 */
21 /delete-node/ &rmtfs_mem;
24 model = "Fairphone 5";
25 compatible = "fairphone,fp5", "qcom,qcm6490";
26 chassis-type = "handset";
38 framebuffer0: framebuffer@a000000 {
39 compatible = "simple-framebuffer";
40 reg = <0x0 0xe1000000 0x0 (2700 * 1224 * 4)>;
43 stride = <(1224 * 4)>;
45 clocks = <&gcc GCC_DISP_HF_AXI_CLK>;
50 compatible = "gpio-keys";
52 pinctrl-0 = <&volume_down_default>, <&hall_sensor_default>;
53 pinctrl-names = "default";
57 gpios = <&pm7325_gpios 6 GPIO_ACTIVE_LOW>;
58 linux,code = <KEY_VOLUMEUP>;
61 /* Powered by the always-on vreg_l8c */
63 label = "Hall Effect Sensor";
64 gpios = <&tlmm 155 GPIO_ACTIVE_LOW>;
65 linux,input-type = <EV_SW>;
66 linux,code = <SW_LID>;
73 cont_splash_mem: cont-splash@e1000000 {
74 reg = <0x0 0xe1000000 0x0 0x2300000>;
78 adsp_mem: adsp@86700000 {
79 reg = <0x0 0x86700000 0x0 0x2800000>;
83 cdsp_mem: cdsp@88f00000 {
84 reg = <0x0 0x88f00000 0x0 0x1e00000>;
88 mpss_mem: mpss@8b800000 {
89 reg = <0x0 0x8b800000 0x0 0xf600000>;
93 wpss_mem: wpss@9ae00000 {
94 reg = <0x0 0x9ae00000 0x0 0x1900000>;
98 rmtfs_mem: memory@f8500000 {
99 compatible = "qcom,rmtfs-mem";
100 reg = <0x0 0xf8500000 0x0 0x600000>;
103 qcom,client-id = <1>;
104 qcom,vmid = <QCOM_SCM_VMID_MSS_MSA>, <QCOM_SCM_VMID_NAV>;
108 ois_avdd0_1p8: regulator-ois-avdd0-1p8 {
109 compatible = "regulator-fixed";
110 regulator-name = "OIS_AVDD0_1P8";
111 regulator-min-microvolt = <1800000>;
112 regulator-max-microvolt = <1800000>;
113 gpio = <&tlmm 157 GPIO_ACTIVE_HIGH>;
115 vin-supply = <&vreg_bob>;
118 ois_dvdd_1p1: regulator-ois-dvdd-1p1 {
119 compatible = "regulator-fixed";
120 regulator-name = "OIS_DVDD_1P1";
121 regulator-min-microvolt = <1100000>;
122 regulator-max-microvolt = <1100000>;
123 gpio = <&tlmm 97 GPIO_ACTIVE_HIGH>;
125 vin-supply = <&vreg_s8b>;
128 afvdd_2p8: regulator-afvdd-2p8 {
129 compatible = "regulator-fixed";
130 regulator-name = "AFVDD_2P8";
131 regulator-min-microvolt = <2800000>;
132 regulator-max-microvolt = <2800000>;
133 gpio = <&tlmm 68 GPIO_ACTIVE_HIGH>;
135 vin-supply = <&vreg_bob>;
141 compatible = "qcom,pm7325-rpmh-regulators";
145 regulator-min-microvolt = <1840000>;
146 regulator-max-microvolt = <2040000>;
150 regulator-min-microvolt = <535000>;
151 regulator-max-microvolt = <1120000>;
155 regulator-min-microvolt = <1200000>;
156 regulator-max-microvolt = <1500000>;
157 regulator-initial-mode = <RPMH_REGULATOR_MODE_RET>;
161 regulator-min-microvolt = <825000>;
162 regulator-max-microvolt = <925000>;
163 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
167 regulator-min-microvolt = <2700000>;
168 regulator-max-microvolt = <3544000>;
169 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
173 regulator-min-microvolt = <312000>;
174 regulator-max-microvolt = <910000>;
175 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
179 regulator-min-microvolt = <1140000>;
180 regulator-max-microvolt = <1260000>;
181 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
185 regulator-min-microvolt = <2400000>;
186 regulator-max-microvolt = <3544000>;
187 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
191 regulator-min-microvolt = <870000>;
192 regulator-max-microvolt = <970000>;
193 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
197 regulator-min-microvolt = <1200000>;
198 regulator-max-microvolt = <1304000>;
199 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
203 regulator-min-microvolt = <1504000>;
204 regulator-max-microvolt = <2000000>;
205 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
209 regulator-min-microvolt = <751000>;
210 regulator-max-microvolt = <824000>;
211 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
215 regulator-min-microvolt = <530000>;
216 regulator-max-microvolt = <824000>;
217 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
221 regulator-min-microvolt = <1080000>;
222 regulator-max-microvolt = <1304000>;
223 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
227 regulator-min-microvolt = <765000>;
228 regulator-max-microvolt = <1020000>;
229 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
233 regulator-min-microvolt = <1100000>;
234 regulator-max-microvolt = <1300000>;
235 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
239 regulator-min-microvolt = <1700000>;
240 regulator-max-microvolt = <1900000>;
241 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
245 regulator-min-microvolt = <1800000>;
246 regulator-max-microvolt = <2000000>;
247 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
251 regulator-min-microvolt = <1800000>;
252 regulator-max-microvolt = <2000000>;
253 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
258 compatible = "qcom,pm8350c-rpmh-regulators";
262 regulator-min-microvolt = <2190000>;
263 regulator-max-microvolt = <2210000>;
264 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
268 regulator-min-microvolt = <1010000>;
269 regulator-max-microvolt = <1170000>;
270 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
274 regulator-min-microvolt = <1800000>;
275 regulator-max-microvolt = <1980000>;
276 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
280 regulator-min-microvolt = <1800000>;
281 regulator-max-microvolt = <1950000>;
282 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
286 regulator-min-microvolt = <3000000>;
287 regulator-max-microvolt = <3400000>;
288 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
292 regulator-min-microvolt = <1620000>;
293 regulator-max-microvolt = <3300000>;
294 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
298 regulator-min-microvolt = <1620000>;
299 regulator-max-microvolt = <3300000>;
300 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
304 regulator-min-microvolt = <1650000>;
305 regulator-max-microvolt = <3544000>;
306 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
310 regulator-min-microvolt = <3000000>;
311 regulator-max-microvolt = <3544000>;
312 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
316 regulator-min-microvolt = <1620000>;
317 regulator-max-microvolt = <2000000>;
318 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
319 /* Hall sensor VDD */
324 regulator-min-microvolt = <2700000>;
325 regulator-max-microvolt = <3544000>;
326 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
330 regulator-min-microvolt = <720000>;
331 regulator-max-microvolt = <1050000>;
332 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
336 regulator-min-microvolt = <2800000>;
337 regulator-max-microvolt = <3544000>;
338 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
342 regulator-min-microvolt = <1650000>;
343 regulator-max-microvolt = <2000000>;
344 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
348 regulator-min-microvolt = <2700000>;
349 regulator-max-microvolt = <3544000>;
350 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
354 regulator-min-microvolt = <3008000>;
355 regulator-max-microvolt = <3960000>;
356 regulator-initial-mode = <RPMH_REGULATOR_MODE_AUTO>;
362 /* Disable for now so simple-framebuffer continues working */
367 protected-clocks = <GCC_CFG_NOC_LPASS_CLK>,
369 <GCC_MSS_CFG_AHB_CLK>,
370 <GCC_MSS_GPLL0_MAIN_DIV_CLK_SRC>,
371 <GCC_MSS_OFFLINE_AXI_CLK>,
372 <GCC_MSS_Q6SS_BOOT_CLK_SRC>,
373 <GCC_MSS_Q6_MEMNOC_AXI_CLK>,
374 <GCC_MSS_SNOC_AXI_CLK>,
375 <GCC_QSPI_CNOC_PERIPH_AHB_CLK>,
377 <GCC_QSPI_CORE_CLK_SRC>,
378 <GCC_SEC_CTRL_CLK_SRC>,
379 <GCC_WPSS_AHB_BDG_MST_CLK>,
395 /* PM8008 PMIC @ 8 and 9 */
396 /* Pixelworks @ 26 */
397 /* FSA4480 USB audio switch @ 42 */
398 /* AW86927FCR haptics @ 5a */
404 /* AW88261FCR amplifier @ 34 */
405 /* AW88261FCR amplifier @ 35 */
411 /* PTN36502 USB redriver @ 1a */
417 /* ST21NFC NFC @ 28 */
418 /* VL53L3 ToF @ 29 */
422 qcom,gsi-loader = "self";
423 memory-region = <&ipa_fw_mem>;
424 firmware-name = "/*(DEBLOBBED)*/";
429 volume_down_default: volume-down-default-state {
431 function = PMIC_GPIO_FUNC_NORMAL;
442 function = LED_FUNCTION_FLASH;
443 color = <LED_COLOR_ID_WHITE>;
444 led-sources = <1>, <4>;
445 led-max-microamp = <500000>;
446 flash-max-microamp = <1500000>;
447 flash-max-timeout-us = <1280000>;
460 linux,code = <KEY_VOLUMEDOWN>;
465 drive-strength = <6>;
469 &qup_spi13_data_clk {
470 drive-strength = <6>;
475 drive-strength = <2>;
480 drive-strength = <2>;
493 drive-strength = <16>;
498 drive-strength = <10>;
503 drive-strength = <10>;
508 vmmc-supply = <&vreg_l9c>;
509 vqmmc-supply = <&vreg_l6c>;
511 pinctrl-0 = <&sdc2_clk>, <&sdc2_cmd>, <&sdc2_data>;
512 pinctrl-1 = <&sdc2_clk_sleep>, <&sdc2_cmd_sleep>, <&sdc2_data_sleep>;
520 /* Goodix touchscreen @ 0 */
525 * 32-33: SMB1394 (SPMI)
526 * 56-59: fingerprint reader (SPI)
528 gpio-reserved-ranges = <32 2>, <56 4>;
530 bluetooth_enable_default: bluetooth-enable-default-state {
537 hall_sensor_default: hall-sensor-default-state {
540 drive-strength = <2>;
544 qup_uart7_sleep_cts: qup-uart7-sleep-cts-state {
548 * Configure a bias-bus-hold on CTS to lower power
549 * usage when Bluetooth is turned off. Bus hold will
550 * maintain a low power state regardless of whether
551 * the Bluetooth module drives the pin in either
552 * direction or leaves the pin fully unpowered.
557 qup_uart7_sleep_rts: qup-uart7-sleep-rts-state {
561 * Configure pull-down on RTS. As RTS is active low
562 * signal, pull it low to indicate the BT SoC that it
563 * can wakeup the system anytime from suspend state by
564 * pulling RX low (by sending wakeup bytes).
569 qup_uart7_sleep_tx: qup-uart7-sleep-tx-state {
573 * Configure pull-up on TX when it isn't actively driven
574 * to prevent BT SoC from receiving garbage during sleep.
579 qup_uart7_sleep_rx: qup-uart7-sleep-rx-state {
583 * Configure a pull-up on RX. This is needed to avoid
584 * garbage data when the TX pin of the Bluetooth module
585 * is floating which may cause spurious wakeups.
590 sw_ctrl_default: sw-ctrl-default-state {
598 compatible = "qcom,geni-debug-uart";
603 /delete-property/interrupts;
604 interrupts-extended = <&intc GIC_SPI 608 IRQ_TYPE_LEVEL_HIGH>,
605 <&tlmm 31 IRQ_TYPE_EDGE_FALLING>;
607 pinctrl-1 = <&qup_uart7_sleep_cts>, <&qup_uart7_sleep_rts>, <&qup_uart7_sleep_tx>, <&qup_uart7_sleep_rx>;
608 pinctrl-names = "default", "sleep";
612 bluetooth: bluetooth {
613 compatible = "qcom,wcn6750-bt";
615 pinctrl-0 = <&bluetooth_enable_default>, <&sw_ctrl_default>;
616 pinctrl-names = "default";
618 enable-gpios = <&tlmm 85 GPIO_ACTIVE_HIGH>;
619 swctrl-gpios = <&tlmm 86 GPIO_ACTIVE_HIGH>;
621 vddio-supply = <&vreg_l19b>;
622 vddaon-supply = <&vreg_s7b>;
623 vddbtcxmx-supply = <&vreg_s7b>;
624 vddrfacmn-supply = <&vreg_s7b>;
625 vddrfa0p8-supply = <&vreg_s7b>;
626 vddrfa1p7-supply = <&vreg_s1b>;
627 vddrfa1p2-supply = <&vreg_s8b>;
628 vddrfa2p2-supply = <&vreg_s1c>;
629 vddasd-supply = <&vreg_l11c>;
631 max-speed = <3200000>;
640 dr_mode = "peripheral";
644 vdda-pll-supply = <&vreg_l10c>;
645 vdda18-supply = <&vreg_l1c>;
646 vdda33-supply = <&vreg_l2b>;
648 qcom,hs-crossover-voltage-microvolt = <28000>;
649 qcom,hs-output-impedance-micro-ohms = <2600000>;
650 qcom,hs-rise-fall-time-bp = <5430>;
651 qcom,hs-disconnect-bp = <1743>;
652 qcom,hs-amplitude-bp = <2430>;
654 qcom,pre-emphasis-amplitude-bp = <20000>;
655 qcom,pre-emphasis-duration-bp = <20000>;
657 qcom,squelch-detector-bp = <(-2090)>;
663 vdda-phy-supply = <&vreg_l6b>;
664 vdda-pll-supply = <&vreg_l1b>;