brcm63xx: register serial through device tree
[openwrt/openwrt.git] / target / linux / brcm63xx / dts / magic.dts
1 /dts-v1/;
2
3 #include "bcm6348.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 model = "Alice W-Gate";
9 compatible = "telsey,magic", "brcm,bcm6348";
10
11 chosen {
12 bootargs = "root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
13 stdout-path = "serial0:115200n8";
14 };
15
16 gpio-leds {
17 compatible = "gpio-leds";
18
19 power {
20 label = "MAGIC:green:power";
21 gpios = <&pinctrl 0 1>;
22 default-state = "on";
23 };
24
25 stop {
26 label = "MAGIC:green:stop";
27 gpios = <&pinctrl 1 1>;
28 };
29
30 hpna {
31 label = "MAGIC:green:hpna";
32 gpios = <&pinctrl 4 1>;
33 };
34
35 status {
36 label = "MAGIC:green:adsl";
37 gpios = <&pinctrl 5 1>;
38 };
39
40 voip {
41 label = "MAGIC:green:voip";
42 gpios = <&pinctrl 22 1>;
43 };
44
45 wifi {
46 label = "MAGIC:green:wifi";
47 gpios = <&pinctrl 28 0>;
48 };
49
50 usb {
51 label = "MAGIC:green:usb";
52 gpios = <&pinctrl 35 1>;
53 };
54 };
55 };
56
57 &pflash {
58 status = "ok";
59
60 linux,part-probe = "bcm63xxpart";
61
62 cfe@0 {
63 label = "CFE";
64 reg = <0x000000 0x010000>;
65 read-only;
66 };
67
68 linux@10000 {
69 label = "linux";
70 reg = <0x010000 0x3e0000>;
71 };
72
73 nvram@3f0000 {
74 label = "nvram";
75 reg = <0x3f0000 0x010000>;
76 };
77 };
78
79 &pinctrl {
80 pinctrl-names = "default";
81 pinctrl-0 = <&pinctrl_pci &pinctrl_ext_mii &pinctrl_mii_pccard>;
82 };
83
84 &uart0 {
85 status = "ok";
86 };