Rafał Miłecki | e336a14 | 2014-12-04 10:22:58 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Broadcom BCM470X / BCM5301X ARM platform code. |
| 3 | * DTS for Buffalo WZR-1750DHP |
| 4 | * |
| 5 | * Copyright (C) 2014 Rafał Miłecki <zajec5@gmail.com> |
| 6 | * |
| 7 | * Licensed under the GNU/GPL. See COPYING for details. |
| 8 | */ |
| 9 | |
| 10 | /dts-v1/; |
| 11 | |
| 12 | #include "bcm4708.dtsi" |
| 13 | |
| 14 | / { |
| 15 | compatible = "buffalo,wzr-1750dhp", "brcm,bcm4708"; |
| 16 | model = "Buffalo WZR-1750DHP (BCM4708)"; |
| 17 | |
| 18 | chosen { |
| 19 | bootargs = "console=ttyS0,115200"; |
| 20 | }; |
| 21 | |
| 22 | memory { |
| 23 | reg = <0x00000000 0x08000000>; |
| 24 | }; |
| 25 | |
| 26 | gpio-keys { |
| 27 | compatible = "gpio-keys"; |
| 28 | #address-cells = <1>; |
| 29 | #size-cells = <0>; |
| 30 | poll-interval = <200>; |
| 31 | |
| 32 | restart { |
| 33 | label = "Reset"; |
| 34 | linux,code = <KEY_RESTART>; |
| 35 | gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>; |
| 36 | }; |
| 37 | |
| 38 | aoss { |
| 39 | label = "AOSS"; |
| 40 | linux,code = <KEY_WPS_BUTTON>; |
| 41 | gpios = <&chipcommon 12 GPIO_ACTIVE_LOW>; |
| 42 | }; |
| 43 | |
| 44 | /* Commit mode set by switch? */ |
| 45 | mode { |
| 46 | label = "Mode"; |
| 47 | linux,code = <KEY_SETUP>; |
| 48 | gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>; |
| 49 | }; |
| 50 | |
| 51 | /* Switch: AP mode */ |
| 52 | sw_ap { |
| 53 | label = "AP"; |
| 54 | linux,code = <BTN_0>; |
| 55 | gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>; |
| 56 | }; |
| 57 | |
| 58 | eject { |
| 59 | label = "USB eject"; |
| 60 | linux,code = <KEY_EJECTCD>; |
| 61 | gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>; |
| 62 | }; |
| 63 | }; |
| 64 | }; |