aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/dts/ar7161_mikrotik_routerboard-493g.dts
blob: 4a5deb8a446c4da4cb285707de1b3e9a1f099dae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// SPDX-License-Identifier: GPL-1.0-or-later OR MIT
/dts-v1/;

#include "ar7100_mikrotik_routerboard-4xx.dtsi"

/ {
	compatible = "mikrotik,routerboard-493g", "qca,ar7161";
	model = "MikroTik RouterBOARD 493G";

	aliases {
		mdio-gpio0 = &mdio_gpio0;
	};
};

&spi {
	sdcard: mmc-slot@2 {
		compatible = "mmc-spi-slot";

		reg = <2>;
		spi-max-frequency = <25000000>;
	};
};

&eth1 {
	status = "okay";

	phy-handle = <&gpio_phy0>;

	mdio_gpio0: mdio-gpio {
		compatible = "virtual,mdio-gpio";
		#address-cells = <1>;
		#size-cells = <0>;

		gpios = <&gpio 7 GPIO_ACTIVE_HIGH>, // MDC
			<&gpio 8 GPIO_ACTIVE_HIGH>; // MDIO

		gpio_phy0: ethernet-phy@0 {
			reg = <0>;
		};
	};
};

&usb_phy {
	status = "okay";
};

&usb2 {
	status = "okay";
};

&usb1 {
	status = "okay";
};