0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003 * Copyright (c) 2020 Engicam srl
0004 * Copyright (c) 2020 Amarula Solutions
0005 * Copyright (c) 2020 Amarula Solutions(India)
0006 */
0007
0008 / {
0009 aliases {
0010 mmc1 = &sdmmc;
0011 mmc2 = &sdio;
0012 };
0013
0014 vcc5v0_sys: vcc5v0-sys {
0015 compatible = "regulator-fixed";
0016 regulator-name = "vcc5v0_sys"; /* +5V */
0017 regulator-always-on;
0018 regulator-boot-on;
0019 regulator-min-microvolt = <5000000>;
0020 regulator-max-microvolt = <5000000>;
0021 };
0022
0023 sdio_pwrseq: sdio-pwrseq {
0024 compatible = "mmc-pwrseq-simple";
0025 clocks = <&xin32k>;
0026 clock-names = "ext_clock";
0027 post-power-on-delay-ms = <80>;
0028 pinctrl-names = "default";
0029 pinctrl-0 = <&wifi_enable_h>;
0030 };
0031
0032 vcc3v3_btreg: vcc3v3-btreg {
0033 compatible = "regulator-gpio";
0034 enable-active-high;
0035 pinctrl-names = "default";
0036 pinctrl-0 = <&bt_enable_h>;
0037 regulator-name = "btreg-gpio-supply";
0038 regulator-min-microvolt = <3300000>;
0039 regulator-max-microvolt = <3300000>;
0040 regulator-always-on;
0041 states = <3300000 0x0>;
0042 };
0043
0044 vcc3v3_rf_aux_mod: vcc3v3-rf-aux-mod {
0045 compatible = "regulator-fixed";
0046 regulator-name = "vcc3v3_rf_aux_mod";
0047 regulator-min-microvolt = <3300000>;
0048 regulator-max-microvolt = <3300000>;
0049 regulator-always-on;
0050 regulator-boot-on;
0051 vin-supply = <&vcc5v0_sys>;
0052 };
0053
0054 xin32k: xin32k {
0055 compatible = "fixed-clock";
0056 #clock-cells = <0>;
0057 clock-frequency = <32768>;
0058 clock-output-names = "xin32k";
0059 };
0060 };
0061
0062 &sdio {
0063 #address-cells = <1>;
0064 #size-cells = <0>;
0065 bus-width = <4>;
0066 clock-frequency = <50000000>;
0067 cap-sdio-irq;
0068 cap-sd-highspeed;
0069 keep-power-in-suspend;
0070 mmc-pwrseq = <&sdio_pwrseq>;
0071 non-removable;
0072 sd-uhs-sdr104;
0073 status = "okay";
0074
0075 brcmf: wifi@1 {
0076 compatible = "brcm,bcm4329-fmac";
0077 reg = <1>;
0078 };
0079 };
0080
0081 &gmac {
0082 clock_in_out = "output";
0083 phy-supply = <&vcc_3v3>; /* +3V3_SOM */
0084 snps,reset-active-low;
0085 snps,reset-delays-us = <0 50000 50000>;
0086 snps,reset-gpio = <&gpio2 RK_PB5 GPIO_ACTIVE_HIGH>;
0087 status = "okay";
0088 };
0089
0090 &pwm0 {
0091 status = "okay";
0092 };
0093
0094 &sdmmc {
0095 cap-sd-highspeed;
0096 card-detect-delay = <800>;
0097 vmmc-supply = <&vcc_3v3>; /* +3V3_SOM */
0098 vqmmc-supply = <&vcc_3v3>;
0099 status = "okay";
0100 };
0101
0102 &u2phy {
0103 status = "okay";
0104
0105 u2phy_host: host-port {
0106 status = "okay";
0107 };
0108
0109 u2phy_otg: otg-port {
0110 status = "okay";
0111 };
0112 };
0113
0114 &uart2 {
0115 pinctrl-0 = <&uart2m1_xfer>;
0116 status = "okay";
0117 };
0118
0119 &usb20_otg {
0120 status = "okay";
0121 };
0122
0123 &usb_host0_ehci {
0124 status = "okay";
0125 };
0126
0127 &usb_host0_ohci {
0128 status = "okay";
0129 };