summaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts/mt7621_mikrotik_routerboard-m11g.dts
blob: 20a834a3ebfee5e7b5c5154c8428436b4b66bf95 (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#include "mt7621_mikrotik.dtsi"

/ {
	compatible = "mikrotik,routerboard-m11g", "mediatek,mt7621-soc";
	model = "MikroTik RouterBOARD M11G";

	aliases {
		led-boot = &led_usr;
		led-failsafe = &led_usr;
		led-running = &led_usr;
		led-upgrade = &led_usr;
	};

	leds {
		compatible = "gpio-leds";

		led_usr: usr {
			label = "green:usr";
			gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
		};

		rssi0 {
			label = "green:rssi0";
			gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
		};

		rssi1 {
			label = "green:rssi1";
			gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
		};

		rssi2 {
			label = "green:rssi2";
			gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
		};

		rssi3 {
			label = "green:rssi3";
			gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
		};

		rssi4 {
			label = "green:rssi4";
			gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
		};
	};

	pcie0_vcc_reg {
		compatible = "regulator-fixed";
		regulator-name = "pcie0_vcc";

		regulator-min-microvolt = <3300000>;
		regulator-max-microvolt = <3300000>;
		gpio = <&gpio 9 GPIO_ACTIVE_HIGH>;
		enable-active-high;
		regulator-boot-on;
		regulator-always-on;
	};
};

&partitions {
	partition@40000 {
		compatible = "mikrotik,minor";
		label = "firmware";
		reg = <0x040000 0xfc0000>;
	};
};

&switch0 {
	ports {
		port@0 {
			status = "okay";
			label = "lan";
		};
	};
};

&state_default {
	gpio {
		groups = "uart2", "wdt", "rgmii2";
		function = "gpio";
	};
};

&i2c {
	status = "okay";
};

&pcie {
	status = "okay";
};