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