lede/target/linux/ramips/dts/mt7620n_netgear_n300.dtsi

84 lines
1.2 KiB
Plaintext
Raw Normal View History

// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
#include "mt7620n.dtsi"
2019-12-07 20:13:33 -08:00
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
/ {
keys {
compatible = "gpio-keys";
2019-12-07 20:13:33 -08:00
reset {
label = "reset";
gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
2019-12-07 20:13:33 -08:00
linux,code = <KEY_RESTART>;
};
};
};
&gpio2 {
status = "okay";
};
&gpio3 {
2019-12-07 20:13:33 -08:00
status = "okay";
};
&spi0 {
status = "okay";
2020-07-02 23:30:56 +08:00
flash@0 {
2019-12-07 20:13:33 -08:00
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <30000000>;
2019-12-07 20:13:33 -08:00
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "u-boot";
reg = <0x0 0x20000>;
2019-12-07 20:13:33 -08:00
read-only;
};
partition@20000 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x20000 0x3c0000>;
2019-12-07 20:13:33 -08:00
};
partition@3e0000 {
label = "nvram";
reg = <0x3e0000 0x10000>;
2019-12-07 20:13:33 -08:00
read-only;
};
factory: partition@3f0000 {
label = "factory";
reg = <0x3f0000 0x10000>;
read-only;
2019-12-07 20:13:33 -08:00
};
};
};
};
&ethernet {
mtd-mac-address = <&factory 0x4>;
2019-12-07 20:13:33 -08:00
mediatek,portmap = "llllw";
2019-12-07 20:13:33 -08:00
};
&wmac {
2020-07-02 23:30:56 +08:00
ralink,mtd-eeprom = <&factory 0x0>;
2019-12-07 20:13:33 -08:00
};
&state_default {
default {
groups = "pa", "ephy", "wled";
function = "gpio";
};
};