ramips: add RP-N53 pcie wireless eeprom
[openwrt/openwrt.git] / target / linux / ramips / dts / RP-N53.dts
index c661be3a28ce3b509983284fd519709fc4a3f193..fe18b6f828e5604fb0bc53cb60df76a432003739 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "asus,rp-n53", "ralink,mt7620a-soc";
        model = "Asus RP-N53";
                touch {
                        label = "touch";
                        gpios = <&gpio1 0 1>;
-                       linux,code = <0x100>;
+                       linux,code = <BTN_0>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio1 1 1>;
-                       linux,code = <0x100>;
+                       linux,code = <BTN_0>;
                };
 
                reset {
                        label = "reset";
                        gpios = <&gpio1 2 1>;
-                       linux,code = <0x100>;
+                       linux,code = <BTN_0>;
                };
 
                audio {
                        label = "audio";
                        gpios = <&gpio1 3 0>;
-                       linux,code = <0x101>;
+                       linux,code = <BTN_1>;
                };
        };
 
 
 &pcie {
        status = "okay";
+
+       pcie-bridge {
+               wifi@1814,5592 {
+                       compatible = "pci1814,5592";
+                       reg = <0x0000 0 0 0 0>;
+                       ralink,2ghz = <0>;
+                       ralink,mtd-eeprom = <&factory 0x8000>;
+               };
+       };
 };