5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "zyxel,nbg-419n-v2", "ralink,rt3352-soc";
10 model = "ZyXEL NBG-419N v2";
13 led-status = &led_power;
20 compatible = "jedec,spi-nor";
22 spi-max-frequency = <10000000>;
25 compatible = "fixed-partitions";
37 reg = <0x30000 0x10000>;
41 factory: partition@40000 {
43 reg = <0x40000 0x10000>;
49 reg = <0x50000 0x7b0000>;
57 compatible = "gpio-leds";
60 label = "nbg-419n2:green:power";
61 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
65 label = "nbg-419n2:green:wps";
66 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
70 label = "nbg-419n2:green:usb";
71 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
72 trigger-sources = <&ohci_port1>, <&ehci_port1>;
73 linux,default-trigger = "usbport";
78 compatible = "gpio-keys-polled";
82 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
83 linux,code = <KEY_RESTART>;
87 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
88 linux,code = <KEY_WPS_BUTTON>;
92 linux,input-type = <EV_SW>;
93 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
94 linux,code = <KEY_RFKILL>;
100 state_default: pinctrl0 {
102 ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
103 ralink,function = "gpio";
109 mtd-mac-address = <&factory 0x28>;
113 mediatek,portmap = <0x2f>;
117 ralink,mtd-eeprom = <&factory 0>;