3 #include <dt-bindings/input/input.h>
4 #include <dt-bindings/leds/common.h>
7 compatible = "zte,h201l", "lantiq,xway", "lantiq,ar9";
11 bootargs = "console=ttyLTQ0,115200";
15 led-boot = &power_green;
16 led-failsafe = &power_green;
17 led-running = &power_green;
18 led-upgrade = &power_green;
21 led-internet = &online;
27 device_type = "memory";
28 reg = <0x0 0x2000000>;
32 compatible = "gpio-keys-polled";
33 poll-interval = <100>;
37 gpios = <&gpio 53 GPIO_ACTIVE_LOW>;
38 linux,code = <KEY_RESTART>;
42 gpios = <&gpio 54 GPIO_ACTIVE_LOW>;
43 linux,code = <KEY_WPS_BUTTON>;
47 gpios = <&gpio 55 GPIO_ACTIVE_LOW>;
48 linux,code = <KEY_RFKILL>;
53 compatible = "gpio-leds";
56 function = LED_FUNCTION_POWER;
57 color = <LED_COLOR_ID_GREEN>;
58 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
59 default-state = "keep";
62 label = "green:internet";
63 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
67 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
70 label = "green:phone";
71 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
74 function = LED_FUNCTION_WPS;
75 color = <LED_COLOR_ID_GREEN>;
76 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
79 function = LED_FUNCTION_WLAN;
80 color = <LED_COLOR_ID_GREEN>;
81 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
84 function = LED_FUNCTION_USB;
85 color = <LED_COLOR_ID_GREEN>;
86 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
91 compatible = "gpio-export";
95 gpio-export,name = "switch";
96 gpio-export,output = <1>;
97 gpios = <&gpio 38 GPIO_ACTIVE_HIGH>;
100 gpio-export,name = "usb";
101 gpio-export,output = <1>;
102 gpios = <&gpio 28 GPIO_ACTIVE_HIGH>;
105 gpio-export,name = "wifi";
106 gpio-export,output = <1>;
107 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
111 usb_vbus: regulator-usb-vbus {
112 compatible = "regulator-fixed";
114 regulator-name = "USB_VBUS";
116 regulator-min-microvolt = <5000000>;
117 regulator-max-microvolt = <5000000>;
119 gpio = <&gpio 36 GPIO_ACTIVE_HIGH>;
125 pinctrl-names = "default";
126 pinctrl-0 = <&state_default>;
128 state_default: pinmux {
138 compatible = "lantiq,nor";
140 reg = <0 0x0 0x2000000>;
143 compatible = "fixed-partitions";
144 #address-cells = <1>;
149 reg = <0x00000 0x20000>;
154 label = "u-boot-env";
155 reg = <0x20000 0x10000>;
161 reg = <0x30000 0x7d0000>;
174 vbus-supply = <&usb_vbus>;