1 From 302a5ef29d497449280422576a1b55c72fc0ba4c Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com>
3 Date: Thu, 4 Dec 2014 10:22:02 +0100
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>
10 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
12 arch/arm/boot/dts/Makefile | 4 +-
13 arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts | 84 ++++++++++++++++++++++++++
14 2 files changed, 87 insertions(+), 1 deletion(-)
15 create mode 100644 arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts
17 --- a/arch/arm/boot/dts/Makefile
18 +++ b/arch/arm/boot/dts/Makefile
19 @@ -50,7 +50,9 @@ dtb-$(CONFIG_ARCH_BCM2835) += bcm2835-rp
20 dtb-$(CONFIG_ARCH_BCM_MOBILE) += bcm11351-brt.dtb \
22 dtb-$(CONFIG_ARCH_BCM2835) += bcm2835-rpi-b.dtb
23 -dtb-$(CONFIG_ARCH_BCM_5301X) += bcm4708-netgear-r6250.dtb
24 +dtb-$(CONFIG_ARCH_BCM_5301X) += \
25 + bcm4708-netgear-r6250.dtb \
26 + bcm4708-netgear-r6300-v2.dtb
27 dtb-$(CONFIG_ARCH_BERLIN) += \
28 berlin2-sony-nsz-gs7.dtb \
29 berlin2cd-google-chromecast.dtb
31 +++ b/arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts
34 + * Broadcom BCM470X / BCM5301X ARM platform code.
35 + * DTS for Netgear R6300 V2
37 + * Copyright (C) 2014 Rafał Miłecki <zajec5@gmail.com>
39 + * Licensed under the GNU/GPL. See COPYING for details.
44 +#include "bcm4708.dtsi"
47 + compatible = "netgear,r6300v2", "brcm,bcm4708";
48 + model = "Netgear R6300 V2 (BCM4708)";
51 + bootargs = "console=ttyS0,115200";
55 + reg = <0x00000000 0x08000000>;
59 + compatible = "gpio-leds";
62 + label = "bcm53xx:white:logo";
63 + gpios = <&chipcommon 1 GPIO_ACTIVE_HIGH>;
64 + linux,default-trigger = "default-on";
68 + label = "bcm53xx:green:power";
69 + gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
70 + linux,default-trigger = "default-off";
74 + label = "bcm53xx:amber:power";
75 + gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
76 + linux,default-trigger = "default-on";
80 + label = "bcm53xx:blue:usb";
81 + gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>;
82 + linux,default-trigger = "default-off";
86 + label = "bcm53xx:blue:wireless";
87 + gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
88 + linux,default-trigger = "default-off";
93 + compatible = "gpio-keys";
94 + #address-cells = <1>;
96 + poll-interval = <200>;
100 + linux,code = <KEY_WPS_BUTTON>;
101 + gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>;
106 + linux,code = <KEY_RFKILL>;
107 + gpios = <&chipcommon 5 GPIO_ACTIVE_LOW>;
112 + linux,code = <KEY_RESTART>;
113 + gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>;