5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "dlink,dap-1522-a1", "ralink,rt2880-soc";
10 model = "D-Link DAP-1522 A1";
13 led-boot = &led_status;
14 led-failsafe = &led_status;
15 led-running = &led_status;
16 led-upgrade = &led_status;
20 compatible = "cfi-flash";
21 reg = <0xbc400000 0x800000>;
26 compatible = "fixed-partitions";
36 factory: partition@30000 {
38 reg = <0x30000 0x10000>;
44 reg = <0x40000 0x3a0000>;
50 compatible = "realtek,rtl8366s";
51 gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
52 gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
56 compatible = "gpio-keys-polled";
57 poll-interval = <100>;
61 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
62 linux,code = <KEY_RESTART>;
67 gpios = <&gpio2 16 GPIO_ACTIVE_LOW>;
68 linux,code = <KEY_WPS_BUTTON>;
73 gpios = <&gpio2 13 GPIO_ACTIVE_LOW>;
75 linux,input-type = <EV_SW>;
80 gpios = <&gpio2 14 GPIO_ACTIVE_LOW>;
82 linux,input-type = <EV_SW>;
87 compatible = "gpio-leds";
90 label = "dap-1522-a1:blue:wps";
91 gpios = <&gpio2 17 GPIO_ACTIVE_LOW>;
95 label = "dap-1522-a1:blue:ap";
96 gpios = <&gpio2 18 GPIO_ACTIVE_LOW>;
100 label = "dap-1522-a1:red:sta";
101 gpios = <&gpio2 19 GPIO_ACTIVE_LOW>;
105 label = "dap-1522-a1:blue:status";
106 gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
120 state_default: pinctrl0 {
122 ralink,group = "i2c", "uartlite", "pci";
123 ralink,function = "gpio";
130 mtd-mac-address = <&factory 0x2004>;
133 mediatek,fixed-link = <1000 1 1 1>;
139 phy0: ethernet-phy@0 {
147 ralink,mtd-eeprom = <&factory 0x2000>;