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 vddio_ao18: regulator-vddio_ao18 { 58 compatible = "regulator-fixed"; 59 regulator-name = "VDDIO_AO18"; 60 regulator-min-microvolt = <1800000>; 61 regulator-max-microvolt = <1800000>; 62 }; 63 64 vcc_3v3: regulator-vcc_3v3 { 65 compatible = "regulator-fixed"; 66 regulator-name = "VCC_3V3"; 67 regulator-min-microvolt = <3300000>; 68 regulator-max-microvolt = <3300000>; 69 }; 70 71 emmc_pwrseq: emmc-pwrseq { 72 compatible = "mmc-pwrseq-emmc"; 73 reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>; 74 }; 75 76 wifi32k: wifi32k { 77 compatible = "pwm-clock"; 78 #clock-cells = <0>; 79 clock-frequency = <32768>; 80 pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */ 81 }; 82 83 hdmi-connector { 84 compatible = "hdmi-connector"; 85 type = "a"; 86 87 port { 88 hdmi_connector_in: endpoint { 89 remote-endpoint = <&hdmi_tx_tmds_out>; 90 }; 91 }; 92 }; 93 94 sdio_pwrseq: sdio-pwrseq { 95 compatible = "mmc-pwrseq-simple"; 96 reset-gpios = <&gpio GPIOX_6 GPIO_ACTIVE_LOW>, 97 <&gpio GPIOX_20 GPIO_ACTIVE_LOW>; 98 clocks = <&wifi32k>; 99 clock-names = "ext_clock"; 100 }; 101}; 102 103&cec_AO { 104 status = "okay"; 105 pinctrl-0 = <&ao_cec_pins>; 106 pinctrl-names = "default"; 107 hdmi-phandle = <&hdmi_tx>; 108}; 109 110ðmac { 111 status = "okay"; 112 pinctrl-0 = <ð_rgmii_pins>; 113 pinctrl-names = "default"; 114 115 phy-handle = <ð_phy0>; 116 phy-mode = "rgmii"; 117 118 amlogic,tx-delay-ns = <2>; 119 120 snps,reset-gpio = <&gpio GPIOZ_14 0>; 121 snps,reset-delays-us = <0 10000 1000000>; 122 snps,reset-active-low; 123 124 mdio { 125 compatible = "snps,dwmac-mdio"; 126 #address-cells = <1>; 127 #size-cells = <0>; 128 129 eth_phy0: ethernet-phy@0 { 130 /* Realtek RTL8211F (0x001cc916) */ 131 reg = <0>; 132 }; 133 }; 134}; 135 136&hdmi_tx { 137 status = "okay"; 138 pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>; 139 pinctrl-names = "default"; 140}; 141 142&hdmi_tx_tmds_port { 143 hdmi_tx_tmds_out: endpoint { 144 remote-endpoint = <&hdmi_connector_in>; 145 }; 146}; 147 148&ir { 149 status = "okay"; 150 pinctrl-0 = <&remote_input_ao_pins>; 151 pinctrl-names = "default"; 152}; 153 154&pwm_ef { 155 status = "okay"; 156 pinctrl-0 = <&pwm_e_pins>; 157 pinctrl-names = "default"; 158 clocks = <&clkc CLKID_FCLK_DIV4>; 159 clock-names = "clkin0"; 160}; 161 162&saradc { 163 status = "okay"; 164 vref-supply = <&vddio_ao18>; 165}; 166 167/* Wireless SDIO Module */ 168&sd_emmc_a { 169 status = "okay"; 170 pinctrl-0 = <&sdio_pins &sdio_irq_pins>; 171 pinctrl-1 = <&sdio_clk_gate_pins>; 172 pinctrl-names = "default", "clk-gate"; 173 #address-cells = <1>; 174 #size-cells = <0>; 175 176 bus-width = <4>; 177 cap-sd-highspeed; 178 max-frequency = <50000000>; 179 180 non-removable; 181 disable-wp; 182 183 mmc-pwrseq = <&sdio_pwrseq>; 184 185 vmmc-supply = <&vddao_3v3>; 186 vqmmc-supply = <&vddio_boot>; 187 188 brcmf: wifi@1 { 189 reg = <1>; 190 compatible = "brcm,bcm4329-fmac"; 191 }; 192}; 193 194/* SD card */ 195&sd_emmc_b { 196 status = "okay"; 197 pinctrl-0 = <&sdcard_pins>; 198 pinctrl-1 = <&sdcard_clk_gate_pins>; 199 pinctrl-names = "default", "clk-gate"; 200 201 bus-width = <4>; 202 cap-sd-highspeed; 203 max-frequency = <50000000>; 204 disable-wp; 205 206 cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>; 207 208 vmmc-supply = <&vddao_3v3>; 209 vqmmc-supply = <&vcc_3v3>; 210}; 211 212/* eMMC */ 213&sd_emmc_c { 214 status = "okay"; 215 pinctrl-0 = <&emmc_pins>, <&emmc_ds_pins>; 216 pinctrl-1 = <&emmc_clk_gate_pins>; 217 pinctrl-names = "default", "clk-gate"; 218 219 bus-width = <8>; 220 cap-mmc-highspeed; 221 max-frequency = <200000000>; 222 non-removable; 223 disable-wp; 224 mmc-ddr-1_8v; 225 mmc-hs200-1_8v; 226 227 mmc-pwrseq = <&emmc_pwrseq>; 228 vmmc-supply = <&vcc_3v3>; 229 vqmmc-supply = <&vddio_boot>; 230}; 231 232&uart_AO { 233 status = "okay"; 234 pinctrl-0 = <&uart_ao_a_pins>; 235 pinctrl-names = "default"; 236}; 237 238&usb0_phy { 239 status = "okay"; 240 phy-supply = <&usb_pwr>; 241}; 242 243&usb1_phy { 244 status = "okay"; 245}; 246 247&usb0 { 248 status = "okay"; 249}; 250 251&usb1 { 252 status = "okay"; 253}; 254