Merge commit '949bdcc8a97c' into omap-for-v4.19/dt
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / bcm47081-asus-rt-n18u.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /*
3  * Broadcom BCM470X / BCM5301X ARM platform code.
4  * DTS for Asus RT-N18U
5  *
6  * Copyright (C) 2014 Rafał Miłecki <zajec5@gmail.com>
7  */
8
9 /dts-v1/;
10
11 #include "bcm47081.dtsi"
12 #include "bcm5301x-nand-cs0-bch8.dtsi"
13
14 / {
15         compatible = "asus,rt-n18u", "brcm,bcm47081", "brcm,bcm4708";
16         model = "Asus RT-N18U (BCM47081)";
17
18         chosen {
19                 bootargs = "console=ttyS0,115200";
20         };
21
22         memory {
23                 reg = <0x00000000 0x08000000
24                        0x88000000 0x08000000>;
25         };
26
27         leds {
28                 compatible = "gpio-leds";
29
30                 power {
31                         label = "bcm53xx:blue:power";
32                         gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
33                         linux,default-trigger = "default-on";
34                 };
35
36                 usb2 {
37                         label = "bcm53xx:blue:usb2";
38                         gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
39                 };
40
41                 wan {
42                         label = "bcm53xx:blue:wan";
43                         gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>;
44                         linux,default-trigger = "default-on";
45                 };
46
47                 lan {
48                         label = "bcm53xx:blue:lan";
49                         gpios = <&chipcommon 9 GPIO_ACTIVE_LOW>;
50                         linux,default-trigger = "default-on";
51                 };
52
53                 usb3 {
54                         label = "bcm53xx:blue:usb3";
55                         gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
56                 };
57         };
58
59         gpio-keys {
60                 compatible = "gpio-keys";
61                 #address-cells = <1>;
62                 #size-cells = <0>;
63
64                 restart {
65                         label = "Reset";
66                         linux,code = <KEY_RESTART>;
67                         gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
68                 };
69
70                 wps {
71                         label = "WPS";
72                         linux,code = <KEY_WPS_BUTTON>;
73                         gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
74                 };
75         };
76 };