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>;
52 reg = <0x50000 0x7b0000>;
60 compatible = "gpio-leds";
63 label = "nbg-419n2:green:power";
64 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
68 label = "nbg-419n2:green:wps";
69 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
73 label = "nbg-419n2:green:usb";
74 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
75 trigger-sources = <&ohci_port1>, <&ehci_port1>;
76 linux,default-trigger = "usbport";
81 compatible = "gpio-keys-polled";
85 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
86 linux,code = <KEY_RESTART>;
90 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
91 linux,code = <KEY_WPS_BUTTON>;
95 linux,input-type = <EV_SW>;
96 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
97 linux,code = <KEY_RFKILL>;
103 state_default: pinctrl0 {
105 ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
106 ralink,function = "gpio";
112 mtd-mac-address = <&factory 0x28>;
116 mediatek,portmap = <0x2f>;
120 ralink,mtd-eeprom = <&factory 0>;