Merge tag 'berlin-dt-4.2-1' of git://git.infradead.org/users/hesselba/linux-berlin...
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / bcm4709-buffalo-wxr-1900dhp.dts
1 /*
2  * Broadcom BCM470X / BCM5301X ARM platform code.
3  * DTS for Buffalo WXR-1900DHP
4  *
5  * Copyright (C) 2015 Felix Fietkau <nbd@openwrt.org>
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,wxr-1900dhp", "brcm,bcm4709", "brcm,bcm4708";
16         model = "Buffalo WXR-1900DHP";
17
18         chosen {
19                 bootargs = "console=ttyS0,115200";
20         };
21
22         memory {
23                 reg = <0x00000000 0x08000000>;
24         };
25
26         leds {
27                 compatible = "gpio-leds";
28
29                 usb {
30                         label = "bcm53xx:green:usb";
31                         gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>;
32                         linux,default-trigger = "default-off";
33                 };
34
35                 power-amber {
36                         label = "bcm53xx:amber:power";
37                         gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
38                         linux,default-trigger = "default-off";
39                 };
40
41                 power-white {
42                         label = "bcm53xx:white:power";
43                         gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>;
44                         linux,default-trigger = "default-on";
45                 };
46
47                 router-amber {
48                         label = "bcm53xx:amber:router";
49                         gpios = <&chipcommon 7 GPIO_ACTIVE_HIGH>;
50                         linux,default-trigger = "default-off";
51                 };
52
53                 router-white {
54                         label = "bcm53xx:white:router";
55                         gpios = <&chipcommon 8 GPIO_ACTIVE_HIGH>;
56                         linux,default-trigger = "default-off";
57                 };
58
59                 wan-amber {
60                         label = "bcm53xx:amber:wan";
61                         gpios = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
62                         linux,default-trigger = "default-off";
63                 };
64
65                 wan-white {
66                         label = "bcm53xx:white:wan";
67                         gpios = <&chipcommon 10 GPIO_ACTIVE_HIGH>;
68                         linux,default-trigger = "default-off";
69                 };
70
71                 wireless-amber {
72                         label = "bcm53xx:amber:wireless";
73                         gpios = <&chipcommon 11 GPIO_ACTIVE_HIGH>;
74                         linux,default-trigger = "default-off";
75                 };
76
77                 wireless-white {
78                         label = "bcm53xx:white:wireless";
79                         gpios = <&chipcommon 12 GPIO_ACTIVE_HIGH>;
80                         linux,default-trigger = "default-off";
81                 };
82         };
83
84         gpio-keys {
85                 compatible = "gpio-keys";
86                 #address-cells = <1>;
87                 #size-cells = <0>;
88
89                 power {
90                         label = "Power";
91                         linux,code = <KEY_POWER>;
92                         gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
93                 };
94
95                 restart {
96                         label = "Reset";
97                         linux,code = <KEY_RESTART>;
98                         gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>;
99                 };
100
101                 aoss {
102                         label = "AOSS";
103                         linux,code = <KEY_WPS_BUTTON>;
104                         gpios = <&chipcommon 16 GPIO_ACTIVE_LOW>;
105                 };
106
107                 /* Commit mode set by switch? */
108                 mode {
109                         label = "Mode";
110                         linux,code = <KEY_SETUP>;
111                         gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
112                 };
113
114                 /* Switch: AP mode */
115                 sw_ap {
116                         label = "AP";
117                         linux,code = <BTN_0>;
118                         gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>;
119                 };
120
121                 eject {
122                         label = "USB eject";
123                         linux,code = <KEY_EJECTCD>;
124                         gpios = <&chipcommon 20 GPIO_ACTIVE_LOW>;
125                 };
126         };
127 };