2018-05-07 16:08:00 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
2020-09-25 19:52:57 +00:00
|
|
|
|
|
|
|
#include "ar9331.dtsi"
|
2018-05-07 16:08:00 +00:00
|
|
|
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
#include <dt-bindings/input/input.h>
|
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "eTactica EG200";
|
2018-12-06 10:16:47 +00:00
|
|
|
compatible = "etactica,eg200", "qca,ar9331";
|
2018-05-07 16:08:00 +00:00
|
|
|
|
2018-08-06 05:55:13 +00:00
|
|
|
aliases {
|
2019-09-05 09:36:53 +00:00
|
|
|
led-boot = &led_etactica;
|
|
|
|
led-failsafe = &led_etactica;
|
|
|
|
led-upgrade = &led_etactica;
|
2018-08-06 05:55:13 +00:00
|
|
|
serial0 = &uart;
|
|
|
|
};
|
2018-05-07 16:08:00 +00:00
|
|
|
|
|
|
|
keys {
|
2019-08-10 17:22:40 +00:00
|
|
|
compatible = "gpio-keys";
|
2018-05-07 16:08:00 +00:00
|
|
|
|
|
|
|
restore {
|
2019-08-12 16:37:34 +00:00
|
|
|
linux,code = <KEY_RESTART>;
|
2018-05-07 16:08:00 +00:00
|
|
|
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
2018-12-31 20:51:47 +00:00
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&switch_led_disable_pins>;
|
2018-05-07 16:08:00 +00:00
|
|
|
|
|
|
|
modbus {
|
|
|
|
label = "eg200:red:modbus";
|
|
|
|
gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
2019-09-05 09:36:53 +00:00
|
|
|
led_etactica: etactica {
|
2018-05-07 16:08:00 +00:00
|
|
|
label = "eg200:red:etactica";
|
|
|
|
gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
|
|
|
eth0 {
|
|
|
|
label = "eg200:red:eth0";
|
|
|
|
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
|
|
|
wlan {
|
|
|
|
label = "eg200:red:wlan";
|
|
|
|
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
|
2018-06-16 06:13:09 +00:00
|
|
|
linux,default-trigger = "phy0tpt";
|
2018-05-07 16:08:00 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&uart {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&usb {
|
|
|
|
dr_mode = "host";
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&usb_phy {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
ð0 {
|
|
|
|
status = "okay";
|
|
|
|
mtd-mac-address = <&art 0x0>;
|
|
|
|
|
|
|
|
gmac-config {
|
|
|
|
device = <&gmac>;
|
|
|
|
switch-phy-addr-swap = <1>;
|
|
|
|
switch-phy-swap = <1>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-07-17 09:09:14 +00:00
|
|
|
ð1 {
|
|
|
|
status = "okay";
|
|
|
|
compatible = "syscon", "simple-mfd";
|
|
|
|
};
|
|
|
|
|
2018-05-07 16:08:00 +00:00
|
|
|
&spi {
|
|
|
|
num-chipselects = <1>;
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
flash@0 {
|
|
|
|
compatible = "jedec,spi-nor";
|
|
|
|
spi-max-frequency = <50000000>;
|
|
|
|
reg = <0>;
|
|
|
|
|
|
|
|
partitions {
|
|
|
|
compatible = "fixed-partitions";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
uboot@0 {
|
|
|
|
reg = <0x0 0x40000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
uboot-env@40000 {
|
|
|
|
reg = <0x40000 0x10000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
firmware@50000 {
|
2018-11-29 13:07:59 +00:00
|
|
|
compatible = "denx,uimage";
|
2018-05-07 16:08:00 +00:00
|
|
|
reg = <0x50000 0xfa0000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
art: art@ff0000 {
|
|
|
|
reg = <0xff0000 0x10000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&wmac {
|
|
|
|
status = "okay";
|
|
|
|
mtd-cal-data = <&art 0x1000>;
|
|
|
|
};
|