1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 2 /* 2 /* 3 * Copyright (C) 2023 MediaTek Inc. 3 * Copyright (C) 2023 MediaTek Inc. 4 * Author: Ben Lok <ben.lok@mediatek.com> 4 * Author: Ben Lok <ben.lok@mediatek.com> 5 * Macpaul Lin <macpaul.lin@mediatek.co 5 * Macpaul Lin <macpaul.lin@mediatek.com> 6 */ 6 */ 7 /dts-v1/; 7 /dts-v1/; 8 8 9 #include "mt8195.dtsi" 9 #include "mt8195.dtsi" 10 #include "mt6359.dtsi" 10 #include "mt6359.dtsi" 11 #include <dt-bindings/gpio/gpio.h> 11 #include <dt-bindings/gpio/gpio.h> 12 #include <dt-bindings/input/input.h> 12 #include <dt-bindings/input/input.h> 13 #include <dt-bindings/interrupt-controller/irq 13 #include <dt-bindings/interrupt-controller/irq.h> 14 #include <dt-bindings/pinctrl/mt8195-pinfunc.h 14 #include <dt-bindings/pinctrl/mt8195-pinfunc.h> 15 #include <dt-bindings/regulator/mediatek,mt636 15 #include <dt-bindings/regulator/mediatek,mt6360-regulator.h> 16 #include <dt-bindings/spmi/spmi.h> 16 #include <dt-bindings/spmi/spmi.h> 17 #include <dt-bindings/usb/pd.h> 17 #include <dt-bindings/usb/pd.h> 18 18 19 / { 19 / { 20 model = "MediaTek Genio 1200 EVK-P1V2- 20 model = "MediaTek Genio 1200 EVK-P1V2-EMMC"; 21 compatible = "mediatek,mt8395-evk", "m 21 compatible = "mediatek,mt8395-evk", "mediatek,mt8395", 22 "mediatek,mt8195"; 22 "mediatek,mt8195"; 23 23 24 aliases { 24 aliases { 25 serial0 = &uart0; 25 serial0 = &uart0; 26 ethernet0 = ð 26 ethernet0 = ð 27 }; 27 }; 28 28 29 chosen { 29 chosen { 30 stdout-path = "serial0:921600n 30 stdout-path = "serial0:921600n8"; 31 }; 31 }; 32 32 33 firmware { 33 firmware { 34 optee { 34 optee { 35 compatible = "linaro,o 35 compatible = "linaro,optee-tz"; 36 method = "smc"; 36 method = "smc"; 37 }; 37 }; 38 }; 38 }; 39 39 40 memory@40000000 { 40 memory@40000000 { 41 device_type = "memory"; 41 device_type = "memory"; 42 reg = <0 0x40000000 0x2 0x0000 42 reg = <0 0x40000000 0x2 0x00000000>; 43 }; 43 }; 44 44 45 reserved-memory { 45 reserved-memory { 46 #address-cells = <2>; 46 #address-cells = <2>; 47 #size-cells = <2>; 47 #size-cells = <2>; 48 ranges; 48 ranges; 49 49 50 /* 50 /* 51 * 12 MiB reserved for OP-TEE 51 * 12 MiB reserved for OP-TEE (BL32) 52 * +-----------------------+ 0 52 * +-----------------------+ 0x43e0_0000 53 * | SHMEM 2MiB | 53 * | SHMEM 2MiB | 54 * +-----------------------+ 0 54 * +-----------------------+ 0x43c0_0000 55 * | | TA_RAM 8MiB | 55 * | | TA_RAM 8MiB | 56 * + TZDRAM +--------------+ 0 56 * + TZDRAM +--------------+ 0x4340_0000 57 * | | TEE_RAM 2MiB | 57 * | | TEE_RAM 2MiB | 58 * +-----------------------+ 0 58 * +-----------------------+ 0x4320_0000 59 */ 59 */ 60 optee_reserved: optee@43200000 60 optee_reserved: optee@43200000 { 61 no-map; 61 no-map; 62 reg = <0 0x43200000 0 62 reg = <0 0x43200000 0 0x00c00000>; 63 }; 63 }; 64 64 65 scp_mem: memory@50000000 { 65 scp_mem: memory@50000000 { 66 compatible = "shared-d 66 compatible = "shared-dma-pool"; 67 reg = <0 0x50000000 0 67 reg = <0 0x50000000 0 0x2900000>; 68 no-map; 68 no-map; 69 }; 69 }; 70 70 71 vpu_mem: memory@53000000 { 71 vpu_mem: memory@53000000 { 72 compatible = "shared-d 72 compatible = "shared-dma-pool"; 73 reg = <0 0x53000000 0 73 reg = <0 0x53000000 0 0x1400000>; /* 20 MB */ 74 }; 74 }; 75 75 76 /* 2 MiB reserved for ARM Trus 76 /* 2 MiB reserved for ARM Trusted Firmware (BL31) */ 77 bl31_secmon_mem: memory@546000 77 bl31_secmon_mem: memory@54600000 { 78 no-map; 78 no-map; 79 reg = <0 0x54600000 0x 79 reg = <0 0x54600000 0x0 0x200000>; 80 }; 80 }; 81 81 82 snd_dma_mem: memory@60000000 { 82 snd_dma_mem: memory@60000000 { 83 compatible = "shared-d 83 compatible = "shared-dma-pool"; 84 reg = <0 0x60000000 0 84 reg = <0 0x60000000 0 0x1100000>; 85 no-map; 85 no-map; 86 }; 86 }; 87 87 88 apu_mem: memory@62000000 { 88 apu_mem: memory@62000000 { 89 compatible = "shared-d 89 compatible = "shared-dma-pool"; 90 reg = <0 0x62000000 0 90 reg = <0 0x62000000 0 0x1400000>; /* 20 MB */ 91 }; 91 }; 92 }; 92 }; 93 93 94 backlight_lcd0: backlight-lcd0 { 94 backlight_lcd0: backlight-lcd0 { 95 compatible = "pwm-backlight"; 95 compatible = "pwm-backlight"; 96 pwms = <&disp_pwm0 0 500000>; 96 pwms = <&disp_pwm0 0 500000>; 97 enable-gpios = <&pio 47 GPIO_A 97 enable-gpios = <&pio 47 GPIO_ACTIVE_HIGH>; 98 brightness-levels = <0 1023>; 98 brightness-levels = <0 1023>; 99 num-interpolated-steps = <1023 99 num-interpolated-steps = <1023>; 100 default-brightness-level = <57 100 default-brightness-level = <576>; 101 }; 101 }; 102 102 103 backlight_lcd1: backlight-lcd1 { 103 backlight_lcd1: backlight-lcd1 { 104 compatible = "pwm-backlight"; 104 compatible = "pwm-backlight"; 105 pwms = <&disp_pwm1 0 500000>; 105 pwms = <&disp_pwm1 0 500000>; 106 enable-gpios = <&pio 46 GPIO_A 106 enable-gpios = <&pio 46 GPIO_ACTIVE_HIGH>; 107 brightness-levels = <0 1023>; 107 brightness-levels = <0 1023>; 108 num-interpolated-steps = <1023 108 num-interpolated-steps = <1023>; 109 default-brightness-level = <57 109 default-brightness-level = <576>; 110 }; 110 }; 111 111 112 can_clk: can-clk { 112 can_clk: can-clk { 113 compatible = "fixed-clock"; 113 compatible = "fixed-clock"; 114 #clock-cells = <0>; 114 #clock-cells = <0>; 115 clock-frequency = <20000000>; 115 clock-frequency = <20000000>; 116 clock-output-names = "can-clk" 116 clock-output-names = "can-clk"; 117 }; 117 }; 118 118 119 edp_panel_fixed_3v3: regulator-0 { 119 edp_panel_fixed_3v3: regulator-0 { 120 compatible = "regulator-fixed" 120 compatible = "regulator-fixed"; 121 regulator-name = "edp_panel_3v 121 regulator-name = "edp_panel_3v3"; 122 regulator-min-microvolt = <330 122 regulator-min-microvolt = <3300000>; 123 regulator-max-microvolt = <330 123 regulator-max-microvolt = <3300000>; 124 enable-active-high; 124 enable-active-high; 125 gpio = <&pio 6 GPIO_ACTIVE_HIG 125 gpio = <&pio 6 GPIO_ACTIVE_HIGH>; 126 pinctrl-names = "default"; 126 pinctrl-names = "default"; 127 pinctrl-0 = <&edp_panel_3v3_en 127 pinctrl-0 = <&edp_panel_3v3_en_pins>; 128 }; 128 }; 129 129 130 edp_panel_fixed_12v: regulator-1 { 130 edp_panel_fixed_12v: regulator-1 { 131 compatible = "regulator-fixed" 131 compatible = "regulator-fixed"; 132 regulator-name = "edp_backligh 132 regulator-name = "edp_backlight_12v"; 133 regulator-min-microvolt = <120 133 regulator-min-microvolt = <12000000>; 134 regulator-max-microvolt = <120 134 regulator-max-microvolt = <12000000>; 135 enable-active-high; 135 enable-active-high; 136 gpio = <&pio 96 GPIO_ACTIVE_HI 136 gpio = <&pio 96 GPIO_ACTIVE_HIGH>; 137 pinctrl-names = "default"; 137 pinctrl-names = "default"; 138 pinctrl-0 = <&edp_panel_12v_en 138 pinctrl-0 = <&edp_panel_12v_en_pins>; 139 }; 139 }; 140 140 141 keys: gpio-keys { 141 keys: gpio-keys { 142 compatible = "gpio-keys"; 142 compatible = "gpio-keys"; 143 143 144 button-volume-up { 144 button-volume-up { 145 wakeup-source; 145 wakeup-source; 146 debounce-interval = <1 146 debounce-interval = <100>; 147 gpios = <&pio 106 GPIO 147 gpios = <&pio 106 GPIO_ACTIVE_LOW>; 148 label = "volume_up"; 148 label = "volume_up"; 149 linux,code = <KEY_VOLU 149 linux,code = <KEY_VOLUMEUP>; 150 }; 150 }; 151 }; 151 }; 152 152 153 wifi_fixed_3v3: regulator-2 { 153 wifi_fixed_3v3: regulator-2 { 154 compatible = "regulator-fixed" 154 compatible = "regulator-fixed"; 155 regulator-name = "wifi_3v3"; 155 regulator-name = "wifi_3v3"; 156 regulator-min-microvolt = <330 156 regulator-min-microvolt = <3300000>; 157 regulator-max-microvolt = <330 157 regulator-max-microvolt = <3300000>; 158 gpio = <&pio 135 GPIO_ACTIVE_H 158 gpio = <&pio 135 GPIO_ACTIVE_HIGH>; 159 enable-active-high; 159 enable-active-high; 160 regulator-always-on; 160 regulator-always-on; 161 }; 161 }; 162 }; 162 }; 163 163 164 &disp_pwm0 { 164 &disp_pwm0 { 165 pinctrl-names = "default"; 165 pinctrl-names = "default"; 166 pinctrl-0 = <&pwm0_default_pins>; 166 pinctrl-0 = <&pwm0_default_pins>; 167 status = "okay"; 167 status = "okay"; 168 }; 168 }; 169 169 170 &dmic_codec { 170 &dmic_codec { 171 wakeup-delay-ms = <200>; 171 wakeup-delay-ms = <200>; 172 }; 172 }; 173 173 174 ð { 174 ð { 175 phy-mode ="rgmii-rxid"; 175 phy-mode ="rgmii-rxid"; 176 phy-handle = <ð_phy0>; 176 phy-handle = <ð_phy0>; 177 snps,reset-gpio = <&pio 93 GPIO_ACTIVE 177 snps,reset-gpio = <&pio 93 GPIO_ACTIVE_HIGH>; 178 snps,reset-delays-us = <0 10000 10000> 178 snps,reset-delays-us = <0 10000 10000>; 179 mediatek,tx-delay-ps = <2030>; 179 mediatek,tx-delay-ps = <2030>; 180 mediatek,mac-wol; 180 mediatek,mac-wol; 181 pinctrl-names = "default", "sleep"; 181 pinctrl-names = "default", "sleep"; 182 pinctrl-0 = <ð_default_pins>; 182 pinctrl-0 = <ð_default_pins>; 183 pinctrl-1 = <ð_sleep_pins>; 183 pinctrl-1 = <ð_sleep_pins>; 184 status = "okay"; 184 status = "okay"; 185 185 186 mdio { 186 mdio { 187 compatible = "snps,dwmac-mdio" 187 compatible = "snps,dwmac-mdio"; 188 #address-cells = <1>; 188 #address-cells = <1>; 189 #size-cells = <0>; 189 #size-cells = <0>; 190 eth_phy0: eth-phy0@1 { 190 eth_phy0: eth-phy0@1 { 191 compatible = "ethernet 191 compatible = "ethernet-phy-id001c.c916"; 192 reg = <0x1>; 192 reg = <0x1>; 193 }; 193 }; 194 }; 194 }; 195 }; 195 }; 196 196 197 &i2c0 { 197 &i2c0 { 198 clock-frequency = <400000>; 198 clock-frequency = <400000>; 199 pinctrl-0 = <&i2c0_pins>; 199 pinctrl-0 = <&i2c0_pins>; 200 pinctrl-names = "default"; 200 pinctrl-names = "default"; 201 status = "okay"; 201 status = "okay"; 202 }; 202 }; 203 203 204 &i2c1 { 204 &i2c1 { 205 clock-frequency = <400000>; 205 clock-frequency = <400000>; 206 pinctrl-0 = <&i2c1_pins>; 206 pinctrl-0 = <&i2c1_pins>; 207 pinctrl-names = "default"; 207 pinctrl-names = "default"; 208 status = "okay"; 208 status = "okay"; 209 209 210 touchscreen@5d { 210 touchscreen@5d { 211 compatible = "goodix,gt9271"; 211 compatible = "goodix,gt9271"; 212 reg = <0x5d>; 212 reg = <0x5d>; 213 interrupts-extended = <&pio 13 !! 213 interrupt-parent = <&pio>; >> 214 interrupts = <132 IRQ_TYPE_EDGE_RISING>; 214 irq-gpios = <&pio 132 GPIO_ACT 215 irq-gpios = <&pio 132 GPIO_ACTIVE_HIGH>; 215 reset-gpios = <&pio 133 GPIO_A 216 reset-gpios = <&pio 133 GPIO_ACTIVE_HIGH>; 216 AVDD28-supply = <&mt6360_ldo1> 217 AVDD28-supply = <&mt6360_ldo1>; 217 pinctrl-names = "default"; 218 pinctrl-names = "default"; 218 pinctrl-0 = <&touch_pins>; 219 pinctrl-0 = <&touch_pins>; 219 }; 220 }; 220 }; 221 }; 221 222 222 &i2c2 { 223 &i2c2 { 223 clock-frequency = <400000>; 224 clock-frequency = <400000>; 224 pinctrl-0 = <&i2c2_pins>; 225 pinctrl-0 = <&i2c2_pins>; 225 pinctrl-names = "default"; 226 pinctrl-names = "default"; 226 status = "okay"; 227 status = "okay"; 227 }; 228 }; 228 229 229 &i2c6 { 230 &i2c6 { 230 clock-frequency = <400000>; 231 clock-frequency = <400000>; 231 pinctrl-0 = <&i2c6_pins>; 232 pinctrl-0 = <&i2c6_pins>; 232 pinctrl-names = "default"; 233 pinctrl-names = "default"; 233 #address-cells = <1>; 234 #address-cells = <1>; 234 #size-cells = <0>; 235 #size-cells = <0>; 235 status = "okay"; 236 status = "okay"; 236 237 237 mt6360: pmic@34 { 238 mt6360: pmic@34 { 238 compatible = "mediatek,mt6360" 239 compatible = "mediatek,mt6360"; 239 reg = <0x34>; 240 reg = <0x34>; 240 interrupt-parent = <&pio>; 241 interrupt-parent = <&pio>; 241 interrupts = <128 IRQ_TYPE_EDG 242 interrupts = <128 IRQ_TYPE_EDGE_FALLING>; 242 interrupt-names = "IRQB"; 243 interrupt-names = "IRQB"; 243 interrupt-controller; 244 interrupt-controller; 244 #interrupt-cells = <1>; 245 #interrupt-cells = <1>; 245 pinctrl-0 = <&mt6360_pins>; 246 pinctrl-0 = <&mt6360_pins>; 246 247 247 charger { 248 charger { 248 compatible = "mediatek 249 compatible = "mediatek,mt6360-chg"; 249 richtek,vinovp-microvo 250 richtek,vinovp-microvolt = <14500000>; 250 251 251 otg_vbus_regulator: us 252 otg_vbus_regulator: usb-otg-vbus-regulator { 252 regulator-name 253 regulator-name = "usb-otg-vbus"; 253 regulator-min- 254 regulator-min-microvolt = <4425000>; 254 regulator-max- 255 regulator-max-microvolt = <5825000>; 255 }; 256 }; 256 }; 257 }; 257 258 258 regulator { 259 regulator { 259 compatible = "mediatek 260 compatible = "mediatek,mt6360-regulator"; 260 LDO_VIN3-supply = <&mt 261 LDO_VIN3-supply = <&mt6360_buck2>; 261 262 262 mt6360_buck1: buck1 { 263 mt6360_buck1: buck1 { 263 regulator-name 264 regulator-name = "emi_vdd2"; 264 regulator-min- 265 regulator-min-microvolt = <300000>; 265 regulator-max- 266 regulator-max-microvolt = <1300000>; 266 regulator-allo 267 regulator-allowed-modes = <MT6360_OPMODE_NORMAL 267 268 MT6360_OPMODE_LP 268 269 MT6360_OPMODE_ULP>; 269 regulator-alwa 270 regulator-always-on; 270 }; 271 }; 271 272 272 mt6360_buck2: buck2 { 273 mt6360_buck2: buck2 { 273 regulator-name 274 regulator-name = "emi_vddq"; 274 regulator-min- 275 regulator-min-microvolt = <300000>; 275 regulator-max- 276 regulator-max-microvolt = <1300000>; 276 regulator-allo 277 regulator-allowed-modes = <MT6360_OPMODE_NORMAL 277 278 MT6360_OPMODE_LP 278 279 MT6360_OPMODE_ULP>; 279 regulator-alwa 280 regulator-always-on; 280 }; 281 }; 281 282 282 mt6360_ldo1: ldo1 { 283 mt6360_ldo1: ldo1 { 283 regulator-name 284 regulator-name = "tp1_p3v0"; 284 regulator-min- 285 regulator-min-microvolt = <3300000>; 285 regulator-max- 286 regulator-max-microvolt = <3300000>; 286 regulator-allo 287 regulator-allowed-modes = <MT6360_OPMODE_NORMAL 287 288 MT6360_OPMODE_LP>; 288 regulator-alwa 289 regulator-always-on; 289 }; 290 }; 290 291 291 mt6360_ldo2: ldo2 { 292 mt6360_ldo2: ldo2 { 292 regulator-name 293 regulator-name = "panel1_p1v8"; 293 regulator-min- 294 regulator-min-microvolt = <1800000>; 294 regulator-max- 295 regulator-max-microvolt = <1800000>; 295 regulator-allo 296 regulator-allowed-modes = <MT6360_OPMODE_NORMAL 296 297 MT6360_OPMODE_LP>; 297 }; 298 }; 298 299 299 mt6360_ldo3: ldo3 { 300 mt6360_ldo3: ldo3 { 300 regulator-name 301 regulator-name = "vmc_pmu"; 301 regulator-min- 302 regulator-min-microvolt = <1200000>; 302 regulator-max- 303 regulator-max-microvolt = <3600000>; 303 regulator-allo 304 regulator-allowed-modes = <MT6360_OPMODE_NORMAL 304 305 MT6360_OPMODE_LP>; 305 }; 306 }; 306 307 307 mt6360_ldo5: ldo5 { 308 mt6360_ldo5: ldo5 { 308 regulator-name 309 regulator-name = "vmch_pmu"; 309 regulator-min- 310 regulator-min-microvolt = <2700000>; 310 regulator-max- 311 regulator-max-microvolt = <3600000>; 311 regulator-allo 312 regulator-allowed-modes = <MT6360_OPMODE_NORMAL 312 313 MT6360_OPMODE_LP>; 313 }; 314 }; 314 315 315 /* This is a measure p 316 /* This is a measure point, which name is mt6360_ldo1 on schematic */ 316 mt6360_ldo6: ldo6 { 317 mt6360_ldo6: ldo6 { 317 regulator-name 318 regulator-name = "mt6360_ldo1"; 318 regulator-min- 319 regulator-min-microvolt = <500000>; 319 regulator-max- 320 regulator-max-microvolt = <2100000>; 320 regulator-allo 321 regulator-allowed-modes = <MT6360_OPMODE_NORMAL 321 322 MT6360_OPMODE_LP>; 322 }; 323 }; 323 324 324 mt6360_ldo7: ldo7 { 325 mt6360_ldo7: ldo7 { 325 regulator-name 326 regulator-name = "emi_vmddr_en"; 326 regulator-min- 327 regulator-min-microvolt = <500000>; 327 regulator-max- 328 regulator-max-microvolt = <2100000>; 328 regulator-allo 329 regulator-allowed-modes = <MT6360_OPMODE_NORMAL 329 330 MT6360_OPMODE_LP>; 330 regulator-alwa 331 regulator-always-on; 331 }; 332 }; 332 }; 333 }; 333 }; 334 }; 334 }; 335 }; 335 336 336 &mfg0 { 337 &mfg0 { 337 domain-supply = <&mt6315_7_vbuck1>; 338 domain-supply = <&mt6315_7_vbuck1>; 338 }; 339 }; 339 340 340 &mmc0 { 341 &mmc0 { 341 status = "okay"; 342 status = "okay"; 342 pinctrl-names = "default", "state_uhs" 343 pinctrl-names = "default", "state_uhs"; 343 pinctrl-0 = <&mmc0_default_pins>; 344 pinctrl-0 = <&mmc0_default_pins>; 344 pinctrl-1 = <&mmc0_uhs_pins>; 345 pinctrl-1 = <&mmc0_uhs_pins>; 345 bus-width = <8>; 346 bus-width = <8>; 346 max-frequency = <200000000>; 347 max-frequency = <200000000>; 347 cap-mmc-highspeed; 348 cap-mmc-highspeed; 348 mmc-hs200-1_8v; 349 mmc-hs200-1_8v; 349 mmc-hs400-1_8v; 350 mmc-hs400-1_8v; 350 cap-mmc-hw-reset; 351 cap-mmc-hw-reset; 351 no-sdio; 352 no-sdio; 352 no-sd; 353 no-sd; 353 hs400-ds-delay = <0x14c11>; 354 hs400-ds-delay = <0x14c11>; 354 vmmc-supply = <&mt6359_vemc_1_ldo_reg> 355 vmmc-supply = <&mt6359_vemc_1_ldo_reg>; 355 vqmmc-supply = <&mt6359_vufs_ldo_reg>; 356 vqmmc-supply = <&mt6359_vufs_ldo_reg>; 356 non-removable; 357 non-removable; 357 }; 358 }; 358 359 359 &mmc1 { 360 &mmc1 { 360 pinctrl-names = "default", "state_uhs" 361 pinctrl-names = "default", "state_uhs"; 361 pinctrl-0 = <&mmc1_default_pins>; 362 pinctrl-0 = <&mmc1_default_pins>; 362 pinctrl-1 = <&mmc1_uhs_pins>; 363 pinctrl-1 = <&mmc1_uhs_pins>; 363 bus-width = <4>; 364 bus-width = <4>; 364 max-frequency = <200000000>; 365 max-frequency = <200000000>; 365 cap-sd-highspeed; 366 cap-sd-highspeed; 366 sd-uhs-sdr50; 367 sd-uhs-sdr50; 367 sd-uhs-sdr104; 368 sd-uhs-sdr104; 368 no-mmc; 369 no-mmc; 369 no-sdio; 370 no-sdio; 370 vmmc-supply = <&mt6360_ldo5>; 371 vmmc-supply = <&mt6360_ldo5>; 371 vqmmc-supply = <&mt6360_ldo3>; 372 vqmmc-supply = <&mt6360_ldo3>; 372 status = "okay"; 373 status = "okay"; 373 non-removable; 374 non-removable; 374 }; 375 }; 375 376 376 &mt6359_vaud18_ldo_reg { 377 &mt6359_vaud18_ldo_reg { 377 regulator-always-on; 378 regulator-always-on; 378 }; 379 }; 379 380 380 &mt6359_vbbck_ldo_reg { 381 &mt6359_vbbck_ldo_reg { 381 regulator-always-on; 382 regulator-always-on; 382 }; 383 }; 383 384 384 /* For USB Hub */ 385 /* For USB Hub */ 385 &mt6359_vcamio_ldo_reg { 386 &mt6359_vcamio_ldo_reg { 386 regulator-always-on; 387 regulator-always-on; 387 }; 388 }; 388 389 389 &mt6359_vcn33_2_bt_ldo_reg { 390 &mt6359_vcn33_2_bt_ldo_reg { 390 regulator-min-microvolt = <3300000>; 391 regulator-min-microvolt = <3300000>; 391 regulator-max-microvolt = <3300000>; 392 regulator-max-microvolt = <3300000>; 392 }; 393 }; 393 394 394 &mt6359_vcore_buck_reg { 395 &mt6359_vcore_buck_reg { 395 regulator-always-on; 396 regulator-always-on; 396 }; 397 }; 397 398 398 &mt6359_vgpu11_buck_reg { 399 &mt6359_vgpu11_buck_reg { 399 regulator-always-on; 400 regulator-always-on; 400 }; 401 }; 401 402 402 &mt6359_vpu_buck_reg { 403 &mt6359_vpu_buck_reg { 403 regulator-always-on; 404 regulator-always-on; 404 }; 405 }; 405 406 406 &mt6359_vrf12_ldo_reg { 407 &mt6359_vrf12_ldo_reg { 407 regulator-always-on; 408 regulator-always-on; 408 }; 409 }; 409 410 410 &mt6359codec { 411 &mt6359codec { 411 mediatek,mic-type-0 = <1>; /* ACC */ 412 mediatek,mic-type-0 = <1>; /* ACC */ 412 mediatek,mic-type-1 = <3>; /* DCC */ 413 mediatek,mic-type-1 = <3>; /* DCC */ 413 mediatek,mic-type-2 = <1>; /* ACC */ 414 mediatek,mic-type-2 = <1>; /* ACC */ 414 }; 415 }; 415 416 416 &pcie0 { 417 &pcie0 { 417 pinctrl-names = "default", "idle"; 418 pinctrl-names = "default", "idle"; 418 pinctrl-0 = <&pcie0_default_pins>; 419 pinctrl-0 = <&pcie0_default_pins>; 419 pinctrl-1 = <&pcie0_idle_pins>; 420 pinctrl-1 = <&pcie0_idle_pins>; 420 status = "okay"; 421 status = "okay"; 421 }; 422 }; 422 423 423 &pcie1 { 424 &pcie1 { 424 pinctrl-names = "default"; 425 pinctrl-names = "default"; 425 pinctrl-0 = <&pcie1_default_pins>; 426 pinctrl-0 = <&pcie1_default_pins>; 426 status = "disabled"; 427 status = "disabled"; 427 }; 428 }; 428 429 429 &pciephy { 430 &pciephy { 430 status = "okay"; 431 status = "okay"; 431 }; 432 }; 432 433 433 &pio { 434 &pio { 434 audio_default_pins: audio-default-pins 435 audio_default_pins: audio-default-pins { 435 pins-cmd-dat { 436 pins-cmd-dat { 436 pinmux = <PINMUX_GPIO6 437 pinmux = <PINMUX_GPIO61__FUNC_DMIC1_CLK>, 437 <PINMUX_GPIO6 438 <PINMUX_GPIO62__FUNC_DMIC1_DAT>, 438 <PINMUX_GPIO6 439 <PINMUX_GPIO65__FUNC_PCM_DO>, 439 <PINMUX_GPIO6 440 <PINMUX_GPIO66__FUNC_PCM_CLK>, 440 <PINMUX_GPIO6 441 <PINMUX_GPIO67__FUNC_PCM_DI>, 441 <PINMUX_GPIO6 442 <PINMUX_GPIO68__FUNC_PCM_SYNC>, 442 <PINMUX_GPIO6 443 <PINMUX_GPIO69__FUNC_AUD_CLK_MOSI>, 443 <PINMUX_GPIO7 444 <PINMUX_GPIO70__FUNC_AUD_SYNC_MOSI>, 444 <PINMUX_GPIO7 445 <PINMUX_GPIO71__FUNC_AUD_DAT_MOSI0>, 445 <PINMUX_GPIO7 446 <PINMUX_GPIO72__FUNC_AUD_DAT_MOSI1>, 446 <PINMUX_GPIO7 447 <PINMUX_GPIO73__FUNC_AUD_DAT_MISO0>, 447 <PINMUX_GPIO7 448 <PINMUX_GPIO74__FUNC_AUD_DAT_MISO1>, 448 <PINMUX_GPIO7 449 <PINMUX_GPIO75__FUNC_AUD_DAT_MISO2>; 449 }; 450 }; 450 }; 451 }; 451 452 452 disp_pwm1_default_pins: disp-pwm1-defa 453 disp_pwm1_default_pins: disp-pwm1-default-pins { 453 pins1 { 454 pins1 { 454 pinmux = <PINMUX_GPIO1 455 pinmux = <PINMUX_GPIO104__FUNC_DISP_PWM1>; 455 }; 456 }; 456 }; 457 }; 457 458 458 edp_panel_12v_en_pins: edp-panel-12v-e 459 edp_panel_12v_en_pins: edp-panel-12v-en-pins { 459 pins1 { 460 pins1 { 460 pinmux = <PINMUX_GPIO9 461 pinmux = <PINMUX_GPIO96__FUNC_GPIO96>; 461 output-high; 462 output-high; 462 }; 463 }; 463 }; 464 }; 464 465 465 edp_panel_3v3_en_pins: edp-panel-3v3-e 466 edp_panel_3v3_en_pins: edp-panel-3v3-en-pins { 466 pins1 { 467 pins1 { 467 pinmux = <PINMUX_GPIO6 468 pinmux = <PINMUX_GPIO6__FUNC_GPIO6>; 468 output-high; 469 output-high; 469 }; 470 }; 470 }; 471 }; 471 472 472 eth_default_pins: eth-default-pins { 473 eth_default_pins: eth-default-pins { 473 pins-cc { 474 pins-cc { 474 pinmux = <PINMUX_GPIO8 475 pinmux = <PINMUX_GPIO85__FUNC_GBE_TXC>, 475 <PINMUX_GPIO8 476 <PINMUX_GPIO86__FUNC_GBE_RXC>, 476 <PINMUX_GPIO8 477 <PINMUX_GPIO87__FUNC_GBE_RXDV>, 477 <PINMUX_GPIO8 478 <PINMUX_GPIO88__FUNC_GBE_TXEN>; 478 drive-strength = <8>; !! 479 drive-strength = <MTK_DRIVE_8mA>; 479 }; 480 }; 480 481 481 pins-mdio { 482 pins-mdio { 482 pinmux = <PINMUX_GPIO8 483 pinmux = <PINMUX_GPIO89__FUNC_GBE_MDC>, 483 <PINMUX_GPIO9 484 <PINMUX_GPIO90__FUNC_GBE_MDIO>; 484 input-enable; 485 input-enable; 485 }; 486 }; 486 487 487 pins-power { 488 pins-power { 488 pinmux = <PINMUX_GPIO9 489 pinmux = <PINMUX_GPIO91__FUNC_GPIO91>, 489 <PINMUX_GPIO9 490 <PINMUX_GPIO92__FUNC_GPIO92>; 490 output-high; 491 output-high; 491 }; 492 }; 492 493 493 pins-rxd { 494 pins-rxd { 494 pinmux = <PINMUX_GPIO8 495 pinmux = <PINMUX_GPIO81__FUNC_GBE_RXD3>, 495 <PINMUX_GPIO8 496 <PINMUX_GPIO82__FUNC_GBE_RXD2>, 496 <PINMUX_GPIO8 497 <PINMUX_GPIO83__FUNC_GBE_RXD1>, 497 <PINMUX_GPIO8 498 <PINMUX_GPIO84__FUNC_GBE_RXD0>; 498 }; 499 }; 499 500 500 pins-txd { 501 pins-txd { 501 pinmux = <PINMUX_GPIO7 502 pinmux = <PINMUX_GPIO77__FUNC_GBE_TXD3>, 502 <PINMUX_GPIO7 503 <PINMUX_GPIO78__FUNC_GBE_TXD2>, 503 <PINMUX_GPIO7 504 <PINMUX_GPIO79__FUNC_GBE_TXD1>, 504 <PINMUX_GPIO8 505 <PINMUX_GPIO80__FUNC_GBE_TXD0>; 505 drive-strength = <8>; !! 506 drive-strength = <MTK_DRIVE_8mA>; 506 }; 507 }; 507 }; 508 }; 508 509 509 eth_sleep_pins: eth-sleep-pins { 510 eth_sleep_pins: eth-sleep-pins { 510 pins-cc { 511 pins-cc { 511 pinmux = <PINMUX_GPIO8 512 pinmux = <PINMUX_GPIO85__FUNC_GPIO85>, 512 <PINMUX_GPIO8 513 <PINMUX_GPIO86__FUNC_GPIO86>, 513 <PINMUX_GPIO8 514 <PINMUX_GPIO87__FUNC_GPIO87>, 514 <PINMUX_GPIO8 515 <PINMUX_GPIO88__FUNC_GPIO88>; 515 }; 516 }; 516 517 517 pins-mdio { 518 pins-mdio { 518 pinmux = <PINMUX_GPIO8 519 pinmux = <PINMUX_GPIO89__FUNC_GPIO89>, 519 <PINMUX_GPIO9 520 <PINMUX_GPIO90__FUNC_GPIO90>; 520 input-disable; 521 input-disable; 521 bias-disable; 522 bias-disable; 522 }; 523 }; 523 524 524 pins-rxd { 525 pins-rxd { 525 pinmux = <PINMUX_GPIO8 526 pinmux = <PINMUX_GPIO81__FUNC_GPIO81>, 526 <PINMUX_GPIO8 527 <PINMUX_GPIO82__FUNC_GPIO82>, 527 <PINMUX_GPIO8 528 <PINMUX_GPIO83__FUNC_GPIO83>, 528 <PINMUX_GPIO8 529 <PINMUX_GPIO84__FUNC_GPIO84>; 529 }; 530 }; 530 531 531 pins-txd { 532 pins-txd { 532 pinmux = <PINMUX_GPIO7 533 pinmux = <PINMUX_GPIO77__FUNC_GPIO77>, 533 <PINMUX_GPIO7 534 <PINMUX_GPIO78__FUNC_GPIO78>, 534 <PINMUX_GPIO7 535 <PINMUX_GPIO79__FUNC_GPIO79>, 535 <PINMUX_GPIO8 536 <PINMUX_GPIO80__FUNC_GPIO80>; 536 }; 537 }; 537 }; 538 }; 538 539 539 gpio_key_pins: gpio-keys-pins { 540 gpio_key_pins: gpio-keys-pins { 540 pins { 541 pins { 541 pinmux = <PINMUX_GPIO1 542 pinmux = <PINMUX_GPIO106__FUNC_GPIO106>; 542 bias-pull-up; 543 bias-pull-up; 543 input-enable; 544 input-enable; 544 }; 545 }; 545 }; 546 }; 546 547 547 i2c0_pins: i2c0-pins { 548 i2c0_pins: i2c0-pins { 548 pins { 549 pins { 549 pinmux = <PINMUX_GPIO8 550 pinmux = <PINMUX_GPIO8__FUNC_SDA0>, 550 <PINMUX_GPIO9 551 <PINMUX_GPIO9__FUNC_SCL0>; 551 bias-pull-up = <MTK_PU 552 bias-pull-up = <MTK_PULL_SET_RSEL_111>; 552 drive-strength-microam 553 drive-strength-microamp = <1000>; 553 }; 554 }; 554 }; 555 }; 555 556 556 i2c1_pins: i2c1-pins { 557 i2c1_pins: i2c1-pins { 557 pins { 558 pins { 558 pinmux = <PINMUX_GPIO1 559 pinmux = <PINMUX_GPIO10__FUNC_SDA1>, 559 <PINMUX_GPIO1 560 <PINMUX_GPIO11__FUNC_SCL1>; 560 bias-pull-up = <MTK_PU 561 bias-pull-up = <MTK_PULL_SET_RSEL_111>; 561 drive-strength-microam 562 drive-strength-microamp = <1000>; 562 }; 563 }; 563 }; 564 }; 564 565 565 i2c2_pins: i2c2-pins { 566 i2c2_pins: i2c2-pins { 566 pins { 567 pins { 567 pinmux = <PINMUX_GPIO1 568 pinmux = <PINMUX_GPIO12__FUNC_SDA2>, 568 <PINMUX_GPIO1 569 <PINMUX_GPIO13__FUNC_SCL2>; 569 bias-pull-up = <MTK_PU 570 bias-pull-up = <MTK_PULL_SET_RSEL_111>; 570 drive-strength = <6>; !! 571 drive-strength = <MTK_DRIVE_6mA>; 571 }; 572 }; 572 }; 573 }; 573 574 574 i2c6_pins: i2c6-pins { 575 i2c6_pins: i2c6-pins { 575 pins { 576 pins { 576 pinmux = <PINMUX_GPIO2 577 pinmux = <PINMUX_GPIO25__FUNC_SDA6>, 577 <PINMUX_GPIO2 578 <PINMUX_GPIO26__FUNC_SCL6>; 578 bias-pull-up; 579 bias-pull-up; 579 }; 580 }; 580 }; 581 }; 581 582 582 mmc0_default_pins: mmc0-default-pins { 583 mmc0_default_pins: mmc0-default-pins { 583 pins-clk { 584 pins-clk { 584 pinmux = <PINMUX_GPIO1 585 pinmux = <PINMUX_GPIO122__FUNC_MSDC0_CLK>; 585 drive-strength = <6>; !! 586 drive-strength = <MTK_DRIVE_6mA>; 586 bias-pull-down = <MTK_ 587 bias-pull-down = <MTK_PUPD_SET_R1R0_10>; 587 }; 588 }; 588 589 589 pins-cmd-dat { 590 pins-cmd-dat { 590 pinmux = <PINMUX_GPIO1 591 pinmux = <PINMUX_GPIO126__FUNC_MSDC0_DAT0>, 591 <PINMUX_GPIO1 592 <PINMUX_GPIO125__FUNC_MSDC0_DAT1>, 592 <PINMUX_GPIO1 593 <PINMUX_GPIO124__FUNC_MSDC0_DAT2>, 593 <PINMUX_GPIO1 594 <PINMUX_GPIO123__FUNC_MSDC0_DAT3>, 594 <PINMUX_GPIO1 595 <PINMUX_GPIO119__FUNC_MSDC0_DAT4>, 595 <PINMUX_GPIO1 596 <PINMUX_GPIO118__FUNC_MSDC0_DAT5>, 596 <PINMUX_GPIO1 597 <PINMUX_GPIO117__FUNC_MSDC0_DAT6>, 597 <PINMUX_GPIO1 598 <PINMUX_GPIO116__FUNC_MSDC0_DAT7>, 598 <PINMUX_GPIO1 599 <PINMUX_GPIO121__FUNC_MSDC0_CMD>; 599 input-enable; 600 input-enable; 600 drive-strength = <6>; !! 601 drive-strength = <MTK_DRIVE_6mA>; 601 bias-pull-up = <MTK_PU 602 bias-pull-up = <MTK_PUPD_SET_R1R0_01>; 602 }; 603 }; 603 604 604 pins-rst { 605 pins-rst { 605 pinmux = <PINMUX_GPIO1 606 pinmux = <PINMUX_GPIO120__FUNC_MSDC0_RSTB>; 606 drive-strength = <6>; !! 607 drive-strength = <MTK_DRIVE_6mA>; 607 bias-pull-up = <MTK_PU 608 bias-pull-up = <MTK_PUPD_SET_R1R0_01>; 608 }; 609 }; 609 }; 610 }; 610 611 611 mmc0_uhs_pins: mmc0-uhs-pins { 612 mmc0_uhs_pins: mmc0-uhs-pins { 612 pins-clk { 613 pins-clk { 613 pinmux = <PINMUX_GPIO1 614 pinmux = <PINMUX_GPIO122__FUNC_MSDC0_CLK>; 614 drive-strength = <8>; !! 615 drive-strength = <MTK_DRIVE_8mA>; 615 bias-pull-down = <MTK_ 616 bias-pull-down = <MTK_PUPD_SET_R1R0_10>; 616 }; 617 }; 617 618 618 pins-cmd-dat { 619 pins-cmd-dat { 619 pinmux = <PINMUX_GPIO1 620 pinmux = <PINMUX_GPIO126__FUNC_MSDC0_DAT0>, 620 <PINMUX_GPIO1 621 <PINMUX_GPIO125__FUNC_MSDC0_DAT1>, 621 <PINMUX_GPIO1 622 <PINMUX_GPIO124__FUNC_MSDC0_DAT2>, 622 <PINMUX_GPIO1 623 <PINMUX_GPIO123__FUNC_MSDC0_DAT3>, 623 <PINMUX_GPIO1 624 <PINMUX_GPIO119__FUNC_MSDC0_DAT4>, 624 <PINMUX_GPIO1 625 <PINMUX_GPIO118__FUNC_MSDC0_DAT5>, 625 <PINMUX_GPIO1 626 <PINMUX_GPIO117__FUNC_MSDC0_DAT6>, 626 <PINMUX_GPIO1 627 <PINMUX_GPIO116__FUNC_MSDC0_DAT7>, 627 <PINMUX_GPIO1 628 <PINMUX_GPIO121__FUNC_MSDC0_CMD>; 628 input-enable; 629 input-enable; 629 drive-strength = <8>; !! 630 drive-strength = <MTK_DRIVE_8mA>; 630 bias-pull-up = <MTK_PU 631 bias-pull-up = <MTK_PUPD_SET_R1R0_01>; 631 }; 632 }; 632 633 633 pins-ds { 634 pins-ds { 634 pinmux = <PINMUX_GPIO1 635 pinmux = <PINMUX_GPIO127__FUNC_MSDC0_DSL>; 635 drive-strength = <8>; !! 636 drive-strength = <MTK_DRIVE_8mA>; 636 bias-pull-down = <MTK_ 637 bias-pull-down = <MTK_PUPD_SET_R1R0_10>; 637 }; 638 }; 638 639 639 pins-rst { 640 pins-rst { 640 pinmux = <PINMUX_GPIO1 641 pinmux = <PINMUX_GPIO120__FUNC_MSDC0_RSTB>; 641 drive-strength = <8>; !! 642 drive-strength = <MTK_DRIVE_8mA>; 642 bias-pull-up = <MTK_PU 643 bias-pull-up = <MTK_PUPD_SET_R1R0_01>; 643 }; 644 }; 644 }; 645 }; 645 646 646 mmc1_default_pins: mmc1-default-pins { 647 mmc1_default_pins: mmc1-default-pins { 647 pins-clk { 648 pins-clk { 648 pinmux = <PINMUX_GPIO1 649 pinmux = <PINMUX_GPIO111__FUNC_MSDC1_CLK>; 649 drive-strength = <8>; !! 650 drive-strength = <MTK_DRIVE_8mA>; 650 bias-pull-down = <MTK_ 651 bias-pull-down = <MTK_PUPD_SET_R1R0_10>; 651 }; 652 }; 652 653 653 pins-cmd-dat { 654 pins-cmd-dat { 654 pinmux = <PINMUX_GPIO1 655 pinmux = <PINMUX_GPIO110__FUNC_MSDC1_CMD>, 655 <PINMUX_GPIO1 656 <PINMUX_GPIO112__FUNC_MSDC1_DAT0>, 656 <PINMUX_GPIO1 657 <PINMUX_GPIO113__FUNC_MSDC1_DAT1>, 657 <PINMUX_GPIO1 658 <PINMUX_GPIO114__FUNC_MSDC1_DAT2>, 658 <PINMUX_GPIO1 659 <PINMUX_GPIO115__FUNC_MSDC1_DAT3>; 659 input-enable; 660 input-enable; 660 drive-strength = <8>; !! 661 drive-strength = <MTK_DRIVE_8mA>; 661 bias-pull-up = <MTK_PU 662 bias-pull-up = <MTK_PUPD_SET_R1R0_01>; 662 }; 663 }; 663 }; 664 }; 664 665 665 mmc1_uhs_pins: mmc1-uhs-pins { 666 mmc1_uhs_pins: mmc1-uhs-pins { 666 pins-clk { 667 pins-clk { 667 pinmux = <PINMUX_GPIO1 668 pinmux = <PINMUX_GPIO111__FUNC_MSDC1_CLK>; 668 drive-strength = <8>; !! 669 drive-strength = <MTK_DRIVE_8mA>; 669 bias-pull-down = <MTK_ 670 bias-pull-down = <MTK_PUPD_SET_R1R0_10>; 670 }; 671 }; 671 672 672 pins-cmd-dat { 673 pins-cmd-dat { 673 pinmux = <PINMUX_GPIO1 674 pinmux = <PINMUX_GPIO110__FUNC_MSDC1_CMD>, 674 <PINMUX_GPIO1 675 <PINMUX_GPIO112__FUNC_MSDC1_DAT0>, 675 <PINMUX_GPIO1 676 <PINMUX_GPIO113__FUNC_MSDC1_DAT1>, 676 <PINMUX_GPIO1 677 <PINMUX_GPIO114__FUNC_MSDC1_DAT2>, 677 <PINMUX_GPIO1 678 <PINMUX_GPIO115__FUNC_MSDC1_DAT3>; 678 input-enable; 679 input-enable; 679 drive-strength = <8>; !! 680 drive-strength = <MTK_DRIVE_8mA>; 680 bias-pull-up = <MTK_PU 681 bias-pull-up = <MTK_PUPD_SET_R1R0_01>; 681 }; 682 }; 682 }; 683 }; 683 684 684 mt6360_pins: mt6360-pins { 685 mt6360_pins: mt6360-pins { 685 pins { 686 pins { 686 pinmux = <PINMUX_GPIO1 687 pinmux = <PINMUX_GPIO17__FUNC_GPIO17>, 687 <PINMUX_GPIO1 688 <PINMUX_GPIO128__FUNC_GPIO128>; 688 input-enable; 689 input-enable; 689 bias-pull-up; 690 bias-pull-up; 690 }; 691 }; 691 }; 692 }; 692 693 693 pcie0_default_pins: pcie0-default-pins 694 pcie0_default_pins: pcie0-default-pins { 694 pins { 695 pins { 695 pinmux = <PINMUX_GPIO1 696 pinmux = <PINMUX_GPIO19__FUNC_WAKEN>, 696 <PINMUX_GPIO2 697 <PINMUX_GPIO20__FUNC_PERSTN>, 697 <PINMUX_GPIO2 698 <PINMUX_GPIO21__FUNC_CLKREQN>; 698 bias-pull-up; 699 bias-pull-up; 699 }; 700 }; 700 }; 701 }; 701 702 702 pcie0_idle_pins: pcie0-idle-pins { 703 pcie0_idle_pins: pcie0-idle-pins { 703 pins { 704 pins { 704 pinmux = <PINMUX_GPIO2 705 pinmux = <PINMUX_GPIO20__FUNC_GPIO20>; 705 bias-disable; 706 bias-disable; 706 output-low; 707 output-low; 707 }; 708 }; 708 }; 709 }; 709 710 710 pcie1_default_pins: pcie1-default-pins 711 pcie1_default_pins: pcie1-default-pins { 711 pins { 712 pins { 712 pinmux = <PINMUX_GPIO2 713 pinmux = <PINMUX_GPIO22__FUNC_PERSTN_1>, 713 <PINMUX_GPIO2 714 <PINMUX_GPIO23__FUNC_CLKREQN_1>, 714 <PINMUX_GPIO2 715 <PINMUX_GPIO24__FUNC_WAKEN_1>; 715 bias-pull-up; 716 bias-pull-up; 716 }; 717 }; 717 }; 718 }; 718 719 719 pwm0_default_pins: pwm0-default-pins { 720 pwm0_default_pins: pwm0-default-pins { 720 pins-cmd-dat { 721 pins-cmd-dat { 721 pinmux = <PINMUX_GPIO9 722 pinmux = <PINMUX_GPIO97__FUNC_DISP_PWM0>; 722 }; 723 }; 723 }; 724 }; 724 725 725 spi1_pins: spi1-pins { 726 spi1_pins: spi1-pins { 726 pins { 727 pins { 727 pinmux = <PINMUX_GPIO1 728 pinmux = <PINMUX_GPIO136__FUNC_SPIM1_CSB>, 728 <PINMUX_GPIO1 729 <PINMUX_GPIO137__FUNC_SPIM1_CLK>, 729 <PINMUX_GPIO1 730 <PINMUX_GPIO138__FUNC_SPIM1_MO>, 730 <PINMUX_GPIO1 731 <PINMUX_GPIO139__FUNC_SPIM1_MI>; 731 bias-disable; 732 bias-disable; 732 }; 733 }; 733 }; 734 }; 734 735 735 spi2_pins: spi-pins { 736 spi2_pins: spi-pins { 736 pins { 737 pins { 737 pinmux = <PINMUX_GPIO1 738 pinmux = <PINMUX_GPIO140__FUNC_SPIM2_CSB>, 738 <PINMUX_GPIO1 739 <PINMUX_GPIO141__FUNC_SPIM2_CLK>, 739 <PINMUX_GPIO1 740 <PINMUX_GPIO142__FUNC_SPIM2_MO>, 740 <PINMUX_GPIO1 741 <PINMUX_GPIO143__FUNC_SPIM2_MI>; 741 bias-disable; 742 bias-disable; 742 }; 743 }; 743 }; 744 }; 744 745 745 touch_pins: touch-pins { 746 touch_pins: touch-pins { 746 pins-irq { 747 pins-irq { 747 pinmux = <PINMUX_GPIO1 748 pinmux = <PINMUX_GPIO132__FUNC_GPIO132>; 748 input-enable; 749 input-enable; 749 bias-disable; 750 bias-disable; 750 }; 751 }; 751 752 752 pins-reset { 753 pins-reset { 753 pinmux = <PINMUX_GPIO1 754 pinmux = <PINMUX_GPIO133__FUNC_GPIO133>; 754 output-high; 755 output-high; 755 }; 756 }; 756 }; 757 }; 757 758 758 uart0_pins: uart0-pins { 759 uart0_pins: uart0-pins { 759 pins { 760 pins { 760 pinmux = <PINMUX_GPIO9 761 pinmux = <PINMUX_GPIO98__FUNC_UTXD0>, 761 <PINMUX_GPIO9 762 <PINMUX_GPIO99__FUNC_URXD0>; 762 }; 763 }; 763 }; 764 }; 764 765 765 uart1_pins: uart1-pins { 766 uart1_pins: uart1-pins { 766 pins { 767 pins { 767 pinmux = <PINMUX_GPIO1 768 pinmux = <PINMUX_GPIO100__FUNC_URTS1>, 768 <PINMUX_GPIO1 769 <PINMUX_GPIO101__FUNC_UCTS1>, 769 <PINMUX_GPIO1 770 <PINMUX_GPIO102__FUNC_UTXD1>, 770 <PINMUX_GPIO1 771 <PINMUX_GPIO103__FUNC_URXD1>; 771 }; 772 }; 772 }; 773 }; 773 }; 774 }; 774 775 775 &pmic { 776 &pmic { 776 interrupts-extended = <&pio 222 IRQ_TY !! 777 interrupt-parent = <&pio>; >> 778 interrupts = <222 IRQ_TYPE_LEVEL_HIGH>; 777 }; 779 }; 778 780 779 &scp { 781 &scp { 780 memory-region = <&scp_mem>; 782 memory-region = <&scp_mem>; 781 status = "okay"; 783 status = "okay"; 782 }; 784 }; 783 785 784 &spi1 { 786 &spi1 { 785 pinctrl-0 = <&spi1_pins>; 787 pinctrl-0 = <&spi1_pins>; 786 pinctrl-names = "default"; 788 pinctrl-names = "default"; 787 mediatek,pad-select = <0>; 789 mediatek,pad-select = <0>; 788 #address-cells = <1>; 790 #address-cells = <1>; 789 #size-cells = <0>; 791 #size-cells = <0>; 790 status = "okay"; 792 status = "okay"; 791 cs-gpios = <&pio 64 GPIO_ACTIVE_LOW>; 793 cs-gpios = <&pio 64 GPIO_ACTIVE_LOW>; 792 794 793 can0: can@0 { 795 can0: can@0 { 794 compatible = "microchip,mcp251 796 compatible = "microchip,mcp2518fd"; 795 reg = <0>; 797 reg = <0>; 796 clocks = <&can_clk>; 798 clocks = <&can_clk>; 797 spi-max-frequency = <20000000> 799 spi-max-frequency = <20000000>; 798 interrupts-extended = <&pio 16 800 interrupts-extended = <&pio 16 IRQ_TYPE_LEVEL_LOW>; 799 vdd-supply = <&mt6359_vcn33_2_ 801 vdd-supply = <&mt6359_vcn33_2_bt_ldo_reg>; 800 xceiver-supply = <&mt6359_vcn3 802 xceiver-supply = <&mt6359_vcn33_2_bt_ldo_reg>; 801 }; 803 }; 802 }; 804 }; 803 805 804 &spi2 { 806 &spi2 { 805 pinctrl-0 = <&spi2_pins>; 807 pinctrl-0 = <&spi2_pins>; 806 pinctrl-names = "default"; 808 pinctrl-names = "default"; 807 mediatek,pad-select = <0>; 809 mediatek,pad-select = <0>; 808 #address-cells = <1>; 810 #address-cells = <1>; 809 #size-cells = <0>; 811 #size-cells = <0>; 810 status = "okay"; 812 status = "okay"; 811 }; 813 }; 812 814 813 &spmi { 815 &spmi { 814 #address-cells = <2>; 816 #address-cells = <2>; 815 #size-cells = <0>; 817 #size-cells = <0>; 816 818 817 mt6315_6: pmic@6 { 819 mt6315_6: pmic@6 { 818 compatible = "mediatek,mt6315- 820 compatible = "mediatek,mt6315-regulator"; 819 reg = <0x6 SPMI_USID>; 821 reg = <0x6 SPMI_USID>; 820 822 821 regulators { 823 regulators { 822 mt6315_6_vbuck1: vbuck 824 mt6315_6_vbuck1: vbuck1 { 823 regulator-comp 825 regulator-compatible = "vbuck1"; 824 regulator-name 826 regulator-name = "Vbcpu"; 825 regulator-min- 827 regulator-min-microvolt = <300000>; 826 regulator-max- 828 regulator-max-microvolt = <1193750>; 827 regulator-enab 829 regulator-enable-ramp-delay = <256>; 828 regulator-allo 830 regulator-allowed-modes = <0 1 2>; 829 regulator-alwa 831 regulator-always-on; 830 }; 832 }; 831 }; 833 }; 832 }; 834 }; 833 835 834 mt6315_7: pmic@7 { 836 mt6315_7: pmic@7 { 835 compatible = "mediatek,mt6315- 837 compatible = "mediatek,mt6315-regulator"; 836 reg = <0x7 SPMI_USID>; 838 reg = <0x7 SPMI_USID>; 837 839 838 regulators { 840 regulators { 839 mt6315_7_vbuck1: vbuck 841 mt6315_7_vbuck1: vbuck1 { 840 regulator-comp 842 regulator-compatible = "vbuck1"; 841 regulator-name 843 regulator-name = "Vgpu"; 842 regulator-min- 844 regulator-min-microvolt = <300000>; 843 regulator-max- 845 regulator-max-microvolt = <1193750>; 844 regulator-enab 846 regulator-enable-ramp-delay = <256>; 845 regulator-allo 847 regulator-allowed-modes = <0 1 2>; 846 }; 848 }; 847 }; 849 }; 848 }; 850 }; 849 }; 851 }; 850 852 851 &u3phy0 { 853 &u3phy0 { 852 status = "okay"; 854 status = "okay"; 853 }; 855 }; 854 856 855 &u3phy1 { 857 &u3phy1 { 856 status = "okay"; 858 status = "okay"; 857 << 858 u3port1: usb-phy@700 { << 859 mediatek,force-mode; << 860 }; << 861 }; 859 }; 862 860 863 &u3phy2 { 861 &u3phy2 { 864 status = "okay"; 862 status = "okay"; 865 }; 863 }; 866 864 867 &u3phy3 { 865 &u3phy3 { 868 status = "okay"; 866 status = "okay"; 869 }; 867 }; 870 868 871 &uart0 { 869 &uart0 { 872 pinctrl-0 = <&uart0_pins>; 870 pinctrl-0 = <&uart0_pins>; 873 pinctrl-names = "default"; 871 pinctrl-names = "default"; 874 status = "okay"; 872 status = "okay"; 875 }; 873 }; 876 874 877 &uart1 { 875 &uart1 { 878 pinctrl-0 = <&uart1_pins>; 876 pinctrl-0 = <&uart1_pins>; 879 pinctrl-names = "default"; 877 pinctrl-names = "default"; 880 status = "okay"; 878 status = "okay"; 881 }; 879 }; 882 880 883 &ufsphy { 881 &ufsphy { 884 status = "disabled"; 882 status = "disabled"; 885 }; 883 }; 886 884 887 &ssusb0 { << 888 vusb33-supply = <&mt6359_vusb_ldo_reg> << 889 status = "okay"; << 890 }; << 891 << 892 &ssusb2 { << 893 vusb33-supply = <&mt6359_vusb_ldo_reg> << 894 status = "okay"; << 895 }; << 896 << 897 &ssusb3 { << 898 vusb33-supply = <&mt6359_vusb_ldo_reg> << 899 status = "okay"; << 900 }; << 901 << 902 &xhci0 { 885 &xhci0 { 903 status = "okay"; 886 status = "okay"; 904 }; 887 }; 905 888 906 &xhci1 { 889 &xhci1 { 907 vusb33-supply = <&mt6359_vusb_ldo_reg> 890 vusb33-supply = <&mt6359_vusb_ldo_reg>; 908 status = "okay"; 891 status = "okay"; 909 }; 892 }; 910 893 911 &xhci2 { 894 &xhci2 { >> 895 vusb33-supply = <&mt6359_vusb_ldo_reg>; 912 status = "okay"; 896 status = "okay"; 913 }; 897 }; 914 898 915 &xhci3 { 899 &xhci3 { >> 900 vusb33-supply = <&mt6359_vusb_ldo_reg>; 916 status = "okay"; 901 status = "okay"; 917 }; 902 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.