1// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2/* 3 * Copyright (c) 2016 Andreas Färber 4 */ 5 6#include "meson-gxbb.dtsi" 7 8/ { 9 compatible = "tronsmart,vega-s95", "amlogic,meson-gxbb"; 10 11 aliases { 12 serial0 = &uart_AO; 13 ethernet0 = ðmac; 14 }; 15 16 chosen { 17 stdout-path = "serial0:115200n8"; 18 }; 19 20 leds { 21 compatible = "gpio-leds"; 22 23 blue { 24 label = "vega-s95:blue:on"; 25 gpios = <&gpio_ao GPIOAO_13 GPIO_ACTIVE_HIGH>; 26 default-state = "on"; 27 panic-indicator; 28 }; 29 }; 30 31 usb_pwr: regulator-usb-pwrs { 32 compatible = "regulator-fixed"; 33 34 regulator-name = "USB_PWR"; 35 36 regulator-min-microvolt = <5000000>; 37 regulator-max-microvolt = <5000000>; 38 39 gpio = <&gpio GPIODV_24 GPIO_ACTIVE_HIGH>; 40 enable-active-high; 41 }; 42 43 vddio_boot: regulator-vddio_boot { 44 compatible = "regulator-fixed"; 45 regulator-name = "VDDIO_BOOT"; 46 regulator-min-microvolt = <1800000>; 47 regulator-max-microvolt = <1800000>; 48 }; 49 50 vddao_3v3: regulator-vddao_3v3 { 51 compatible = "regulator-fixed"; 52 regulator-name = "VDDAO_3V3"; 53 regulator-min-microvolt = <3300000>; 54 regulator-max-microvolt = <3300000>; 55 }; 56 57 vcc_3v3: regulator-vcc_3v3 { 58 compatible = "regulator-fixed"; 59 regulator-name = "VCC_3V3"; 60 regulator-min-microvolt = <3300000>; 61 regulator-max-microvolt = <3300000>; 62 }; 63 64 emmc_pwrseq: emmc-pwrseq { 65 compatible = "mmc-pwrseq-emmc"; 66 reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>; 67 }; 68 69 wifi32k: wifi32k { 70 compatible = "pwm-clock"; 71 #clock-cells = <0>; 72 clock-frequency = <32768>; 73 pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */ 74 }; 75 76 hdmi-connector { 77 compatible = "hdmi-connector"; 78 type = "a"; 79 80 port { 81 hdmi_connector_in: endpoint { 82 remote-endpoint = <&hdmi_tx_tmds_out>; 83 }; 84 }; 85 }; 86 87 sdio_pwrseq: sdio-pwrseq { 88 compatible = "mmc-pwrseq-simple"; 89 reset-gpios = <&gpio GPIOX_6 GPIO_ACTIVE_LOW>, 90 <&gpio GPIOX_20 GPIO_ACTIVE_LOW>; 91 clocks = <&wifi32k>; 92 clock-names = "ext_clock"; 93 }; 94}; 95 96ðmac { 97 status = "okay"; 98 pinctrl-0 = <ð_rgmii_pins>; 99 pinctrl-names = "default"; 100 101 phy-handle = <ð_phy0>; 102 phy-mode = "rgmii"; 103 104 amlogic,tx-delay-ns = <2>; 105 106 snps,reset-gpio = <&gpio GPIOZ_14 0>; 107 snps,reset-delays-us = <0 10000 1000000>; 108 snps,reset-active-low; 109 110 mdio { 111 compatible = "snps,dwmac-mdio"; 112 #address-cells = <1>; 113 #size-cells = <0>; 114 115 eth_phy0: ethernet-phy@0 { 116 /* Realtek RTL8211F (0x001cc916) */ 117 reg = <0>; 118 }; 119 }; 120}; 121 122&hdmi_tx { 123 status = "okay"; 124 pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>; 125 pinctrl-names = "default"; 126}; 127 128&hdmi_tx_tmds_port { 129 hdmi_tx_tmds_out: endpoint { 130 remote-endpoint = <&hdmi_connector_in>; 131 }; 132}; 133 134&ir { 135 status = "okay"; 136 pinctrl-0 = <&remote_input_ao_pins>; 137 pinctrl-names = "default"; 138}; 139 140&pwm_ef { 141 status = "okay"; 142 pinctrl-0 = <&pwm_e_pins>; 143 pinctrl-names = "default"; 144 clocks = <&clkc CLKID_FCLK_DIV4>; 145 clock-names = "clkin0"; 146}; 147 148/* Wireless SDIO Module */ 149&sd_emmc_a { 150 status = "okay"; 151 pinctrl-0 = <&sdio_pins &sdio_irq_pins>; 152 pinctrl-1 = <&sdio_clk_gate_pins>; 153 pinctrl-names = "default", "clk-gate"; 154 #address-cells = <1>; 155 #size-cells = <0>; 156 157 bus-width = <4>; 158 cap-sd-highspeed; 159 max-frequency = <50000000>; 160 161 non-removable; 162 disable-wp; 163 164 mmc-pwrseq = <&sdio_pwrseq>; 165 166 vmmc-supply = <&vddao_3v3>; 167 vqmmc-supply = <&vddio_boot>; 168 169 brcmf: wifi@1 { 170 reg = <1>; 171 compatible = "brcm,bcm4329-fmac"; 172 }; 173}; 174 175/* SD card */ 176&sd_emmc_b { 177 status = "okay"; 178 pinctrl-0 = <&sdcard_pins>; 179 pinctrl-1 = <&sdcard_clk_gate_pins>; 180 pinctrl-names = "default", "clk-gate"; 181 182 bus-width = <4>; 183 cap-sd-highspeed; 184 max-frequency = <50000000>; 185 disable-wp; 186 187 cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>; 188 189 vmmc-supply = <&vddao_3v3>; 190 vqmmc-supply = <&vcc_3v3>; 191}; 192 193/* eMMC */ 194&sd_emmc_c { 195 status = "okay"; 196 pinctrl-0 = <&emmc_pins>, <&emmc_ds_pins>; 197 pinctrl-1 = <&emmc_clk_gate_pins>; 198 pinctrl-names = "default", "clk-gate"; 199 200 bus-width = <8>; 201 cap-mmc-highspeed; 202 max-frequency = <200000000>; 203 non-removable; 204 disable-wp; 205 mmc-ddr-1_8v; 206 mmc-hs200-1_8v; 207 208 mmc-pwrseq = <&emmc_pwrseq>; 209 vmmc-supply = <&vcc_3v3>; 210 vqmmc-supply = <&vddio_boot>; 211}; 212 213&uart_AO { 214 status = "okay"; 215 pinctrl-0 = <&uart_ao_a_pins>; 216 pinctrl-names = "default"; 217}; 218 219&usb0_phy { 220 status = "okay"; 221 phy-supply = <&usb_pwr>; 222}; 223 224&usb1_phy { 225 status = "okay"; 226}; 227 228&usb0 { 229 status = "okay"; 230}; 231 232&usb1 { 233 status = "okay"; 234}; 235