Merge pull request #580 from wigyori/cc-libpcap
[15.05/openwrt.git] / target / linux / bcm53xx / patches-3.18 / 056-ARM-BCM5301X-Add-DT-for-Netgear-R8000.patch
1 From 4076b521cb50c411467c4ba65f82ef0079823357 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com>
3 Date: Wed, 18 Feb 2015 12:25:42 +0100
4 Subject: [PATCH] ARM: BCM5301X: Add DT for Netgear R8000
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
10 Reported-by: Ian Kent <raven@themaw.net>
11 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
12 ---
13  arch/arm/boot/dts/Makefile                  |  3 +-
14  arch/arm/boot/dts/bcm4709-netgear-r8000.dts | 77 +++++++++++++++++++++++++++++
15  2 files changed, 79 insertions(+), 1 deletion(-)
16  create mode 100644 arch/arm/boot/dts/bcm4709-netgear-r8000.dts
17
18 --- a/arch/arm/boot/dts/Makefile
19 +++ b/arch/arm/boot/dts/Makefile
20 @@ -61,7 +61,8 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
21         bcm4708-netgear-r6300-v2.dtb \
22         bcm47081-asus-rt-n18u.dtb \
23         bcm47081-buffalo-wzr-600dhp2.dtb \
24 -       bcm47081-buffalo-wzr-900dhp.dtb
25 +       bcm47081-buffalo-wzr-900dhp.dtb \
26 +       bcm4709-netgear-r8000.dtb
27  dtb-$(CONFIG_ARCH_BCM_63XX) += bcm963138dvt.dtb
28  dtb-$(CONFIG_ARCH_BCM_MOBILE) += bcm28155-ap.dtb \
29         bcm21664-garnet.dtb
30 --- /dev/null
31 +++ b/arch/arm/boot/dts/bcm4709-netgear-r8000.dts
32 @@ -0,0 +1,77 @@
33 +/*
34 + * Broadcom BCM470X / BCM5301X ARM platform code.
35 + * DTS for Netgear R8000
36 + *
37 + * Copyright (C) 2015 Rafał Miłecki <zajec5@gmail.com>
38 + *
39 + * Licensed under the GNU/GPL. See COPYING for details.
40 + */
41 +
42 +/dts-v1/;
43 +
44 +#include "bcm4708.dtsi"
45 +
46 +/ {
47 +       compatible = "netgear,r8000", "brcm,bcm4709", "brcm,bcm4708";
48 +       model = "Netgear R8000 (BCM4709)";
49 +
50 +       chosen {
51 +               bootargs = "console=ttyS0,115200";
52 +       };
53 +
54 +       memory {
55 +               reg = <0x00000000 0x08000000>;
56 +       };
57 +
58 +       leds {
59 +               compatible = "gpio-leds";
60 +
61 +               power0 {
62 +                       label = "bcm53xx:white:power";
63 +                       gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
64 +                       linux,default-trigger = "default-on";
65 +               };
66 +
67 +               power1 {
68 +                       label = "bcm53xx:amber:power";
69 +                       gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
70 +                       linux,default-trigger = "default-off";
71 +               };
72 +
73 +               5ghz-1 {
74 +                       label = "bcm53xx:white:5ghz-1";
75 +                       gpios = <&chipcommon 12 GPIO_ACTIVE_LOW>;
76 +                       linux,default-trigger = "default-off";
77 +               };
78 +
79 +               2ghz {
80 +                       label = "bcm53xx:white:2ghz";
81 +                       gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
82 +                       linux,default-trigger = "default-off";
83 +               };
84 +       };
85 +
86 +       gpio-keys {
87 +               compatible = "gpio-keys";
88 +               #address-cells = <1>;
89 +               #size-cells = <0>;
90 +
91 +               rfkill {
92 +                       label = "WiFi";
93 +                       linux,code = <KEY_RFKILL>;
94 +                       gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>;
95 +               };
96 +
97 +               wps {
98 +                       label = "WPS";
99 +                       linux,code = <KEY_WPS_BUTTON>;
100 +                       gpios = <&chipcommon 5 GPIO_ACTIVE_LOW>;
101 +               };
102 +
103 +               restart {
104 +                       label = "Reset";
105 +                       linux,code = <KEY_RESTART>;
106 +                       gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>;
107 +               };
108 +       };
109 +};