ar71xx: add user-space support for EnGenius EPG5000.
[15.05/openwrt.git] / target / linux / bcm53xx / patches-3.18 / 052-ARM-BCM5301X-Add-DT-for-Luxul-XWC-1000.patch
1 From e27a09ae9369e10bc589ef4d720ecf4abcbcec50 Mon Sep 17 00:00:00 2001
2 From: Dan Haab <dhaab@luxul.com>
3 Date: Mon, 19 Jan 2015 12:45:37 -0700
4 Subject: [PATCH] ARM: BCM5301X: Add DT for Luxul XWC-1000
5
6 Luxul XWC-1000 is a controller device based on BCM4708 SoC. The only
7 unusual thing in its DTS file is "ubi" partition on NAND flash.
8
9 Signed-off-by: Dan Haab <dhaab@luxul.com>
10 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
11 ---
12  arch/arm/boot/dts/Makefile                   |  1 +
13  arch/arm/boot/dts/bcm4708-luxul-xwc-1000.dts | 60 ++++++++++++++++++++++++++++
14  2 files changed, 61 insertions(+)
15  create mode 100644 arch/arm/boot/dts/bcm4708-luxul-xwc-1000.dts
16
17 --- a/arch/arm/boot/dts/Makefile
18 +++ b/arch/arm/boot/dts/Makefile
19 @@ -56,6 +56,7 @@ dtb-$(CONFIG_ARCH_AXXIA) += axm5516-amar
20  dtb-$(CONFIG_ARCH_BCM2835) += bcm2835-rpi-b.dtb
21  dtb-$(CONFIG_ARCH_BCM_5301X) += \
22         bcm4708-buffalo-wzr-1750dhp.dtb \
23 +       bcm4708-luxul-xwc-1000.dtb \
24         bcm4708-netgear-r6250.dtb \
25         bcm4708-netgear-r6300-v2.dtb \
26         bcm47081-asus-rt-n18u.dtb \
27 --- /dev/null
28 +++ b/arch/arm/boot/dts/bcm4708-luxul-xwc-1000.dts
29 @@ -0,0 +1,60 @@
30 +/*
31 + * Broadcom BCM470X / BCM5301X ARM platform code.
32 + * DTS for Luxul XWC-1000
33 + *
34 + * Copyright 2014 Luxul Inc.
35 + *
36 + * Licensed under the GNU/GPL. See COPYING for details.
37 + */
38 +
39 +/dts-v1/;
40 +
41 +#include "bcm4708.dtsi"
42 +
43 +/ {
44 +       compatible = "luxul,xwc-1000", "brcm,bcm4708";
45 +       model = "Luxul XWC-1000 (BCM4708)";
46 +
47 +       chosen {
48 +               bootargs = "console=ttyS0,115200";
49 +       };
50 +
51 +       memory {
52 +               reg = <0x00000000 0x08000000>;
53 +       };
54 +
55 +       axi@18000000 {
56 +               nand@28000 {
57 +                       reg = <0x00028000 0x1000>;
58 +                       #address-cells = <1>;
59 +                       #size-cells = <1>;
60 +
61 +                       partition@0 {
62 +                               label = "ubi";
63 +                               reg = <0x00000000 0x08000000>;
64 +                       };
65 +               };
66 +       };
67 +
68 +       leds {
69 +               compatible = "gpio-leds";
70 +
71 +               status {
72 +                       label = "bcm53xx:green:status";
73 +                       gpios = <&chipcommon 0 GPIO_ACTIVE_HIGH>;
74 +                       linux,default-trigger = "timer";
75 +               };
76 +       };
77 +
78 +       gpio-keys {
79 +               compatible = "gpio-keys";
80 +               #address-cells = <1>;
81 +               #size-cells = <0>;
82 +
83 +               restart {
84 +                       label = "Reset";
85 +                       linux,code = <KEY_RESTART>;
86 +                       gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
87 +               };
88 +       };
89 +};