aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts/NBG-419N.dts
blob: 55590de1bebf18ec753015152149c80fb9387e62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
/dts-v1/;

#include "rt3050.dtsi"

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>

/ {
	compatible = "zyxel,nbg-419n", "ralink,rt3052-soc";
	model = "ZyXEL NBG-419N";

	cfi@1f000000 {
		compatible = "cfi-flash";
		reg = <0x1f000000 0x800000>;
		bank-width = <2>;
		device-width = <2>;
		#address-cells = <1>;
		#size-cells = <1>;

		partition@0 {
			label = "u-boot";
			reg = <0x0 0x30000>;
			read-only;
		};

		partition@30000 {
			label = "u-boot-env";
			reg = <0x30000 0x10000>;
			read-only;
		};

		factory: partition@40000 {
			label = "factory";
			reg = <0x40000 0x10000>;
			read-only;
		};

		partition@50000 {
			label = "firmware";
			reg = <0x50000 0x3b0000>;
		};
	};

	gpio-leds {
		compatible = "gpio-leds";

		power {
			label = "nbg-419n:green:power";
			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
		};

		wps {
			label = "nbg-419n:green:wps";
			gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
		};
	};

	gpio-keys-polled {
		compatible = "gpio-keys-polled";
		#address-cells = <1>;
		#size-cells = <0>;
		poll-interval = <20>;

		reset {
			label = "reset";
			gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
			linux,code = <KEY_RESTART>;
		};

		wps {
			label = "wps";
			gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
			linux,code = <KEY_WPS_BUTTON>;
		};
	};
};

&pinctrl {
	state_default: pinctrl0 {
		gpio {
			ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
			ralink,function = "gpio";
		};
	};
};

&ethernet {
	mtd-mac-address = <&factory 0x28>;
};

&esw {
	mediatek,portmap = <0x2f>;
};

&wmac {
	ralink,mtd-eeprom = <&factory 0>;
};
>}, \texttt{g}, \texttt{bg}, \texttt{a}). This feature is only supported on the atheros chipset. \end{itemize} \paragraph{Options for the \texttt{wifi-iface}:} \begin{itemize} \item \texttt{network} \\ Selects the interface section from \texttt{/etc/config/network} to be used with this interface \item \texttt{device} \\ Set the wifi device name. \item \texttt{mode} \\ Operating mode: \begin{itemize} \item \texttt{ap} \\ Access point mode \item \texttt{sta} \\ Client mode \item \texttt{adhoc} \\ Ad-Hoc mode \item \texttt{wds} \\ WDS point-to-point link \end{itemize} \item \texttt{ssid} Set the SSID to be used on the wifi device. \item \texttt{bssid} Set the BSSID address to be used for wds to set the mac address of the other wds unit. \item \texttt{encryption} \\ Encryption setting. Accepts the following values: \begin{itemize} \item \texttt{none} \item \texttt{wep} \item \texttt{psk}, \texttt{psk2} \\ WPA(2) Pre-shared Key \item \texttt{wpa}, \texttt{wpa2} \\ WPA(2) RADIUS \end{itemize} \item \texttt{key, key1, key2, key3, key4} (wep, wpa and psk) \\ WEP key, WPA key (PSK mode) or the RADIUS shared secret (WPA RADIUS mode) \item \texttt{server} (wpa) \\ The RADIUS server ip address \item \texttt{port} (wpa) \\ The RADIUS server port \item \texttt{hidden} \\ 0 broadcasts the ssid; 1 disables broadcasting of the ssid \item \texttt{isolate} \\ Optional: Isolation is a mode usually set on hotspots that limits the clients to communicate only with the AP and not with other wireless clients. 0 disables ap isolation (default); 1 enables ap isolation. \end{itemize} \paragraph{Limitations:} There are certain limitations when combining modes. Only the following mode combinations are supported: \begin{itemize} \item \textbf{Broadcom}: \\ \begin{itemize} \item 1x \texttt{sta}, 0-3x \texttt{ap} \item 1-4x \texttt{ap} \item 1x \texttt{adhoc} \end{itemize} WDS links can only be used in pure AP mode and cannot use WEP (except when sharing the settings with the master interface, which is done automatically). \item \textbf{Atheros}: \\ \begin{itemize} \item 1x \texttt{sta}, 0-4x \texttt{ap} \item 1-4x \texttt{ap} \item 1x \texttt{adhoc} \end{itemize} \end{itemize}