15def4c47SEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 25def4c47SEmmanuel Vadot/* 35def4c47SEmmanuel Vadot * Copyright (c) 2020 Engicam srl 45def4c47SEmmanuel Vadot * Copyright (c) 2020 Amarula Solutions 55def4c47SEmmanuel Vadot * Copyright (c) 2020 Amarula Solutions(India) 65def4c47SEmmanuel Vadot */ 75def4c47SEmmanuel Vadot 85def4c47SEmmanuel Vadot/ { 92eb4d8dcSEmmanuel Vadot aliases { 10*8d13bc63SEmmanuel Vadot ethernet0 = &gmac; 112eb4d8dcSEmmanuel Vadot mmc1 = &sdmmc; 122eb4d8dcSEmmanuel Vadot mmc2 = &sdio; 132eb4d8dcSEmmanuel Vadot }; 142eb4d8dcSEmmanuel Vadot 155def4c47SEmmanuel Vadot vcc5v0_sys: vcc5v0-sys { 165def4c47SEmmanuel Vadot compatible = "regulator-fixed"; 175def4c47SEmmanuel Vadot regulator-name = "vcc5v0_sys"; /* +5V */ 185def4c47SEmmanuel Vadot regulator-always-on; 195def4c47SEmmanuel Vadot regulator-boot-on; 205def4c47SEmmanuel Vadot regulator-min-microvolt = <5000000>; 215def4c47SEmmanuel Vadot regulator-max-microvolt = <5000000>; 225def4c47SEmmanuel Vadot }; 235def4c47SEmmanuel Vadot 245def4c47SEmmanuel Vadot sdio_pwrseq: sdio-pwrseq { 255def4c47SEmmanuel Vadot compatible = "mmc-pwrseq-simple"; 265def4c47SEmmanuel Vadot clocks = <&xin32k>; 275def4c47SEmmanuel Vadot clock-names = "ext_clock"; 285def4c47SEmmanuel Vadot post-power-on-delay-ms = <80>; 295def4c47SEmmanuel Vadot pinctrl-names = "default"; 305def4c47SEmmanuel Vadot pinctrl-0 = <&wifi_enable_h>; 315def4c47SEmmanuel Vadot }; 325def4c47SEmmanuel Vadot 335def4c47SEmmanuel Vadot vcc3v3_btreg: vcc3v3-btreg { 345def4c47SEmmanuel Vadot compatible = "regulator-gpio"; 355def4c47SEmmanuel Vadot enable-active-high; 365def4c47SEmmanuel Vadot pinctrl-names = "default"; 375def4c47SEmmanuel Vadot pinctrl-0 = <&bt_enable_h>; 385def4c47SEmmanuel Vadot regulator-name = "btreg-gpio-supply"; 395def4c47SEmmanuel Vadot regulator-min-microvolt = <3300000>; 405def4c47SEmmanuel Vadot regulator-max-microvolt = <3300000>; 415def4c47SEmmanuel Vadot regulator-always-on; 425def4c47SEmmanuel Vadot states = <3300000 0x0>; 435def4c47SEmmanuel Vadot }; 445def4c47SEmmanuel Vadot 455def4c47SEmmanuel Vadot vcc3v3_rf_aux_mod: vcc3v3-rf-aux-mod { 465def4c47SEmmanuel Vadot compatible = "regulator-fixed"; 475def4c47SEmmanuel Vadot regulator-name = "vcc3v3_rf_aux_mod"; 485def4c47SEmmanuel Vadot regulator-min-microvolt = <3300000>; 495def4c47SEmmanuel Vadot regulator-max-microvolt = <3300000>; 505def4c47SEmmanuel Vadot regulator-always-on; 515def4c47SEmmanuel Vadot regulator-boot-on; 525def4c47SEmmanuel Vadot vin-supply = <&vcc5v0_sys>; 535def4c47SEmmanuel Vadot }; 545def4c47SEmmanuel Vadot 555def4c47SEmmanuel Vadot xin32k: xin32k { 565def4c47SEmmanuel Vadot compatible = "fixed-clock"; 575def4c47SEmmanuel Vadot #clock-cells = <0>; 585def4c47SEmmanuel Vadot clock-frequency = <32768>; 595def4c47SEmmanuel Vadot clock-output-names = "xin32k"; 605def4c47SEmmanuel Vadot }; 615def4c47SEmmanuel Vadot}; 625def4c47SEmmanuel Vadot 635def4c47SEmmanuel Vadot&sdio { 645def4c47SEmmanuel Vadot #address-cells = <1>; 655def4c47SEmmanuel Vadot #size-cells = <0>; 665def4c47SEmmanuel Vadot bus-width = <4>; 675def4c47SEmmanuel Vadot clock-frequency = <50000000>; 685def4c47SEmmanuel Vadot cap-sdio-irq; 695def4c47SEmmanuel Vadot cap-sd-highspeed; 705def4c47SEmmanuel Vadot keep-power-in-suspend; 715def4c47SEmmanuel Vadot mmc-pwrseq = <&sdio_pwrseq>; 725def4c47SEmmanuel Vadot non-removable; 735def4c47SEmmanuel Vadot sd-uhs-sdr104; 745def4c47SEmmanuel Vadot status = "okay"; 755def4c47SEmmanuel Vadot 765def4c47SEmmanuel Vadot brcmf: wifi@1 { 775def4c47SEmmanuel Vadot compatible = "brcm,bcm4329-fmac"; 785def4c47SEmmanuel Vadot reg = <1>; 795def4c47SEmmanuel Vadot }; 805def4c47SEmmanuel Vadot}; 815def4c47SEmmanuel Vadot 825def4c47SEmmanuel Vadot&gmac { 835def4c47SEmmanuel Vadot clock_in_out = "output"; 845def4c47SEmmanuel Vadot phy-supply = <&vcc_3v3>; /* +3V3_SOM */ 855def4c47SEmmanuel Vadot snps,reset-active-low; 865def4c47SEmmanuel Vadot snps,reset-delays-us = <0 50000 50000>; 875def4c47SEmmanuel Vadot snps,reset-gpio = <&gpio2 RK_PB5 GPIO_ACTIVE_HIGH>; 885def4c47SEmmanuel Vadot status = "okay"; 895def4c47SEmmanuel Vadot}; 905def4c47SEmmanuel Vadot 915def4c47SEmmanuel Vadot&pwm0 { 925def4c47SEmmanuel Vadot status = "okay"; 935def4c47SEmmanuel Vadot}; 945def4c47SEmmanuel Vadot 955def4c47SEmmanuel Vadot&sdmmc { 965def4c47SEmmanuel Vadot cap-sd-highspeed; 975def4c47SEmmanuel Vadot card-detect-delay = <800>; 985def4c47SEmmanuel Vadot vmmc-supply = <&vcc_3v3>; /* +3V3_SOM */ 995def4c47SEmmanuel Vadot vqmmc-supply = <&vcc_3v3>; 1005def4c47SEmmanuel Vadot status = "okay"; 1015def4c47SEmmanuel Vadot}; 1025def4c47SEmmanuel Vadot 1035def4c47SEmmanuel Vadot&u2phy { 1045def4c47SEmmanuel Vadot status = "okay"; 1055def4c47SEmmanuel Vadot 1065def4c47SEmmanuel Vadot u2phy_host: host-port { 1075def4c47SEmmanuel Vadot status = "okay"; 1085def4c47SEmmanuel Vadot }; 1095def4c47SEmmanuel Vadot 1105def4c47SEmmanuel Vadot u2phy_otg: otg-port { 1115def4c47SEmmanuel Vadot status = "okay"; 1125def4c47SEmmanuel Vadot }; 1135def4c47SEmmanuel Vadot}; 1145def4c47SEmmanuel Vadot 1155def4c47SEmmanuel Vadot&uart2 { 1165def4c47SEmmanuel Vadot pinctrl-0 = <&uart2m1_xfer>; 1175def4c47SEmmanuel Vadot status = "okay"; 1185def4c47SEmmanuel Vadot}; 1195def4c47SEmmanuel Vadot 1205def4c47SEmmanuel Vadot&usb20_otg { 1215def4c47SEmmanuel Vadot status = "okay"; 1225def4c47SEmmanuel Vadot}; 1235def4c47SEmmanuel Vadot 1245def4c47SEmmanuel Vadot&usb_host0_ehci { 1255def4c47SEmmanuel Vadot status = "okay"; 1265def4c47SEmmanuel Vadot}; 1275def4c47SEmmanuel Vadot 1285def4c47SEmmanuel Vadot&usb_host0_ohci { 1295def4c47SEmmanuel Vadot status = "okay"; 1305def4c47SEmmanuel Vadot}; 131