aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts/mt7621_mikrotik_routerboard-750gr3.dts
blob: 60315a46e7200bf4a98054405e631d0ab05fdaf9 (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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/;

#include "mt7621_mikrotik.dtsi"

/ {
	compatible = "mikrotik,routerboard-750gr3", "mediatek,mt7621-soc";
	model = "MikroTik RouterBOARD 750Gr3";

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

	leds {
		compatible = "gpio-leds";

		pwr {
			label = "routerboard-750gr3:blue:pwr";
			gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
			default-state = "on";
		};

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

	gpio_export {
		compatible = "gpio-export";
		#size-cells = <0>;

		buzzer {
			/* Beeper requires PWM for frequency selection */
			gpio-export,name = "buzzer";
			gpio-export,output = <0>;
			gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
		};

		usb_power {
			gpio-export,name = "usb_power";
			gpio-export,output = <1>;
			gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
		};
	};
};

&keys {
	mode {
		label = "mode";
		gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
		linux,code = <BTN_0>;
	};
};

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

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

		port@1 {
			status = "okay";
			label = "lan2";
		};

		port@2 {
			status = "okay";
			label = "lan3";
		};

		port@3 {
			status = "okay";
			label = "lan4";
		};

		port@4 {
			status = "okay";
			label = "lan5";
		};
	};
};

&state_default {
	gpio {
		/* via gpio7 (uart3 group) the PoE status can be read */
		groups = "uart2", "uart3", "jtag", "wdt";
		function = "gpio";
	};
};

&sdhci {
	status = "okay";
};