mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-26 17:01:14 +00:00
176 lines
2.8 KiB
Plaintext
176 lines
2.8 KiB
Plaintext
|
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||
|
|
||
|
#include "mt7621.dtsi"
|
||
|
|
||
|
#include <dt-bindings/gpio/gpio.h>
|
||
|
#include <dt-bindings/input/input.h>
|
||
|
#include <dt-bindings/leds/common.h>
|
||
|
|
||
|
/ {
|
||
|
aliases {
|
||
|
led-boot = &led_power_green;
|
||
|
led-failsafe = &led_power_amber;
|
||
|
led-running = &led_power_green;
|
||
|
led-upgrade = &led_power_green;
|
||
|
};
|
||
|
|
||
|
leds {
|
||
|
compatible = "gpio-leds";
|
||
|
|
||
|
led-0 {
|
||
|
gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
|
||
|
color = <LED_COLOR_ID_AMBER>;
|
||
|
function = "router";
|
||
|
};
|
||
|
|
||
|
led-1 {
|
||
|
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
|
||
|
color = <LED_COLOR_ID_AMBER>;
|
||
|
function = LED_FUNCTION_WLAN;
|
||
|
};
|
||
|
|
||
|
led-2 {
|
||
|
gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
|
||
|
color = <LED_COLOR_ID_AMBER>;
|
||
|
function = LED_FUNCTION_WAN_ONLINE;
|
||
|
};
|
||
|
|
||
|
led-3 {
|
||
|
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
|
||
|
color = <LED_COLOR_ID_GREEN>;
|
||
|
function = LED_FUNCTION_WAN_ONLINE;
|
||
|
};
|
||
|
|
||
|
led_power_green: led-4 {
|
||
|
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
|
||
|
color = <LED_COLOR_ID_GREEN>;
|
||
|
function = LED_FUNCTION_POWER;
|
||
|
};
|
||
|
|
||
|
led_power_amber: led-5 {
|
||
|
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
|
||
|
color = <LED_COLOR_ID_AMBER>;
|
||
|
function = LED_FUNCTION_POWER;
|
||
|
};
|
||
|
|
||
|
led-6 {
|
||
|
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
|
||
|
color = <LED_COLOR_ID_GREEN>;
|
||
|
function = LED_FUNCTION_WLAN;
|
||
|
};
|
||
|
|
||
|
led-7 {
|
||
|
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
|
||
|
color = <LED_COLOR_ID_GREEN>;
|
||
|
function = "router";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
keys {
|
||
|
compatible = "gpio-keys";
|
||
|
|
||
|
button-reset {
|
||
|
label = "reset";
|
||
|
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
|
||
|
linux,code = <KEY_RESTART>;
|
||
|
};
|
||
|
|
||
|
button-aoss {
|
||
|
label = "aoss";
|
||
|
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
|
||
|
linux,code = <KEY_WPS_BUTTON>;
|
||
|
};
|
||
|
|
||
|
switch-router {
|
||
|
label = "router";
|
||
|
gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
|
||
|
linux,code = <BTN_0>;
|
||
|
linux,input-type = <EV_SW>;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
&gmac1 {
|
||
|
status = "okay";
|
||
|
label = "wan";
|
||
|
phy-handle = <ðphy0>;
|
||
|
};
|
||
|
|
||
|
ðphy0 {
|
||
|
/delete-property/ interrupts;
|
||
|
};
|
||
|
|
||
|
&switch0 {
|
||
|
ports {
|
||
|
port@1 {
|
||
|
status = "okay";
|
||
|
label = "lan1";
|
||
|
};
|
||
|
|
||
|
port@2 {
|
||
|
status = "okay";
|
||
|
label = "lan2";
|
||
|
};
|
||
|
|
||
|
port@3 {
|
||
|
status = "okay";
|
||
|
label = "lan3";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
&nand {
|
||
|
status = "okay";
|
||
|
|
||
|
partitions: partitions {
|
||
|
compatible = "fixed-partitions";
|
||
|
#address-cells = <1>;
|
||
|
#size-cells = <0x01>;
|
||
|
|
||
|
partition@0 {
|
||
|
label = "u-boot";
|
||
|
reg = <0x00 0x80000>;
|
||
|
read-only;
|
||
|
};
|
||
|
|
||
|
partition@80000 {
|
||
|
label = "u-boot-env";
|
||
|
reg = <0x80000 0x80000>;
|
||
|
read-only;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
&pcie {
|
||
|
status = "okay";
|
||
|
};
|
||
|
|
||
|
&pcie0 {
|
||
|
wifi@0,0 {
|
||
|
reg = <0x0000 0 0 0 0>;
|
||
|
nvmem-cells = <&eeprom_factory_0>;
|
||
|
nvmem-cell-names = "eeprom";
|
||
|
ieee80211-freq-limit = <2400000 2500000>;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
&pcie1 {
|
||
|
wifi@0,0 {
|
||
|
reg = <0x0000 0 0 0 0>;
|
||
|
nvmem-cells = <&eeprom_factory_8000>;
|
||
|
nvmem-cell-names = "eeprom";
|
||
|
ieee80211-freq-limit = <5000000 6000000>;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
&state_default {
|
||
|
gpio {
|
||
|
groups = "i2c", "uart2", "uart3";
|
||
|
function = "gpio";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
&xhci {
|
||
|
status = "disabled";
|
||
|
};
|