Merge tag 'compiler-attributes-for-linus-4.20-rc1' of https://github.com/ojeda/linux
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / bcm4709-asus-rt-ac87u.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-AC87U
5  *
6  * Copyright (C) 2015 Rafał Miłecki <zajec5@gmail.com>
7  */
8
9 /dts-v1/;
10
11 #include "bcm4709.dtsi"
12 #include "bcm5301x-nand-cs0-bch8.dtsi"
13
14 / {
15         compatible = "asus,rt-ac87u", "brcm,bcm4709", "brcm,bcm4708";
16         model = "Asus RT-AC87U";
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                 wps {
31                         label = "bcm53xx:blue:wps";
32                         gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
33                 };
34
35                 power {
36                         label = "bcm53xx:blue:power";
37                         gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
38                         linux,default-trigger = "default-on";
39                 };
40
41                 wan {
42                         label = "bcm53xx:red:wan";
43                         gpios = <&chipcommon 5 GPIO_ACTIVE_LOW>;
44                 };
45         };
46
47         gpio-keys {
48                 compatible = "gpio-keys";
49                 #address-cells = <1>;
50                 #size-cells = <0>;
51
52                 wps {
53                         label = "WPS";
54                         linux,code = <KEY_WPS_BUTTON>;
55                         gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
56                 };
57
58                 restart {
59                         label = "Reset";
60                         linux,code = <KEY_RESTART>;
61                         gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
62                 };
63         };
64 };
65
66 &usb3_phy {
67         status = "okay";
68 };
69
70 &nandcs {
71         partitions {
72                 compatible = "fixed-partitions";
73                 #address-cells = <1>;
74                 #size-cells = <1>;
75
76                 boot@0 {
77                         label = "boot";
78                         reg = <0x00000000 0x00080000>;
79                         read-only;
80                 };
81
82                 nvram@80000 {
83                         label = "nvram";
84                         reg = <0x00080000 0x00180000>;
85                 };
86
87                 firmware@200000 {
88                         label = "firmware";
89                         reg = <0x00200000 0x07cc0000>;
90                         compatible = "brcm,trx";
91                 };
92
93                 asus@7ec0000 {
94                         label = "asus";
95                         reg = <0x07ec0000 0x00140000>;
96                         read-only;
97                 };
98         };
99 };