Merge tag 'platform-drivers-x86-v4.18-1' of git://git.infradead.org/linux-platform...
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / bcm4709-buffalo-wxr-1900dhp.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /*
3  * Broadcom BCM470X / BCM5301X ARM platform code.
4  * DTS for Buffalo WXR-1900DHP
5  *
6  * Copyright (C) 2015 Felix Fietkau <nbd@openwrt.org>
7  */
8
9 /dts-v1/;
10
11 #include "bcm4709.dtsi"
12 #include "bcm5301x-nand-cs0-bch8.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                        0x88000000 0x18000000>;
25         };
26
27         leds {
28                 compatible = "gpio-leds";
29
30                 usb {
31                         label = "bcm53xx:green:usb";
32                         gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>;
33                 };
34
35                 power-amber {
36                         label = "bcm53xx:amber:power";
37                         gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
38                 };
39
40                 power-white {
41                         label = "bcm53xx:white:power";
42                         gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>;
43                         linux,default-trigger = "default-on";
44                 };
45
46                 router-amber {
47                         label = "bcm53xx:amber:router";
48                         gpios = <&chipcommon 7 GPIO_ACTIVE_HIGH>;
49                 };
50
51                 router-white {
52                         label = "bcm53xx:white:router";
53                         gpios = <&chipcommon 8 GPIO_ACTIVE_HIGH>;
54                 };
55
56                 wan-amber {
57                         label = "bcm53xx:amber:wan";
58                         gpios = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
59                 };
60
61                 wan-white {
62                         label = "bcm53xx:white:wan";
63                         gpios = <&chipcommon 10 GPIO_ACTIVE_HIGH>;
64                 };
65
66                 wireless-amber {
67                         label = "bcm53xx:amber:wireless";
68                         gpios = <&chipcommon 11 GPIO_ACTIVE_HIGH>;
69                 };
70
71                 wireless-white {
72                         label = "bcm53xx:white:wireless";
73                         gpios = <&chipcommon 12 GPIO_ACTIVE_HIGH>;
74                 };
75         };
76
77         gpio-keys {
78                 compatible = "gpio-keys";
79                 #address-cells = <1>;
80                 #size-cells = <0>;
81
82                 power {
83                         label = "Power";
84                         linux,code = <KEY_POWER>;
85                         gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
86                 };
87
88                 restart {
89                         label = "Reset";
90                         linux,code = <KEY_RESTART>;
91                         gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>;
92                 };
93
94                 aoss {
95                         label = "AOSS";
96                         linux,code = <KEY_WPS_BUTTON>;
97                         gpios = <&chipcommon 16 GPIO_ACTIVE_LOW>;
98                 };
99
100                 /* Commit mode set by switch? */
101                 mode {
102                         label = "Mode";
103                         linux,code = <KEY_SETUP>;
104                         gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
105                 };
106
107                 /* Switch: AP mode */
108                 sw_ap {
109                         label = "AP";
110                         linux,code = <BTN_0>;
111                         gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>;
112                 };
113
114                 eject {
115                         label = "USB eject";
116                         linux,code = <KEY_EJECTCD>;
117                         gpios = <&chipcommon 20 GPIO_ACTIVE_LOW>;
118                 };
119         };
120 };
121
122
123 &usb2 {
124         vcc-gpio = <&chipcommon 13 GPIO_ACTIVE_HIGH>;
125 };
126
127 &spi_nor {
128         status = "okay";
129 };