mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-11-28 07:44:32 +00:00
85c5c9aa68
These are not referenced. Signed-off-by: Rosen Penev <rosenp@gmail.com>
266 lines
4.4 KiB
Plaintext
266 lines
4.4 KiB
Plaintext
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
|
|
#include "ar7100.dtsi"
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
#include <dt-bindings/input/input.h>
|
|
#include <dt-bindings/leds/common.h>
|
|
|
|
/ {
|
|
aliases {
|
|
led-boot = &led_diag;
|
|
led-failsafe = &led_diag;
|
|
led-upgrade = &led_diag;
|
|
};
|
|
|
|
leds {
|
|
compatible = "gpio-leds";
|
|
|
|
led_diag: diag {
|
|
label = "red:diag";
|
|
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
|
|
};
|
|
};
|
|
|
|
ath9k-leds {
|
|
compatible = "gpio-leds";
|
|
|
|
band2g_a {
|
|
label = "amber:band2g";
|
|
gpios = <&ath9k0 1 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
usb {
|
|
function = LED_FUNCTION_USB;
|
|
color = <LED_COLOR_ID_GREEN>;
|
|
gpios = <&ath9k0 3 GPIO_ACTIVE_LOW>;
|
|
trigger-sources = <&usb_ohci_port>, <&usb_ehci_port>;
|
|
linux,default-trigger = "usbport";
|
|
};
|
|
|
|
band2g_g {
|
|
label = "green:band2g";
|
|
gpios = <&ath9k0 5 GPIO_ACTIVE_LOW>;
|
|
linux,default-trigger = "phy0tpt";
|
|
};
|
|
|
|
band5g_g {
|
|
label = "green:band5g";
|
|
gpios = <&ath9k1 1 GPIO_ACTIVE_LOW>;
|
|
linux,default-trigger = "phy1tpt";
|
|
};
|
|
|
|
router {
|
|
label = "green:router";
|
|
gpios = <&ath9k1 3 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
movie_engine {
|
|
label = "blue:movie_engine";
|
|
gpios = <&ath9k1 4 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
band5g_a {
|
|
label = "amber:band5g";
|
|
gpios = <&ath9k1 5 GPIO_ACTIVE_LOW>;
|
|
};
|
|
};
|
|
|
|
keys {
|
|
compatible = "gpio-keys";
|
|
|
|
reset {
|
|
label = "reset";
|
|
linux,code = <KEY_RESTART>;
|
|
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
|
|
debounce-interval = <60>;
|
|
};
|
|
|
|
usb {
|
|
label = "usb";
|
|
linux,code = <BTN_2>;
|
|
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
|
|
debounce-interval = <60>;
|
|
};
|
|
|
|
aoss {
|
|
label = "aoss";
|
|
linux,code = <KEY_WPS_BUTTON>;
|
|
gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
|
|
debounce-interval = <60>;
|
|
};
|
|
|
|
router_auto {
|
|
label = "router_auto";
|
|
linux,code = <BTN_6>;
|
|
linux,input-type = <EV_SW>;
|
|
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
|
|
debounce-interval = <60>;
|
|
};
|
|
|
|
router_off {
|
|
label = "router_off";
|
|
linux,code = <BTN_5>;
|
|
linux,input-type = <EV_SW>;
|
|
gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
|
|
debounce-interval = <60>;
|
|
};
|
|
|
|
movie_engine {
|
|
label = "movie_engine";
|
|
linux,code = <BTN_7>;
|
|
linux,input-type = <EV_SW>;
|
|
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
|
|
debounce-interval = <60>;
|
|
};
|
|
};
|
|
|
|
gpio-export {
|
|
compatible = "gpio-export";
|
|
|
|
gpio_usb_power {
|
|
gpio-export,name = "buffalo:power:usb";
|
|
gpio-export,output = <1>;
|
|
gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
};
|
|
|
|
flash {
|
|
compatible = "mtd-concat";
|
|
|
|
devices = <&flash0 &flash1>;
|
|
|
|
partitions {
|
|
compatible = "fixed-partitions";
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
partition@0 {
|
|
label = "u-boot";
|
|
reg = <0x0000000 0x0040000>;
|
|
read-only;
|
|
};
|
|
|
|
partition@40000 {
|
|
label = "u-boot-env";
|
|
reg = <0x0040000 0x0010000>;
|
|
read-only;
|
|
};
|
|
|
|
partition@50000 {
|
|
label = "art";
|
|
reg = <0x0050000 0x0010000>;
|
|
read-only;
|
|
|
|
nvmem-layout {
|
|
compatible = "fixed-layout";
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
macaddr_art_120c: macaddr@120c {
|
|
reg = <0x120c 0x6>;
|
|
};
|
|
|
|
macaddr_art_520c: macaddr@520c {
|
|
compatible = "mac-base";
|
|
reg = <0x520c 0x6>;
|
|
#nvmem-cell-cells = <1>;
|
|
};
|
|
};
|
|
};
|
|
|
|
partition@60000 {
|
|
compatible = "denx,uimage";
|
|
label = "firmware";
|
|
reg = <0x0060000 0x1f90000>;
|
|
};
|
|
|
|
partition@1ff0000 {
|
|
label = "user_property";
|
|
reg = <0x1ff0000 0x0010000>;
|
|
read-only;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&usb_phy {
|
|
status = "okay";
|
|
};
|
|
|
|
&usb1 {
|
|
status = "okay";
|
|
};
|
|
|
|
&usb2 {
|
|
status = "okay";
|
|
};
|
|
|
|
&pcie0 {
|
|
status = "okay";
|
|
|
|
ath9k0: wifi@11,0 {
|
|
compatible = "pci168c,0029";
|
|
reg = <0x8800 0 0 0 0>;
|
|
qca,no-eeprom;
|
|
#gpio-cells = <2>;
|
|
gpio-controller;
|
|
};
|
|
|
|
ath9k1: wifi@12,0 {
|
|
compatible = "pci168c,0029";
|
|
reg = <0x9000 0 0 0 0>;
|
|
qca,no-eeprom;
|
|
#gpio-cells = <2>;
|
|
gpio-controller;
|
|
};
|
|
};
|
|
|
|
&spi {
|
|
status = "okay";
|
|
|
|
|
|
flash0: flash@0 {
|
|
compatible = "jedec,spi-nor";
|
|
reg = <0>;
|
|
spi-max-frequency = <50000000>;
|
|
m25p,fast-read;
|
|
};
|
|
|
|
flash1: flash@1 {
|
|
compatible = "jedec,spi-nor";
|
|
reg = <1>;
|
|
spi-max-frequency = <50000000>;
|
|
m25p,fast-read;
|
|
};
|
|
};
|
|
|
|
&mdio0 {
|
|
status = "okay";
|
|
|
|
phy4: ethernet-phy@4 {
|
|
reg = <4>;
|
|
phy-mode = "rgmii";
|
|
};
|
|
};
|
|
|
|
ð0 {
|
|
status = "okay";
|
|
|
|
nvmem-cells = <&macaddr_art_120c>;
|
|
nvmem-cell-names = "mac-address";
|
|
|
|
fixed-link {
|
|
speed = <1000>;
|
|
full-duplex;
|
|
};
|
|
};
|
|
|
|
ð1 {
|
|
status = "okay";
|
|
|
|
nvmem-cells = <&macaddr_art_520c 1>;
|
|
nvmem-cell-names = "mac-address";
|
|
|
|
phy-handle = <&phy4>;
|
|
};
|