3 #include <dt-bindings/input/input.h>
4 #include <dt-bindings/leds/common.h>
5 #include <dt-bindings/mips/lantiq_rcu_gphy.h>
10 led-failsafe = &led_power;
11 led-running = &led_power;
12 led-upgrade = &led_power;
15 led-internet = &led_internet;
16 led-wifi = &led_wlan5g;
20 device_type = "memory";
21 reg = <0x0 0x7f00000>;
25 compatible = "gpio-keys-polled";
26 poll-interval = <100>;
30 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
31 linux,code = <KEY_RESTART>;
36 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
37 linux,code = <KEY_RFKILL>;
38 linux,input-type = <EV_SW>;
43 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
44 linux,code = <KEY_WPS_BUTTON>;
49 compatible = "gpio-leds";
52 function = LED_FUNCTION_POWER;
53 color = <LED_COLOR_ID_BLUE>;
54 gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
55 default-state = "keep";
60 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
63 led_internet: internet {
64 label = "blue:internet";
65 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
69 function = LED_FUNCTION_USB;
70 color = <LED_COLOR_ID_BLUE>;
71 gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
72 trigger-sources = <&ehci_port1>, <&ehci_port2>;
73 linux,default-trigger = "usbport";
77 function = LED_FUNCTION_LAN;
78 color = <LED_COLOR_ID_BLUE>;
79 gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
83 function = LED_FUNCTION_WLAN;
84 color = <LED_COLOR_ID_BLUE>;
85 gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
89 label = "blue:wlan5g";
90 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
94 usb_vbus: regulator-usb-vbus {
95 compatible = "regulator-fixed";
97 regulator-name = "USB_VBUS";
99 regulator-min-microvolt = <5000000>;
100 regulator-max-microvolt = <5000000>;
102 gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
108 nvmem-cells = <&macaddr_romfile_f100 0>;
109 nvmem-cell-names = "mac-address";
113 lantiq,gphy-mode = <GPHY_MODE_GE>;
117 lantiq,gphy-mode = <GPHY_MODE_GE>;
121 pinctrl-names = "default";
122 pinctrl-0 = <&state_default>;
124 state_default: pinmux {
126 lantiq,pins = "io42";
128 lantiq,open-drain = <0>;
132 lantiq,pins = "io38";
140 pinctrl-0 = <&mdio_pins>, <&gphy0_led1_pins>, <&gphy1_led1_pins>;
141 pinctrl-names = "default";
145 phy0: ethernet-phy@0 {
147 // reset-gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
149 phy5: ethernet-phy@5 {
152 phy11: ethernet-phy@11 {
155 phy13: ethernet-phy@13 {
165 phy-handle = <&phy0>;
170 phy-mode = "internal";
171 phy-handle = <&phy11>;
176 phy-mode = "internal";
177 phy-handle = <&phy13>;
183 phy-handle = <&phy5>;
190 #interrupt-cells = <1>;
192 #address-cells = <3>;
197 mediatek,mtd-eeprom = <&radio 0x0000>;
199 ieee80211-freq-limit = <5000000 6000000>;
200 nvmem-cells = <&macaddr_romfile_f100 2>;
201 nvmem-cell-names = "mac-address";
208 reset-gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
215 compatible = "jedec,spi-nor";
217 spi-max-frequency = <33250000>;
221 compatible = "fixed-partitions";
222 #address-cells = <1>;
232 reg = <0x20000 0xf90000>;
237 reg = <0xfb0000 0x10000>;
243 reg = <0xfc0000 0x10000>;
248 romfile: partition@fd0000 {
249 reg = <0xfd0000 0x10000>;
254 compatible = "fixed-layout";
255 #address-cells = <1>;
258 macaddr_romfile_f100: macaddr@f100 {
259 compatible = "mac-base";
261 #nvmem-cell-cells = <1>;
267 reg = <0xfe0000 0x10000>;
272 radio: partition@ff0000 {
273 reg = <0xff0000 0x10000>;
291 vbus-supply = <&usb_vbus>;
296 vbus-supply = <&usb_vbus>;