ramips: mt7621: convert Linksys devices EEPROM to NVMEM format
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_mikrotik_routerboard-7xx.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7621_mikrotik.dtsi"
4
5 / {
6 gpio_export {
7 compatible = "gpio-export";
8 #size-cells = <0>;
9
10 buzzer {
11 /* Beeper requires PWM for frequency selection */
12 gpio-export,name = "buzzer";
13 gpio-export,output = <0>;
14 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
15 };
16
17 usb_power {
18 gpio-export,name = "usb_power";
19 gpio-export,output = <1>;
20 gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
21 };
22 };
23 };
24
25 &keys {
26 mode {
27 label = "mode";
28 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
29 linux,code = <BTN_0>;
30 };
31 };
32
33 &partitions {
34 partition@40000 {
35 compatible = "mikrotik,minor";
36 label = "firmware";
37 reg = <0x040000 0xfc0000>;
38 };
39 };
40
41 &switch0 {
42 ports {
43 port@0 {
44 status = "okay";
45 label = "wan";
46 };
47
48 port@1 {
49 status = "okay";
50 label = "lan2";
51 };
52
53 port@2 {
54 status = "okay";
55 label = "lan3";
56 };
57
58 port@3 {
59 status = "okay";
60 label = "lan4";
61 };
62
63 port@4 {
64 status = "okay";
65 label = "lan5";
66 };
67 };
68 };
69
70 &sdhci {
71 status = "okay";
72 };