bcm53xx: use final (backported) patch fixing serial console
[openwrt.git] / target / linux / bcm53xx / patches-3.14 / 052-ARM-BCM5301X-Add-DT-for-Luxul-XWC-1000.patch
1 From 0da909663566b34e0294ab0ff1ea08908164811e Mon Sep 17 00:00:00 2001
2 From: Dan Haab <dhaab@luxul.com>
3 Date: Wed, 7 Jan 2015 14:34:50 -0700
4 Subject: [PATCH 52/54] 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 diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
18 index 91bd5bd..ff4a5ae 100644
19 --- a/arch/arm/boot/dts/Makefile
20 +++ b/arch/arm/boot/dts/Makefile
21 @@ -52,6 +52,7 @@ dtb-$(CONFIG_ARCH_BCM_MOBILE) += bcm1135
22  dtb-$(CONFIG_ARCH_BCM2835) += bcm2835-rpi-b.dtb
23  dtb-$(CONFIG_ARCH_BCM_5301X) += \
24         bcm4708-buffalo-wzr-1750dhp.dtb \
25 +       bcm4708-luxul-xwc-1000.dtb \
26         bcm4708-netgear-r6250.dtb \
27         bcm4708-netgear-r6300-v2.dtb \
28         bcm47081-asus-rt-n18u.dtb \
29 diff --git a/arch/arm/boot/dts/bcm4708-luxul-xwc-1000.dts b/arch/arm/boot/dts/bcm4708-luxul-xwc-1000.dts
30 new file mode 100644
31 index 0000000..946c728
32 --- /dev/null
33 +++ b/arch/arm/boot/dts/bcm4708-luxul-xwc-1000.dts
34 @@ -0,0 +1,60 @@
35 +/*
36 + * Broadcom BCM470X / BCM5301X ARM platform code.
37 + * DTS for Luxul XWC-1000
38 + *
39 + * Copyright 2014 Luxul Inc.
40 + *
41 + * Licensed under the GNU/GPL. See COPYING for details.
42 + */
43 +
44 +/dts-v1/;
45 +
46 +#include "bcm4708.dtsi"
47 +
48 +/ {
49 +       compatible = "luxul,xwc-1000", "brcm,bcm4708";
50 +       model = "Luxul XWC-1000 (BCM4708)";
51 +
52 +       chosen {
53 +               bootargs = "console=ttyS0,115200";
54 +       };
55 +
56 +       memory {
57 +               reg = <0x00000000 0x08000000>;
58 +       };
59 +
60 +       axi@18000000 {
61 +               nand@28000 {
62 +                       reg = <0x00028000 0x1000>;
63 +                       #address-cells = <1>;
64 +                       #size-cells = <1>;
65 +
66 +                       partition@0 {
67 +                               label = "ubi";
68 +                               reg = <0x00000000 0x08000000>;
69 +                       };
70 +               };
71 +       };
72 +
73 +       leds {
74 +               compatible = "gpio-leds";
75 +
76 +               status {
77 +                       label = "bcm53xx:green:status";
78 +                       gpios = <&chipcommon 0 GPIO_ACTIVE_HIGH>;
79 +                       linux,default-trigger = "timer";
80 +               };
81 +       };
82 +
83 +       gpio-keys {
84 +               compatible = "gpio-keys";
85 +               #address-cells = <1>;
86 +               #size-cells = <0>;
87 +
88 +               restart {
89 +                       label = "Reset";
90 +                       linux,code = <KEY_RESTART>;
91 +                       gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
92 +               };
93 +       };
94 +};
95 -- 
96 1.8.4.5
97