3 #include <dt-bindings/input/input.h>
4 #include <dt-bindings/leds/common.h>
5 #include <dt-bindings/mips/lantiq_rcu_gphy.h>
8 compatible = "arcadyan,vgv7519", "lantiq,xway", "lantiq,vr9";
11 bootargs = "console=ttyLTQ0,115200 mem=62M vpe1_load_addr=0x83e00000 vpe1_mem=2M maxvpes=1 maxtcs=1 nosmp";
15 led-boot = &power_green;
16 led-failsafe = &power_red;
17 led-running = &power_green;
18 led-upgrade = &power_green;
20 led-dsl = &broadband_green;
21 led-internet = &internet_green;
22 led-wifi = &wireless_green;
26 device_type = "memory";
27 reg = <0x0 0x4000000>;
31 compatible = "gpio-keys-polled";
32 poll-interval = <100>;
35 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_RESTART>;
40 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
45 gpios = <&gpio 45 GPIO_ACTIVE_LOW>;
46 linux,code = <KEY_RFKILL>;
50 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
51 linux,code = <KEY_WPS_BUTTON>;
56 compatible = "gpio-leds";
60 gpios = <&stp 2 GPIO_ACTIVE_LOW>;
63 function = LED_FUNCTION_WPS;
64 color = <LED_COLOR_ID_RED>;
65 gpios = <&stp 3 GPIO_ACTIVE_LOW>;
68 function = LED_FUNCTION_WPS;
69 color = <LED_COLOR_ID_GREEN>;
70 gpios = <&stp 4 GPIO_ACTIVE_LOW>;
73 label = "blue:upgrade";
74 gpios = <&stp 5 GPIO_ACTIVE_LOW>;
78 gpios = <&stp 6 GPIO_ACTIVE_LOW>;
80 internet_green: internet_green {
81 label = "green:internet";
82 gpios = <&stp 7 GPIO_ACTIVE_LOW>;
85 label = "red:internet";
86 gpios = <&stp 8 GPIO_ACTIVE_LOW>;
89 label = "red:broadband";
90 gpios = <&stp 9 GPIO_ACTIVE_LOW>;
92 broadband_green: broadband_green {
93 label = "green:broadband";
94 gpios = <&stp 10 GPIO_ACTIVE_LOW>;
97 label = "green:voice";
98 gpios = <&stp 11 GPIO_ACTIVE_LOW>;
101 label = "red:wireless";
102 gpios = <&stp 12 GPIO_ACTIVE_LOW>;
104 wireless_green: wireless_green {
105 label = "green:wireless";
106 gpios = <&stp 13 GPIO_ACTIVE_LOW>;
108 power_green: power2 {
109 function = LED_FUNCTION_POWER;
110 color = <LED_COLOR_ID_GREEN>;
111 gpios = <&stp 14 GPIO_ACTIVE_LOW>;
112 default-state = "keep";
115 function = LED_FUNCTION_POWER;
116 color = <LED_COLOR_ID_RED>;
117 gpios = <&stp 15 GPIO_ACTIVE_LOW>;
121 usb_vbus: regulator-usb-vbus {
122 compatible = "regulator-fixed";
124 regulator-name = "USB_VBUS";
126 regulator-min-microvolt = <5000000>;
127 regulator-max-microvolt = <5000000>;
129 gpio = <&gpio 32 GPIO_ACTIVE_HIGH>;
135 nvmem-cells = <&macaddr_boardconfig_16 1>;
136 nvmem-cell-names = "mac-address";
140 lantiq,gphy-mode = <GPHY_MODE_GE>;
144 lantiq,gphy-mode = <GPHY_MODE_GE>;
148 pinctrl-names = "default";
149 pinctrl-0 = <&state_default>;
151 state_default: pinmux {
153 lantiq,pins = "io21";
154 lantiq,open-drain = <0>;
162 pinctrl-0 = <&mdio_pins>, <&gphy0_led1_pins>, <&gphy1_led0_pins>;
163 pinctrl-names = "default";
167 phy0: ethernet-phy@0 {
170 phy1: ethernet-phy@1 {
173 phy5: ethernet-phy@5 {
176 phy11: ethernet-phy@11 {
179 phy13: ethernet-phy@13 {
189 phy-handle = <&phy0>;
195 phy-handle = <&phy1>;
200 phy-mode = "internal";
201 phy-handle = <&phy11>;
206 phy-mode = "internal";
207 phy-handle = <&phy13>;
213 phy-handle = <&phy5>;
219 compatible = "lantiq,nor";
221 reg = <0 0x0 0x800000>, <1 0x800000 0x800000>;
224 compatible = "fixed-partitions";
225 #address-cells = <1>;
228 boardconfig: partition@40000 {
229 label = "board_config";
230 reg = <0x40000 0x10000>;
234 compatible = "fixed-layout";
235 #address-cells = <1>;
238 macaddr_boardconfig_16: macaddr@16 {
239 compatible = "mac-base";
241 #nvmem-cell-cells = <1>;
251 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
254 compatible = "pci1814,3091";
255 reg = <0x7000 0 0 0 0>;
256 ralink,mtd-eeprom = <&boardconfig 0x410>;
258 nvmem-cells = <&macaddr_boardconfig_16 1>;
259 nvmem-cell-names = "mac-address";
269 lantiq,shadow = <0xffff>;
270 lantiq,groups = <0x3>;
284 vbus-supply = <&usb_vbus>;
289 vbus-supply = <&usb_vbus>;
294 gpios = <&gpio 30 GPIO_ACTIVE_HIGH //fxs relay
295 &gpio 31 GPIO_ACTIVE_HIGH //still unknown
296 &gpio 3 GPIO_ACTIVE_HIGH>; //reset_slic?