2015-12-11 15:02:13 +00:00
|
|
|
#include "mt7621.dtsi"
|
2015-07-24 09:09:22 +00:00
|
|
|
|
2017-07-29 10:14:07 +08:00
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
2016-11-11 22:43:08 +01:00
|
|
|
#include <dt-bindings/input/input.h>
|
|
|
|
|
2015-07-24 09:09:22 +00:00
|
|
|
/ {
|
2017-07-28 00:49:06 +08:00
|
|
|
compatible = "storylink,sap-g3200u3", "mediatek,mt7621-soc";
|
2015-07-24 09:09:22 +00:00
|
|
|
model = "STORYLiNK SAP-G3200U3";
|
|
|
|
|
2018-12-30 12:42:53 +01:00
|
|
|
leds {
|
2015-07-24 09:09:22 +00:00
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
2018-08-13 17:14:08 +02:00
|
|
|
usb {
|
2020-09-27 19:40:51 +02:00
|
|
|
label = "green:usb";
|
2020-03-04 05:22:24 +08:00
|
|
|
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
|
2018-08-13 17:14:08 +02:00
|
|
|
trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
|
|
|
|
linux,default-trigger = "usbport";
|
2015-07-24 09:09:22 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-12-30 12:17:25 +01:00
|
|
|
keys {
|
2019-09-20 14:03:02 +02:00
|
|
|
compatible = "gpio-keys";
|
2015-08-17 05:57:18 +00:00
|
|
|
|
2015-07-24 09:09:22 +00:00
|
|
|
reset {
|
|
|
|
label = "reset";
|
2020-03-04 05:22:24 +08:00
|
|
|
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
|
2016-11-11 22:43:08 +01:00
|
|
|
linux,code = <KEY_RESTART>;
|
2015-07-24 09:09:22 +00:00
|
|
|
};
|
2015-08-17 05:57:18 +00:00
|
|
|
|
2015-07-24 09:09:22 +00:00
|
|
|
rfkill {
|
|
|
|
label = "rfkill";
|
2020-03-04 05:22:24 +08:00
|
|
|
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
|
2016-11-11 22:43:08 +01:00
|
|
|
linux,code = <KEY_RFKILL>;
|
2015-07-24 09:09:22 +00:00
|
|
|
};
|
|
|
|
};
|
2016-05-10 13:41:46 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
&spi0 {
|
|
|
|
status = "okay";
|
|
|
|
|
2020-05-07 23:15:27 +09:00
|
|
|
flash@0 {
|
2016-05-10 13:41:46 +03:00
|
|
|
compatible = "jedec,spi-nor";
|
2016-05-14 19:22:08 +02:00
|
|
|
reg = <0>;
|
2016-05-10 13:41:46 +03:00
|
|
|
spi-max-frequency = <10000000>;
|
|
|
|
|
2018-08-01 21:32:34 +01:00
|
|
|
partitions {
|
|
|
|
compatible = "fixed-partitions";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
partition@0 {
|
|
|
|
label = "u-boot";
|
|
|
|
reg = <0x0 0x30000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@30000 {
|
|
|
|
label = "u-boot-env";
|
|
|
|
reg = <0x30000 0x1000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@31000 {
|
|
|
|
label = "config";
|
|
|
|
reg = <0x31000 0xf000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
factory: partition@40000 {
|
|
|
|
label = "factory";
|
|
|
|
reg = <0x40000 0x10000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@50000 {
|
2018-11-28 12:28:35 +09:00
|
|
|
compatible = "denx,uimage";
|
2018-08-01 21:32:34 +01:00
|
|
|
label = "firmware";
|
|
|
|
reg = <0x50000 0x7b0000>;
|
|
|
|
};
|
2016-05-10 13:41:46 +03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&pcie {
|
|
|
|
status = "okay";
|
2018-07-21 16:19:46 +02:00
|
|
|
};
|
2016-05-10 13:41:46 +03:00
|
|
|
|
2018-07-21 16:19:46 +02:00
|
|
|
&pcie0 {
|
|
|
|
mt76@0,0 {
|
|
|
|
reg = <0x0000 0 0 0 0>;
|
|
|
|
mediatek,mtd-eeprom = <&factory 0x8000>;
|
|
|
|
ieee80211-freq-limit = <5000000 6000000>;
|
2016-05-10 13:41:46 +03:00
|
|
|
};
|
2018-07-21 16:19:46 +02:00
|
|
|
};
|
2016-05-10 13:41:46 +03:00
|
|
|
|
2018-07-21 16:19:46 +02:00
|
|
|
&pcie1 {
|
|
|
|
mt76@0,0 {
|
|
|
|
reg = <0x0000 0 0 0 0>;
|
|
|
|
mediatek,mtd-eeprom = <&factory 0x0000>;
|
|
|
|
ieee80211-freq-limit = <2400000 2500000>;
|
2016-05-10 13:41:46 +03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-03-18 23:38:58 +08:00
|
|
|
&gmac0 {
|
2016-05-10 13:41:46 +03:00
|
|
|
mtd-mac-address = <&factory 0xe006>;
|
|
|
|
};
|
2015-07-24 09:09:22 +00:00
|
|
|
|
2020-03-18 23:38:58 +08:00
|
|
|
&switch0 {
|
|
|
|
ports {
|
|
|
|
port@0 {
|
|
|
|
status = "okay";
|
|
|
|
label = "lan1";
|
|
|
|
};
|
|
|
|
|
|
|
|
port@1 {
|
|
|
|
status = "okay";
|
|
|
|
label = "lan2";
|
|
|
|
};
|
|
|
|
|
|
|
|
port@2 {
|
|
|
|
status = "okay";
|
|
|
|
label = "lan3";
|
|
|
|
};
|
|
|
|
|
|
|
|
port@3 {
|
|
|
|
status = "okay";
|
|
|
|
label = "lan4";
|
|
|
|
};
|
|
|
|
|
|
|
|
port@4 {
|
|
|
|
status = "okay";
|
|
|
|
label = "wan";
|
|
|
|
mtd-mac-address = <&factory 0xe006>;
|
|
|
|
mtd-mac-address-increment = <1>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2019-12-22 21:26:01 +01:00
|
|
|
&state_default {
|
|
|
|
gpio {
|
2020-03-13 21:27:03 +08:00
|
|
|
groups = "uart3", "jtag";
|
|
|
|
function = "gpio";
|
2015-07-24 09:09:22 +00:00
|
|
|
};
|
|
|
|
};
|