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-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
23 compatible = "jedec,spi-nor";
25 spi-max-frequency = <10000000>;
28 compatible = "fixed-partitions";
40 reg = <0x30000 0x10000>;
44 factory: partition@40000 {
46 reg = <0x40000 0x10000>;
51 compatible = "denx,uimage";
53 reg = <0x50000 0x7b0000>;
61 compatible = "gpio-leds";
64 label = "nbg-419n2:green:power";
65 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
69 label = "nbg-419n2:green:wps";
70 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
74 label = "nbg-419n2:green:usb";
75 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
76 trigger-sources = <&ohci_port1>, <&ehci_port1>;
77 linux,default-trigger = "usbport";
82 compatible = "gpio-keys-polled";
86 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
87 linux,code = <KEY_RESTART>;
91 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
92 linux,code = <KEY_WPS_BUTTON>;
96 linux,input-type = <EV_SW>;
97 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
98 linux,code = <KEY_RFKILL>;
104 state_default: pinctrl0 {
106 ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
107 ralink,function = "gpio";
113 mtd-mac-address = <&factory 0x28>;
117 mediatek,portmap = <0x2f>;
121 ralink,mtd-eeprom = <&factory 0>;