bcm53xx: add basic support for Netgear R7900
[openwrt/openwrt.git] / target / linux / bcm53xx / patches-4.4 / 306-ARM-BCM5301X-Add-DT-for-Netgear-R8500.patch
1 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com>
2 Subject: [PATCH] ARM: BCM5301X: Add DT for Netgear R8500
3 MIME-Version: 1.0
4 Content-Type: text/plain; charset=UTF-8
5 Content-Transfer-Encoding: 8bit
6
7 Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
8 ---
9 arch/arm/boot/dts/Makefile | 1 +
10 arch/arm/boot/dts/bcm47094-netgear-r8500.dts | 31 ++++++++++++++++++++++++++++
11 2 files changed, 32 insertions(+)
12 create mode 100644 arch/arm/boot/dts/bcm47094-netgear-r8500.dts
13
14 --- a/arch/arm/boot/dts/Makefile
15 +++ b/arch/arm/boot/dts/Makefile
16 @@ -79,6 +79,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
17 bcm4709-netgear-r7900.dtb \
18 bcm4709-netgear-r8000.dtb \
19 bcm47094-dlink-dir-885l.dtb \
20 + bcm47094-netgear-r8500.dtb \
21 bcm94708.dtb \
22 bcm94709.dtb \
23 bcm953012k.dtb
24 --- /dev/null
25 +++ b/arch/arm/boot/dts/bcm47094-netgear-r8500.dts
26 @@ -0,0 +1,107 @@
27 +/*
28 + * Broadcom BCM470X / BCM5301X ARM platform code.
29 + * DTS for Netgear R8500
30 + *
31 + * Copyright (C) 2016 Rafał Miłecki <zajec5@gmail.com>
32 + *
33 + * Licensed under the GNU/GPL. See COPYING for details.
34 + */
35 +
36 +/dts-v1/;
37 +
38 +#include "bcm4708.dtsi"
39 +#include "bcm5301x-nand-cs0-bch8.dtsi"
40 +
41 +/ {
42 + compatible = "netgear,r8500", "brcm,bcm47094", "brcm,bcm4708";
43 + model = "Netgear R8500";
44 +
45 + chosen {
46 + bootargs = "console=ttyS0,115200";
47 + };
48 +
49 + memory {
50 + reg = <0x00000000 0x08000000>;
51 + };
52 +
53 + leds {
54 + compatible = "gpio-leds";
55 +
56 + power0 {
57 + label = "bcm53xx:white:power";
58 + gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
59 + linux,default-trigger = "default-on";
60 + };
61 +
62 + power1 {
63 + label = "bcm53xx:amber:power";
64 + gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
65 + linux,default-trigger = "default-off";
66 + };
67 +
68 + 5ghz-1 {
69 + label = "bcm53xx:white:5ghz-1";
70 + gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
71 + linux,default-trigger = "default-off";
72 + };
73 +
74 + 5ghz-2 {
75 + label = "bcm53xx:white:5ghz-2";
76 + gpios = <&chipcommon 12 GPIO_ACTIVE_LOW>;
77 + linux,default-trigger = "default-off";
78 + };
79 +
80 + 2ghz {
81 + label = "bcm53xx:white:2ghz";
82 + gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
83 + linux,default-trigger = "default-off";
84 + };
85 +
86 + usb2 {
87 + label = "bcm53xx:white:usb2";
88 + gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
89 + linux,default-trigger = "default-off";
90 + };
91 +
92 + usb3 {
93 + label = "bcm53xx:white:usb3";
94 + gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>;
95 + linux,default-trigger = "default-off";
96 + };
97 + };
98 +
99 + gpio-keys {
100 + compatible = "gpio-keys";
101 + #address-cells = <1>;
102 + #size-cells = <0>;
103 +
104 + brightness {
105 + label = "Backlight";
106 + linux,code = <KEY_BRIGHTNESS_ZERO>;
107 + gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
108 + };
109 +
110 + restart {
111 + label = "Reset";
112 + linux,code = <KEY_RESTART>;
113 + gpios = <&chipcommon 10 GPIO_ACTIVE_LOW>;
114 + };
115 +
116 + wps {
117 + label = "WPS";
118 + linux,code = <KEY_WPS_BUTTON>;
119 + gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
120 + };
121 +
122 + rfkill {
123 + label = "WiFi";
124 + linux,code = <KEY_RFKILL>;
125 + gpios = <&chipcommon 20 GPIO_ACTIVE_LOW>;
126 + };
127 + };
128 +};
129 +
130 +&uart0 {
131 + status = "okay";
132 + clock-frequency = <125000000>;
133 +};