bcm53xx: backport BCM5301X Netgear R6250/R8000 DT patches
[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 diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
19 index 2604d7c..c6e0a4c 100644
20 --- a/arch/arm/boot/dts/Makefile
21 +++ b/arch/arm/boot/dts/Makefile
22 @@ -61,7 +61,8 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
23         bcm4708-netgear-r6300-v2.dtb \
24         bcm47081-asus-rt-n18u.dtb \
25         bcm47081-buffalo-wzr-600dhp2.dtb \
26 -       bcm47081-buffalo-wzr-900dhp.dtb
27 +       bcm47081-buffalo-wzr-900dhp.dtb \
28 +       bcm4709-netgear-r8000.dtb
29  dtb-$(CONFIG_ARCH_BCM_63XX) += bcm963138dvt.dtb
30  dtb-$(CONFIG_ARCH_BCM_MOBILE) += bcm28155-ap.dtb \
31         bcm21664-garnet.dtb
32 diff --git a/arch/arm/boot/dts/bcm4709-netgear-r8000.dts b/arch/arm/boot/dts/bcm4709-netgear-r8000.dts
33 new file mode 100644
34 index 0000000..ea26dd3
35 --- /dev/null
36 +++ b/arch/arm/boot/dts/bcm4709-netgear-r8000.dts
37 @@ -0,0 +1,77 @@
38 +/*
39 + * Broadcom BCM470X / BCM5301X ARM platform code.
40 + * DTS for Netgear R8000
41 + *
42 + * Copyright (C) 2015 Rafał Miłecki <zajec5@gmail.com>
43 + *
44 + * Licensed under the GNU/GPL. See COPYING for details.
45 + */
46 +
47 +/dts-v1/;
48 +
49 +#include "bcm4708.dtsi"
50 +
51 +/ {
52 +       compatible = "netgear,r8000", "brcm,bcm4709", "brcm,bcm4708";
53 +       model = "Netgear R8000 (BCM4709)";
54 +
55 +       chosen {
56 +               bootargs = "console=ttyS0,115200";
57 +       };
58 +
59 +       memory {
60 +               reg = <0x00000000 0x08000000>;
61 +       };
62 +
63 +       leds {
64 +               compatible = "gpio-leds";
65 +
66 +               power0 {
67 +                       label = "bcm53xx:white:power";
68 +                       gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
69 +                       linux,default-trigger = "default-on";
70 +               };
71 +
72 +               power1 {
73 +                       label = "bcm53xx:amber:power";
74 +                       gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
75 +                       linux,default-trigger = "default-off";
76 +               };
77 +
78 +               5ghz-1 {
79 +                       label = "bcm53xx:white:5ghz-1";
80 +                       gpios = <&chipcommon 12 GPIO_ACTIVE_LOW>;
81 +                       linux,default-trigger = "default-off";
82 +               };
83 +
84 +               2ghz {
85 +                       label = "bcm53xx:white:2ghz";
86 +                       gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
87 +                       linux,default-trigger = "default-off";
88 +               };
89 +       };
90 +
91 +       gpio-keys {
92 +               compatible = "gpio-keys";
93 +               #address-cells = <1>;
94 +               #size-cells = <0>;
95 +
96 +               rfkill {
97 +                       label = "WiFi";
98 +                       linux,code = <KEY_RFKILL>;
99 +                       gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>;
100 +               };
101 +
102 +               wps {
103 +                       label = "WPS";
104 +                       linux,code = <KEY_WPS_BUTTON>;
105 +                       gpios = <&chipcommon 5 GPIO_ACTIVE_LOW>;
106 +               };
107 +
108 +               restart {
109 +                       label = "Reset";
110 +                       linux,code = <KEY_RESTART>;
111 +                       gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>;
112 +               };
113 +       };
114 +};
115 -- 
116 1.8.4.5
117