2018-05-07 08:10:49 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
2018-05-06 08:20:11 +00:00
|
|
|
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
#include <dt-bindings/input/input.h>
|
|
|
|
|
|
|
|
/ {
|
|
|
|
keys {
|
2019-08-10 17:22:40 +00:00
|
|
|
compatible = "gpio-keys";
|
|
|
|
|
2018-05-28 13:37:27 +00:00
|
|
|
reset {
|
2018-05-06 08:20:11 +00:00
|
|
|
linux,code = <KEY_RESTART>;
|
|
|
|
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
|
|
|
|
debounce-interval = <60>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&spi {
|
|
|
|
status = "okay";
|
2019-11-19 14:47:11 +00:00
|
|
|
|
2018-05-06 08:20:11 +00:00
|
|
|
flash@0 {
|
2018-08-06 06:03:30 +00:00
|
|
|
compatible = "jedec,spi-nor";
|
2018-05-06 08:20:11 +00:00
|
|
|
reg = <0>;
|
|
|
|
spi-max-frequency = <25000000>;
|
|
|
|
|
2018-05-07 08:35:51 +00:00
|
|
|
partitions {
|
|
|
|
compatible = "fixed-partitions";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
partition@0 {
|
|
|
|
label = "u-boot";
|
|
|
|
reg = <0x000000 0x040000>;
|
2018-05-07 11:06:31 +00:00
|
|
|
read-only;
|
2018-05-07 08:35:51 +00:00
|
|
|
};
|
|
|
|
|
2019-11-19 14:47:11 +00:00
|
|
|
partition@40000 {
|
2018-05-07 08:35:51 +00:00
|
|
|
label = "u-boot-env";
|
|
|
|
reg = <0x040000 0x010000>;
|
2020-08-26 21:35:37 +00:00
|
|
|
read-only;
|
2018-05-07 08:35:51 +00:00
|
|
|
};
|
|
|
|
|
2019-11-19 14:47:11 +00:00
|
|
|
partition@50000 {
|
2018-11-29 13:07:59 +00:00
|
|
|
compatible = "denx,uimage";
|
2018-05-07 08:35:51 +00:00
|
|
|
label = "firmware";
|
|
|
|
reg = <0x050000 0x750000>;
|
|
|
|
};
|
|
|
|
|
2019-11-19 14:47:11 +00:00
|
|
|
partition@7a0000 {
|
2018-05-07 08:35:51 +00:00
|
|
|
label = "board_config";
|
|
|
|
reg = <0x7a0000 0x010000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
2019-11-19 14:47:11 +00:00
|
|
|
partition@7b0000 {
|
2018-05-07 08:35:51 +00:00
|
|
|
label = "cfg";
|
|
|
|
reg = <0x7b0000 0x040000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
2019-11-19 14:47:11 +00:00
|
|
|
art: partition@7f0000 {
|
2018-05-07 08:35:51 +00:00
|
|
|
label = "art";
|
|
|
|
reg = <0x7f0000 0x010000>;
|
|
|
|
read-only;
|
|
|
|
};
|
2018-05-06 08:20:11 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&pcie {
|
|
|
|
status = "okay";
|
|
|
|
|
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
|
|
|
wifi: wifi@0,0 {
|
2018-05-06 08:20:11 +00:00
|
|
|
reg = <0x0000 0 0 0 0>;
|
|
|
|
qca,no-eeprom;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
ð0 {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
mtd-mac-address = <&art 0x0>;
|
|
|
|
};
|
|
|
|
|
|
|
|
ð1 {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
mtd-mac-address = <&art 0x6>;
|
|
|
|
};
|