mpc85xx: Enable RFKill and USB Power GPIO Control for WDR4900v1
authorJohn Crispin <john@openwrt.org>
Thu, 9 Jul 2015 06:56:45 +0000 (06:56 +0000)
committerJohn Crispin <john@openwrt.org>
Thu, 9 Jul 2015 06:56:45 +0000 (06:56 +0000)
This patch adds the RFKill GPIO control switch and enables another GPIO to
control power supply to USB Ports by emulating an LED GPIO for WDR4900v1.

Signed-off-by: Guo Wei Lim <alphasparc@gmail.com>
SVN-Revision: 46279

target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts

index 2beb39cf1f2b22d99207b2298bd550a71c8d7666..148c7a2fe31f878e9c23bba511dadf664174e10a 100644 (file)
                        gpios = <&gpio0 4 1>; /* active low */
                        label = "tp-link:green:usb2";
                };
+
+               usbpower {
+                       gpios = <&gpio0 10 1>; /* active low */
+                       label = "tp-link:usb:power";
+               };
        };
 
        buttons {
                        gpios = <&gpio0 5 1>; /* active low */
                        linux,code = <0x198>; /* KEY_RESTART */
                };
+
+               rfkill {
+                       label = "RFKILL switch";
+                       gpios = <&gpio0 11 1>; /* active low */
+                       linux,code = <0xf7>; /* RFKill */
+               };
        };
 };