1 // SPDX-License-Identifier: BSD-3-Clause
3 * Copyright (c) 2020, Konrad Dybcio
6 #include "msm8994.dtsi"
8 #include "pmi8994.dtsi"
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/input/gpio-keys.h>
13 /* required for bootloader to select correct board */
14 qcom,msm-id = <0xcf 0x20001>;
15 qcom,pmic-id = <0x10009 0x1000a 0x00 0x00>;
16 qcom,board-id = <8 0>;
18 /* Kitakami firmware doesn't support PSCI */
22 compatible = "gpio-keys";
23 input-name = "gpio-keys";
29 label = "Volume Down";
30 gpios = <&pm8994_gpios 2 GPIO_ACTIVE_LOW>;
31 linux,input-type = <1>;
32 linux,code = <KEY_VOLUMEDOWN>;
34 debounce-interval = <15>;
39 gpios = <&pm8994_gpios 3 GPIO_ACTIVE_LOW>;
40 linux,input-type = <1>;
41 linux,code = <KEY_VOLUMEUP>;
43 debounce-interval = <15>;
47 label = "Camera Snapshot";
48 gpios = <&pm8994_gpios 4 GPIO_ACTIVE_LOW>;
49 linux,input-type = <1>;
50 linux,code = <KEY_CAMERA>;
52 debounce-interval = <15>;
56 label = "Camera Focus";
57 gpios = <&pm8994_gpios 5 GPIO_ACTIVE_LOW>;
58 linux,input-type = <1>;
59 linux,code = <KEY_VOLUMEUP>;
61 debounce-interval = <15>;
70 /* This is for getting crash logs using Android downstream kernels */
72 compatible = "ramoops";
73 reg = <0x0 0x1fe00000 0x0 0x200000>;
74 console-size = <0x100000>;
75 record-size = <0x10000>;
76 ftrace-size = <0x10000>;
77 pmsg-size = <0x80000>;
80 continuous_splash: framebuffer@3401000{
81 reg = <0x0 0x3401000 0x0 0x2200000>;
85 dfps_data_mem: dfps_data_mem@3400000 {
86 reg = <0x0 0x3400000 0x0 0x1000>;
90 peripheral_region: peripheral_region@7400000 {
91 reg = <0x0 0x7400000 0x0 0x1c00000>;
95 modem_region: modem_region@9000000 {
96 reg = <0x0 0x9000000 0x0 0x5a00000>;
100 tzapp: modem_region@ea00000 {
101 reg = <0x0 0xea00000 0x0 0x1900000>;
105 fb_region: fb_region@40000000 {
106 reg = <0x00 0x40000000 0x00 0x1000000>;
115 /* FPC fingerprint reader */
118 /* I2C1 is disabled on this board */
129 /* Empty but active */
135 /* SMB1357 charger and sii8620 HDMI/MHL bridge */
141 /* Synaptics touchscreen */
153 pm8994_regulators: pm8994-regulators {
154 compatible = "qcom,rpm-pm8994-regulators";
155 vdd_l1-supply = <&pm8994_s1>;
156 vdd_l2_26_28-supply = <&pm8994_s3>;
157 vdd_l3_11-supply = <&pm8994_s3>;
158 vdd_l4_27_31-supply = <&pm8994_s3>;
159 vdd_l5_7-supply = <&pm8994_s3>;
160 vdd_l6_12_32-supply = <&pm8994_s5>;
161 vdd_l8_16_30-supply = <&vreg_vph_pwr>;
162 vdd_l9_10_18_22-supply = <&vreg_vph_pwr>;
163 vdd_l13_19_23_24-supply = <&vreg_vph_pwr>;
164 vdd_l14_15-supply = <&pm8994_s5>;
165 vdd_l17_29-supply = <&vreg_vph_pwr>;
166 vdd_l20_21-supply = <&vreg_vph_pwr>;
167 vdd_l25-supply = <&pm8994_s5>;
168 vdd_lvs1_2 = <&pm8994_s4>;
209 pm8994_lvs1: lvs1 {};
210 pm8994_lvs2: lvs2 {};
213 pmi8994_regulators: pmi8994-regulators {
214 compatible = "qcom,rpm-pmi8994-regulators";
219 pmi8994_bby: boost-bypass {};
224 /* There is an issue with the eMMC causing permanent
225 * damage to the card if a quirk isn't addressed.
226 * Until it's fixed, disable the MMC so as not to brick
231 /* Downstream pushes 2.95V to the sdhci device,
232 * but upstream driver REALLY wants to make vmmc 1.8v
233 * cause of the hs400-1_8v mode. MMC works fine without
234 * that regulator, so let's not use it for now.
235 * vqmmc is also disabled cause driver stll complains.
237 * vmmc-supply = <&pm8994_l20>;
238 * vqmmc-supply = <&pm8994_s4>;