brcm63xx: add pinctrl support
[oweals/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         };
14
15         gpio-keys-polled {
16                 compatible = "gpio-keys-polled";
17                 #address-cells = <1>;
18                 #size-cells = <0>;
19                 poll-interval = <20>;
20                 debounce-interval = <60>;
21
22                 wlan {
23                         label = "wlan";
24                         gpios = <&pinctrl 1 0>;
25                         linux,code = <KEY_WLAN>;
26                 };
27                 wps {
28                         label = "wps";
29                         gpios = <&pinctrl 33 1>;
30                         linux,code = <KEY_WPS_BUTTON>;
31                 };
32                 reset {
33                         label = "reset";
34                         gpios = <&pinctrl 34 1>;
35                         linux,code = <KEY_RESTART>;
36                 };
37         };
38
39         gpio-leds {
40                 compatible = "gpio-leds";
41
42                 wps_green {
43                         label = "F@ST2704N:green:wps";
44                         gpios = <&pinctrl 2 1>;
45                 };
46                 lan1_green {
47                         label = "F@ST2704N:green:lan1";
48                         gpios = <&pinctrl 4 1>;
49                 };
50                 lan2_green {
51                         label = "F@ST2704N:green:lan2";
52                         gpios = <&pinctrl 5 1>;
53                 };
54                 lan3_green {
55                         label = "F@ST2704N:green:lan3";
56                         gpios = <&pinctrl 6 1>;
57                 };
58                 lan4_green {
59                         label = "F@ST2704N:green:lan4";
60                         gpios = <&pinctrl 7 1>;
61                 };
62                 inet_green {
63                         label = "F@ST2704N:green:inet";
64                         gpios = <&pinctrl 8 1>;
65                 };
66                 inet_red {
67                         label = "F@ST2704N:red:inet";
68                         gpios = <&pinctrl 9 1>;
69                 };
70                 dsl_green {
71                         label = "F@ST2704N:green:dsl";
72                         gpios = <&pinctrl 10 1>;
73                 };
74                 power_red {
75                         label = "F@ST2704N:red:power";
76                         gpios = <&pinctrl 11 1>;
77                 };
78                 power_green {
79                         label = "F@ST2704N:green:power";
80                         gpios = <&pinctrl 47 1>;
81                         default-state = "on";
82                 };
83                 usb_green {
84                         label = "F@ST2704N:green:usb";
85                         gpios = <&pinctrl 49 1>;
86                 };
87         };
88 };
89
90 &hsspi {
91         status = "ok";
92
93         flash@0 {
94                 compatible = "jedec,spi-nor";
95                 spi-max-frequency = <62500000>;
96                 spi-tx-bus-width = <2>;
97                 spi-rx-bus-width = <2>;
98                 reg = <0>;
99
100                 #address-cells = <1>;
101                 #size-cells = <1>;
102
103                 linux,part-probe = "bcm63xxpart";
104
105                 cfe@0 {
106                         reg = <0x000000 0x010000>;
107                         label = "cfe";
108                         read-only;
109                 };
110
111                 linux@10000 {
112                         reg = <0x010000 0x7e0000>;
113                         label = "linux";
114                 };
115
116                 nvram@7f0000 {
117                         reg = <0x7f0000 0x010000>;
118                         label = "nvram";
119                 };
120         };
121 };