1c66ec88fSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0 OR MIT) 2c66ec88fSEmmanuel Vadot/* 3c66ec88fSEmmanuel Vadot * Copyright (c) 2018 MediaTek Inc. 4c66ec88fSEmmanuel Vadot * Author: Ben Ho <ben.ho@mediatek.com> 5c66ec88fSEmmanuel Vadot * Erin Lo <erin.lo@mediatek.com> 6c66ec88fSEmmanuel Vadot */ 7c66ec88fSEmmanuel Vadot 8c66ec88fSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h> 9c66ec88fSEmmanuel Vadot#include <dt-bindings/input/input.h> 10c66ec88fSEmmanuel Vadot#include "mt8183.dtsi" 11c66ec88fSEmmanuel Vadot#include "mt6358.dtsi" 12c66ec88fSEmmanuel Vadot 13c66ec88fSEmmanuel Vadot/ { 14c66ec88fSEmmanuel Vadot aliases { 15c66ec88fSEmmanuel Vadot serial0 = &uart0; 16*354d7675SEmmanuel Vadot mmc0 = &mmc0; 17*354d7675SEmmanuel Vadot mmc1 = &mmc1; 18c66ec88fSEmmanuel Vadot }; 19c66ec88fSEmmanuel Vadot 20c66ec88fSEmmanuel Vadot chosen { 21c66ec88fSEmmanuel Vadot stdout-path = "serial0:115200n8"; 22c66ec88fSEmmanuel Vadot }; 23c66ec88fSEmmanuel Vadot 245def4c47SEmmanuel Vadot backlight_lcd0: backlight_lcd0 { 255def4c47SEmmanuel Vadot compatible = "pwm-backlight"; 265def4c47SEmmanuel Vadot pwms = <&pwm0 0 500000>; 275def4c47SEmmanuel Vadot power-supply = <&bl_pp5000>; 285def4c47SEmmanuel Vadot enable-gpios = <&pio 176 0>; 295def4c47SEmmanuel Vadot brightness-levels = <0 1023>; 305def4c47SEmmanuel Vadot num-interpolated-steps = <1023>; 315def4c47SEmmanuel Vadot default-brightness-level = <576>; 325def4c47SEmmanuel Vadot status = "okay"; 335def4c47SEmmanuel Vadot }; 345def4c47SEmmanuel Vadot 35c66ec88fSEmmanuel Vadot memory@40000000 { 36c66ec88fSEmmanuel Vadot device_type = "memory"; 37c66ec88fSEmmanuel Vadot reg = <0 0x40000000 0 0x80000000>; 38c66ec88fSEmmanuel Vadot }; 39c66ec88fSEmmanuel Vadot 40c66ec88fSEmmanuel Vadot clk32k: oscillator1 { 41c66ec88fSEmmanuel Vadot compatible = "fixed-clock"; 42c66ec88fSEmmanuel Vadot #clock-cells = <0>; 43c66ec88fSEmmanuel Vadot clock-frequency = <32768>; 44c66ec88fSEmmanuel Vadot clock-output-names = "clk32k"; 45c66ec88fSEmmanuel Vadot }; 46c66ec88fSEmmanuel Vadot 47c66ec88fSEmmanuel Vadot it6505_pp18_reg: regulator0 { 48c66ec88fSEmmanuel Vadot compatible = "regulator-fixed"; 49c66ec88fSEmmanuel Vadot regulator-name = "it6505_pp18"; 50c66ec88fSEmmanuel Vadot regulator-min-microvolt = <1800000>; 51c66ec88fSEmmanuel Vadot regulator-max-microvolt = <1800000>; 52c66ec88fSEmmanuel Vadot gpio = <&pio 178 0>; 53c66ec88fSEmmanuel Vadot enable-active-high; 54c66ec88fSEmmanuel Vadot }; 55c66ec88fSEmmanuel Vadot 56c66ec88fSEmmanuel Vadot lcd_pp3300: regulator1 { 57c66ec88fSEmmanuel Vadot compatible = "regulator-fixed"; 58c66ec88fSEmmanuel Vadot regulator-name = "lcd_pp3300"; 59c66ec88fSEmmanuel Vadot regulator-min-microvolt = <3300000>; 60c66ec88fSEmmanuel Vadot regulator-max-microvolt = <3300000>; 61c66ec88fSEmmanuel Vadot regulator-always-on; 62c66ec88fSEmmanuel Vadot regulator-boot-on; 63c66ec88fSEmmanuel Vadot }; 64c66ec88fSEmmanuel Vadot 65c66ec88fSEmmanuel Vadot bl_pp5000: regulator2 { 66c66ec88fSEmmanuel Vadot compatible = "regulator-fixed"; 67c66ec88fSEmmanuel Vadot regulator-name = "bl_pp5000"; 68c66ec88fSEmmanuel Vadot regulator-min-microvolt = <5000000>; 69c66ec88fSEmmanuel Vadot regulator-max-microvolt = <5000000>; 70c66ec88fSEmmanuel Vadot regulator-always-on; 71c66ec88fSEmmanuel Vadot regulator-boot-on; 72c66ec88fSEmmanuel Vadot }; 73c66ec88fSEmmanuel Vadot 74c66ec88fSEmmanuel Vadot mmc1_fixed_power: regulator3 { 75c66ec88fSEmmanuel Vadot compatible = "regulator-fixed"; 76c66ec88fSEmmanuel Vadot regulator-name = "mmc1_power"; 77c66ec88fSEmmanuel Vadot regulator-min-microvolt = <3300000>; 78c66ec88fSEmmanuel Vadot regulator-max-microvolt = <3300000>; 79c66ec88fSEmmanuel Vadot }; 80c66ec88fSEmmanuel Vadot 81c66ec88fSEmmanuel Vadot mmc1_fixed_io: regulator4 { 82c66ec88fSEmmanuel Vadot compatible = "regulator-fixed"; 83c66ec88fSEmmanuel Vadot regulator-name = "mmc1_io"; 84c66ec88fSEmmanuel Vadot regulator-min-microvolt = <1800000>; 85c66ec88fSEmmanuel Vadot regulator-max-microvolt = <1800000>; 86c66ec88fSEmmanuel Vadot }; 87c66ec88fSEmmanuel Vadot 88c66ec88fSEmmanuel Vadot pp1800_alw: regulator5 { 89c66ec88fSEmmanuel Vadot compatible = "regulator-fixed"; 90c66ec88fSEmmanuel Vadot regulator-name = "pp1800_alw"; 91c66ec88fSEmmanuel Vadot regulator-always-on; 92c66ec88fSEmmanuel Vadot regulator-boot-on; 93c66ec88fSEmmanuel Vadot regulator-min-microvolt = <1800000>; 94c66ec88fSEmmanuel Vadot regulator-max-microvolt = <1800000>; 95c66ec88fSEmmanuel Vadot }; 96c66ec88fSEmmanuel Vadot 97c66ec88fSEmmanuel Vadot pp3300_alw: regulator6 { 98c66ec88fSEmmanuel Vadot compatible = "regulator-fixed"; 99c66ec88fSEmmanuel Vadot regulator-name = "pp3300_alw"; 100c66ec88fSEmmanuel Vadot regulator-always-on; 101c66ec88fSEmmanuel Vadot regulator-boot-on; 102c66ec88fSEmmanuel Vadot regulator-min-microvolt = <3300000>; 103c66ec88fSEmmanuel Vadot regulator-max-microvolt = <3300000>; 104c66ec88fSEmmanuel Vadot }; 105c66ec88fSEmmanuel Vadot 1066be33864SEmmanuel Vadot reserved_memory: reserved-memory { 1076be33864SEmmanuel Vadot #address-cells = <2>; 1086be33864SEmmanuel Vadot #size-cells = <2>; 1096be33864SEmmanuel Vadot ranges; 1106be33864SEmmanuel Vadot 1116be33864SEmmanuel Vadot scp_mem_reserved: scp_mem_region { 1126be33864SEmmanuel Vadot compatible = "shared-dma-pool"; 1136be33864SEmmanuel Vadot reg = <0 0x50000000 0 0x2900000>; 1146be33864SEmmanuel Vadot no-map; 1156be33864SEmmanuel Vadot }; 1166be33864SEmmanuel Vadot }; 1176be33864SEmmanuel Vadot 118c66ec88fSEmmanuel Vadot max98357a: codec0 { 119c66ec88fSEmmanuel Vadot compatible = "maxim,max98357a"; 120c66ec88fSEmmanuel Vadot sdmode-gpios = <&pio 175 0>; 121c66ec88fSEmmanuel Vadot }; 122c66ec88fSEmmanuel Vadot 123c66ec88fSEmmanuel Vadot btsco: codec1 { 124c66ec88fSEmmanuel Vadot compatible = "linux,bt-sco"; 125c66ec88fSEmmanuel Vadot }; 126c66ec88fSEmmanuel Vadot 127c66ec88fSEmmanuel Vadot wifi_pwrseq: wifi-pwrseq { 128c66ec88fSEmmanuel Vadot compatible = "mmc-pwrseq-simple"; 129c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 130c66ec88fSEmmanuel Vadot pinctrl-0 = <&wifi_pins_pwrseq>; 131c66ec88fSEmmanuel Vadot 132c66ec88fSEmmanuel Vadot /* Toggle WIFI_ENABLE to reset the chip. */ 133c66ec88fSEmmanuel Vadot reset-gpios = <&pio 119 1>; 134c66ec88fSEmmanuel Vadot }; 135c66ec88fSEmmanuel Vadot 136c66ec88fSEmmanuel Vadot wifi_wakeup: wifi-wakeup { 137c66ec88fSEmmanuel Vadot compatible = "gpio-keys"; 138c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 139c66ec88fSEmmanuel Vadot pinctrl-0 = <&wifi_pins_wakeup>; 140c66ec88fSEmmanuel Vadot 141c66ec88fSEmmanuel Vadot wowlan { 142c66ec88fSEmmanuel Vadot label = "Wake on WiFi"; 143c66ec88fSEmmanuel Vadot gpios = <&pio 113 GPIO_ACTIVE_HIGH>; 144c66ec88fSEmmanuel Vadot linux,code = <KEY_WAKEUP>; 145c66ec88fSEmmanuel Vadot wakeup-source; 146c66ec88fSEmmanuel Vadot }; 147c66ec88fSEmmanuel Vadot }; 148c66ec88fSEmmanuel Vadot 149c66ec88fSEmmanuel Vadot tboard_thermistor1: thermal-sensor1 { 150c66ec88fSEmmanuel Vadot compatible = "generic-adc-thermal"; 151c66ec88fSEmmanuel Vadot #thermal-sensor-cells = <0>; 152c66ec88fSEmmanuel Vadot io-channels = <&auxadc 0>; 153c66ec88fSEmmanuel Vadot io-channel-names = "sensor-channel"; 154c66ec88fSEmmanuel Vadot temperature-lookup-table = < (-5000) 4241 155c66ec88fSEmmanuel Vadot 0 4063 156c66ec88fSEmmanuel Vadot 5000 3856 157c66ec88fSEmmanuel Vadot 10000 3621 158c66ec88fSEmmanuel Vadot 15000 3364 159c66ec88fSEmmanuel Vadot 20000 3091 160c66ec88fSEmmanuel Vadot 25000 2810 161c66ec88fSEmmanuel Vadot 30000 2526 162c66ec88fSEmmanuel Vadot 35000 2247 163c66ec88fSEmmanuel Vadot 40000 1982 164c66ec88fSEmmanuel Vadot 45000 1734 165c66ec88fSEmmanuel Vadot 50000 1507 166c66ec88fSEmmanuel Vadot 55000 1305 167c66ec88fSEmmanuel Vadot 60000 1122 168c66ec88fSEmmanuel Vadot 65000 964 169c66ec88fSEmmanuel Vadot 70000 827 170c66ec88fSEmmanuel Vadot 75000 710 171c66ec88fSEmmanuel Vadot 80000 606 172c66ec88fSEmmanuel Vadot 85000 519 173c66ec88fSEmmanuel Vadot 90000 445 174c66ec88fSEmmanuel Vadot 95000 382 175c66ec88fSEmmanuel Vadot 100000 330 176c66ec88fSEmmanuel Vadot 105000 284 177c66ec88fSEmmanuel Vadot 110000 245 178c66ec88fSEmmanuel Vadot 115000 213 179c66ec88fSEmmanuel Vadot 120000 183 180c66ec88fSEmmanuel Vadot 125000 161>; 181c66ec88fSEmmanuel Vadot }; 182c66ec88fSEmmanuel Vadot 183c66ec88fSEmmanuel Vadot tboard_thermistor2: thermal-sensor2 { 184c66ec88fSEmmanuel Vadot compatible = "generic-adc-thermal"; 185c66ec88fSEmmanuel Vadot #thermal-sensor-cells = <0>; 186c66ec88fSEmmanuel Vadot io-channels = <&auxadc 1>; 187c66ec88fSEmmanuel Vadot io-channel-names = "sensor-channel"; 188c66ec88fSEmmanuel Vadot temperature-lookup-table = < (-5000) 4241 189c66ec88fSEmmanuel Vadot 0 4063 190c66ec88fSEmmanuel Vadot 5000 3856 191c66ec88fSEmmanuel Vadot 10000 3621 192c66ec88fSEmmanuel Vadot 15000 3364 193c66ec88fSEmmanuel Vadot 20000 3091 194c66ec88fSEmmanuel Vadot 25000 2810 195c66ec88fSEmmanuel Vadot 30000 2526 196c66ec88fSEmmanuel Vadot 35000 2247 197c66ec88fSEmmanuel Vadot 40000 1982 198c66ec88fSEmmanuel Vadot 45000 1734 199c66ec88fSEmmanuel Vadot 50000 1507 200c66ec88fSEmmanuel Vadot 55000 1305 201c66ec88fSEmmanuel Vadot 60000 1122 202c66ec88fSEmmanuel Vadot 65000 964 203c66ec88fSEmmanuel Vadot 70000 827 204c66ec88fSEmmanuel Vadot 75000 710 205c66ec88fSEmmanuel Vadot 80000 606 206c66ec88fSEmmanuel Vadot 85000 519 207c66ec88fSEmmanuel Vadot 90000 445 208c66ec88fSEmmanuel Vadot 95000 382 209c66ec88fSEmmanuel Vadot 100000 330 210c66ec88fSEmmanuel Vadot 105000 284 211c66ec88fSEmmanuel Vadot 110000 245 212c66ec88fSEmmanuel Vadot 115000 213 213c66ec88fSEmmanuel Vadot 120000 183 214c66ec88fSEmmanuel Vadot 125000 161>; 215c66ec88fSEmmanuel Vadot }; 216c66ec88fSEmmanuel Vadot}; 217c66ec88fSEmmanuel Vadot 218c66ec88fSEmmanuel Vadot&auxadc { 219c66ec88fSEmmanuel Vadot status = "okay"; 220c66ec88fSEmmanuel Vadot}; 221c66ec88fSEmmanuel Vadot 222c66ec88fSEmmanuel Vadot&cpu0 { 223c66ec88fSEmmanuel Vadot proc-supply = <&mt6358_vproc12_reg>; 224c66ec88fSEmmanuel Vadot}; 225c66ec88fSEmmanuel Vadot 226c66ec88fSEmmanuel Vadot&cpu1 { 227c66ec88fSEmmanuel Vadot proc-supply = <&mt6358_vproc12_reg>; 228c66ec88fSEmmanuel Vadot}; 229c66ec88fSEmmanuel Vadot 230c66ec88fSEmmanuel Vadot&cpu2 { 231c66ec88fSEmmanuel Vadot proc-supply = <&mt6358_vproc12_reg>; 232c66ec88fSEmmanuel Vadot}; 233c66ec88fSEmmanuel Vadot 234c66ec88fSEmmanuel Vadot&cpu3 { 235c66ec88fSEmmanuel Vadot proc-supply = <&mt6358_vproc12_reg>; 236c66ec88fSEmmanuel Vadot}; 237c66ec88fSEmmanuel Vadot 238c66ec88fSEmmanuel Vadot&cpu4 { 239c66ec88fSEmmanuel Vadot proc-supply = <&mt6358_vproc11_reg>; 240c66ec88fSEmmanuel Vadot}; 241c66ec88fSEmmanuel Vadot 242c66ec88fSEmmanuel Vadot&cpu5 { 243c66ec88fSEmmanuel Vadot proc-supply = <&mt6358_vproc11_reg>; 244c66ec88fSEmmanuel Vadot}; 245c66ec88fSEmmanuel Vadot 246c66ec88fSEmmanuel Vadot&cpu6 { 247c66ec88fSEmmanuel Vadot proc-supply = <&mt6358_vproc11_reg>; 248c66ec88fSEmmanuel Vadot}; 249c66ec88fSEmmanuel Vadot 250c66ec88fSEmmanuel Vadot&cpu7 { 251c66ec88fSEmmanuel Vadot proc-supply = <&mt6358_vproc11_reg>; 252c66ec88fSEmmanuel Vadot}; 253c66ec88fSEmmanuel Vadot 2545def4c47SEmmanuel Vadot&dsi0 { 2555def4c47SEmmanuel Vadot status = "okay"; 2565def4c47SEmmanuel Vadot #address-cells = <1>; 2575def4c47SEmmanuel Vadot #size-cells = <0>; 2585def4c47SEmmanuel Vadot panel: panel@0 { 2595def4c47SEmmanuel Vadot /* compatible will be set in board dts */ 2605def4c47SEmmanuel Vadot reg = <0>; 2615def4c47SEmmanuel Vadot enable-gpios = <&pio 45 0>; 2625def4c47SEmmanuel Vadot pinctrl-names = "default"; 2635def4c47SEmmanuel Vadot pinctrl-0 = <&panel_pins_default>; 2645def4c47SEmmanuel Vadot avdd-supply = <&ppvarn_lcd>; 2655def4c47SEmmanuel Vadot avee-supply = <&ppvarp_lcd>; 2665def4c47SEmmanuel Vadot pp1800-supply = <&pp1800_lcd>; 2675def4c47SEmmanuel Vadot backlight = <&backlight_lcd0>; 2685def4c47SEmmanuel Vadot port { 2695def4c47SEmmanuel Vadot panel_in: endpoint { 2705def4c47SEmmanuel Vadot remote-endpoint = <&dsi_out>; 2715def4c47SEmmanuel Vadot }; 2725def4c47SEmmanuel Vadot }; 2735def4c47SEmmanuel Vadot }; 2745def4c47SEmmanuel Vadot 2755def4c47SEmmanuel Vadot ports { 2765def4c47SEmmanuel Vadot port { 2775def4c47SEmmanuel Vadot dsi_out: endpoint { 2785def4c47SEmmanuel Vadot remote-endpoint = <&panel_in>; 2795def4c47SEmmanuel Vadot }; 2805def4c47SEmmanuel Vadot }; 2815def4c47SEmmanuel Vadot }; 2825def4c47SEmmanuel Vadot}; 2835def4c47SEmmanuel Vadot 2845956d97fSEmmanuel Vadot&gpu { 2855956d97fSEmmanuel Vadot mali-supply = <&mt6358_vgpu_reg>; 2865956d97fSEmmanuel Vadot sram-supply = <&mt6358_vsram_gpu_reg>; 2875956d97fSEmmanuel Vadot}; 2885956d97fSEmmanuel Vadot 289c66ec88fSEmmanuel Vadot&i2c0 { 290c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 291c66ec88fSEmmanuel Vadot pinctrl-0 = <&i2c0_pins>; 292c66ec88fSEmmanuel Vadot status = "okay"; 293c66ec88fSEmmanuel Vadot clock-frequency = <400000>; 294c66ec88fSEmmanuel Vadot #address-cells = <1>; 295c66ec88fSEmmanuel Vadot #size-cells = <0>; 296c66ec88fSEmmanuel Vadot}; 297c66ec88fSEmmanuel Vadot 298c66ec88fSEmmanuel Vadot&i2c1 { 299c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 300c66ec88fSEmmanuel Vadot pinctrl-0 = <&i2c1_pins>; 301c66ec88fSEmmanuel Vadot status = "okay"; 302c66ec88fSEmmanuel Vadot clock-frequency = <100000>; 303c66ec88fSEmmanuel Vadot}; 304c66ec88fSEmmanuel Vadot 305c66ec88fSEmmanuel Vadot&i2c3 { 306c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 307c66ec88fSEmmanuel Vadot pinctrl-0 = <&i2c3_pins>; 308c66ec88fSEmmanuel Vadot status = "okay"; 309c66ec88fSEmmanuel Vadot clock-frequency = <100000>; 310c66ec88fSEmmanuel Vadot #address-cells = <1>; 311c66ec88fSEmmanuel Vadot #size-cells = <0>; 312c66ec88fSEmmanuel Vadot}; 313c66ec88fSEmmanuel Vadot 314c66ec88fSEmmanuel Vadot&i2c5 { 315c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 316c66ec88fSEmmanuel Vadot pinctrl-0 = <&i2c5_pins>; 317c66ec88fSEmmanuel Vadot status = "okay"; 318c66ec88fSEmmanuel Vadot clock-frequency = <100000>; 319c66ec88fSEmmanuel Vadot #address-cells = <1>; 320c66ec88fSEmmanuel Vadot #size-cells = <0>; 321c66ec88fSEmmanuel Vadot}; 322c66ec88fSEmmanuel Vadot 323c66ec88fSEmmanuel Vadot&i2c6 { 324c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 325c66ec88fSEmmanuel Vadot pinctrl-0 = <&i2c6_pins>; 326c66ec88fSEmmanuel Vadot status = "okay"; 327c66ec88fSEmmanuel Vadot clock-frequency = <100000>; 328c66ec88fSEmmanuel Vadot}; 329c66ec88fSEmmanuel Vadot 3305def4c47SEmmanuel Vadot&mipi_tx0 { 3315def4c47SEmmanuel Vadot status = "okay"; 3325def4c47SEmmanuel Vadot}; 3335def4c47SEmmanuel Vadot 334c66ec88fSEmmanuel Vadot&mmc0 { 335c66ec88fSEmmanuel Vadot status = "okay"; 336c66ec88fSEmmanuel Vadot pinctrl-names = "default", "state_uhs"; 337c66ec88fSEmmanuel Vadot pinctrl-0 = <&mmc0_pins_default>; 338c66ec88fSEmmanuel Vadot pinctrl-1 = <&mmc0_pins_uhs>; 339c66ec88fSEmmanuel Vadot bus-width = <8>; 340c66ec88fSEmmanuel Vadot max-frequency = <200000000>; 341c66ec88fSEmmanuel Vadot cap-mmc-highspeed; 342c66ec88fSEmmanuel Vadot mmc-hs200-1_8v; 343c66ec88fSEmmanuel Vadot mmc-hs400-1_8v; 344c66ec88fSEmmanuel Vadot cap-mmc-hw-reset; 345c66ec88fSEmmanuel Vadot no-sdio; 346c66ec88fSEmmanuel Vadot no-sd; 347c66ec88fSEmmanuel Vadot hs400-ds-delay = <0x12814>; 348c66ec88fSEmmanuel Vadot vmmc-supply = <&mt6358_vemc_reg>; 349c66ec88fSEmmanuel Vadot vqmmc-supply = <&mt6358_vio18_reg>; 350c66ec88fSEmmanuel Vadot assigned-clocks = <&topckgen CLK_TOP_MUX_MSDC50_0>; 351c66ec88fSEmmanuel Vadot assigned-clock-parents = <&topckgen CLK_TOP_MSDCPLL_CK>; 352c66ec88fSEmmanuel Vadot non-removable; 353c66ec88fSEmmanuel Vadot}; 354c66ec88fSEmmanuel Vadot 355c66ec88fSEmmanuel Vadot&mmc1 { 356c66ec88fSEmmanuel Vadot status = "okay"; 357c66ec88fSEmmanuel Vadot pinctrl-names = "default", "state_uhs"; 358c66ec88fSEmmanuel Vadot pinctrl-0 = <&mmc1_pins_default>; 359c66ec88fSEmmanuel Vadot pinctrl-1 = <&mmc1_pins_uhs>; 360c66ec88fSEmmanuel Vadot vmmc-supply = <&mmc1_fixed_power>; 361c66ec88fSEmmanuel Vadot vqmmc-supply = <&mmc1_fixed_io>; 362c66ec88fSEmmanuel Vadot mmc-pwrseq = <&wifi_pwrseq>; 363c66ec88fSEmmanuel Vadot bus-width = <4>; 364c66ec88fSEmmanuel Vadot max-frequency = <200000000>; 365c66ec88fSEmmanuel Vadot drv-type = <2>; 366c66ec88fSEmmanuel Vadot cap-sd-highspeed; 367c66ec88fSEmmanuel Vadot sd-uhs-sdr50; 368c66ec88fSEmmanuel Vadot sd-uhs-sdr104; 369c66ec88fSEmmanuel Vadot keep-power-in-suspend; 370c66ec88fSEmmanuel Vadot enable-sdio-wakeup; 371c66ec88fSEmmanuel Vadot cap-sdio-irq; 372c66ec88fSEmmanuel Vadot non-removable; 373c66ec88fSEmmanuel Vadot no-mmc; 374c66ec88fSEmmanuel Vadot no-sd; 375c66ec88fSEmmanuel Vadot assigned-clocks = <&topckgen CLK_TOP_MUX_MSDC30_1>; 376c66ec88fSEmmanuel Vadot assigned-clock-parents = <&topckgen CLK_TOP_MSDCPLL_D2>; 377c66ec88fSEmmanuel Vadot #address-cells = <1>; 378c66ec88fSEmmanuel Vadot #size-cells = <0>; 379c66ec88fSEmmanuel Vadot 380c66ec88fSEmmanuel Vadot qca_wifi: qca-wifi@1 { 381c66ec88fSEmmanuel Vadot compatible = "qcom,ath10k"; 382c66ec88fSEmmanuel Vadot reg = <1>; 383c66ec88fSEmmanuel Vadot }; 384c66ec88fSEmmanuel Vadot}; 385c66ec88fSEmmanuel Vadot 386c66ec88fSEmmanuel Vadot&mt6358_vdram2_reg { 387c66ec88fSEmmanuel Vadot regulator-always-on; 388c66ec88fSEmmanuel Vadot}; 389c66ec88fSEmmanuel Vadot 390c66ec88fSEmmanuel Vadot&mt6358codec { 391c66ec88fSEmmanuel Vadot Avdd-supply = <&mt6358_vaud28_reg>; 392c66ec88fSEmmanuel Vadot}; 393c66ec88fSEmmanuel Vadot 394c66ec88fSEmmanuel Vadot&mt6358_vsim1_reg { 395c66ec88fSEmmanuel Vadot regulator-min-microvolt = <2700000>; 396c66ec88fSEmmanuel Vadot regulator-max-microvolt = <2700000>; 397c66ec88fSEmmanuel Vadot}; 398c66ec88fSEmmanuel Vadot 399c66ec88fSEmmanuel Vadot&mt6358_vsim2_reg { 400c66ec88fSEmmanuel Vadot regulator-min-microvolt = <2700000>; 401c66ec88fSEmmanuel Vadot regulator-max-microvolt = <2700000>; 402c66ec88fSEmmanuel Vadot}; 403c66ec88fSEmmanuel Vadot 404c66ec88fSEmmanuel Vadot&pio { 405c66ec88fSEmmanuel Vadot bt_pins: bt-pins { 406c66ec88fSEmmanuel Vadot pins_bt_en { 407c66ec88fSEmmanuel Vadot pinmux = <PINMUX_GPIO120__FUNC_GPIO120>; 408c66ec88fSEmmanuel Vadot output-low; 409c66ec88fSEmmanuel Vadot }; 410c66ec88fSEmmanuel Vadot }; 411c66ec88fSEmmanuel Vadot 412c66ec88fSEmmanuel Vadot ec_ap_int_odl: ec_ap_int_odl { 413c66ec88fSEmmanuel Vadot pins1 { 414c66ec88fSEmmanuel Vadot pinmux = <PINMUX_GPIO151__FUNC_GPIO151>; 415c66ec88fSEmmanuel Vadot input-enable; 416c66ec88fSEmmanuel Vadot bias-pull-up; 417c66ec88fSEmmanuel Vadot }; 418c66ec88fSEmmanuel Vadot }; 419c66ec88fSEmmanuel Vadot 420c66ec88fSEmmanuel Vadot h1_int_od_l: h1_int_od_l { 421c66ec88fSEmmanuel Vadot pins1 { 422c66ec88fSEmmanuel Vadot pinmux = <PINMUX_GPIO153__FUNC_GPIO153>; 423c66ec88fSEmmanuel Vadot input-enable; 424c66ec88fSEmmanuel Vadot }; 425c66ec88fSEmmanuel Vadot }; 426c66ec88fSEmmanuel Vadot 427c66ec88fSEmmanuel Vadot i2c0_pins: i2c0 { 428c66ec88fSEmmanuel Vadot pins_bus { 429c66ec88fSEmmanuel Vadot pinmux = <PINMUX_GPIO82__FUNC_SDA0>, 430c66ec88fSEmmanuel Vadot <PINMUX_GPIO83__FUNC_SCL0>; 431c66ec88fSEmmanuel Vadot mediatek,pull-up-adv = <3>; 432c66ec88fSEmmanuel Vadot mediatek,drive-strength-adv = <00>; 433c66ec88fSEmmanuel Vadot }; 434c66ec88fSEmmanuel Vadot }; 435c66ec88fSEmmanuel Vadot 436c66ec88fSEmmanuel Vadot i2c1_pins: i2c1 { 437c66ec88fSEmmanuel Vadot pins_bus { 438c66ec88fSEmmanuel Vadot pinmux = <PINMUX_GPIO81__FUNC_SDA1>, 439c66ec88fSEmmanuel Vadot <PINMUX_GPIO84__FUNC_SCL1>; 440c66ec88fSEmmanuel Vadot mediatek,pull-up-adv = <3>; 441c66ec88fSEmmanuel Vadot mediatek,drive-strength-adv = <00>; 442c66ec88fSEmmanuel Vadot }; 443c66ec88fSEmmanuel Vadot }; 444c66ec88fSEmmanuel Vadot 445c66ec88fSEmmanuel Vadot i2c2_pins: i2c2 { 446c66ec88fSEmmanuel Vadot pins_bus { 447c66ec88fSEmmanuel Vadot pinmux = <PINMUX_GPIO103__FUNC_SCL2>, 448c66ec88fSEmmanuel Vadot <PINMUX_GPIO104__FUNC_SDA2>; 449c66ec88fSEmmanuel Vadot bias-disable; 450c66ec88fSEmmanuel Vadot mediatek,drive-strength-adv = <00>; 451c66ec88fSEmmanuel Vadot }; 452c66ec88fSEmmanuel Vadot }; 453c66ec88fSEmmanuel Vadot 454c66ec88fSEmmanuel Vadot i2c3_pins: i2c3 { 455c66ec88fSEmmanuel Vadot pins_bus { 456c66ec88fSEmmanuel Vadot pinmux = <PINMUX_GPIO50__FUNC_SCL3>, 457c66ec88fSEmmanuel Vadot <PINMUX_GPIO51__FUNC_SDA3>; 458c66ec88fSEmmanuel Vadot mediatek,pull-up-adv = <3>; 459c66ec88fSEmmanuel Vadot mediatek,drive-strength-adv = <00>; 460c66ec88fSEmmanuel Vadot }; 461c66ec88fSEmmanuel Vadot }; 462c66ec88fSEmmanuel Vadot 463c66ec88fSEmmanuel Vadot i2c4_pins: i2c4 { 464c66ec88fSEmmanuel Vadot pins_bus { 465c66ec88fSEmmanuel Vadot pinmux = <PINMUX_GPIO105__FUNC_SCL4>, 466c66ec88fSEmmanuel Vadot <PINMUX_GPIO106__FUNC_SDA4>; 467c66ec88fSEmmanuel Vadot bias-disable; 468c66ec88fSEmmanuel Vadot mediatek,drive-strength-adv = <00>; 469c66ec88fSEmmanuel Vadot }; 470c66ec88fSEmmanuel Vadot }; 471c66ec88fSEmmanuel Vadot 472c66ec88fSEmmanuel Vadot i2c5_pins: i2c5 { 473c66ec88fSEmmanuel Vadot pins_bus { 474c66ec88fSEmmanuel Vadot pinmux = <PINMUX_GPIO48__FUNC_SCL5>, 475c66ec88fSEmmanuel Vadot <PINMUX_GPIO49__FUNC_SDA5>; 476c66ec88fSEmmanuel Vadot mediatek,pull-up-adv = <3>; 477c66ec88fSEmmanuel Vadot mediatek,drive-strength-adv = <00>; 478c66ec88fSEmmanuel Vadot }; 479c66ec88fSEmmanuel Vadot }; 480c66ec88fSEmmanuel Vadot 481c66ec88fSEmmanuel Vadot i2c6_pins: i2c6 { 482c66ec88fSEmmanuel Vadot pins_bus { 483c66ec88fSEmmanuel Vadot pinmux = <PINMUX_GPIO11__FUNC_SCL6>, 484c66ec88fSEmmanuel Vadot <PINMUX_GPIO12__FUNC_SDA6>; 485c66ec88fSEmmanuel Vadot bias-disable; 486c66ec88fSEmmanuel Vadot }; 487c66ec88fSEmmanuel Vadot }; 488c66ec88fSEmmanuel Vadot 489c66ec88fSEmmanuel Vadot mmc0_pins_default: mmc0-pins-default { 490c66ec88fSEmmanuel Vadot pins_cmd_dat { 491c66ec88fSEmmanuel Vadot pinmux = <PINMUX_GPIO123__FUNC_MSDC0_DAT0>, 492c66ec88fSEmmanuel Vadot <PINMUX_GPIO128__FUNC_MSDC0_DAT1>, 493c66ec88fSEmmanuel Vadot <PINMUX_GPIO125__FUNC_MSDC0_DAT2>, 494c66ec88fSEmmanuel Vadot <PINMUX_GPIO132__FUNC_MSDC0_DAT3>, 495c66ec88fSEmmanuel Vadot <PINMUX_GPIO126__FUNC_MSDC0_DAT4>, 496c66ec88fSEmmanuel Vadot <PINMUX_GPIO129__FUNC_MSDC0_DAT5>, 497c66ec88fSEmmanuel Vadot <PINMUX_GPIO127__FUNC_MSDC0_DAT6>, 498c66ec88fSEmmanuel Vadot <PINMUX_GPIO130__FUNC_MSDC0_DAT7>, 499c66ec88fSEmmanuel Vadot <PINMUX_GPIO122__FUNC_MSDC0_CMD>; 500c66ec88fSEmmanuel Vadot input-enable; 501c66ec88fSEmmanuel Vadot drive-strength = <MTK_DRIVE_14mA>; 502c66ec88fSEmmanuel Vadot mediatek,pull-up-adv = <01>; 503c66ec88fSEmmanuel Vadot }; 504c66ec88fSEmmanuel Vadot 505c66ec88fSEmmanuel Vadot pins_clk { 506c66ec88fSEmmanuel Vadot pinmux = <PINMUX_GPIO124__FUNC_MSDC0_CLK>; 507c66ec88fSEmmanuel Vadot drive-strength = <MTK_DRIVE_14mA>; 508c66ec88fSEmmanuel Vadot mediatek,pull-down-adv = <10>; 509c66ec88fSEmmanuel Vadot }; 510c66ec88fSEmmanuel Vadot 511c66ec88fSEmmanuel Vadot pins_rst { 512c66ec88fSEmmanuel Vadot pinmux = <PINMUX_GPIO133__FUNC_MSDC0_RSTB>; 513c66ec88fSEmmanuel Vadot drive-strength = <MTK_DRIVE_14mA>; 514c66ec88fSEmmanuel Vadot mediatek,pull-down-adv = <01>; 515c66ec88fSEmmanuel Vadot }; 516c66ec88fSEmmanuel Vadot }; 517c66ec88fSEmmanuel Vadot 518c66ec88fSEmmanuel Vadot mmc0_pins_uhs: mmc0-pins-uhs { 519c66ec88fSEmmanuel Vadot pins_cmd_dat { 520c66ec88fSEmmanuel Vadot pinmux = <PINMUX_GPIO123__FUNC_MSDC0_DAT0>, 521c66ec88fSEmmanuel Vadot <PINMUX_GPIO128__FUNC_MSDC0_DAT1>, 522c66ec88fSEmmanuel Vadot <PINMUX_GPIO125__FUNC_MSDC0_DAT2>, 523c66ec88fSEmmanuel Vadot <PINMUX_GPIO132__FUNC_MSDC0_DAT3>, 524c66ec88fSEmmanuel Vadot <PINMUX_GPIO126__FUNC_MSDC0_DAT4>, 525c66ec88fSEmmanuel Vadot <PINMUX_GPIO129__FUNC_MSDC0_DAT5>, 526c66ec88fSEmmanuel Vadot <PINMUX_GPIO127__FUNC_MSDC0_DAT6>, 527c66ec88fSEmmanuel Vadot <PINMUX_GPIO130__FUNC_MSDC0_DAT7>, 528c66ec88fSEmmanuel Vadot <PINMUX_GPIO122__FUNC_MSDC0_CMD>; 529c66ec88fSEmmanuel Vadot input-enable; 530c66ec88fSEmmanuel Vadot drive-strength = <MTK_DRIVE_14mA>; 531c66ec88fSEmmanuel Vadot mediatek,pull-up-adv = <01>; 532c66ec88fSEmmanuel Vadot }; 533c66ec88fSEmmanuel Vadot 534c66ec88fSEmmanuel Vadot pins_clk { 535c66ec88fSEmmanuel Vadot pinmux = <PINMUX_GPIO124__FUNC_MSDC0_CLK>; 536c66ec88fSEmmanuel Vadot drive-strength = <MTK_DRIVE_14mA>; 537c66ec88fSEmmanuel Vadot mediatek,pull-down-adv = <10>; 538c66ec88fSEmmanuel Vadot }; 539c66ec88fSEmmanuel Vadot 540c66ec88fSEmmanuel Vadot pins_ds { 541c66ec88fSEmmanuel Vadot pinmux = <PINMUX_GPIO131__FUNC_MSDC0_DSL>; 542c66ec88fSEmmanuel Vadot drive-strength = <MTK_DRIVE_14mA>; 543c66ec88fSEmmanuel Vadot mediatek,pull-down-adv = <10>; 544c66ec88fSEmmanuel Vadot }; 545c66ec88fSEmmanuel Vadot 546c66ec88fSEmmanuel Vadot pins_rst { 547c66ec88fSEmmanuel Vadot pinmux = <PINMUX_GPIO133__FUNC_MSDC0_RSTB>; 548c66ec88fSEmmanuel Vadot drive-strength = <MTK_DRIVE_14mA>; 549c66ec88fSEmmanuel Vadot mediatek,pull-up-adv = <01>; 550c66ec88fSEmmanuel Vadot }; 551c66ec88fSEmmanuel Vadot }; 552c66ec88fSEmmanuel Vadot 553c66ec88fSEmmanuel Vadot mmc1_pins_default: mmc1-pins-default { 554c66ec88fSEmmanuel Vadot pins_cmd_dat { 555c66ec88fSEmmanuel Vadot pinmux = <PINMUX_GPIO31__FUNC_MSDC1_CMD>, 556c66ec88fSEmmanuel Vadot <PINMUX_GPIO32__FUNC_MSDC1_DAT0>, 557c66ec88fSEmmanuel Vadot <PINMUX_GPIO34__FUNC_MSDC1_DAT1>, 558c66ec88fSEmmanuel Vadot <PINMUX_GPIO33__FUNC_MSDC1_DAT2>, 559c66ec88fSEmmanuel Vadot <PINMUX_GPIO30__FUNC_MSDC1_DAT3>; 560c66ec88fSEmmanuel Vadot input-enable; 561c66ec88fSEmmanuel Vadot mediatek,pull-up-adv = <10>; 562c66ec88fSEmmanuel Vadot }; 563c66ec88fSEmmanuel Vadot 564c66ec88fSEmmanuel Vadot pins_clk { 565c66ec88fSEmmanuel Vadot pinmux = <PINMUX_GPIO29__FUNC_MSDC1_CLK>; 566c66ec88fSEmmanuel Vadot input-enable; 567c66ec88fSEmmanuel Vadot mediatek,pull-down-adv = <10>; 568c66ec88fSEmmanuel Vadot }; 569c66ec88fSEmmanuel Vadot }; 570c66ec88fSEmmanuel Vadot 571c66ec88fSEmmanuel Vadot mmc1_pins_uhs: mmc1-pins-uhs { 572c66ec88fSEmmanuel Vadot pins_cmd_dat { 573c66ec88fSEmmanuel Vadot pinmux = <PINMUX_GPIO31__FUNC_MSDC1_CMD>, 574c66ec88fSEmmanuel Vadot <PINMUX_GPIO32__FUNC_MSDC1_DAT0>, 575c66ec88fSEmmanuel Vadot <PINMUX_GPIO34__FUNC_MSDC1_DAT1>, 576c66ec88fSEmmanuel Vadot <PINMUX_GPIO33__FUNC_MSDC1_DAT2>, 577c66ec88fSEmmanuel Vadot <PINMUX_GPIO30__FUNC_MSDC1_DAT3>; 578c66ec88fSEmmanuel Vadot drive-strength = <MTK_DRIVE_6mA>; 579c66ec88fSEmmanuel Vadot input-enable; 580c66ec88fSEmmanuel Vadot mediatek,pull-up-adv = <10>; 581c66ec88fSEmmanuel Vadot }; 582c66ec88fSEmmanuel Vadot 583c66ec88fSEmmanuel Vadot pins_clk { 584c66ec88fSEmmanuel Vadot pinmux = <PINMUX_GPIO29__FUNC_MSDC1_CLK>; 585c66ec88fSEmmanuel Vadot drive-strength = <MTK_DRIVE_8mA>; 586c66ec88fSEmmanuel Vadot mediatek,pull-down-adv = <10>; 587c66ec88fSEmmanuel Vadot input-enable; 588c66ec88fSEmmanuel Vadot }; 589c66ec88fSEmmanuel Vadot }; 590c66ec88fSEmmanuel Vadot 5915def4c47SEmmanuel Vadot panel_pins_default: panel_pins_default { 5925def4c47SEmmanuel Vadot panel_reset { 5935def4c47SEmmanuel Vadot pinmux = <PINMUX_GPIO45__FUNC_GPIO45>; 5945def4c47SEmmanuel Vadot output-low; 5955def4c47SEmmanuel Vadot bias-pull-up; 5965def4c47SEmmanuel Vadot }; 5975def4c47SEmmanuel Vadot }; 5985def4c47SEmmanuel Vadot 5995def4c47SEmmanuel Vadot pwm0_pin_default: pwm0_pin_default { 6005def4c47SEmmanuel Vadot pins1 { 6015def4c47SEmmanuel Vadot pinmux = <PINMUX_GPIO176__FUNC_GPIO176>; 6025def4c47SEmmanuel Vadot output-high; 6035def4c47SEmmanuel Vadot bias-pull-up; 6045def4c47SEmmanuel Vadot }; 6055def4c47SEmmanuel Vadot pins2 { 6065def4c47SEmmanuel Vadot pinmux = <PINMUX_GPIO43__FUNC_DISP_PWM>; 6075def4c47SEmmanuel Vadot }; 6085def4c47SEmmanuel Vadot }; 6095def4c47SEmmanuel Vadot 6106be33864SEmmanuel Vadot scp_pins: scp { 6116be33864SEmmanuel Vadot pins_scp_uart { 6126be33864SEmmanuel Vadot pinmux = <PINMUX_GPIO110__FUNC_TP_URXD1_AO>, 6136be33864SEmmanuel Vadot <PINMUX_GPIO112__FUNC_TP_UTXD1_AO>; 6146be33864SEmmanuel Vadot }; 6156be33864SEmmanuel Vadot }; 6166be33864SEmmanuel Vadot 617c66ec88fSEmmanuel Vadot spi0_pins: spi0 { 618c66ec88fSEmmanuel Vadot pins_spi{ 619c66ec88fSEmmanuel Vadot pinmux = <PINMUX_GPIO85__FUNC_SPI0_MI>, 620c66ec88fSEmmanuel Vadot <PINMUX_GPIO86__FUNC_GPIO86>, 621c66ec88fSEmmanuel Vadot <PINMUX_GPIO87__FUNC_SPI0_MO>, 622c66ec88fSEmmanuel Vadot <PINMUX_GPIO88__FUNC_SPI0_CLK>; 623c66ec88fSEmmanuel Vadot bias-disable; 624c66ec88fSEmmanuel Vadot }; 625c66ec88fSEmmanuel Vadot }; 626c66ec88fSEmmanuel Vadot 627c66ec88fSEmmanuel Vadot spi1_pins: spi1 { 628c66ec88fSEmmanuel Vadot pins_spi{ 629c66ec88fSEmmanuel Vadot pinmux = <PINMUX_GPIO161__FUNC_SPI1_A_MI>, 630c66ec88fSEmmanuel Vadot <PINMUX_GPIO162__FUNC_SPI1_A_CSB>, 631c66ec88fSEmmanuel Vadot <PINMUX_GPIO163__FUNC_SPI1_A_MO>, 632c66ec88fSEmmanuel Vadot <PINMUX_GPIO164__FUNC_SPI1_A_CLK>; 633c66ec88fSEmmanuel Vadot bias-disable; 634c66ec88fSEmmanuel Vadot }; 635c66ec88fSEmmanuel Vadot }; 636c66ec88fSEmmanuel Vadot 637c66ec88fSEmmanuel Vadot spi2_pins: spi2 { 638c66ec88fSEmmanuel Vadot pins_spi{ 639c66ec88fSEmmanuel Vadot pinmux = <PINMUX_GPIO0__FUNC_SPI2_CSB>, 640c66ec88fSEmmanuel Vadot <PINMUX_GPIO1__FUNC_SPI2_MO>, 641c66ec88fSEmmanuel Vadot <PINMUX_GPIO2__FUNC_SPI2_CLK>; 642c66ec88fSEmmanuel Vadot bias-disable; 643c66ec88fSEmmanuel Vadot }; 644c66ec88fSEmmanuel Vadot pins_spi_mi { 645c66ec88fSEmmanuel Vadot pinmux = <PINMUX_GPIO94__FUNC_SPI2_MI>; 646c66ec88fSEmmanuel Vadot mediatek,pull-down-adv = <00>; 647c66ec88fSEmmanuel Vadot }; 648c66ec88fSEmmanuel Vadot }; 649c66ec88fSEmmanuel Vadot 650c66ec88fSEmmanuel Vadot spi3_pins: spi3 { 651c66ec88fSEmmanuel Vadot pins_spi{ 652c66ec88fSEmmanuel Vadot pinmux = <PINMUX_GPIO21__FUNC_SPI3_MI>, 653c66ec88fSEmmanuel Vadot <PINMUX_GPIO22__FUNC_SPI3_CSB>, 654c66ec88fSEmmanuel Vadot <PINMUX_GPIO23__FUNC_SPI3_MO>, 655c66ec88fSEmmanuel Vadot <PINMUX_GPIO24__FUNC_SPI3_CLK>; 656c66ec88fSEmmanuel Vadot bias-disable; 657c66ec88fSEmmanuel Vadot }; 658c66ec88fSEmmanuel Vadot }; 659c66ec88fSEmmanuel Vadot 660c66ec88fSEmmanuel Vadot spi4_pins: spi4 { 661c66ec88fSEmmanuel Vadot pins_spi{ 662c66ec88fSEmmanuel Vadot pinmux = <PINMUX_GPIO17__FUNC_SPI4_MI>, 663c66ec88fSEmmanuel Vadot <PINMUX_GPIO18__FUNC_SPI4_CSB>, 664c66ec88fSEmmanuel Vadot <PINMUX_GPIO19__FUNC_SPI4_MO>, 665c66ec88fSEmmanuel Vadot <PINMUX_GPIO20__FUNC_SPI4_CLK>; 666c66ec88fSEmmanuel Vadot bias-disable; 667c66ec88fSEmmanuel Vadot }; 668c66ec88fSEmmanuel Vadot }; 669c66ec88fSEmmanuel Vadot 670c66ec88fSEmmanuel Vadot spi5_pins: spi5 { 671c66ec88fSEmmanuel Vadot pins_spi{ 672c66ec88fSEmmanuel Vadot pinmux = <PINMUX_GPIO13__FUNC_SPI5_MI>, 673c66ec88fSEmmanuel Vadot <PINMUX_GPIO14__FUNC_SPI5_CSB>, 674c66ec88fSEmmanuel Vadot <PINMUX_GPIO15__FUNC_SPI5_MO>, 675c66ec88fSEmmanuel Vadot <PINMUX_GPIO16__FUNC_SPI5_CLK>; 676c66ec88fSEmmanuel Vadot bias-disable; 677c66ec88fSEmmanuel Vadot }; 678c66ec88fSEmmanuel Vadot }; 679c66ec88fSEmmanuel Vadot 680c66ec88fSEmmanuel Vadot uart0_pins_default: uart0-pins-default { 681c66ec88fSEmmanuel Vadot pins_rx { 682c66ec88fSEmmanuel Vadot pinmux = <PINMUX_GPIO95__FUNC_URXD0>; 683c66ec88fSEmmanuel Vadot input-enable; 684c66ec88fSEmmanuel Vadot bias-pull-up; 685c66ec88fSEmmanuel Vadot }; 686c66ec88fSEmmanuel Vadot pins_tx { 687c66ec88fSEmmanuel Vadot pinmux = <PINMUX_GPIO96__FUNC_UTXD0>; 688c66ec88fSEmmanuel Vadot }; 689c66ec88fSEmmanuel Vadot }; 690c66ec88fSEmmanuel Vadot 691c66ec88fSEmmanuel Vadot uart1_pins_default: uart1-pins-default { 692c66ec88fSEmmanuel Vadot pins_rx { 693c66ec88fSEmmanuel Vadot pinmux = <PINMUX_GPIO121__FUNC_URXD1>; 694c66ec88fSEmmanuel Vadot input-enable; 695c66ec88fSEmmanuel Vadot bias-pull-up; 696c66ec88fSEmmanuel Vadot }; 697c66ec88fSEmmanuel Vadot pins_tx { 698c66ec88fSEmmanuel Vadot pinmux = <PINMUX_GPIO115__FUNC_UTXD1>; 699c66ec88fSEmmanuel Vadot }; 700c66ec88fSEmmanuel Vadot pins_rts { 701c66ec88fSEmmanuel Vadot pinmux = <PINMUX_GPIO47__FUNC_URTS1>; 702c66ec88fSEmmanuel Vadot output-enable; 703c66ec88fSEmmanuel Vadot }; 704c66ec88fSEmmanuel Vadot pins_cts { 705c66ec88fSEmmanuel Vadot pinmux = <PINMUX_GPIO46__FUNC_UCTS1>; 706c66ec88fSEmmanuel Vadot input-enable; 707c66ec88fSEmmanuel Vadot }; 708c66ec88fSEmmanuel Vadot }; 709c66ec88fSEmmanuel Vadot 710c66ec88fSEmmanuel Vadot uart1_pins_sleep: uart1-pins-sleep { 711c66ec88fSEmmanuel Vadot pins_rx { 712c66ec88fSEmmanuel Vadot pinmux = <PINMUX_GPIO121__FUNC_GPIO121>; 713c66ec88fSEmmanuel Vadot input-enable; 714c66ec88fSEmmanuel Vadot bias-pull-up; 715c66ec88fSEmmanuel Vadot }; 716c66ec88fSEmmanuel Vadot pins_tx { 717c66ec88fSEmmanuel Vadot pinmux = <PINMUX_GPIO115__FUNC_UTXD1>; 718c66ec88fSEmmanuel Vadot }; 719c66ec88fSEmmanuel Vadot pins_rts { 720c66ec88fSEmmanuel Vadot pinmux = <PINMUX_GPIO47__FUNC_URTS1>; 721c66ec88fSEmmanuel Vadot output-enable; 722c66ec88fSEmmanuel Vadot }; 723c66ec88fSEmmanuel Vadot pins_cts { 724c66ec88fSEmmanuel Vadot pinmux = <PINMUX_GPIO46__FUNC_UCTS1>; 725c66ec88fSEmmanuel Vadot input-enable; 726c66ec88fSEmmanuel Vadot }; 727c66ec88fSEmmanuel Vadot }; 728c66ec88fSEmmanuel Vadot 729c66ec88fSEmmanuel Vadot wifi_pins_pwrseq: wifi-pins-pwrseq { 730c66ec88fSEmmanuel Vadot pins_wifi_enable { 731c66ec88fSEmmanuel Vadot pinmux = <PINMUX_GPIO119__FUNC_GPIO119>; 732c66ec88fSEmmanuel Vadot output-low; 733c66ec88fSEmmanuel Vadot }; 734c66ec88fSEmmanuel Vadot }; 735c66ec88fSEmmanuel Vadot 736c66ec88fSEmmanuel Vadot wifi_pins_wakeup: wifi-pins-wakeup { 737c66ec88fSEmmanuel Vadot pins_wifi_wakeup { 738c66ec88fSEmmanuel Vadot pinmux = <PINMUX_GPIO113__FUNC_GPIO113>; 739c66ec88fSEmmanuel Vadot input-enable; 740c66ec88fSEmmanuel Vadot }; 741c66ec88fSEmmanuel Vadot }; 742c66ec88fSEmmanuel Vadot}; 743c66ec88fSEmmanuel Vadot 7445def4c47SEmmanuel Vadot&pwm0 { 7455def4c47SEmmanuel Vadot status = "okay"; 7465def4c47SEmmanuel Vadot pinctrl-names = "default"; 7475def4c47SEmmanuel Vadot pinctrl-0 = <&pwm0_pin_default>; 7485def4c47SEmmanuel Vadot}; 7495def4c47SEmmanuel Vadot 7506be33864SEmmanuel Vadot&scp { 7516be33864SEmmanuel Vadot status = "okay"; 7526be33864SEmmanuel Vadot pinctrl-names = "default"; 7536be33864SEmmanuel Vadot pinctrl-0 = <&scp_pins>; 7546be33864SEmmanuel Vadot 7556be33864SEmmanuel Vadot cros_ec { 7566be33864SEmmanuel Vadot compatible = "google,cros-ec-rpmsg"; 7576be33864SEmmanuel Vadot mtk,rpmsg-name = "cros-ec-rpmsg"; 7586be33864SEmmanuel Vadot }; 7596be33864SEmmanuel Vadot}; 7606be33864SEmmanuel Vadot 7615def4c47SEmmanuel Vadot&mfg { 7625def4c47SEmmanuel Vadot domain-supply = <&mt6358_vgpu_reg>; 7635def4c47SEmmanuel Vadot}; 7645def4c47SEmmanuel Vadot 765c66ec88fSEmmanuel Vadot&soc_data { 766c66ec88fSEmmanuel Vadot status = "okay"; 767c66ec88fSEmmanuel Vadot}; 768c66ec88fSEmmanuel Vadot 769c66ec88fSEmmanuel Vadot&spi0 { 770c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 771c66ec88fSEmmanuel Vadot pinctrl-0 = <&spi0_pins>; 772c66ec88fSEmmanuel Vadot mediatek,pad-select = <0>; 773c66ec88fSEmmanuel Vadot status = "okay"; 774c66ec88fSEmmanuel Vadot cs-gpios = <&pio 86 GPIO_ACTIVE_LOW>; 775c66ec88fSEmmanuel Vadot 776c66ec88fSEmmanuel Vadot cr50@0 { 777c66ec88fSEmmanuel Vadot compatible = "google,cr50"; 778c66ec88fSEmmanuel Vadot reg = <0>; 779c66ec88fSEmmanuel Vadot spi-max-frequency = <1000000>; 780c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 781c66ec88fSEmmanuel Vadot pinctrl-0 = <&h1_int_od_l>; 782c66ec88fSEmmanuel Vadot interrupt-parent = <&pio>; 783c66ec88fSEmmanuel Vadot interrupts = <153 IRQ_TYPE_EDGE_RISING>; 784c66ec88fSEmmanuel Vadot }; 785c66ec88fSEmmanuel Vadot}; 786c66ec88fSEmmanuel Vadot 787c66ec88fSEmmanuel Vadot&spi1 { 788c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 789c66ec88fSEmmanuel Vadot pinctrl-0 = <&spi1_pins>; 790c66ec88fSEmmanuel Vadot mediatek,pad-select = <0>; 791c66ec88fSEmmanuel Vadot status = "okay"; 792c66ec88fSEmmanuel Vadot 793c66ec88fSEmmanuel Vadot w25q64dw: spi-flash@0 { 794c66ec88fSEmmanuel Vadot compatible = "winbond,w25q64dw", "jedec,spi-nor"; 795c66ec88fSEmmanuel Vadot reg = <0>; 796c66ec88fSEmmanuel Vadot spi-max-frequency = <25000000>; 797c66ec88fSEmmanuel Vadot }; 798c66ec88fSEmmanuel Vadot}; 799c66ec88fSEmmanuel Vadot 800c66ec88fSEmmanuel Vadot&spi2 { 801c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 802c66ec88fSEmmanuel Vadot pinctrl-0 = <&spi2_pins>; 803c66ec88fSEmmanuel Vadot mediatek,pad-select = <0>; 804c66ec88fSEmmanuel Vadot status = "okay"; 805c66ec88fSEmmanuel Vadot 806c66ec88fSEmmanuel Vadot cros_ec: cros-ec@0 { 807c66ec88fSEmmanuel Vadot compatible = "google,cros-ec-spi"; 808c66ec88fSEmmanuel Vadot reg = <0>; 809c66ec88fSEmmanuel Vadot spi-max-frequency = <3000000>; 810c66ec88fSEmmanuel Vadot interrupt-parent = <&pio>; 811c66ec88fSEmmanuel Vadot interrupts = <151 IRQ_TYPE_LEVEL_LOW>; 812c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 813c66ec88fSEmmanuel Vadot pinctrl-0 = <&ec_ap_int_odl>; 814c66ec88fSEmmanuel Vadot 815c66ec88fSEmmanuel Vadot i2c_tunnel: i2c-tunnel { 816c66ec88fSEmmanuel Vadot compatible = "google,cros-ec-i2c-tunnel"; 817c66ec88fSEmmanuel Vadot google,remote-bus = <1>; 818c66ec88fSEmmanuel Vadot #address-cells = <1>; 819c66ec88fSEmmanuel Vadot #size-cells = <0>; 820c66ec88fSEmmanuel Vadot }; 821c66ec88fSEmmanuel Vadot 822c66ec88fSEmmanuel Vadot usbc_extcon: extcon0 { 823c66ec88fSEmmanuel Vadot compatible = "google,extcon-usbc-cros-ec"; 824c66ec88fSEmmanuel Vadot google,usb-port-id = <0>; 825c66ec88fSEmmanuel Vadot }; 8265956d97fSEmmanuel Vadot 8275956d97fSEmmanuel Vadot cbas { 8285956d97fSEmmanuel Vadot compatible = "google,cros-cbas"; 8295956d97fSEmmanuel Vadot }; 830c66ec88fSEmmanuel Vadot }; 831c66ec88fSEmmanuel Vadot}; 832c66ec88fSEmmanuel Vadot 833c66ec88fSEmmanuel Vadot&spi3 { 834c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 835c66ec88fSEmmanuel Vadot pinctrl-0 = <&spi3_pins>; 836c66ec88fSEmmanuel Vadot mediatek,pad-select = <0>; 837c66ec88fSEmmanuel Vadot status = "disabled"; 838c66ec88fSEmmanuel Vadot}; 839c66ec88fSEmmanuel Vadot 840c66ec88fSEmmanuel Vadot&spi4 { 841c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 842c66ec88fSEmmanuel Vadot pinctrl-0 = <&spi4_pins>; 843c66ec88fSEmmanuel Vadot mediatek,pad-select = <0>; 844c66ec88fSEmmanuel Vadot status = "disabled"; 845c66ec88fSEmmanuel Vadot}; 846c66ec88fSEmmanuel Vadot 847c66ec88fSEmmanuel Vadot&spi5 { 848c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 849c66ec88fSEmmanuel Vadot pinctrl-0 = <&spi5_pins>; 850c66ec88fSEmmanuel Vadot mediatek,pad-select = <0>; 851c66ec88fSEmmanuel Vadot status = "disabled"; 852c66ec88fSEmmanuel Vadot}; 853c66ec88fSEmmanuel Vadot 854c66ec88fSEmmanuel Vadot&ssusb { 855c66ec88fSEmmanuel Vadot dr_mode = "host"; 856c66ec88fSEmmanuel Vadot wakeup-source; 857c66ec88fSEmmanuel Vadot vusb33-supply = <&mt6358_vusb_reg>; 858c66ec88fSEmmanuel Vadot status = "okay"; 859c66ec88fSEmmanuel Vadot}; 860c66ec88fSEmmanuel Vadot 8615956d97fSEmmanuel Vadot&thermal_zones { 8625956d97fSEmmanuel Vadot tboard1 { 8635956d97fSEmmanuel Vadot polling-delay = <1000>; /* milliseconds */ 8645956d97fSEmmanuel Vadot polling-delay-passive = <0>; /* milliseconds */ 8655956d97fSEmmanuel Vadot thermal-sensors = <&tboard_thermistor1>; 8665956d97fSEmmanuel Vadot }; 8675956d97fSEmmanuel Vadot 8685956d97fSEmmanuel Vadot tboard2 { 8695956d97fSEmmanuel Vadot polling-delay = <1000>; /* milliseconds */ 8705956d97fSEmmanuel Vadot polling-delay-passive = <0>; /* milliseconds */ 8715956d97fSEmmanuel Vadot thermal-sensors = <&tboard_thermistor2>; 8725956d97fSEmmanuel Vadot }; 8735956d97fSEmmanuel Vadot}; 8745956d97fSEmmanuel Vadot 875c66ec88fSEmmanuel Vadot&u3phy { 876c66ec88fSEmmanuel Vadot status = "okay"; 877c66ec88fSEmmanuel Vadot}; 878c66ec88fSEmmanuel Vadot 879c66ec88fSEmmanuel Vadot&uart0 { 880c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 881c66ec88fSEmmanuel Vadot pinctrl-0 = <&uart0_pins_default>; 882c66ec88fSEmmanuel Vadot status = "okay"; 883c66ec88fSEmmanuel Vadot}; 884c66ec88fSEmmanuel Vadot 885c66ec88fSEmmanuel Vadot&uart1 { 886c66ec88fSEmmanuel Vadot pinctrl-names = "default", "sleep"; 887c66ec88fSEmmanuel Vadot pinctrl-0 = <&uart1_pins_default>; 888c66ec88fSEmmanuel Vadot pinctrl-1 = <&uart1_pins_sleep>; 889c66ec88fSEmmanuel Vadot status = "okay"; 890c66ec88fSEmmanuel Vadot interrupts-extended = <&sysirq GIC_SPI 92 IRQ_TYPE_LEVEL_LOW>, 891c66ec88fSEmmanuel Vadot <&pio 121 IRQ_TYPE_EDGE_FALLING>; 892c66ec88fSEmmanuel Vadot 893c66ec88fSEmmanuel Vadot bluetooth: bluetooth { 894c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 895c66ec88fSEmmanuel Vadot pinctrl-0 = <&bt_pins>; 896c66ec88fSEmmanuel Vadot status = "okay"; 897c66ec88fSEmmanuel Vadot compatible = "qcom,qca6174-bt"; 898c66ec88fSEmmanuel Vadot enable-gpios = <&pio 120 0>; 899c66ec88fSEmmanuel Vadot clocks = <&clk32k>; 900c66ec88fSEmmanuel Vadot firmware-name = "nvm_00440302_i2s.bin"; 901c66ec88fSEmmanuel Vadot }; 902c66ec88fSEmmanuel Vadot}; 903c66ec88fSEmmanuel Vadot 904c66ec88fSEmmanuel Vadot&usb_host { 905c66ec88fSEmmanuel Vadot #address-cells = <1>; 906c66ec88fSEmmanuel Vadot #size-cells = <0>; 907c66ec88fSEmmanuel Vadot vusb33-supply = <&mt6358_vusb_reg>; 908c66ec88fSEmmanuel Vadot status = "okay"; 909c66ec88fSEmmanuel Vadot 910c66ec88fSEmmanuel Vadot hub@1 { 911c66ec88fSEmmanuel Vadot compatible = "usb5e3,610"; 912c66ec88fSEmmanuel Vadot reg = <1>; 913c66ec88fSEmmanuel Vadot }; 914c66ec88fSEmmanuel Vadot}; 915c66ec88fSEmmanuel Vadot 916c66ec88fSEmmanuel Vadot#include <arm/cros-ec-keyboard.dtsi> 917c66ec88fSEmmanuel Vadot#include <arm/cros-ec-sbs.dtsi> 918