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 = "zyxel,p-2812hnu", "lantiq,xway", "lantiq,vr9";
11 bootargs = "console=ttyLTQ0,115200";
15 led-boot = &power_green;
16 led-failsafe = &power_red;
17 led-running = &power_green;
18 led-upgrade = &power_green;
21 led-internet = &internet_green;
22 led-wifi = &wireless_green;
26 device_type = "memory";
27 reg = <0x0 0x8000000>;
31 compatible = "gpio-keys-polled";
32 poll-interval = <100>;
36 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_RESTART>;
42 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
43 linux,code = <KEY_RFKILL>;
48 compatible = "gpio-leds";
51 label = "red:internet";
52 gpios = <&stp 16 GPIO_ACTIVE_LOW>;
54 internet_green: internet_green {
55 label = "green:internet";
56 gpios = <&stp 17 GPIO_ACTIVE_LOW>;
58 dsl_green: dsl_green {
60 gpios = <&stp 18 GPIO_ACTIVE_LOW>;
64 gpios = <&stp 19 GPIO_ACTIVE_LOW>;
67 function = LED_FUNCTION_WLAN;
68 color = <LED_COLOR_ID_ORANGE>;
69 gpios = <&stp 20 GPIO_ACTIVE_LOW>;
71 wireless_green: wireless_green {
72 function = LED_FUNCTION_WLAN;
73 color = <LED_COLOR_ID_GREEN>;
74 gpios = <&stp 21 GPIO_ACTIVE_LOW>;
77 function = LED_FUNCTION_POWER;
78 color = <LED_COLOR_ID_RED>;
79 gpios = <&stp 22 GPIO_ACTIVE_LOW>;
82 function = LED_FUNCTION_POWER;
83 color = <LED_COLOR_ID_GREEN>;
84 gpios = <&stp 23 GPIO_ACTIVE_LOW>;
85 default-state = "keep";
88 label = "green:phone";
89 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
92 label = "orange:phone";
93 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
96 label = "orange:phone2";
97 gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
100 label = "green:phone2";
101 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
105 usb_vbus: regulator-usb-vbus {
106 compatible = "regulator-fixed";
108 regulator-name = "USB_VBUS";
110 regulator-min-microvolt = <5000000>;
111 regulator-max-microvolt = <5000000>;
113 gpio = <&gpio 33 GPIO_ACTIVE_HIGH>;
119 lantiq,gphy-mode = <GPHY_MODE_GE>;
123 lantiq,gphy-mode = <GPHY_MODE_GE>;
127 pinctrl-names = "default";
128 pinctrl-0 = <&state_default>;
130 state_default: pinmux {
132 lantiq,groups = "exin3";
133 lantiq,function = "exin";
136 lantiq,pins = "io21";
138 lantiq,open-drain = <0>;
142 lantiq,pins = "io38";
147 lantiq,pins = "io33";
149 lantiq,open-drain = <0>;
156 pinctrl-0 = <&mdio_pins>,
157 <&gphy0_led1_pins>, <&gphy0_led2_pins>,
158 <&gphy1_led1_pins>, <&gphy1_led2_pins>;
159 pinctrl-names = "default";
163 phy0: ethernet-phy@0 {
166 phy1: ethernet-phy@1 {
169 phy5: ethernet-phy@5 {
172 phy11: ethernet-phy@11 {
175 phy13: ethernet-phy@13 {
185 phy-handle = <&phy0>;
191 phy-handle = <&phy1>;
196 phy-mode = "internal";
197 phy-handle = <&phy11>;
202 phy-mode = "internal";
203 phy-handle = <&phy13>;
209 phy-handle = <&phy5>;
216 pinctrl-0 = <&pci_gnt1_pins>, <&pci_req1_pins>;
217 pinctrl-names = "default";
219 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
236 vbus-supply = <&usb_vbus>;
241 vbus-supply = <&usb_vbus>;