brcm63xx: register serial through device tree
[openwrt/openwrt.git] / target / linux / brcm63xx / dts / fast2704v2.dts
1 /dts-v1/;
2
3 #include "bcm6328.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 model = "Sagem F@ST2704V2";
9 compatible = "sagem,f@st2704v2", "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 rfkill {
24 label = "rfkill";
25 gpios = <&pinctrl 15 1>;
26 linux,code = <KEY_WLAN>;
27 };
28 reset {
29 label = "reset";
30 gpios = <&pinctrl 23 1>;
31 linux,code = <KEY_RESTART>;
32 };
33 wps {
34 label = "wps";
35 gpios = <&pinctrl 24 1>;
36 linux,code = <KEY_WPS_BUTTON>;
37 };
38 };
39
40 gpio-leds {
41 compatible = "gpio-leds";
42
43 usb_green {
44 label = "F@ST2704V2:green:usb";
45 gpios = <&pinctrl 1 1>;
46 };
47 inet_red {
48 label = "F@ST2704V2:red:inet";
49 gpios = <&pinctrl 2 1>;
50 };
51 dsl_green {
52 label = "F@ST2704V2:green:dsl";
53 gpios = <&pinctrl 3 1>;
54 };
55 power_green {
56 label = "F@ST2704V2:green:power";
57 gpios = <&pinctrl 4 1>;
58 default-state = "on";
59 };
60 power_red {
61 label = "F@ST2704V2:red:power";
62 gpios = <&pinctrl 5 1>;
63 };
64 wps_green {
65 label = "F@ST2704V2:green:wps";
66 gpios = <&pinctrl 10 1>;
67 };
68 inet_green {
69 label = "F@ST2704V2:green:inet";
70 gpios = <&pinctrl 11 1>;
71 };
72 };
73 };
74
75 &hsspi {
76 status = "ok";
77
78 flash@0 {
79 compatible = "jedec,spi-nor";
80 spi-max-frequency = <16666667>;
81 spi-tx-bus-width = <2>;
82 spi-rx-bus-width = <2>;
83 reg = <0>;
84
85 #address-cells = <1>;
86 #size-cells = <1>;
87
88 linux,part-probe = "bcm63xxpart";
89
90 cfe@0 {
91 reg = <0x000000 0x010000>;
92 label = "cfe";
93 read-only;
94 };
95
96 linux@10000 {
97 reg = <0x010000 0x7e0000>;
98 label = "linux";
99 };
100
101 nvram@7f0000 {
102 reg = <0x7f0000 0x010000>;
103 label = "nvram";
104 };
105 };
106 };
107
108 &uart0 {
109 status = "ok";
110 };