Merge tag 'sunxi-dt-for-4.2-2' of https://git.kernel.org/pub/scm/linux/kernel/git...
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / bcm4708-asus-rt-ac56u.dts
1 /*
2  * Broadcom BCM470X / BCM5301X ARM platform code.
3  * DTS for Asus RT-AC56U
4  *
5  * Copyright (C) 2015 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 = "asus,rt-ac56u", "brcm,bcm4708";
16         model = "Asus RT-AC56U (BCM4708)";
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                 usb3 {
30                         label = "bcm53xx:blue:usb3";
31                         gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
32                         linux,default-trigger = "default-off";
33                 };
34
35                 wan {
36                         label = "bcm53xx:blue:wan";
37                         gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
38                         linux,default-trigger = "default-off";
39                 };
40
41                 lan {
42                         label = "bcm53xx:blue:lan";
43                         gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
44                         linux,default-trigger = "default-off";
45                 };
46
47                 power {
48                         label = "bcm53xx:blue:power";
49                         gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
50                         linux,default-trigger = "default-on";
51                 };
52
53                 all {
54                         label = "bcm53xx:blue:all";
55                         gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>;
56                         linux,default-trigger = "default-on";
57                 };
58
59                 2ghz {
60                         label = "bcm53xx:blue:2ghz";
61                         gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>;
62                         linux,default-trigger = "default-off";
63                 };
64
65
66                 usb2 {
67                         label = "bcm53xx:blue:usb2";
68                         gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
69                         linux,default-trigger = "default-off";
70                 };
71         };
72
73         gpio-keys {
74                 compatible = "gpio-keys";
75                 #address-cells = <1>;
76                 #size-cells = <0>;
77
78                 rfkill {
79                         label = "WiFi";
80                         linux,code = <KEY_RFKILL>;
81                         gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
82                 };
83
84                 restart {
85                         label = "Reset";
86                         linux,code = <KEY_RESTART>;
87                         gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
88                 };
89
90                 wps {
91                         label = "WPS";
92                         linux,code = <KEY_WPS_BUTTON>;
93                         gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>;
94                 };
95         };
96 };