Merge branch 'dmi-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvar...
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / bcm47081-buffalo-wzr-600dhp2.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /*
3  * Broadcom BCM470X / BCM5301X ARM platform code.
4  * DTS for Buffalo WZR-600DHP2
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 = "buffalo,wzr-600dhp2", "brcm,bcm47081", "brcm,bcm4708";
16         model = "Buffalo WZR-600DHP2 (BCM47081)";
17
18         chosen {
19                 bootargs = "console=ttyS0,115200 earlycon";
20         };
21
22         memory {
23                 reg = <0x00000000 0x08000000
24                        0x88000000 0x08000000>;
25         };
26
27         spi {
28                 compatible = "spi-gpio";
29                 num-chipselects = <1>;
30                 gpio-sck = <&chipcommon 7 0>;
31                 gpio-mosi = <&chipcommon 4 0>;
32                 cs-gpios = <&chipcommon 6 0>;
33                 #address-cells = <1>;
34                 #size-cells = <0>;
35
36                 hc595: gpio_spi@0 {
37                         compatible = "fairchild,74hc595";
38                         reg = <0>;
39                         registers-number = <1>;
40                         spi-max-frequency = <100000>;
41
42                         gpio-controller;
43                         #gpio-cells = <2>;
44
45                 };
46         };
47
48         leds {
49                 compatible = "gpio-leds";
50
51                 power0 {
52                         label = "bcm53xx:green:power";
53                         gpios = <&hc595 1 GPIO_ACTIVE_HIGH>;
54                         linux,default-trigger = "default-on";
55                 };
56
57                 power1 {
58                         label = "bcm53xx:red:power";
59                         gpios = <&hc595 2 GPIO_ACTIVE_HIGH>;
60                 };
61
62                 router0 {
63                         label = "bcm53xx:green:router";
64                         gpios = <&hc595 3 GPIO_ACTIVE_HIGH>;
65                         linux,default-trigger = "default-on";
66                 };
67
68                 router1 {
69                         label = "bcm53xx:amber:router";
70                         gpios = <&hc595 4 GPIO_ACTIVE_HIGH>;
71                 };
72
73                 wan {
74                         label = "bcm53xx:green:wan";
75                         gpios = <&hc595 5 GPIO_ACTIVE_HIGH>;
76                         linux,default-trigger = "default-on";
77                 };
78
79                 wireless0 {
80                         label = "bcm53xx:green:wireless";
81                         gpios = <&hc595 6 GPIO_ACTIVE_HIGH>;
82                 };
83
84                 wireless1 {
85                         label = "bcm53xx:amber:wireless";
86                         gpios = <&hc595 7 GPIO_ACTIVE_HIGH>;
87                 };
88         };
89
90         gpio-keys {
91                 compatible = "gpio-keys";
92                 #address-cells = <1>;
93                 #size-cells = <0>;
94
95                 aoss {
96                         label = "AOSS";
97                         linux,code = <KEY_WPS_BUTTON>;
98                         gpios = <&chipcommon 9 GPIO_ACTIVE_LOW>;
99                 };
100
101                 restart {
102                         label = "Reset";
103                         linux,code = <KEY_RESTART>;
104                         gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
105                 };
106
107                 /* Switch device mode? */
108                 mode {
109                         label = "Mode";
110                         linux,code = <KEY_SETUP>;
111                         gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
112                 };
113
114                 eject {
115                         label = "USB eject";
116                         linux,code = <KEY_EJECTCD>;
117                         gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>;
118                 };
119         };
120 };