1c66ec88fSEmmanuel Vadot/* 2c66ec88fSEmmanuel Vadot * Copyright (c) 2017 MediaTek Inc. 3c66ec88fSEmmanuel Vadot * Author: Ming Huang <ming.huang@mediatek.com> 4c66ec88fSEmmanuel Vadot * Sean Wang <sean.wang@mediatek.com> 5c66ec88fSEmmanuel Vadot * 6c66ec88fSEmmanuel Vadot * SPDX-License-Identifier: (GPL-2.0 OR MIT) 7c66ec88fSEmmanuel Vadot */ 8c66ec88fSEmmanuel Vadot 9c66ec88fSEmmanuel Vadot/dts-v1/; 10c66ec88fSEmmanuel Vadot#include <dt-bindings/input/input.h> 11c66ec88fSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h> 12c66ec88fSEmmanuel Vadot 13c66ec88fSEmmanuel Vadot#include "mt7622.dtsi" 14c66ec88fSEmmanuel Vadot#include "mt6380.dtsi" 15c66ec88fSEmmanuel Vadot 16c66ec88fSEmmanuel Vadot/ { 17c66ec88fSEmmanuel Vadot model = "MediaTek MT7622 RFB1 board"; 18c66ec88fSEmmanuel Vadot compatible = "mediatek,mt7622-rfb1", "mediatek,mt7622"; 19c66ec88fSEmmanuel Vadot 20c66ec88fSEmmanuel Vadot aliases { 21c66ec88fSEmmanuel Vadot serial0 = &uart0; 22c66ec88fSEmmanuel Vadot }; 23c66ec88fSEmmanuel Vadot 24c66ec88fSEmmanuel Vadot chosen { 25c66ec88fSEmmanuel Vadot stdout-path = "serial0:115200n8"; 26c66ec88fSEmmanuel Vadot bootargs = "earlycon=uart8250,mmio32,0x11002000 swiotlb=512"; 27c66ec88fSEmmanuel Vadot }; 28c66ec88fSEmmanuel Vadot 29c66ec88fSEmmanuel Vadot cpus { 30c66ec88fSEmmanuel Vadot cpu@0 { 31c66ec88fSEmmanuel Vadot proc-supply = <&mt6380_vcpu_reg>; 32c66ec88fSEmmanuel Vadot sram-supply = <&mt6380_vm_reg>; 33c66ec88fSEmmanuel Vadot }; 34c66ec88fSEmmanuel Vadot 35c66ec88fSEmmanuel Vadot cpu@1 { 36c66ec88fSEmmanuel Vadot proc-supply = <&mt6380_vcpu_reg>; 37c66ec88fSEmmanuel Vadot sram-supply = <&mt6380_vm_reg>; 38c66ec88fSEmmanuel Vadot }; 39c66ec88fSEmmanuel Vadot }; 40c66ec88fSEmmanuel Vadot 41c66ec88fSEmmanuel Vadot gpio-keys { 42c66ec88fSEmmanuel Vadot compatible = "gpio-keys"; 43c66ec88fSEmmanuel Vadot poll-interval = <100>; 44c66ec88fSEmmanuel Vadot 45c66ec88fSEmmanuel Vadot factory { 46c66ec88fSEmmanuel Vadot label = "factory"; 47c66ec88fSEmmanuel Vadot linux,code = <BTN_0>; 48c66ec88fSEmmanuel Vadot gpios = <&pio 0 0>; 49c66ec88fSEmmanuel Vadot }; 50c66ec88fSEmmanuel Vadot 51c66ec88fSEmmanuel Vadot wps { 52c66ec88fSEmmanuel Vadot label = "wps"; 53c66ec88fSEmmanuel Vadot linux,code = <KEY_WPS_BUTTON>; 54c66ec88fSEmmanuel Vadot gpios = <&pio 102 0>; 55c66ec88fSEmmanuel Vadot }; 56c66ec88fSEmmanuel Vadot }; 57c66ec88fSEmmanuel Vadot 58c66ec88fSEmmanuel Vadot memory { 59c66ec88fSEmmanuel Vadot reg = <0 0x40000000 0 0x20000000>; 60c66ec88fSEmmanuel Vadot }; 61c66ec88fSEmmanuel Vadot 62c66ec88fSEmmanuel Vadot reg_1p8v: regulator-1p8v { 63c66ec88fSEmmanuel Vadot compatible = "regulator-fixed"; 64c66ec88fSEmmanuel Vadot regulator-name = "fixed-1.8V"; 65c66ec88fSEmmanuel Vadot regulator-min-microvolt = <1800000>; 66c66ec88fSEmmanuel Vadot regulator-max-microvolt = <1800000>; 67c66ec88fSEmmanuel Vadot regulator-always-on; 68c66ec88fSEmmanuel Vadot }; 69c66ec88fSEmmanuel Vadot 70c66ec88fSEmmanuel Vadot reg_3p3v: regulator-3p3v { 71c66ec88fSEmmanuel Vadot compatible = "regulator-fixed"; 72c66ec88fSEmmanuel Vadot regulator-name = "fixed-3.3V"; 73c66ec88fSEmmanuel Vadot regulator-min-microvolt = <3300000>; 74c66ec88fSEmmanuel Vadot regulator-max-microvolt = <3300000>; 75c66ec88fSEmmanuel Vadot regulator-boot-on; 76c66ec88fSEmmanuel Vadot regulator-always-on; 77c66ec88fSEmmanuel Vadot }; 78c66ec88fSEmmanuel Vadot 79c66ec88fSEmmanuel Vadot reg_5v: regulator-5v { 80c66ec88fSEmmanuel Vadot compatible = "regulator-fixed"; 81c66ec88fSEmmanuel Vadot regulator-name = "fixed-5V"; 82c66ec88fSEmmanuel Vadot regulator-min-microvolt = <5000000>; 83c66ec88fSEmmanuel Vadot regulator-max-microvolt = <5000000>; 84c66ec88fSEmmanuel Vadot regulator-boot-on; 85c66ec88fSEmmanuel Vadot regulator-always-on; 86c66ec88fSEmmanuel Vadot }; 87c66ec88fSEmmanuel Vadot}; 88c66ec88fSEmmanuel Vadot 89c66ec88fSEmmanuel Vadot&bch { 90c66ec88fSEmmanuel Vadot status = "disabled"; 91c66ec88fSEmmanuel Vadot}; 92c66ec88fSEmmanuel Vadot 93c66ec88fSEmmanuel Vadot&btif { 94c66ec88fSEmmanuel Vadot status = "okay"; 95c66ec88fSEmmanuel Vadot}; 96c66ec88fSEmmanuel Vadot 97c66ec88fSEmmanuel Vadot&cir { 98c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 99c66ec88fSEmmanuel Vadot pinctrl-0 = <&irrx_pins>; 100c66ec88fSEmmanuel Vadot status = "okay"; 101c66ec88fSEmmanuel Vadot}; 102c66ec88fSEmmanuel Vadot 103c66ec88fSEmmanuel Vadotð { 104c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 105c66ec88fSEmmanuel Vadot pinctrl-0 = <ð_pins>; 106c66ec88fSEmmanuel Vadot status = "okay"; 107c66ec88fSEmmanuel Vadot 1086be33864SEmmanuel Vadot gmac0: mac@0 { 109c66ec88fSEmmanuel Vadot compatible = "mediatek,eth-mac"; 1106be33864SEmmanuel Vadot reg = <0>; 1116be33864SEmmanuel Vadot phy-mode = "2500base-x"; 1126be33864SEmmanuel Vadot 1136be33864SEmmanuel Vadot fixed-link { 1146be33864SEmmanuel Vadot speed = <2500>; 1156be33864SEmmanuel Vadot full-duplex; 1166be33864SEmmanuel Vadot pause; 1176be33864SEmmanuel Vadot }; 118c66ec88fSEmmanuel Vadot }; 119c66ec88fSEmmanuel Vadot 120c66ec88fSEmmanuel Vadot mdio-bus { 121c66ec88fSEmmanuel Vadot #address-cells = <1>; 122c66ec88fSEmmanuel Vadot #size-cells = <0>; 123c66ec88fSEmmanuel Vadot 1246be33864SEmmanuel Vadot switch@0 { 1256be33864SEmmanuel Vadot compatible = "mediatek,mt7531"; 1266be33864SEmmanuel Vadot reg = <0>; 1276be33864SEmmanuel Vadot reset-gpios = <&pio 54 0>; 1286be33864SEmmanuel Vadot 1296be33864SEmmanuel Vadot ports { 1306be33864SEmmanuel Vadot #address-cells = <1>; 1316be33864SEmmanuel Vadot #size-cells = <0>; 1326be33864SEmmanuel Vadot 1336be33864SEmmanuel Vadot port@0 { 1346be33864SEmmanuel Vadot reg = <0>; 1356be33864SEmmanuel Vadot label = "lan0"; 136c66ec88fSEmmanuel Vadot }; 1376be33864SEmmanuel Vadot 1386be33864SEmmanuel Vadot port@1 { 1396be33864SEmmanuel Vadot reg = <1>; 1406be33864SEmmanuel Vadot label = "lan1"; 1416be33864SEmmanuel Vadot }; 1426be33864SEmmanuel Vadot 1436be33864SEmmanuel Vadot port@2 { 1446be33864SEmmanuel Vadot reg = <2>; 1456be33864SEmmanuel Vadot label = "lan2"; 1466be33864SEmmanuel Vadot }; 1476be33864SEmmanuel Vadot 1486be33864SEmmanuel Vadot port@3 { 1496be33864SEmmanuel Vadot reg = <3>; 1506be33864SEmmanuel Vadot label = "lan3"; 1516be33864SEmmanuel Vadot }; 1526be33864SEmmanuel Vadot 1536be33864SEmmanuel Vadot port@4 { 1546be33864SEmmanuel Vadot reg = <4>; 1556be33864SEmmanuel Vadot label = "wan"; 1566be33864SEmmanuel Vadot }; 1576be33864SEmmanuel Vadot 1586be33864SEmmanuel Vadot port@6 { 1596be33864SEmmanuel Vadot reg = <6>; 1606be33864SEmmanuel Vadot label = "cpu"; 1616be33864SEmmanuel Vadot ethernet = <&gmac0>; 1626be33864SEmmanuel Vadot phy-mode = "2500base-x"; 1636be33864SEmmanuel Vadot 1646be33864SEmmanuel Vadot fixed-link { 1656be33864SEmmanuel Vadot speed = <2500>; 1666be33864SEmmanuel Vadot full-duplex; 1676be33864SEmmanuel Vadot pause; 1686be33864SEmmanuel Vadot }; 1696be33864SEmmanuel Vadot }; 1706be33864SEmmanuel Vadot }; 1716be33864SEmmanuel Vadot }; 1726be33864SEmmanuel Vadot 173c66ec88fSEmmanuel Vadot }; 174c66ec88fSEmmanuel Vadot}; 175c66ec88fSEmmanuel Vadot 176c66ec88fSEmmanuel Vadot&i2c1 { 177c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 178c66ec88fSEmmanuel Vadot pinctrl-0 = <&i2c1_pins>; 179c66ec88fSEmmanuel Vadot status = "okay"; 180c66ec88fSEmmanuel Vadot}; 181c66ec88fSEmmanuel Vadot 182c66ec88fSEmmanuel Vadot&i2c2 { 183c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 184c66ec88fSEmmanuel Vadot pinctrl-0 = <&i2c2_pins>; 185c66ec88fSEmmanuel Vadot status = "okay"; 186c66ec88fSEmmanuel Vadot}; 187c66ec88fSEmmanuel Vadot 188c66ec88fSEmmanuel Vadot&mmc0 { 189c66ec88fSEmmanuel Vadot pinctrl-names = "default", "state_uhs"; 190c66ec88fSEmmanuel Vadot pinctrl-0 = <&emmc_pins_default>; 191c66ec88fSEmmanuel Vadot pinctrl-1 = <&emmc_pins_uhs>; 192c66ec88fSEmmanuel Vadot status = "okay"; 193c66ec88fSEmmanuel Vadot bus-width = <8>; 194c66ec88fSEmmanuel Vadot max-frequency = <50000000>; 195c66ec88fSEmmanuel Vadot cap-mmc-highspeed; 196c66ec88fSEmmanuel Vadot mmc-hs200-1_8v; 197c66ec88fSEmmanuel Vadot vmmc-supply = <®_3p3v>; 198c66ec88fSEmmanuel Vadot vqmmc-supply = <®_1p8v>; 199c66ec88fSEmmanuel Vadot assigned-clocks = <&topckgen CLK_TOP_MSDC30_0_SEL>; 200c66ec88fSEmmanuel Vadot assigned-clock-parents = <&topckgen CLK_TOP_UNIV48M>; 201c66ec88fSEmmanuel Vadot non-removable; 202c66ec88fSEmmanuel Vadot}; 203c66ec88fSEmmanuel Vadot 204c66ec88fSEmmanuel Vadot&mmc1 { 205c66ec88fSEmmanuel Vadot pinctrl-names = "default", "state_uhs"; 206c66ec88fSEmmanuel Vadot pinctrl-0 = <&sd0_pins_default>; 207c66ec88fSEmmanuel Vadot pinctrl-1 = <&sd0_pins_uhs>; 208c66ec88fSEmmanuel Vadot status = "okay"; 209c66ec88fSEmmanuel Vadot bus-width = <4>; 210c66ec88fSEmmanuel Vadot max-frequency = <50000000>; 211c66ec88fSEmmanuel Vadot cap-sd-highspeed; 212c66ec88fSEmmanuel Vadot r_smpl = <1>; 213c66ec88fSEmmanuel Vadot cd-gpios = <&pio 81 GPIO_ACTIVE_LOW>; 214c66ec88fSEmmanuel Vadot vmmc-supply = <®_3p3v>; 215c66ec88fSEmmanuel Vadot vqmmc-supply = <®_3p3v>; 216c66ec88fSEmmanuel Vadot assigned-clocks = <&topckgen CLK_TOP_MSDC30_1_SEL>; 217c66ec88fSEmmanuel Vadot assigned-clock-parents = <&topckgen CLK_TOP_UNIV48M>; 218c66ec88fSEmmanuel Vadot}; 219c66ec88fSEmmanuel Vadot 220c66ec88fSEmmanuel Vadot&nandc { 221c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 222c66ec88fSEmmanuel Vadot pinctrl-0 = <¶llel_nand_pins>; 223c66ec88fSEmmanuel Vadot status = "disabled"; 224c66ec88fSEmmanuel Vadot}; 225c66ec88fSEmmanuel Vadot 226c66ec88fSEmmanuel Vadot&nor_flash { 227c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 228c66ec88fSEmmanuel Vadot pinctrl-0 = <&spi_nor_pins>; 229c66ec88fSEmmanuel Vadot status = "disabled"; 230c66ec88fSEmmanuel Vadot 231c66ec88fSEmmanuel Vadot flash@0 { 232c66ec88fSEmmanuel Vadot compatible = "jedec,spi-nor"; 233c66ec88fSEmmanuel Vadot reg = <0>; 234c66ec88fSEmmanuel Vadot }; 235c66ec88fSEmmanuel Vadot}; 236c66ec88fSEmmanuel Vadot 237*8cc087a1SEmmanuel Vadot&pcie0 { 238c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 239c66ec88fSEmmanuel Vadot pinctrl-0 = <&pcie0_pins>; 240c66ec88fSEmmanuel Vadot status = "okay"; 241c66ec88fSEmmanuel Vadot}; 242c66ec88fSEmmanuel Vadot 243c66ec88fSEmmanuel Vadot&pio { 244c66ec88fSEmmanuel Vadot /* eMMC is shared pin with parallel NAND */ 245c66ec88fSEmmanuel Vadot emmc_pins_default: emmc-pins-default { 246c66ec88fSEmmanuel Vadot mux { 247c66ec88fSEmmanuel Vadot function = "emmc", "emmc_rst"; 248c66ec88fSEmmanuel Vadot groups = "emmc"; 249c66ec88fSEmmanuel Vadot }; 250c66ec88fSEmmanuel Vadot 251c66ec88fSEmmanuel Vadot /* "NDL0","NDL1","NDL2","NDL3","NDL4","NDL5","NDL6","NDL7", 252c66ec88fSEmmanuel Vadot * "NRB","NCLE" pins are used as DAT0,DAT1,DAT2,DAT3,DAT4, 253c66ec88fSEmmanuel Vadot * DAT5,DAT6,DAT7,CMD,CLK for eMMC respectively 254c66ec88fSEmmanuel Vadot */ 255c66ec88fSEmmanuel Vadot conf-cmd-dat { 256c66ec88fSEmmanuel Vadot pins = "NDL0", "NDL1", "NDL2", 257c66ec88fSEmmanuel Vadot "NDL3", "NDL4", "NDL5", 258c66ec88fSEmmanuel Vadot "NDL6", "NDL7", "NRB"; 259c66ec88fSEmmanuel Vadot input-enable; 260c66ec88fSEmmanuel Vadot bias-pull-up; 261c66ec88fSEmmanuel Vadot }; 262c66ec88fSEmmanuel Vadot 263c66ec88fSEmmanuel Vadot conf-clk { 264c66ec88fSEmmanuel Vadot pins = "NCLE"; 265c66ec88fSEmmanuel Vadot bias-pull-down; 266c66ec88fSEmmanuel Vadot }; 267c66ec88fSEmmanuel Vadot }; 268c66ec88fSEmmanuel Vadot 269c66ec88fSEmmanuel Vadot emmc_pins_uhs: emmc-pins-uhs { 270c66ec88fSEmmanuel Vadot mux { 271c66ec88fSEmmanuel Vadot function = "emmc"; 272c66ec88fSEmmanuel Vadot groups = "emmc"; 273c66ec88fSEmmanuel Vadot }; 274c66ec88fSEmmanuel Vadot 275c66ec88fSEmmanuel Vadot conf-cmd-dat { 276c66ec88fSEmmanuel Vadot pins = "NDL0", "NDL1", "NDL2", 277c66ec88fSEmmanuel Vadot "NDL3", "NDL4", "NDL5", 278c66ec88fSEmmanuel Vadot "NDL6", "NDL7", "NRB"; 279c66ec88fSEmmanuel Vadot input-enable; 280c66ec88fSEmmanuel Vadot drive-strength = <4>; 281c66ec88fSEmmanuel Vadot bias-pull-up; 282c66ec88fSEmmanuel Vadot }; 283c66ec88fSEmmanuel Vadot 284c66ec88fSEmmanuel Vadot conf-clk { 285c66ec88fSEmmanuel Vadot pins = "NCLE"; 286c66ec88fSEmmanuel Vadot drive-strength = <4>; 287c66ec88fSEmmanuel Vadot bias-pull-down; 288c66ec88fSEmmanuel Vadot }; 289c66ec88fSEmmanuel Vadot }; 290c66ec88fSEmmanuel Vadot 291c66ec88fSEmmanuel Vadot eth_pins: eth-pins { 292c66ec88fSEmmanuel Vadot mux { 293c66ec88fSEmmanuel Vadot function = "eth"; 294c66ec88fSEmmanuel Vadot groups = "mdc_mdio", "rgmii_via_gmac2"; 295c66ec88fSEmmanuel Vadot }; 296c66ec88fSEmmanuel Vadot }; 297c66ec88fSEmmanuel Vadot 298c66ec88fSEmmanuel Vadot i2c1_pins: i2c1-pins { 299c66ec88fSEmmanuel Vadot mux { 300c66ec88fSEmmanuel Vadot function = "i2c"; 301c66ec88fSEmmanuel Vadot groups = "i2c1_0"; 302c66ec88fSEmmanuel Vadot }; 303c66ec88fSEmmanuel Vadot }; 304c66ec88fSEmmanuel Vadot 305c66ec88fSEmmanuel Vadot i2c2_pins: i2c2-pins { 306c66ec88fSEmmanuel Vadot mux { 307c66ec88fSEmmanuel Vadot function = "i2c"; 308c66ec88fSEmmanuel Vadot groups = "i2c2_0"; 309c66ec88fSEmmanuel Vadot }; 310c66ec88fSEmmanuel Vadot }; 311c66ec88fSEmmanuel Vadot 312c66ec88fSEmmanuel Vadot i2s1_pins: i2s1-pins { 313c66ec88fSEmmanuel Vadot mux { 314c66ec88fSEmmanuel Vadot function = "i2s"; 315c66ec88fSEmmanuel Vadot groups = "i2s_out_mclk_bclk_ws", 316c66ec88fSEmmanuel Vadot "i2s1_in_data", 317c66ec88fSEmmanuel Vadot "i2s1_out_data"; 318c66ec88fSEmmanuel Vadot }; 319c66ec88fSEmmanuel Vadot 320c66ec88fSEmmanuel Vadot conf { 321c66ec88fSEmmanuel Vadot pins = "I2S1_IN", "I2S1_OUT", "I2S_BCLK", 322c66ec88fSEmmanuel Vadot "I2S_WS", "I2S_MCLK"; 323c66ec88fSEmmanuel Vadot drive-strength = <12>; 324c66ec88fSEmmanuel Vadot bias-pull-down; 325c66ec88fSEmmanuel Vadot }; 326c66ec88fSEmmanuel Vadot }; 327c66ec88fSEmmanuel Vadot 328c66ec88fSEmmanuel Vadot irrx_pins: irrx-pins { 329c66ec88fSEmmanuel Vadot mux { 330c66ec88fSEmmanuel Vadot function = "ir"; 331c66ec88fSEmmanuel Vadot groups = "ir_1_rx"; 332c66ec88fSEmmanuel Vadot }; 333c66ec88fSEmmanuel Vadot }; 334c66ec88fSEmmanuel Vadot 335c66ec88fSEmmanuel Vadot irtx_pins: irtx-pins { 336c66ec88fSEmmanuel Vadot mux { 337c66ec88fSEmmanuel Vadot function = "ir"; 338c66ec88fSEmmanuel Vadot groups = "ir_1_tx"; 339c66ec88fSEmmanuel Vadot }; 340c66ec88fSEmmanuel Vadot }; 341c66ec88fSEmmanuel Vadot 342c66ec88fSEmmanuel Vadot /* Parallel nand is shared pin with eMMC */ 343c66ec88fSEmmanuel Vadot parallel_nand_pins: parallel-nand-pins { 344c66ec88fSEmmanuel Vadot mux { 345c66ec88fSEmmanuel Vadot function = "flash"; 346c66ec88fSEmmanuel Vadot groups = "par_nand"; 347c66ec88fSEmmanuel Vadot }; 348c66ec88fSEmmanuel Vadot }; 349c66ec88fSEmmanuel Vadot 350c66ec88fSEmmanuel Vadot pcie0_pins: pcie0-pins { 351c66ec88fSEmmanuel Vadot mux { 352c66ec88fSEmmanuel Vadot function = "pcie"; 353c66ec88fSEmmanuel Vadot groups = "pcie0_pad_perst", 354c66ec88fSEmmanuel Vadot "pcie0_1_waken", 355c66ec88fSEmmanuel Vadot "pcie0_1_clkreq"; 356c66ec88fSEmmanuel Vadot }; 357c66ec88fSEmmanuel Vadot }; 358c66ec88fSEmmanuel Vadot 359c66ec88fSEmmanuel Vadot pcie1_pins: pcie1-pins { 360c66ec88fSEmmanuel Vadot mux { 361c66ec88fSEmmanuel Vadot function = "pcie"; 362c66ec88fSEmmanuel Vadot groups = "pcie1_pad_perst", 363c66ec88fSEmmanuel Vadot "pcie1_0_waken", 364c66ec88fSEmmanuel Vadot "pcie1_0_clkreq"; 365c66ec88fSEmmanuel Vadot }; 366c66ec88fSEmmanuel Vadot }; 367c66ec88fSEmmanuel Vadot 368c66ec88fSEmmanuel Vadot pmic_bus_pins: pmic-bus-pins { 369c66ec88fSEmmanuel Vadot mux { 370c66ec88fSEmmanuel Vadot function = "pmic"; 371c66ec88fSEmmanuel Vadot groups = "pmic_bus"; 372c66ec88fSEmmanuel Vadot }; 373c66ec88fSEmmanuel Vadot }; 374c66ec88fSEmmanuel Vadot 375c66ec88fSEmmanuel Vadot pwm7_pins: pwm1-2-pins { 376c66ec88fSEmmanuel Vadot mux { 377c66ec88fSEmmanuel Vadot function = "pwm"; 378c66ec88fSEmmanuel Vadot groups = "pwm_ch7_2"; 379c66ec88fSEmmanuel Vadot }; 380c66ec88fSEmmanuel Vadot }; 381c66ec88fSEmmanuel Vadot 382c66ec88fSEmmanuel Vadot wled_pins: wled-pins { 383c66ec88fSEmmanuel Vadot mux { 384c66ec88fSEmmanuel Vadot function = "led"; 385c66ec88fSEmmanuel Vadot groups = "wled"; 386c66ec88fSEmmanuel Vadot }; 387c66ec88fSEmmanuel Vadot }; 388c66ec88fSEmmanuel Vadot 389c66ec88fSEmmanuel Vadot sd0_pins_default: sd0-pins-default { 390c66ec88fSEmmanuel Vadot mux { 391c66ec88fSEmmanuel Vadot function = "sd"; 392c66ec88fSEmmanuel Vadot groups = "sd_0"; 393c66ec88fSEmmanuel Vadot }; 394c66ec88fSEmmanuel Vadot 395c66ec88fSEmmanuel Vadot /* "I2S2_OUT, "I2S4_IN"", "I2S3_IN", "I2S2_IN", 396c66ec88fSEmmanuel Vadot * "I2S4_OUT", "I2S3_OUT" are used as DAT0, DAT1, 397c66ec88fSEmmanuel Vadot * DAT2, DAT3, CMD, CLK for SD respectively. 398c66ec88fSEmmanuel Vadot */ 399c66ec88fSEmmanuel Vadot conf-cmd-data { 400c66ec88fSEmmanuel Vadot pins = "I2S2_OUT", "I2S4_IN", "I2S3_IN", 401c66ec88fSEmmanuel Vadot "I2S2_IN","I2S4_OUT"; 402c66ec88fSEmmanuel Vadot input-enable; 403c66ec88fSEmmanuel Vadot drive-strength = <8>; 404c66ec88fSEmmanuel Vadot bias-pull-up; 405c66ec88fSEmmanuel Vadot }; 406c66ec88fSEmmanuel Vadot conf-clk { 407c66ec88fSEmmanuel Vadot pins = "I2S3_OUT"; 408c66ec88fSEmmanuel Vadot drive-strength = <12>; 409c66ec88fSEmmanuel Vadot bias-pull-down; 410c66ec88fSEmmanuel Vadot }; 411c66ec88fSEmmanuel Vadot conf-cd { 412c66ec88fSEmmanuel Vadot pins = "TXD3"; 413c66ec88fSEmmanuel Vadot bias-pull-up; 414c66ec88fSEmmanuel Vadot }; 415c66ec88fSEmmanuel Vadot }; 416c66ec88fSEmmanuel Vadot 417c66ec88fSEmmanuel Vadot sd0_pins_uhs: sd0-pins-uhs { 418c66ec88fSEmmanuel Vadot mux { 419c66ec88fSEmmanuel Vadot function = "sd"; 420c66ec88fSEmmanuel Vadot groups = "sd_0"; 421c66ec88fSEmmanuel Vadot }; 422c66ec88fSEmmanuel Vadot 423c66ec88fSEmmanuel Vadot conf-cmd-data { 424c66ec88fSEmmanuel Vadot pins = "I2S2_OUT", "I2S4_IN", "I2S3_IN", 425c66ec88fSEmmanuel Vadot "I2S2_IN","I2S4_OUT"; 426c66ec88fSEmmanuel Vadot input-enable; 427c66ec88fSEmmanuel Vadot bias-pull-up; 428c66ec88fSEmmanuel Vadot }; 429c66ec88fSEmmanuel Vadot 430c66ec88fSEmmanuel Vadot conf-clk { 431c66ec88fSEmmanuel Vadot pins = "I2S3_OUT"; 432c66ec88fSEmmanuel Vadot bias-pull-down; 433c66ec88fSEmmanuel Vadot }; 434c66ec88fSEmmanuel Vadot }; 435c66ec88fSEmmanuel Vadot 436c66ec88fSEmmanuel Vadot /* Serial NAND is shared pin with SPI-NOR */ 437c66ec88fSEmmanuel Vadot serial_nand_pins: serial-nand-pins { 438c66ec88fSEmmanuel Vadot mux { 439c66ec88fSEmmanuel Vadot function = "flash"; 440c66ec88fSEmmanuel Vadot groups = "snfi"; 441c66ec88fSEmmanuel Vadot }; 442c66ec88fSEmmanuel Vadot }; 443c66ec88fSEmmanuel Vadot 444c66ec88fSEmmanuel Vadot spic0_pins: spic0-pins { 445c66ec88fSEmmanuel Vadot mux { 446c66ec88fSEmmanuel Vadot function = "spi"; 447c66ec88fSEmmanuel Vadot groups = "spic0_0"; 448c66ec88fSEmmanuel Vadot }; 449c66ec88fSEmmanuel Vadot }; 450c66ec88fSEmmanuel Vadot 451c66ec88fSEmmanuel Vadot spic1_pins: spic1-pins { 452c66ec88fSEmmanuel Vadot mux { 453c66ec88fSEmmanuel Vadot function = "spi"; 454c66ec88fSEmmanuel Vadot groups = "spic1_0"; 455c66ec88fSEmmanuel Vadot }; 456c66ec88fSEmmanuel Vadot }; 457c66ec88fSEmmanuel Vadot 458c66ec88fSEmmanuel Vadot /* SPI-NOR is shared pin with serial NAND */ 459c66ec88fSEmmanuel Vadot spi_nor_pins: spi-nor-pins { 460c66ec88fSEmmanuel Vadot mux { 461c66ec88fSEmmanuel Vadot function = "flash"; 462c66ec88fSEmmanuel Vadot groups = "spi_nor"; 463c66ec88fSEmmanuel Vadot }; 464c66ec88fSEmmanuel Vadot }; 465c66ec88fSEmmanuel Vadot 466c66ec88fSEmmanuel Vadot /* serial NAND is shared pin with SPI-NOR */ 467c66ec88fSEmmanuel Vadot serial_nand_pins: serial-nand-pins { 468c66ec88fSEmmanuel Vadot mux { 469c66ec88fSEmmanuel Vadot function = "flash"; 470c66ec88fSEmmanuel Vadot groups = "snfi"; 471c66ec88fSEmmanuel Vadot }; 472c66ec88fSEmmanuel Vadot }; 473c66ec88fSEmmanuel Vadot 474c66ec88fSEmmanuel Vadot uart0_pins: uart0-pins { 475c66ec88fSEmmanuel Vadot mux { 476c66ec88fSEmmanuel Vadot function = "uart"; 477c66ec88fSEmmanuel Vadot groups = "uart0_0_tx_rx" ; 478c66ec88fSEmmanuel Vadot }; 479c66ec88fSEmmanuel Vadot }; 480c66ec88fSEmmanuel Vadot 481c66ec88fSEmmanuel Vadot uart2_pins: uart2-pins { 482c66ec88fSEmmanuel Vadot mux { 483c66ec88fSEmmanuel Vadot function = "uart"; 484c66ec88fSEmmanuel Vadot groups = "uart2_1_tx_rx" ; 485c66ec88fSEmmanuel Vadot }; 486c66ec88fSEmmanuel Vadot }; 487c66ec88fSEmmanuel Vadot 488c66ec88fSEmmanuel Vadot watchdog_pins: watchdog-pins { 489c66ec88fSEmmanuel Vadot mux { 490c66ec88fSEmmanuel Vadot function = "watchdog"; 491c66ec88fSEmmanuel Vadot groups = "watchdog"; 492c66ec88fSEmmanuel Vadot }; 493c66ec88fSEmmanuel Vadot }; 4942eb4d8dcSEmmanuel Vadot 4952eb4d8dcSEmmanuel Vadot wmac_pins: wmac-pins { 4962eb4d8dcSEmmanuel Vadot mux { 4972eb4d8dcSEmmanuel Vadot function = "antsel"; 4982eb4d8dcSEmmanuel Vadot groups = "antsel0", "antsel1", "antsel2", "antsel3", 4992eb4d8dcSEmmanuel Vadot "antsel4", "antsel5", "antsel6", "antsel7", 5002eb4d8dcSEmmanuel Vadot "antsel8", "antsel9", "antsel12", "antsel13", 5012eb4d8dcSEmmanuel Vadot "antsel14", "antsel15", "antsel16", "antsel17"; 5022eb4d8dcSEmmanuel Vadot }; 5032eb4d8dcSEmmanuel Vadot }; 504c66ec88fSEmmanuel Vadot}; 505c66ec88fSEmmanuel Vadot 506c66ec88fSEmmanuel Vadot&pwm { 507c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 508c66ec88fSEmmanuel Vadot pinctrl-0 = <&pwm7_pins>; 509c66ec88fSEmmanuel Vadot status = "okay"; 510c66ec88fSEmmanuel Vadot}; 511c66ec88fSEmmanuel Vadot 512c66ec88fSEmmanuel Vadot&pwrap { 513c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 514c66ec88fSEmmanuel Vadot pinctrl-0 = <&pmic_bus_pins>; 515c66ec88fSEmmanuel Vadot 516c66ec88fSEmmanuel Vadot status = "okay"; 517c66ec88fSEmmanuel Vadot}; 518c66ec88fSEmmanuel Vadot 519c66ec88fSEmmanuel Vadot&sata { 520c66ec88fSEmmanuel Vadot status = "okay"; 521c66ec88fSEmmanuel Vadot}; 522c66ec88fSEmmanuel Vadot 523c66ec88fSEmmanuel Vadot&sata_phy { 524c66ec88fSEmmanuel Vadot status = "okay"; 525c66ec88fSEmmanuel Vadot}; 526c66ec88fSEmmanuel Vadot 527c66ec88fSEmmanuel Vadot&spi0 { 528c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 529c66ec88fSEmmanuel Vadot pinctrl-0 = <&spic0_pins>; 530c66ec88fSEmmanuel Vadot status = "okay"; 531c66ec88fSEmmanuel Vadot}; 532c66ec88fSEmmanuel Vadot 533c66ec88fSEmmanuel Vadot&spi1 { 534c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 535c66ec88fSEmmanuel Vadot pinctrl-0 = <&spic1_pins>; 536c66ec88fSEmmanuel Vadot status = "okay"; 537c66ec88fSEmmanuel Vadot}; 538c66ec88fSEmmanuel Vadot 539c66ec88fSEmmanuel Vadot&ssusb { 540c66ec88fSEmmanuel Vadot vusb33-supply = <®_3p3v>; 541c66ec88fSEmmanuel Vadot vbus-supply = <®_5v>; 542c66ec88fSEmmanuel Vadot status = "okay"; 543c66ec88fSEmmanuel Vadot}; 544c66ec88fSEmmanuel Vadot 545c66ec88fSEmmanuel Vadot&u3phy { 546c66ec88fSEmmanuel Vadot status = "okay"; 547c66ec88fSEmmanuel Vadot}; 548c66ec88fSEmmanuel Vadot 549c66ec88fSEmmanuel Vadot&uart0 { 550c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 551c66ec88fSEmmanuel Vadot pinctrl-0 = <&uart0_pins>; 552c66ec88fSEmmanuel Vadot status = "okay"; 553c66ec88fSEmmanuel Vadot}; 554c66ec88fSEmmanuel Vadot 555c66ec88fSEmmanuel Vadot&uart2 { 556c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 557c66ec88fSEmmanuel Vadot pinctrl-0 = <&uart2_pins>; 558c66ec88fSEmmanuel Vadot status = "okay"; 559c66ec88fSEmmanuel Vadot}; 560c66ec88fSEmmanuel Vadot 561c66ec88fSEmmanuel Vadot&watchdog { 562c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 563c66ec88fSEmmanuel Vadot pinctrl-0 = <&watchdog_pins>; 564c66ec88fSEmmanuel Vadot status = "okay"; 565c66ec88fSEmmanuel Vadot}; 566c66ec88fSEmmanuel Vadot 567c66ec88fSEmmanuel Vadot&wmac { 5682eb4d8dcSEmmanuel Vadot pinctrl-names = "default"; 5692eb4d8dcSEmmanuel Vadot pinctrl-0 = <&wmac_pins>; 570c66ec88fSEmmanuel Vadot status = "okay"; 571c66ec88fSEmmanuel Vadot}; 572