2018-05-27 05:37:22 +00:00
|
|
|
/dts-v1/;
|
|
|
|
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
#include <dt-bindings/input/input.h>
|
|
|
|
|
2018-10-29 03:56:46 +00:00
|
|
|
#include "qca953x.dtsi"
|
2018-05-27 05:37:22 +00:00
|
|
|
|
|
|
|
/ {
|
2018-12-31 12:59:31 +00:00
|
|
|
aliases {
|
|
|
|
led-boot = &led_status;
|
|
|
|
led-failsafe = &led_status;
|
|
|
|
led-running = &led_status;
|
|
|
|
led-upgrade = &led_status;
|
ath79: provide label MAC address
This patch adds the label MAC address for several devices in
ath79.
Some devices require setting the MAC address in 02_network:
For the following devices, the netif device can be linked in
device tree, but the MAC address cannot be read:
- alfa-network,ap121f
- avm,fritz300e
- ubnt-xm devices
For the following devices, label MAC address is tied to lan or
wan, so no node to link to exists in device tree:
- adtran,bsap1800-v2
- adtran,bsap1840
- dlink,dir-842-c1/-c2/-c3
- engenius,ecb1750
- iodata,etg3-r
- iodata,wn-ac1167dgr
- iodata,wn-ac1600dgr
- iodata,wn-ac1600dgr2
- iodata,wn-ag300dgr
- nec,wg800hp
- nec,wg1200cr
- trendnet,tew-823dru
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2019-08-15 13:13:33 +00:00
|
|
|
label-mac-device = ð0;
|
2018-12-31 12:59:31 +00:00
|
|
|
};
|
|
|
|
|
2018-05-27 05:37:22 +00:00
|
|
|
keys {
|
2019-08-10 17:22:40 +00:00
|
|
|
compatible = "gpio-keys";
|
|
|
|
|
2018-05-27 05:37:22 +00:00
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&jtag_disable_pins>;
|
|
|
|
|
2018-08-06 05:11:13 +00:00
|
|
|
button0 {
|
2018-05-27 05:37:22 +00:00
|
|
|
label = "reset";
|
|
|
|
linux,code = <KEY_RESTART>;
|
|
|
|
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
2018-08-06 05:11:13 +00:00
|
|
|
button1 {
|
2018-05-27 05:37:22 +00:00
|
|
|
label = "button right";
|
|
|
|
linux,code = <BTN_0>;
|
|
|
|
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
2018-08-06 05:11:13 +00:00
|
|
|
button3 {
|
2018-05-27 05:37:22 +00:00
|
|
|
label = "button left";
|
|
|
|
linux,code = <BTN_1>;
|
|
|
|
gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
2019-03-07 04:44:33 +00:00
|
|
|
// Colors from non-Lite versions
|
|
|
|
|
|
|
|
led_status: status {
|
|
|
|
label = "gl-ar300m:green:status";
|
|
|
|
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
|
2018-05-27 05:37:22 +00:00
|
|
|
};
|
|
|
|
|
2019-03-07 04:44:33 +00:00
|
|
|
led_lan: lan {
|
2018-05-27 05:37:22 +00:00
|
|
|
label = "gl-ar300m:green:lan";
|
|
|
|
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
2019-03-07 04:44:33 +00:00
|
|
|
led_wlan: wlan {
|
|
|
|
label = "gl-ar300m:red:wlan";
|
|
|
|
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
|
|
|
|
linux,default-trigger = "phy0tpt";
|
2018-05-27 05:37:22 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&pcie0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2019-03-07 04:44:33 +00:00
|
|
|
&spi {
|
|
|
|
status = "okay";
|
|
|
|
num-cs = <0>;
|
|
|
|
|
|
|
|
flash@0 {
|
|
|
|
compatible = "winbond,w25q128", "jedec,spi-nor";
|
|
|
|
reg = <0>;
|
|
|
|
spi-max-frequency = <25000000>;
|
|
|
|
|
|
|
|
partitions {
|
|
|
|
compatible = "fixed-partitions";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
partition@0 {
|
|
|
|
label = "u-boot";
|
|
|
|
reg = <0x000000 0x040000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@1 {
|
|
|
|
label = "u-boot-env";
|
|
|
|
reg = <0x040000 0x010000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@2 {
|
|
|
|
compatible = "denx,uimage";
|
|
|
|
label = "firmware";
|
|
|
|
reg = <0x050000 0xfa0000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
art: partition@3 {
|
|
|
|
label = "art";
|
|
|
|
reg = <0xff0000 0x010000>;
|
2019-05-09 13:31:05 +00:00
|
|
|
read-only;
|
2019-03-07 04:44:33 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-05-27 05:37:22 +00:00
|
|
|
&uart {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&usb0 {
|
2018-08-06 05:11:13 +00:00
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
2018-05-27 05:37:22 +00:00
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&usb_phy {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
ð0 {
|
|
|
|
status = "okay";
|
|
|
|
mtd-mac-address = <&art 0x0>;
|
2018-07-17 09:09:14 +00:00
|
|
|
phy-handle = <&swphy4>;
|
2018-05-27 05:37:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
ð1 {
|
2019-02-22 11:46:37 +00:00
|
|
|
mtd-mac-address = <&art 0x0>;
|
|
|
|
mtd-mac-address-increment = <1>;
|
2018-05-27 05:37:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
&wmac {
|
|
|
|
status = "okay";
|
|
|
|
mtd-cal-data = <&art 0x1000>;
|
|
|
|
mtd-mac-address = <&art 0x1002>;
|
|
|
|
};
|