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