mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 23:12:32 +00:00
117 lines
1.8 KiB
Plaintext
117 lines
1.8 KiB
Plaintext
|
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||
|
|
||
|
#include "mt7628an.dtsi"
|
||
|
|
||
|
#include <dt-bindings/input/input.h>
|
||
|
#include <dt-bindings/gpio/gpio.h>
|
||
|
|
||
|
/ {
|
||
|
aliases {
|
||
|
led-boot = &led_status;
|
||
|
led-failsafe = &led_status;
|
||
|
led-running = &led_status;
|
||
|
led-upgrade = &led_status;
|
||
|
serial1 = &uart1;
|
||
|
};
|
||
|
|
||
|
leds {
|
||
|
compatible = "gpio-leds";
|
||
|
|
||
|
led_status: status {
|
||
|
label = "led:status";
|
||
|
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
|
||
|
};
|
||
|
|
||
|
wifi {
|
||
|
label = "led:wifi";
|
||
|
gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
|
||
|
linux,default-trigger = "phy0tpt";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
keys {
|
||
|
compatible = "gpio-keys";
|
||
|
|
||
|
reset {
|
||
|
label = "reset";
|
||
|
gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
|
||
|
linux,code = <KEY_RESTART>;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
&spi0 {
|
||
|
status = "okay";
|
||
|
|
||
|
flash@0 {
|
||
|
compatible = "jedec,spi-nor";
|
||
|
reg = <0>;
|
||
|
spi-max-frequency = <25000000>;
|
||
|
m25p,fast-read;
|
||
|
|
||
|
partitions: partitions {
|
||
|
compatible = "fixed-partitions";
|
||
|
#address-cells = <1>;
|
||
|
#size-cells = <1>;
|
||
|
|
||
|
partition@0 {
|
||
|
label = "u-boot";
|
||
|
reg = <0x0 0x30000>;
|
||
|
};
|
||
|
|
||
|
partition@30000 {
|
||
|
label = "u-boot-env";
|
||
|
reg = <0x30000 0x10000>;
|
||
|
};
|
||
|
|
||
|
factory: partition@40000 {
|
||
|
label = "factory";
|
||
|
reg = <0x40000 0x10000>;
|
||
|
};
|
||
|
|
||
|
partition@50000 {
|
||
|
compatible = "denx,uimage";
|
||
|
label = "firmware";
|
||
|
reg = <0x50000 0xfb0000>;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
&state_default {
|
||
|
gpio_reset {
|
||
|
groups = "wdt";
|
||
|
function = "gpio";
|
||
|
};
|
||
|
|
||
|
p0led_an {
|
||
|
groups = "p0led_an";
|
||
|
function = "p0led_an";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
&factory {
|
||
|
compatible = "nvmem-cells";
|
||
|
#address-cells = <1>;
|
||
|
#size-cells = <1>;
|
||
|
|
||
|
macaddr_factory_4: macaddr@4 {
|
||
|
reg = <0x4 0x6>;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
ðernet {
|
||
|
nvmem-cells = <&macaddr_factory_4>;
|
||
|
nvmem-cell-names = "mac-address";
|
||
|
};
|
||
|
|
||
|
&wmac {
|
||
|
status = "okay";
|
||
|
|
||
|
mediatek,mtd-eeprom = <&factory 0x0000>;
|
||
|
};
|
||
|
|
||
|
&uart1 {
|
||
|
status = "okay";
|
||
|
};
|