2020-06-10 22:15:40 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
|
|
|
|
|
|
#include "mt7621_mikrotik.dtsi"
|
|
|
|
|
|
|
|
/ {
|
|
|
|
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>;
|
|
|
|
};
|
2024-10-24 21:51:29 +00:00
|
|
|
};
|
2020-06-10 22:15:40 +00:00
|
|
|
|
2024-10-24 21:51:29 +00:00
|
|
|
reg_usb_power: regulator {
|
|
|
|
compatible = "regulator-fixed";
|
|
|
|
regulator-name = "usb_power";
|
|
|
|
regulator-min-microvolt = <5000000>;
|
|
|
|
regulator-max-microvolt = <5000000>;
|
|
|
|
gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
|
|
|
|
enable-active-high;
|
2024-11-06 21:23:35 +00:00
|
|
|
regulator-boot-on;
|
2020-06-10 22:15:40 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-10-24 21:51:29 +00:00
|
|
|
&xhci {
|
|
|
|
vbus-supply = <®_usb_power>;
|
|
|
|
};
|
|
|
|
|
2020-06-10 22:15:40 +00:00
|
|
|
&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 {
|
2024-08-24 19:35:03 +00:00
|
|
|
port0: port@0 {
|
2020-06-10 22:15:40 +00:00
|
|
|
status = "okay";
|
|
|
|
label = "wan";
|
2024-08-24 19:35:03 +00:00
|
|
|
|
|
|
|
nvmem-cells = <&macaddr_hard 0>;
|
|
|
|
nvmem-cell-names = "mac-address";
|
2020-06-10 22:15:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
port@1 {
|
|
|
|
status = "okay";
|
|
|
|
label = "lan2";
|
2024-08-24 19:35:03 +00:00
|
|
|
|
|
|
|
nvmem-cells = <&macaddr_hard 1>;
|
|
|
|
nvmem-cell-names = "mac-address";
|
2020-06-10 22:15:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
port@2 {
|
|
|
|
status = "okay";
|
|
|
|
label = "lan3";
|
2024-08-24 19:35:03 +00:00
|
|
|
|
|
|
|
nvmem-cells = <&macaddr_hard 2>;
|
|
|
|
nvmem-cell-names = "mac-address";
|
2020-06-10 22:15:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
port@3 {
|
|
|
|
status = "okay";
|
|
|
|
label = "lan4";
|
2024-08-24 19:35:03 +00:00
|
|
|
|
|
|
|
nvmem-cells = <&macaddr_hard 3>;
|
|
|
|
nvmem-cell-names = "mac-address";
|
2020-06-10 22:15:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
port@4 {
|
|
|
|
status = "okay";
|
|
|
|
label = "lan5";
|
2024-08-24 19:35:03 +00:00
|
|
|
|
|
|
|
nvmem-cells = <&macaddr_hard 4>;
|
|
|
|
nvmem-cell-names = "mac-address";
|
2020-06-10 22:15:40 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&sdhci {
|
|
|
|
status = "okay";
|
|
|
|
};
|