brcm63xx: register serial through device tree
[openwrt/staging/lynxis.git] / target / linux / brcm63xx / dts / ar-5381u.dts
1 /dts-v1/;
2
3 #include "bcm6328.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 model = "Comtrend AR-5381u";
9 compatible = "comtrend,ar-5381u", "brcm,bcm6328";
10
11 chosen {
12 bootargs = "root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
13 stdout-path = "serial0:115200n8";
14 };
15
16 gpio-keys-polled {
17 compatible = "gpio-keys-polled";
18 #address-cells = <1>;
19 #size-cells = <0>;
20 poll-interval = <20>;
21 debounce-interval = <60>;
22
23 reset {
24 label = "reset";
25 gpios = <&pinctrl 23 1>;
26 linux,code = <KEY_RESTART>;
27 };
28 };
29
30 gpio-leds {
31 compatible = "gpio-leds";
32
33 alarm_red {
34 label = "AR-5381u:red:alarm";
35 gpios = <&pinctrl 2 1>;
36 };
37 inet_green {
38 label = "AR-5381u:green:inet";
39 gpios = <&pinctrl 3 1>;
40 };
41 power_green {
42 label = "AR-5381u:green:power";
43 gpios = <&pinctrl 4 1>;
44 default-state = "on";
45 };
46 };
47 };
48
49 &hsspi {
50 status = "ok";
51
52 flash@0 {
53 compatible = "jedec,spi-nor";
54 spi-max-frequency = <16666667>;
55 spi-tx-bus-width = <2>;
56 spi-rx-bus-width = <2>;
57 reg = <0>;
58
59 #address-cells = <1>;
60 #size-cells = <1>;
61
62 linux,part-probe = "bcm63xxpart";
63
64 cfe@0 {
65 reg = <0x000000 0x010000>;
66 label = "cfe";
67 read-only;
68 };
69
70 linux@10000 {
71 reg = <0x010000 0xfe0000>;
72 label = "linux";
73 };
74
75 nvram@ff0000 {
76 reg = <0xff0000 0x010000>;
77 label = "nvram";
78 };
79 };
80 };
81
82 &uart0 {
83 status = "ok";
84 };