079f15994993f0c7ec3bd23200b557caefd4d1be
[openwrt/openwrt.git] / target / linux / brcm63xx / dts / fast2704n.dts
1 /dts-v1/;
2
3 #include "bcm6318.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 model = "Sagem F@ST2704N";
9 compatible = "sagem,f@st2704n", "brcm,bcm6318";
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 wlan {
24 label = "wlan";
25 gpios = <&pinctrl 1 0>;
26 linux,code = <KEY_WLAN>;
27 };
28 wps {
29 label = "wps";
30 gpios = <&pinctrl 33 1>;
31 linux,code = <KEY_WPS_BUTTON>;
32 };
33 reset {
34 label = "reset";
35 gpios = <&pinctrl 34 1>;
36 linux,code = <KEY_RESTART>;
37 };
38 };
39
40 gpio-leds {
41 compatible = "gpio-leds";
42
43 wps_green {
44 label = "F@ST2704N:green:wps";
45 gpios = <&pinctrl 2 1>;
46 };
47 lan1_green {
48 label = "F@ST2704N:green:lan1";
49 gpios = <&pinctrl 4 1>;
50 };
51 lan2_green {
52 label = "F@ST2704N:green:lan2";
53 gpios = <&pinctrl 5 1>;
54 };
55 lan3_green {
56 label = "F@ST2704N:green:lan3";
57 gpios = <&pinctrl 6 1>;
58 };
59 lan4_green {
60 label = "F@ST2704N:green:lan4";
61 gpios = <&pinctrl 7 1>;
62 };
63 inet_green {
64 label = "F@ST2704N:green:inet";
65 gpios = <&pinctrl 8 1>;
66 };
67 inet_red {
68 label = "F@ST2704N:red:inet";
69 gpios = <&pinctrl 9 1>;
70 };
71 dsl_green {
72 label = "F@ST2704N:green:dsl";
73 gpios = <&pinctrl 10 1>;
74 };
75 power_red {
76 label = "F@ST2704N:red:power";
77 gpios = <&pinctrl 11 1>;
78 };
79 power_green {
80 label = "F@ST2704N:green:power";
81 gpios = <&pinctrl 47 1>;
82 default-state = "on";
83 };
84 usb_green {
85 label = "F@ST2704N:green:usb";
86 gpios = <&pinctrl 49 1>;
87 };
88 };
89 };
90
91 &hsspi {
92 status = "ok";
93
94 flash@0 {
95 compatible = "jedec,spi-nor";
96 spi-max-frequency = <62500000>;
97 spi-tx-bus-width = <2>;
98 spi-rx-bus-width = <2>;
99 reg = <0>;
100
101 #address-cells = <1>;
102 #size-cells = <1>;
103
104 linux,part-probe = "bcm63xxpart";
105
106 partitions {
107 compatible = "fixed-partitions";
108 #address-cells = <1>;
109 #size-cells = <1>;
110
111 cfe@0 {
112 reg = <0x000000 0x010000>;
113 label = "cfe";
114 read-only;
115 };
116
117 linux@10000 {
118 reg = <0x010000 0x7e0000>;
119 label = "linux";
120 compatible = "brcm,bcm963xx-imagetag";
121 };
122
123 nvram@7f0000 {
124 reg = <0x7f0000 0x010000>;
125 label = "nvram";
126 };
127 };
128 };
129 };
130
131 &uart0 {
132 status = "ok";
133 };