1 From 691917f20cae813d242f7123a4dc97e7d48e6ff1 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com>
3 Date: Wed, 13 May 2015 09:10:53 +0200
4 Subject: [PATCH] ARM: BCM5301X: Add DT for SmartRG SR400ac
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: Florian Fainelli <f.fainelli@gmail.com>
12 arch/arm/boot/dts/Makefile | 1 +
13 arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts | 119 ++++++++++++++++++++++++++
14 2 files changed, 120 insertions(+)
15 create mode 100644 arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts
17 diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
18 index d34785a..59f7970 100644
19 --- a/arch/arm/boot/dts/Makefile
20 +++ b/arch/arm/boot/dts/Makefile
21 @@ -59,6 +59,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
22 bcm4708-luxul-xwc-1000.dtb \
23 bcm4708-netgear-r6250.dtb \
24 bcm4708-netgear-r6300-v2.dtb \
25 + bcm4708-smartrg-sr400ac.dtb \
26 bcm47081-asus-rt-n18u.dtb \
27 bcm47081-buffalo-wzr-600dhp2.dtb \
28 bcm47081-buffalo-wzr-900dhp.dtb \
29 diff --git a/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts b/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts
31 index 0000000..66dfb53
33 +++ b/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts
36 + * Broadcom BCM470X / BCM5301X arm platform code.
37 + * DTS for SmartRG SR400ac
39 + * Copyright (C) 2015 Rafał Miłecki <zajec5@gmail.com>
41 + * Licensed under the GNU/GPL. See COPYING for details.
46 +#include "bcm4708.dtsi"
49 + compatible = "smartrg,sr400ac", "brcm,bcm4708";
50 + model = "SmartRG SR400ac";
53 + bootargs = "console=ttyS0,115200";
57 + reg = <0x00000000 0x08000000>;
61 + compatible = "gpio-leds";
64 + label = "bcm53xx:white:power";
65 + gpios = <&chipcommon 1 GPIO_ACTIVE_HIGH>;
66 + linux,default-trigger = "default-on";
70 + label = "bcm53xx:amber:power";
71 + gpios = <&chipcommon 2 GPIO_ACTIVE_HIGH>;
72 + linux,default-trigger = "default-off";
76 + label = "bcm53xx:white:usb2";
77 + gpios = <&chipcommon 3 GPIO_ACTIVE_HIGH>;
78 + linux,default-trigger = "default-off";
82 + label = "bcm53xx:white:usb3";
83 + gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>;
84 + linux,default-trigger = "default-off";
88 + label = "bcm53xx:green:usb3";
89 + gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
90 + linux,default-trigger = "default-off";
94 + label = "bcm53xx:white:wps";
95 + gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>;
96 + linux,default-trigger = "default-off";
100 + label = "bcm53xx:red:status";
101 + gpios = <&chipcommon 8 GPIO_ACTIVE_HIGH>;
102 + linux,default-trigger = "default-off";
106 + label = "bcm53xx:green:status";
107 + gpios = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
108 + linux,default-trigger = "default-off";
112 + label = "bcm53xx:blue:status";
113 + gpios = <&chipcommon 10 GPIO_ACTIVE_HIGH>;
114 + linux,default-trigger = "default-off";
118 + label = "bcm53xx:white:wan";
119 + gpios = <&chipcommon 12 GPIO_ACTIVE_HIGH>;
120 + linux,default-trigger = "default-off";
124 + label = "bcm53xx:red:wan";
125 + gpios = <&chipcommon 13 GPIO_ACTIVE_HIGH>;
126 + linux,default-trigger = "default-off";
131 + compatible = "gpio-keys";
132 + #address-cells = <1>;
137 + linux,code = <KEY_RFKILL>;
138 + gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
143 + linux,code = <KEY_WPS_BUTTON>;
144 + gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
149 + linux,code = <KEY_RESTART>;
150 + gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;