2021-03-22 21:06:14 +00:00
|
|
|
// 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>
|
|
|
|
|
|
|
|
/ {
|
|
|
|
compatible = "belkin,rt1800", "mediatek,mt7621-soc";
|
|
|
|
model = "Belkin RT1800";
|
|
|
|
|
|
|
|
aliases {
|
|
|
|
led-boot = &led_power;
|
|
|
|
led-failsafe = &led_power;
|
|
|
|
led-running = &led_power;
|
|
|
|
led-upgrade = &led_power;
|
|
|
|
};
|
|
|
|
|
|
|
|
chosen {
|
|
|
|
bootargs = "console=ttyS0,115200";
|
|
|
|
};
|
|
|
|
|
|
|
|
keys {
|
|
|
|
compatible = "gpio-keys";
|
|
|
|
|
|
|
|
reset {
|
|
|
|
label = "reset";
|
|
|
|
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
|
|
|
|
linux,code = <KEY_RESTART>;
|
|
|
|
};
|
|
|
|
|
|
|
|
wps {
|
|
|
|
label = "wps";
|
|
|
|
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
|
|
|
|
linux,code = <KEY_WPS_BUTTON>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
2022-09-12 07:55:58 +00:00
|
|
|
led-wps {
|
|
|
|
color = <LED_COLOR_ID_AMBER>;
|
|
|
|
function = LED_FUNCTION_WPS;
|
|
|
|
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
2021-03-22 21:06:14 +00:00
|
|
|
led_power: led-power {
|
2024-02-07 13:48:43 +00:00
|
|
|
function = LED_FUNCTION_POWER;
|
|
|
|
color = <LED_COLOR_ID_WHITE>;
|
2021-03-22 21:06:14 +00:00
|
|
|
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
|
|
|
|
default-state = "on";
|
|
|
|
};
|
|
|
|
|
2022-09-12 07:55:58 +00:00
|
|
|
led-wan2 {
|
|
|
|
color = <LED_COLOR_ID_AMBER>;
|
|
|
|
function = LED_FUNCTION_WAN;
|
|
|
|
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
2021-03-22 21:06:14 +00:00
|
|
|
led-wan {
|
|
|
|
color = <LED_COLOR_ID_WHITE>;
|
|
|
|
function = LED_FUNCTION_WAN;
|
|
|
|
gpios = <&switch0 0 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&nand {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
partitions {
|
|
|
|
compatible = "fixed-partitions";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
partition@0 {
|
|
|
|
label = "Boot";
|
|
|
|
reg = <0x0 0x80000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@80000 {
|
|
|
|
label = "Config";
|
|
|
|
reg = <0x80000 0x80000>;
|
|
|
|
};
|
|
|
|
|
2024-02-17 14:10:10 +00:00
|
|
|
partition@100000 {
|
2021-03-22 21:06:14 +00:00
|
|
|
label = "Factory";
|
|
|
|
reg = <0x100000 0x80000>;
|
|
|
|
read-only;
|
2023-10-02 02:12:02 +00:00
|
|
|
|
2023-11-07 23:55:58 +00:00
|
|
|
nvmem-layout {
|
|
|
|
compatible = "fixed-layout";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
eeprom_factory_0: eeprom@0 {
|
|
|
|
reg = <0x0 0xe00>;
|
|
|
|
};
|
2023-10-02 02:12:02 +00:00
|
|
|
};
|
2021-03-22 21:06:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
partition@180000 {
|
|
|
|
label = "firmware";
|
|
|
|
reg = <0x180000 0x3000000>;
|
|
|
|
|
|
|
|
compatible = "fixed-partitions";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
partition@0 {
|
|
|
|
label = "kernel";
|
|
|
|
reg = <0x0 0x400000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@400000 {
|
|
|
|
label = "ubi";
|
|
|
|
reg = <0x400000 0x2c00000>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@3180000 {
|
|
|
|
label = "alt_firmware";
|
|
|
|
reg = <0x3180000 0x3000000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@6180000 {
|
|
|
|
label = "cbtinfo";
|
|
|
|
reg = <0x6180000 0x80000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
/* seems to be the end here. Can't read past 0x6200000 */
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&pcie {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&pcie1 {
|
|
|
|
wifi@0,0 {
|
|
|
|
compatible = "mediatek,mt76";
|
|
|
|
reg = <0x0000 0 0 0 0>;
|
2023-10-02 02:12:02 +00:00
|
|
|
nvmem-cells = <&eeprom_factory_0>;
|
|
|
|
nvmem-cell-names = "eeprom";
|
2021-03-22 21:06:14 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2022-09-12 07:55:58 +00:00
|
|
|
&state_default {
|
|
|
|
gpio {
|
|
|
|
groups = "i2c", "uart3", "jtag", "wdt";
|
|
|
|
function = "gpio";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-03-22 21:06:14 +00:00
|
|
|
&gmac1 {
|
|
|
|
status = "okay";
|
|
|
|
label = "wan";
|
|
|
|
phy-handle = <ðphy0>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&mdio {
|
|
|
|
ethphy0: ethernet-phy@0 {
|
|
|
|
reg = <0>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&switch0 {
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
|
|
|
|
ports {
|
|
|
|
port@1 {
|
|
|
|
status = "okay";
|
|
|
|
label = "lan4";
|
|
|
|
};
|
|
|
|
|
|
|
|
port@2 {
|
|
|
|
status = "okay";
|
|
|
|
label = "lan3";
|
|
|
|
};
|
|
|
|
|
|
|
|
port@3 {
|
|
|
|
status = "okay";
|
|
|
|
label = "lan2";
|
|
|
|
};
|
|
|
|
|
|
|
|
port@4 {
|
|
|
|
status = "okay";
|
|
|
|
label = "lan1";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|