1 // SPDX-License-Identifier: GPL-2.0-only 2 3 #include "msm8916-pm8916.dtsi" 4 #include "msm8916-modem-qdsp6.dtsi" 5 6 #include <dt-bindings/gpio/gpio.h> 7 #include <dt-bindings/pinctrl/qcom,pmic-mpp.h> 8 9 / { 10 aliases { 11 mmc0 = &sdhc_1; /* eMMC */ 12 mmc1 = &sdhc_2; /* SD card */ 13 serial0 = &blsp_uart2; 14 }; 15 16 chosen { 17 stdout-path = "serial0"; 18 }; 19 20 headphones_switch: audio-switch { 21 compatible = "simple-audio-amp 22 23 pinctrl-0 = <&headphones_switc 24 pinctrl-names = "default"; 25 26 enable-gpios = <&tlmm 120 GPIO 27 sound-name-prefix = "Headphone 28 }; 29 30 backlight: backlight { 31 compatible = "pwm-backlight"; 32 pwms = <&pm8916_pwm 0 100000>; 33 34 brightness-levels = <0 255>; 35 num-interpolated-steps = <255> 36 default-brightness-level = <25 37 }; 38 39 battery: battery { 40 compatible = "simple-battery"; 41 voltage-min-design-microvolt = 42 voltage-max-design-microvolt = 43 energy-full-design-microwatt-h 44 charge-full-design-microamp-ho 45 46 ocv-capacity-celsius = <25>; 47 ocv-capacity-table-0 = <432800 48 <4154000 85>, <4102000 49 <3960000 65>, <3914000 50 <3818000 45>, <3800000 51 <3756000 25>, <3736000 52 <3690000 11>, <3689000 53 <3682000 7>, <3670000 54 <3530000 3>, <3448000 55 }; 56 57 gpio-keys { 58 compatible = "gpio-keys"; 59 60 pinctrl-0 = <&gpio_keys_defaul 61 pinctrl-names = "default"; 62 63 label = "GPIO Buttons"; 64 65 volume-up-button { 66 label = "Volume Up"; 67 gpios = <&tlmm 107 GPI 68 linux,code = <KEY_VOLU 69 }; 70 }; 71 }; 72 73 &blsp_i2c5 { 74 status = "okay"; 75 76 touchscreen@38 { 77 compatible = "edt,edt-ft5306"; 78 reg = <0x38>; 79 80 interrupts-extended = <&tlmm 1 81 82 vcc-supply = <&pm8916_l17>; 83 iovcc-supply = <&pm8916_l6>; 84 85 reset-gpios = <&tlmm 12 GPIO_A 86 87 touchscreen-size-x = <720>; 88 touchscreen-size-y = <1280>; 89 90 pinctrl-0 = <&touchscreen_defa 91 pinctrl-names = "default"; 92 }; 93 }; 94 95 &blsp_uart2 { 96 status = "okay"; 97 }; 98 99 &mpss_mem { 100 reg = <0x0 0x86800000 0x0 0x5500000>; 101 }; 102 103 &pm8916_bms { 104 monitored-battery = <&battery>; 105 status = "okay"; 106 }; 107 108 &pm8916_codec { 109 qcom,micbias-lvl = <2800>; 110 qcom,mbhc-vthreshold-low = <75 150 237 111 qcom,mbhc-vthreshold-high = <75 150 23 112 qcom,hphl-jack-type-normally-open; 113 }; 114 115 &pm8916_pwm { 116 pinctrl-0 = <&pwm_out>; 117 pinctrl-names = "default"; 118 status = "okay"; 119 }; 120 121 &pm8916_resin { 122 linux,code = <KEY_VOLUMEDOWN>; 123 status = "okay"; 124 }; 125 126 &pm8916_rpm_regulators { 127 pm8916_l17: l17 { 128 regulator-min-microvolt = <285 129 regulator-max-microvolt = <285 130 }; 131 }; 132 133 &pm8916_vib { 134 status = "okay"; 135 }; 136 137 &sdhc_1 { 138 status = "okay"; 139 }; 140 141 &sdhc_2 { 142 pinctrl-0 = <&sdc2_default>; 143 pinctrl-1 = <&sdc2_sleep>; 144 pinctrl-names = "default", "sleep"; 145 146 non-removable; 147 148 status = "okay"; 149 }; 150 151 &usb { 152 status = "okay"; 153 }; 154 155 &venus { 156 status = "okay"; 157 }; 158 159 &venus_mem { 160 status = "okay"; 161 }; 162 163 &wcnss { 164 status = "okay"; 165 }; 166 167 &wcnss_iris { 168 compatible = "qcom,wcn3620"; 169 }; 170 171 &wcnss_mem { 172 status = "okay"; 173 }; 174 175 &tlmm { 176 gpio_keys_default: gpio-keys-default-s 177 pins = "gpio107"; 178 function = "gpio"; 179 drive-strength = <2>; 180 bias-pull-up; 181 }; 182 183 headphones_switch_default: headphones- 184 pins = "gpio120"; 185 function = "gpio"; 186 drive-strength = <2>; 187 bias-disable; 188 }; 189 190 touchscreen_default: touchscreen-defau 191 touchscreen-pins { 192 pins = "gpio13"; 193 function = "gpio"; 194 drive-strength = <2>; 195 bias-pull-up; 196 }; 197 198 reset-pins { 199 pins = "gpio12"; 200 function = "gpio"; 201 drive-strength = <2>; 202 bias-disable; 203 }; 204 }; 205 }; 206 207 &pm8916_mpps { 208 pwm_out: mpp4-state { 209 pins = "mpp4"; 210 function = "digital"; 211 power-source = <PM8916_MPP_VPH 212 output-low; 213 qcom,dtest = <1>; 214 }; 215 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.