1 // SPDX-License-Identifier: BSD-3-Clause 1 // SPDX-License-Identifier: BSD-3-Clause 2 /* 2 /* 3 * Copyright (c) 2022, Sireesh Kodali 3 * Copyright (c) 2022, Sireesh Kodali 4 */ 4 */ 5 /dts-v1/; 5 /dts-v1/; 6 6 7 #include "msm8953.dtsi" 7 #include "msm8953.dtsi" 8 #include "pm8953.dtsi" 8 #include "pm8953.dtsi" 9 #include "pmi8950.dtsi" 9 #include "pmi8950.dtsi" 10 10 11 /delete-node/ &cont_splash_mem; 11 /delete-node/ &cont_splash_mem; 12 /delete-node/ &qseecom_mem; 12 /delete-node/ &qseecom_mem; 13 13 14 / { 14 / { 15 model = "Motorola G5 Plus"; 15 model = "Motorola G5 Plus"; 16 compatible = "motorola,potter", "qcom, 16 compatible = "motorola,potter", "qcom,msm8953"; 17 chassis-type = "handset"; 17 chassis-type = "handset"; 18 qcom,msm-id = <293 0>; 18 qcom,msm-id = <293 0>; 19 qcom,board-id = <0x46 0x83a0>; 19 qcom,board-id = <0x46 0x83a0>; 20 20 21 chosen { 21 chosen { 22 #address-cells = <2>; 22 #address-cells = <2>; 23 #size-cells = <2>; 23 #size-cells = <2>; 24 ranges; 24 ranges; 25 25 26 framebuffer@90001000 { 26 framebuffer@90001000 { 27 compatible = "simple-f 27 compatible = "simple-framebuffer"; 28 reg = <0 0x90001000 0 28 reg = <0 0x90001000 0 (2220 * 1920 * 3)>; 29 29 30 width = <1080>; 30 width = <1080>; 31 height = <1920>; 31 height = <1920>; 32 stride = <(1080 * 3)>; 32 stride = <(1080 * 3)>; 33 format = "r8g8b8"; 33 format = "r8g8b8"; 34 34 35 power-domains = <&gcc 35 power-domains = <&gcc MDSS_GDSC>; 36 36 37 clocks = <&gcc GCC_MDS 37 clocks = <&gcc GCC_MDSS_AHB_CLK>, 38 <&gcc GCC_MDS 38 <&gcc GCC_MDSS_AXI_CLK>, 39 <&gcc GCC_MDS 39 <&gcc GCC_MDSS_VSYNC_CLK>, 40 <&gcc GCC_MDS 40 <&gcc GCC_MDSS_MDP_CLK>, 41 <&gcc GCC_MDS 41 <&gcc GCC_MDSS_BYTE0_CLK>, 42 <&gcc GCC_MDS 42 <&gcc GCC_MDSS_PCLK0_CLK>, 43 <&gcc GCC_MDS 43 <&gcc GCC_MDSS_ESC0_CLK>; 44 }; 44 }; 45 }; 45 }; 46 46 47 gpio-keys { 47 gpio-keys { 48 compatible = "gpio-keys"; 48 compatible = "gpio-keys"; 49 49 50 pinctrl-names = "default"; 50 pinctrl-names = "default"; 51 pinctrl-0 = <&gpio_key_default 51 pinctrl-0 = <&gpio_key_default>; 52 52 53 key-volume-up { 53 key-volume-up { 54 label = "Volume Up"; 54 label = "Volume Up"; 55 gpios = <&tlmm 85 GPIO 55 gpios = <&tlmm 85 GPIO_ACTIVE_LOW>; 56 linux,code = <KEY_VOLU 56 linux,code = <KEY_VOLUMEUP>; 57 }; 57 }; 58 }; 58 }; 59 59 60 reserved-memory { 60 reserved-memory { 61 qseecom_mem: qseecom@84300000 61 qseecom_mem: qseecom@84300000 { 62 reg = <0x0 0x84300000 62 reg = <0x0 0x84300000 0x0 0x2000000>; 63 no-map; 63 no-map; 64 }; 64 }; 65 65 66 cont_splash_mem: cont-splash@9 66 cont_splash_mem: cont-splash@90001000 { 67 reg = <0x0 0x90001000 67 reg = <0x0 0x90001000 0x0 (1080 * 1920 * 3)>; 68 no-map; 68 no-map; 69 }; 69 }; 70 70 71 reserved@aefd2000 { 71 reserved@aefd2000 { 72 reg = <0x0 0xaefd2000 72 reg = <0x0 0xaefd2000 0x0 0x2e000>; 73 no-map; 73 no-map; 74 }; 74 }; 75 75 76 reserved@eefe4000 { 76 reserved@eefe4000 { 77 reg = <0x0 0xeefe4000 77 reg = <0x0 0xeefe4000 0x0 0x1c000>; 78 no-map; 78 no-map; 79 }; 79 }; 80 80 81 ramoops@ef000000 { 81 ramoops@ef000000 { 82 compatible = "ramoops" 82 compatible = "ramoops"; 83 reg = <0x0 0xef000000 83 reg = <0x0 0xef000000 0x0 0x80000>; 84 console-size = <0x4000 84 console-size = <0x40000>; 85 ftrace-size = <0>; 85 ftrace-size = <0>; 86 record-size = <0x3f800 86 record-size = <0x3f800>; 87 pmsg-size = <0x800>; 87 pmsg-size = <0x800>; 88 }; 88 }; 89 }; 89 }; 90 90 91 vph_pwr: vph-pwr-regulator { 91 vph_pwr: vph-pwr-regulator { 92 compatible = "regulator-fixed" 92 compatible = "regulator-fixed"; 93 regulator-name = "vph_pwr"; 93 regulator-name = "vph_pwr"; 94 regulator-always-on; 94 regulator-always-on; 95 regulator-boot-on; 95 regulator-boot-on; 96 }; 96 }; 97 }; 97 }; 98 98 99 &hsusb_phy { 99 &hsusb_phy { 100 vdd-supply = <&pm8953_l3>; 100 vdd-supply = <&pm8953_l3>; 101 vdda-pll-supply = <&pm8953_l7>; 101 vdda-pll-supply = <&pm8953_l7>; 102 vdda-phy-dpdm-supply = <&pm8953_l13>; 102 vdda-phy-dpdm-supply = <&pm8953_l13>; 103 103 104 status = "okay"; 104 status = "okay"; 105 }; 105 }; 106 106 107 &i2c_3 { 107 &i2c_3 { 108 status = "okay"; 108 status = "okay"; 109 109 110 touchscreen@20 { 110 touchscreen@20 { 111 reg = <0x20>; 111 reg = <0x20>; 112 compatible = "syna,rmi4-i2c"; 112 compatible = "syna,rmi4-i2c"; 113 113 114 interrupt-parent = <&tlmm>; 114 interrupt-parent = <&tlmm>; 115 interrupts = <65 IRQ_TYPE_EDGE 115 interrupts = <65 IRQ_TYPE_EDGE_FALLING>; 116 116 117 pinctrl-names = "default"; 117 pinctrl-names = "default"; 118 pinctrl-0 = <&ts_reset>; 118 pinctrl-0 = <&ts_reset>; 119 119 120 vdd-supply = <&pm8953_l22>; 120 vdd-supply = <&pm8953_l22>; 121 vio-supply = <&pm8953_l6>; 121 vio-supply = <&pm8953_l6>; 122 122 123 syna,reset-delay-ms = <200>; 123 syna,reset-delay-ms = <200>; 124 syna,startup-delay-ms = <500>; 124 syna,startup-delay-ms = <500>; 125 }; 125 }; 126 }; 126 }; 127 127 128 &pm8953_resin { 128 &pm8953_resin { 129 linux,code = <KEY_VOLUMEDOWN>; 129 linux,code = <KEY_VOLUMEDOWN>; 130 status = "okay"; 130 status = "okay"; 131 }; 131 }; 132 132 133 &pmi8950_wled { 133 &pmi8950_wled { 134 qcom,current-limit-microamp = <25000>; 134 qcom,current-limit-microamp = <25000>; 135 qcom,num-strings = <3>; 135 qcom,num-strings = <3>; 136 qcom,external-pfet; 136 qcom,external-pfet; 137 qcom,cabc; 137 qcom,cabc; 138 138 139 status = "okay"; 139 status = "okay"; 140 }; 140 }; 141 141 142 &rpm_requests { 142 &rpm_requests { 143 regulators { 143 regulators { 144 compatible = "qcom,rpm-pm8953- 144 compatible = "qcom,rpm-pm8953-regulators"; 145 vdd_s1-supply = <&vph_pwr>; 145 vdd_s1-supply = <&vph_pwr>; 146 vdd_s2-supply = <&vph_pwr>; 146 vdd_s2-supply = <&vph_pwr>; 147 vdd_s3-supply = <&vph_pwr>; 147 vdd_s3-supply = <&vph_pwr>; 148 vdd_s4-supply = <&vph_pwr>; 148 vdd_s4-supply = <&vph_pwr>; 149 vdd_s5-supply = <&vph_pwr>; 149 vdd_s5-supply = <&vph_pwr>; 150 vdd_s6-supply = <&vph_pwr>; 150 vdd_s6-supply = <&vph_pwr>; 151 vdd_s7-supply = <&vph_pwr>; 151 vdd_s7-supply = <&vph_pwr>; 152 vdd_l1-supply = <&pm8953_s3>; 152 vdd_l1-supply = <&pm8953_s3>; 153 vdd_l2_l3-supply = <&pm8953_s3 153 vdd_l2_l3-supply = <&pm8953_s3>; 154 vdd_l4_l5_l6_l7_l16_l19-supply 154 vdd_l4_l5_l6_l7_l16_l19-supply = <&pm8953_s4>; 155 vdd_l8_l11_l12_l13_l14_l15-sup 155 vdd_l8_l11_l12_l13_l14_l15-supply = <&vph_pwr>; 156 vdd_l9_l10_l17_l18_l22-supply 156 vdd_l9_l10_l17_l18_l22-supply = <&vph_pwr>; 157 157 158 pm8953_s1: s1 { 158 pm8953_s1: s1 { 159 regulator-min-microvol 159 regulator-min-microvolt = <863000>; 160 regulator-max-microvol 160 regulator-max-microvolt = <1152000>; 161 }; 161 }; 162 162 163 pm8953_s3: s3 { 163 pm8953_s3: s3 { 164 regulator-min-microvol 164 regulator-min-microvolt = <1224000>; 165 regulator-max-microvol 165 regulator-max-microvolt = <1224000>; 166 }; 166 }; 167 167 168 pm8953_s4: s4 { 168 pm8953_s4: s4 { 169 regulator-min-microvol 169 regulator-min-microvolt = <1896000>; 170 regulator-max-microvol 170 regulator-max-microvolt = <2048000>; 171 }; 171 }; 172 172 173 pm8953_l1: l1 { 173 pm8953_l1: l1 { 174 regulator-min-microvol 174 regulator-min-microvolt = <1000000>; 175 regulator-max-microvol 175 regulator-max-microvolt = <1100000>; 176 }; 176 }; 177 177 178 pm8953_l2: l2 { 178 pm8953_l2: l2 { 179 regulator-min-microvol 179 regulator-min-microvolt = <1000000>; 180 regulator-max-microvol 180 regulator-max-microvolt = <1000000>; 181 }; 181 }; 182 182 183 pm8953_l3: l3 { 183 pm8953_l3: l3 { 184 regulator-min-microvol 184 regulator-min-microvolt = <925000>; 185 regulator-max-microvol 185 regulator-max-microvolt = <925000>; 186 regulator-allow-set-lo 186 regulator-allow-set-load; 187 }; 187 }; 188 188 189 pm8953_l5: l5 { 189 pm8953_l5: l5 { 190 regulator-min-microvol 190 regulator-min-microvolt = <1800000>; 191 regulator-max-microvol 191 regulator-max-microvolt = <1800000>; 192 }; 192 }; 193 193 194 pm8953_l6: l6 { 194 pm8953_l6: l6 { 195 regulator-min-microvol 195 regulator-min-microvolt = <1800000>; 196 regulator-max-microvol 196 regulator-max-microvolt = <1800000>; 197 regulator-always-on; 197 regulator-always-on; 198 }; 198 }; 199 199 200 pm8953_l7: l7 { 200 pm8953_l7: l7 { 201 regulator-min-microvol 201 regulator-min-microvolt = <1800000>; 202 regulator-max-microvol 202 regulator-max-microvolt = <1900000>; 203 }; 203 }; 204 204 205 pm8953_l8: l8 { 205 pm8953_l8: l8 { 206 regulator-min-microvol 206 regulator-min-microvolt = <2900000>; 207 regulator-max-microvol 207 regulator-max-microvolt = <2900000>; 208 }; 208 }; 209 209 210 pm8953_l9: l9 { 210 pm8953_l9: l9 { 211 regulator-min-microvol 211 regulator-min-microvolt = <3000000>; 212 regulator-max-microvol 212 regulator-max-microvolt = <3300000>; 213 }; 213 }; 214 214 215 pm8953_l10: l10 { 215 pm8953_l10: l10 { 216 regulator-min-microvol 216 regulator-min-microvolt = <1800000>; 217 regulator-max-microvol 217 regulator-max-microvolt = <1800000>; 218 }; 218 }; 219 219 220 pm8953_l11: l11 { 220 pm8953_l11: l11 { 221 regulator-min-microvol 221 regulator-min-microvolt = <2800000>; 222 regulator-max-microvol 222 regulator-max-microvolt = <3000000>; 223 }; 223 }; 224 224 225 pm8953_l12: l12 { 225 pm8953_l12: l12 { 226 regulator-min-microvol 226 regulator-min-microvolt = <1800000>; 227 regulator-max-microvol 227 regulator-max-microvolt = <3000000>; 228 }; 228 }; 229 229 230 pm8953_l13: l13 { 230 pm8953_l13: l13 { 231 regulator-min-microvol 231 regulator-min-microvolt = <3075000>; 232 regulator-max-microvol 232 regulator-max-microvolt = <3125000>; 233 }; 233 }; 234 234 235 pm8953_l15: l15 { 235 pm8953_l15: l15 { 236 regulator-min-microvol 236 regulator-min-microvolt = <1800000>; 237 regulator-max-microvol 237 regulator-max-microvolt = <1800000>; 238 }; 238 }; 239 239 240 pm8953_l16: l16 { 240 pm8953_l16: l16 { 241 regulator-min-microvol 241 regulator-min-microvolt = <1800000>; 242 regulator-max-microvol 242 regulator-max-microvolt = <1800000>; 243 }; 243 }; 244 244 245 pm8953_l17: l17 { 245 pm8953_l17: l17 { 246 regulator-min-microvol 246 regulator-min-microvolt = <2800000>; 247 regulator-max-microvol 247 regulator-max-microvolt = <3000000>; 248 }; 248 }; 249 249 250 pm8953_l19: l19 { 250 pm8953_l19: l19 { 251 regulator-min-microvol 251 regulator-min-microvolt = <1200000>; 252 regulator-max-microvol 252 regulator-max-microvolt = <1350000>; 253 }; 253 }; 254 254 255 pm8953_l22: l22 { 255 pm8953_l22: l22 { 256 regulator-always-on; 256 regulator-always-on; 257 regulator-min-microvol 257 regulator-min-microvolt = <2800000>; 258 regulator-max-microvol 258 regulator-max-microvolt = <2850000>; 259 }; 259 }; 260 260 261 pm8953_l23: l23 { 261 pm8953_l23: l23 { 262 regulator-min-microvol 262 regulator-min-microvolt = <975000>; 263 regulator-max-microvol 263 regulator-max-microvolt = <1225000>; 264 }; 264 }; 265 }; 265 }; 266 }; 266 }; 267 267 268 &sdhc_1 { 268 &sdhc_1 { 269 vmmc-supply = <&pm8953_l8>; 269 vmmc-supply = <&pm8953_l8>; 270 vqmmc-supply = <&pm8953_l5>; 270 vqmmc-supply = <&pm8953_l5>; 271 271 272 status = "okay"; 272 status = "okay"; 273 }; 273 }; 274 274 275 &sdhc_2 { 275 &sdhc_2 { 276 vmmc-supply = <&pm8953_l11>; 276 vmmc-supply = <&pm8953_l11>; 277 vqmmc-supply = <&pm8953_l12>; 277 vqmmc-supply = <&pm8953_l12>; 278 278 279 cd-gpios = <&tlmm 133 GPIO_ACTIVE_LOW> 279 cd-gpios = <&tlmm 133 GPIO_ACTIVE_LOW>; 280 280 281 pinctrl-names = "default", "sleep"; 281 pinctrl-names = "default", "sleep"; 282 pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on 282 pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_off>; 283 pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_o 283 pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>; 284 284 285 status = "okay"; 285 status = "okay"; 286 }; 286 }; 287 287 288 &tlmm { 288 &tlmm { 289 gpio-reserved-ranges = <1 2>, <96 4>, 289 gpio-reserved-ranges = <1 2>, <96 4>, <111 1>, <126 1>; 290 290 291 ts_reset: ts-reset-state { 291 ts_reset: ts-reset-state { 292 pins = "gpio64"; 292 pins = "gpio64"; 293 function = "gpio"; 293 function = "gpio"; 294 drive-strength = <2>; 294 drive-strength = <2>; 295 bias-pull-up; 295 bias-pull-up; 296 }; 296 }; 297 }; 297 }; 298 298 299 &usb3 { 299 &usb3 { 300 status = "okay"; 300 status = "okay"; 301 }; 301 }; 302 302 303 &usb3_dwc3 { 303 &usb3_dwc3 { 304 /delete-property/ usb-role-switch; 304 /delete-property/ usb-role-switch; 305 dr_mode = "peripheral"; 305 dr_mode = "peripheral"; 306 }; 306 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.