bcm63xx: use generic diag.sh
[openwrt/openwrt.git] / target / linux / bcm63xx / dts / bcm6318-sagem-fast-2704n.dts
1 /dts-v1/;
2
3 #include "bcm6318.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 model = "Sagem F@st 2704N";
9 compatible = "sagem,fast-2704n", "brcm,bcm6318";
10
11 aliases {
12 led-boot = &led_power_red;
13 led-failsafe = &led_power_red;
14 led-running = &led_power_red;
15 led-upgrade = &led_power_red;
16 };
17
18 chosen {
19 bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
20 stdout-path = "serial0:115200n8";
21 };
22
23 keys {
24 compatible = "gpio-keys-polled";
25 #address-cells = <1>;
26 #size-cells = <0>;
27 poll-interval = <20>;
28
29 wlan {
30 label = "wlan";
31 gpios = <&pinctrl 1 0>;
32 linux,code = <KEY_WLAN>;
33 debounce-interval = <60>;
34 };
35
36 wps {
37 label = "wps";
38 gpios = <&pinctrl 33 1>;
39 linux,code = <KEY_WPS_BUTTON>;
40 debounce-interval = <60>;
41 };
42
43 reset {
44 label = "reset";
45 gpios = <&pinctrl 34 1>;
46 linux,code = <KEY_RESTART>;
47 debounce-interval = <60>;
48 };
49 };
50
51 leds {
52 compatible = "gpio-leds";
53
54 wps_green {
55 label = "F@ST2704N:green:wps";
56 gpios = <&pinctrl 2 1>;
57 };
58 lan1_green {
59 label = "F@ST2704N:green:lan1";
60 gpios = <&pinctrl 4 1>;
61 };
62 lan2_green {
63 label = "F@ST2704N:green:lan2";
64 gpios = <&pinctrl 5 1>;
65 };
66 lan3_green {
67 label = "F@ST2704N:green:lan3";
68 gpios = <&pinctrl 6 1>;
69 };
70 lan4_green {
71 label = "F@ST2704N:green:lan4";
72 gpios = <&pinctrl 7 1>;
73 };
74 inet_green {
75 label = "F@ST2704N:green:inet";
76 gpios = <&pinctrl 8 1>;
77 };
78 inet_red {
79 label = "F@ST2704N:red:inet";
80 gpios = <&pinctrl 9 1>;
81 };
82 dsl_green {
83 label = "F@ST2704N:green:dsl";
84 gpios = <&pinctrl 10 1>;
85 };
86 led_power_red: power_red {
87 label = "F@ST2704N:red:power";
88 gpios = <&pinctrl 11 1>;
89 };
90 power_green {
91 label = "F@ST2704N:green:power";
92 gpios = <&pinctrl 47 1>;
93 default-state = "on";
94 };
95 usb_green {
96 label = "F@ST2704N:green:usb";
97 gpios = <&pinctrl 49 1>;
98 };
99 };
100 };
101
102 &hsspi {
103 status = "ok";
104
105 flash@0 {
106 compatible = "jedec,spi-nor";
107 spi-max-frequency = <62500000>;
108 spi-tx-bus-width = <2>;
109 spi-rx-bus-width = <2>;
110 reg = <0>;
111
112 #address-cells = <1>;
113 #size-cells = <1>;
114
115 partitions {
116 compatible = "fixed-partitions";
117 #address-cells = <1>;
118 #size-cells = <1>;
119
120 cfe@0 {
121 reg = <0x000000 0x010000>;
122 label = "cfe";
123 read-only;
124 };
125
126 linux@10000 {
127 reg = <0x010000 0x7e0000>;
128 label = "linux";
129 compatible = "brcm,bcm963xx-imagetag";
130 };
131
132 nvram@7f0000 {
133 reg = <0x7f0000 0x010000>;
134 label = "nvram";
135 };
136 };
137 };
138 };
139
140 &uart0 {
141 status = "ok";
142 };