1 // SPDX-License-Identifier: BSD-3-Clause 1 // SPDX-License-Identifier: BSD-3-Clause 2 /* 2 /* 3 * Copyright (c) 2022, Gabriela David 3 * Copyright (c) 2022, Gabriela David 4 */ 4 */ 5 /dts-v1/; 5 /dts-v1/; 6 6 7 #include "sdm632.dtsi" 7 #include "sdm632.dtsi" 8 #include "pm8953.dtsi" 8 #include "pm8953.dtsi" 9 #include <dt-bindings/leds/common.h> 9 #include <dt-bindings/leds/common.h> 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 G7 Power"; 15 model = "Motorola G7 Power"; 16 compatible = "motorola,ocean", "qcom,s 16 compatible = "motorola,ocean", "qcom,sdm632"; 17 chassis-type = "handset"; 17 chassis-type = "handset"; 18 qcom,msm-id = <349 0>; 18 qcom,msm-id = <349 0>; 19 qcom,board-id = <0x141 0xc100>; 19 qcom,board-id = <0x141 0xc100>; 20 qcom,pmic-id = <0x10016 0x25 0x00 0x00 20 qcom,pmic-id = <0x10016 0x25 0x00 0x00>; 21 21 22 backlight: backlight { 22 backlight: backlight { 23 compatible = "led-backlight"; 23 compatible = "led-backlight"; 24 leds = <&led>; 24 leds = <&led>; 25 }; 25 }; 26 26 27 chosen { 27 chosen { 28 #address-cells = <2>; 28 #address-cells = <2>; 29 #size-cells = <2>; 29 #size-cells = <2>; 30 ranges; 30 ranges; 31 31 32 framebuffer@90001000 { 32 framebuffer@90001000 { 33 compatible = "simple-f 33 compatible = "simple-framebuffer"; 34 reg = <0 0x90001000 0 34 reg = <0 0x90001000 0 (720 * 1520 * 3)>; 35 35 36 width = <720>; 36 width = <720>; 37 height = <1520>; 37 height = <1520>; 38 stride = <(720 * 3)>; 38 stride = <(720 * 3)>; 39 format = "r8g8b8"; 39 format = "r8g8b8"; 40 40 41 power-domains = <&gcc 41 power-domains = <&gcc MDSS_GDSC>; 42 42 43 clocks = <&gcc GCC_MDS 43 clocks = <&gcc GCC_MDSS_AHB_CLK>, 44 <&gcc GCC_MDS 44 <&gcc GCC_MDSS_AXI_CLK>, 45 <&gcc GCC_MDS 45 <&gcc GCC_MDSS_VSYNC_CLK>, 46 <&gcc GCC_MDS 46 <&gcc GCC_MDSS_MDP_CLK>, 47 <&gcc GCC_MDS 47 <&gcc GCC_MDSS_BYTE0_CLK>, 48 <&gcc GCC_MDS 48 <&gcc GCC_MDSS_PCLK0_CLK>, 49 <&gcc GCC_MDS 49 <&gcc GCC_MDSS_ESC0_CLK>; 50 }; 50 }; 51 }; 51 }; 52 52 53 gpio-keys { 53 gpio-keys { 54 compatible = "gpio-keys"; 54 compatible = "gpio-keys"; 55 55 56 pinctrl-names = "default"; 56 pinctrl-names = "default"; 57 pinctrl-0 = <&gpio_key_default 57 pinctrl-0 = <&gpio_key_default>; 58 58 59 key-volume-up { 59 key-volume-up { 60 label = "Volume Up"; 60 label = "Volume Up"; 61 gpios = <&tlmm 85 GPIO 61 gpios = <&tlmm 85 GPIO_ACTIVE_LOW>; 62 linux,code = <KEY_VOLU 62 linux,code = <KEY_VOLUMEUP>; 63 }; 63 }; 64 }; 64 }; 65 65 66 reserved-memory { 66 reserved-memory { 67 qseecom_mem: qseecom@84300000 67 qseecom_mem: qseecom@84300000 { 68 reg = <0x0 0x84300000 68 reg = <0x0 0x84300000 0x0 0x2000000>; 69 no-map; 69 no-map; 70 }; 70 }; 71 71 72 cont_splash_mem: cont-splash@9 72 cont_splash_mem: cont-splash@90001000 { 73 reg = <0x0 0x90001000 73 reg = <0x0 0x90001000 0x0 (720 * 1520 * 3)>; 74 no-map; 74 no-map; 75 }; 75 }; 76 76 77 reserved@eefa1800 { 77 reserved@eefa1800 { 78 reg = <0x00 0xeefa1800 78 reg = <0x00 0xeefa1800 0x00 0x5e800>; 79 no-map; 79 no-map; 80 }; 80 }; 81 81 82 ramoops@ef000000 { 82 ramoops@ef000000 { 83 compatible = "ramoops" 83 compatible = "ramoops"; 84 reg = <0x0 0xef000000 84 reg = <0x0 0xef000000 0x0 0xbf800>; 85 console-size = <0x4000 85 console-size = <0x40000>; 86 pmsg-size = <0x40000>; 86 pmsg-size = <0x40000>; 87 record-size = <0x3f800 87 record-size = <0x3f800>; 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@41 { 110 touchscreen@41 { 111 compatible = "ilitek,ili2117"; 111 compatible = "ilitek,ili2117"; 112 reg = <0x41>; 112 reg = <0x41>; 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 touchscreen-inverted-x; 117 touchscreen-inverted-x; 118 }; 118 }; 119 }; 119 }; 120 120 121 &i2c_5 { 121 &i2c_5 { 122 status = "okay"; 122 status = "okay"; 123 123 124 led-controller@36 { 124 led-controller@36 { 125 compatible = "ti,lm3697"; 125 compatible = "ti,lm3697"; 126 reg = <0x36>; 126 reg = <0x36>; 127 127 128 #address-cells = <1>; 128 #address-cells = <1>; 129 #size-cells = <0>; 129 #size-cells = <0>; 130 130 131 led: led@1 { 131 led: led@1 { 132 reg = <1>; 132 reg = <1>; 133 default-trigger = "bac 133 default-trigger = "backlight"; 134 function = LED_FUNCTIO 134 function = LED_FUNCTION_BACKLIGHT; 135 led-sources = <0 1 2>; 135 led-sources = <0 1 2>; 136 }; 136 }; 137 }; 137 }; 138 }; 138 }; 139 139 140 &pm8953_resin { 140 &pm8953_resin { 141 linux,code = <KEY_VOLUMEDOWN>; 141 linux,code = <KEY_VOLUMEDOWN>; 142 status = "okay"; 142 status = "okay"; 143 }; 143 }; 144 144 145 &rpm_requests { 145 &rpm_requests { 146 regulators { 146 regulators { 147 compatible = "qcom,rpm-pm8953- 147 compatible = "qcom,rpm-pm8953-regulators"; 148 148 149 vdd_l1-supply = <&pm8953_s3>; 149 vdd_l1-supply = <&pm8953_s3>; 150 vdd_l2_l3-supply = <&pm8953_s3 150 vdd_l2_l3-supply = <&pm8953_s3>; 151 vdd_l4_l5_l6_l7_l16_l19-supply 151 vdd_l4_l5_l6_l7_l16_l19-supply = <&pm8953_s4>; 152 vdd_l8_l11_l12_l13_l14_l15-sup 152 vdd_l8_l11_l12_l13_l14_l15-supply = <&vph_pwr>; 153 vdd_l9_l10_l17_l18_l22-supply 153 vdd_l9_l10_l17_l18_l22-supply = <&vph_pwr>; 154 154 155 pm8953_s3: s3 { 155 pm8953_s3: s3 { 156 regulator-min-microvol 156 regulator-min-microvolt = <984000>; 157 regulator-max-microvol 157 regulator-max-microvolt = <1240000>; 158 }; 158 }; 159 159 160 pm8953_s4: s4 { 160 pm8953_s4: s4 { 161 regulator-min-microvol 161 regulator-min-microvolt = <1036000>; 162 regulator-max-microvol 162 regulator-max-microvolt = <2040000>; 163 }; 163 }; 164 164 165 pm8953_l1: l1 { 165 pm8953_l1: l1 { 166 regulator-min-microvol 166 regulator-min-microvolt = <975000>; 167 regulator-max-microvol 167 regulator-max-microvolt = <1050000>; 168 }; 168 }; 169 169 170 pm8953_l2: l2 { 170 pm8953_l2: l2 { 171 regulator-min-microvol 171 regulator-min-microvolt = <975000>; 172 regulator-max-microvol 172 regulator-max-microvolt = <1175000>; 173 }; 173 }; 174 174 175 pm8953_l3: l3 { 175 pm8953_l3: l3 { 176 regulator-min-microvol 176 regulator-min-microvolt = <925000>; 177 regulator-max-microvol 177 regulator-max-microvolt = <925000>; 178 regulator-allow-set-lo 178 regulator-allow-set-load; 179 }; 179 }; 180 180 181 pm8953_l5: l5 { 181 pm8953_l5: l5 { 182 regulator-min-microvol 182 regulator-min-microvolt = <1800000>; 183 regulator-max-microvol 183 regulator-max-microvolt = <1800000>; 184 }; 184 }; 185 185 186 pm8953_l6: l6 { 186 pm8953_l6: l6 { 187 regulator-min-microvol 187 regulator-min-microvolt = <1800000>; 188 regulator-max-microvol 188 regulator-max-microvolt = <1800000>; 189 regulator-always-on; 189 regulator-always-on; 190 regulator-boot-on; 190 regulator-boot-on; 191 }; 191 }; 192 192 193 pm8953_l7: l7 { 193 pm8953_l7: l7 { 194 regulator-min-microvol 194 regulator-min-microvolt = <1800000>; 195 regulator-max-microvol 195 regulator-max-microvolt = <1900000>; 196 }; 196 }; 197 197 198 pm8953_l8: l8 { 198 pm8953_l8: l8 { 199 regulator-min-microvol 199 regulator-min-microvolt = <2900000>; 200 regulator-max-microvol 200 regulator-max-microvolt = <2900000>; 201 }; 201 }; 202 202 203 pm8953_l9: l9 { 203 pm8953_l9: l9 { 204 regulator-min-microvol 204 regulator-min-microvolt = <3000000>; 205 regulator-max-microvol 205 regulator-max-microvolt = <3300000>; 206 }; 206 }; 207 207 208 pm8953_l10: l10 { 208 pm8953_l10: l10 { 209 regulator-min-microvol 209 regulator-min-microvolt = <2800000>; 210 regulator-max-microvol 210 regulator-max-microvolt = <3000000>; 211 }; 211 }; 212 212 213 pm8953_l11: l11 { 213 pm8953_l11: l11 { 214 regulator-min-microvol 214 regulator-min-microvolt = <2950000>; 215 regulator-max-microvol 215 regulator-max-microvolt = <2950000>; 216 }; 216 }; 217 217 218 pm8953_l12: l12 { 218 pm8953_l12: l12 { 219 regulator-min-microvol 219 regulator-min-microvolt = <1800000>; 220 regulator-max-microvol 220 regulator-max-microvolt = <2950000>; 221 }; 221 }; 222 222 223 pm8953_l13: l13 { 223 pm8953_l13: l13 { 224 regulator-min-microvol 224 regulator-min-microvolt = <3125000>; 225 regulator-max-microvol 225 regulator-max-microvolt = <3125000>; 226 }; 226 }; 227 227 228 pm8953_l16: l16 { 228 pm8953_l16: l16 { 229 regulator-min-microvol 229 regulator-min-microvolt = <1800000>; 230 regulator-max-microvol 230 regulator-max-microvolt = <1800000>; 231 }; 231 }; 232 232 233 pm8953_l17: l17 { 233 pm8953_l17: l17 { 234 regulator-min-microvol 234 regulator-min-microvolt = <2850000>; 235 regulator-max-microvol 235 regulator-max-microvolt = <2850000>; 236 }; 236 }; 237 237 238 pm8953_l18: l18 { 238 pm8953_l18: l18 { 239 regulator-min-microvol 239 regulator-min-microvolt = <1800000>; 240 regulator-max-microvol 240 regulator-max-microvolt = <2700000>; 241 regulator-always-on; 241 regulator-always-on; 242 regulator-boot-on; 242 regulator-boot-on; 243 }; 243 }; 244 244 245 pm8953_l19: l19 { 245 pm8953_l19: l19 { 246 regulator-min-microvol 246 regulator-min-microvolt = <1200000>; 247 regulator-max-microvol 247 regulator-max-microvolt = <1350000>; 248 }; 248 }; 249 249 250 pm8953_l22: l22 { 250 pm8953_l22: l22 { 251 regulator-min-microvol 251 regulator-min-microvolt = <1800000>; 252 regulator-max-microvol 252 regulator-max-microvolt = <1800000>; 253 regulator-always-on; 253 regulator-always-on; 254 }; 254 }; 255 255 256 pm8953_l23: l23 { 256 pm8953_l23: l23 { 257 regulator-min-microvol 257 regulator-min-microvolt = <975000>; 258 regulator-max-microvol 258 regulator-max-microvolt = <1225000>; 259 }; 259 }; 260 }; 260 }; 261 }; 261 }; 262 262 263 &sdhc_1 { 263 &sdhc_1 { 264 vmmc-supply = <&pm8953_l8>; 264 vmmc-supply = <&pm8953_l8>; 265 vqmmc-supply = <&pm8953_l5>; 265 vqmmc-supply = <&pm8953_l5>; 266 266 267 status = "okay"; 267 status = "okay"; 268 }; 268 }; 269 269 270 &sdhc_2 { 270 &sdhc_2 { 271 vmmc-supply = <&pm8953_l11>; 271 vmmc-supply = <&pm8953_l11>; 272 vqmmc-supply = <&pm8953_l12>; 272 vqmmc-supply = <&pm8953_l12>; 273 273 274 pinctrl-names = "default", "sleep"; 274 pinctrl-names = "default", "sleep"; 275 pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on 275 pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>; 276 pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_o 276 pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>; 277 277 278 status = "okay"; 278 status = "okay"; 279 }; 279 }; 280 280 281 &tlmm { 281 &tlmm { 282 gpio-reserved-ranges = <96 4>; 282 gpio-reserved-ranges = <96 4>; 283 }; 283 }; 284 284 285 &usb3 { 285 &usb3 { 286 status = "okay"; 286 status = "okay"; 287 }; 287 }; 288 288 289 &usb3_dwc3 { 289 &usb3_dwc3 { 290 /delete-property/ usb-role-switch; 290 /delete-property/ usb-role-switch; 291 dr_mode = "peripheral"; 291 dr_mode = "peripheral"; 292 }; 292 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.