ath79: convert WD MyNet Range Extender to gpio-keys
This patch converts the Range Extender to use the interrupt-driven gpio-keys driver over the polled variant. Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
This commit is contained in:
		| @@ -58,26 +58,22 @@ | |||||||
| 	}; | 	}; | ||||||
|  |  | ||||||
| 	keys { | 	keys { | ||||||
| 		compatible = "gpio-keys-polled"; | 		compatible = "gpio-keys"; | ||||||
| 		poll-interval = <50>; |  | ||||||
|  |  | ||||||
| 		reset { | 		reset { | ||||||
| 			linux,code = <KEY_RESTART>; | 			linux,code = <KEY_RESTART>; | ||||||
| 			gpios = <&gpio 13 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio 13 GPIO_ACTIVE_LOW>; | ||||||
| 			debounce-interval = <60>; |  | ||||||
| 		}; | 		}; | ||||||
|  |  | ||||||
| 		band-switch { | 		band-switch { | ||||||
| 			linux,code = <BTN_1>; | 			linux,code = <BTN_1>; | ||||||
| 			gpios = <&gpio 14 GPIO_ACTIVE_HIGH>; | 			gpios = <&gpio 14 GPIO_ACTIVE_HIGH>; | ||||||
| 			linux,input-type = <EV_SW>; | 			linux,input-type = <EV_SW>; | ||||||
| 			debounce-interval = <60>; |  | ||||||
| 		}; | 		}; | ||||||
|  |  | ||||||
| 		wps { | 		wps { | ||||||
| 			linux,code = <KEY_WPS_BUTTON>; | 			linux,code = <KEY_WPS_BUTTON>; | ||||||
| 			gpios = <&gpio 15 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio 15 GPIO_ACTIVE_LOW>; | ||||||
| 			debounce-interval = <60>; |  | ||||||
| 		}; | 		}; | ||||||
| 	}; | 	}; | ||||||
| }; | }; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Christian Lamparter
					Christian Lamparter