1 From 788069f86c7fc1ce54661651e695943fb47a5188 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com>
3 Date: Thu, 2 Oct 2014 21:02:33 +0200
4 Subject: [PATCH] ARM: BCM5301X: Add DT for Netgear R6300 V2
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
11 arch/arm/boot/dts/Makefile | 4 ++-
12 arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts | 35 ++++++++++++++++++++++++++
13 2 files changed, 38 insertions(+), 1 deletion(-)
14 create mode 100644 arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts
16 --- a/arch/arm/boot/dts/Makefile
17 +++ b/arch/arm/boot/dts/Makefile
18 @@ -50,7 +50,9 @@ dtb-$(CONFIG_ARCH_BCM2835) += bcm2835-rp
19 dtb-$(CONFIG_ARCH_BCM_MOBILE) += bcm11351-brt.dtb \
21 dtb-$(CONFIG_ARCH_BCM2835) += bcm2835-rpi-b.dtb
22 -dtb-$(CONFIG_ARCH_BCM_5301X) += bcm4708-netgear-r6250.dtb
23 +dtb-$(CONFIG_ARCH_BCM_5301X) += \
24 + bcm4708-netgear-r6250.dtb \
25 + bcm4708-netgear-r6300-v2.dtb
26 dtb-$(CONFIG_ARCH_BERLIN) += \
27 berlin2-sony-nsz-gs7.dtb \
28 berlin2cd-google-chromecast.dtb
30 +++ b/arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts
33 + * Broadcom BCM470X / BCM5301X arm platform code.
34 + * DTS for Netgear R6300 V2
36 + * Copyright © 2014 Rafał Miłecki <zajec5@gmail.com>
38 + * Licensed under the GNU/GPL. See COPYING for details.
43 +#include "bcm4708.dtsi"
46 + compatible = "netgear,r6300v2", "brcm,bcm4708";
47 + model = "Netgear R6300 V2 (BCM4708)";
50 + bootargs = "console=ttyS0,115200 earlyprintk";
54 + reg = <0x00000000 0x08000000>;
58 + uart0: serial@0300 {
62 + uart1: serial@0400 {
68 + compatible = "gpio-leds";
71 + label = "bcm53xx:white:logo";
72 + gpios = <&chipcommon 1 GPIO_ACTIVE_HIGH>;
73 + linux,default-trigger = "default-on";
77 + label = "bcm53xx:green:power";
78 + gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
79 + linux,default-trigger = "default-off";
83 + label = "bcm53xx:amber:power";
84 + gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
85 + linux,default-trigger = "default-on";
89 + label = "bcm53xx:blue:usb";
90 + gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>;
91 + linux,default-trigger = "default-off";
95 + label = "bcm53xx:blue:wireless";
96 + gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
97 + linux,default-trigger = "default-off";
102 + compatible = "gpio-keys-polled";
103 + #address-cells = <1>;
105 + poll-interval = <200>;
109 + linux,code = <KEY_WPS_BUTTON>;
110 + gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>;
115 + linux,code = <KEY_RFKILL>;
116 + gpios = <&chipcommon 5 GPIO_ACTIVE_LOW>;
121 + linux,code = <KEY_RESTART>;
122 + gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>;