forked from Openwrt/openwrt
91 lines
1.4 KiB
Plaintext
91 lines
1.4 KiB
Plaintext
// SPDX-License-Identifier: GPL-2.0
|
|
/dts-v1/;
|
|
|
|
#include "RTL8197F.dtsi"
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
#include <dt-bindings/input/input.h>
|
|
|
|
/ {
|
|
compatible = "maxprint,maxlinkac1200g", "realtek,rtl8197f-soc";
|
|
model = "Maxprint MAXLINKAC1200G V1";
|
|
|
|
memory {
|
|
device_type = "memory";
|
|
reg = <0x0 0x4000000>;
|
|
};
|
|
|
|
chosen {
|
|
bootargs = "console=ttyS0,38400";
|
|
};
|
|
|
|
gpio-keys-polled {
|
|
compatible = "gpio-keys-polled";
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
poll-interval = <20>;
|
|
|
|
reset {
|
|
label = "reset";
|
|
gpios = <&gpio1 22 GPIO_ACTIVE_LOW>;
|
|
linux,code = <KEY_RESTART>;
|
|
};
|
|
};
|
|
|
|
gpio-leds {
|
|
compatible = "gpio-leds";
|
|
|
|
wlan_2g {
|
|
label = "maxlinkac1200g:green:wlan_2g";
|
|
gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
wps {
|
|
label = "maxlinkac1200g:green:wps";
|
|
gpios = <&gpio1 25 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
wlan_5g {
|
|
label = "maxlinkac1200g:green:wlan_5g";
|
|
gpios = <&gpio2 8 GPIO_ACTIVE_LOW>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&gpio1 {
|
|
status = "okay";
|
|
};
|
|
|
|
&gpio2 {
|
|
status = "okay";
|
|
};
|
|
|
|
&spi0 {
|
|
status = "okay";
|
|
|
|
m25p80@0 {
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
compatible = "jedec,spi-nor";
|
|
reg = <0>;
|
|
spi-max-frequency = <41000000>;
|
|
|
|
partition@0 {
|
|
label = "boot";
|
|
reg = <0x0 0x20000>;
|
|
read-only;
|
|
};
|
|
|
|
partition@20000 {
|
|
label = "config";
|
|
reg = <0x20000 0x10000>;
|
|
read-only;
|
|
};
|
|
|
|
partition@30000 {
|
|
label = "firmware";
|
|
reg = <0x30000 0x7C0000>;
|
|
};
|
|
};
|
|
};
|