1 From 3ea03a9d512ca19d59315492230e954a1653ff6e Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com>
3 Date: Tue, 26 Jan 2016 23:35:16 +0100
4 Subject: [PATCH] ARM: BCM5301X: Add DT for D-Link DIR-885L
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 It's device based on BCM47094 which is quite similar to BCM4709 except
10 for higher CPU frequency. This device has 2 flash memories, it boots
11 from serial one and stores firmware on NAND. Other than that we define
12 standard stuff like LEDs, buttons and UART.
14 Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
15 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
18 --- a/arch/arm/boot/dts/Makefile
19 +++ b/arch/arm/boot/dts/Makefile
20 @@ -76,6 +76,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
21 bcm4709-buffalo-wxr-1900dhp.dtb \
22 bcm4709-netgear-r7000.dtb \
23 bcm4709-netgear-r8000.dtb \
24 + bcm47094-dlink-dir-885l.dtb \
29 +++ b/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts
32 + * Broadcom BCM470X / BCM5301X ARM platform code.
33 + * DTS for D-Link DIR-885L
35 + * Copyright (C) 2016 Rafał Miłecki <zajec5@gmail.com>
37 + * Licensed under the GNU/GPL. See COPYING for details.
42 +#include "bcm4708.dtsi"
43 +#include "bcm5301x-nand-cs0-bch8.dtsi"
46 + compatible = "dlink,dir-885l", "brcm,bcm47094", "brcm,bcm4708";
47 + model = "D-Link DIR-885L";
50 + bootargs = "console=ttyS0,115200";
54 + reg = <0x00000000 0x08000000>;
57 + nand: nand@18028000 {
61 + reg = <0x00000000 0x08000000>;
67 + compatible = "gpio-leds";
70 + label = "bcm53xx:white:power";
71 + gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
72 + linux,default-trigger = "default-on";
76 + label = "bcm53xx:white:wan";
77 + gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
78 + linux,default-trigger = "default-off";
82 + label = "bcm53xx:amber:power";
83 + gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
84 + linux,default-trigger = "default-off";
88 + label = "bcm53xx:amber:wan";
89 + gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
90 + linux,default-trigger = "default-off";
94 + label = "bcm53xx:white:usb3";
95 + gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>;
96 + linux,default-trigger = "default-off";
100 + label = "bcm53xx:white:2ghz";
101 + gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
102 + linux,default-trigger = "default-off";
106 + label = "bcm53xx:white:5ghz";
107 + gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
108 + linux,default-trigger = "default-off";
113 + compatible = "gpio-keys";
114 + #address-cells = <1>;
119 + linux,code = <KEY_WPS_BUTTON>;
120 + gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
123 + /* Switch: router / extender */
125 + label = "Extender";
126 + linux,code = <BTN_0>;
127 + gpios = <&chipcommon 10 GPIO_ACTIVE_LOW>;
132 + linux,code = <KEY_RESTART>;
133 + gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
140 + clock-frequency = <125000000>;