brcm63xx: switch to new partition layout specification
[oweals/openwrt.git] / target / linux / brcm63xx / dts / fast2504n.dts
1 /dts-v1/;
2
3 #include "bcm6362.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8         model = "Sagem F@ST2504n";
9         compatible = "sagem,f@st2504n", "brcm,bcm6362";
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                 reset {
24                         label = "reset";
25                         gpios = <&pinctrl 24 1>;
26                         linux,code = <KEY_RESTART>;
27                 };
28                 wps {
29                         label = "wps";
30                         gpios = <&pinctrl 25 1>;
31                         linux,code = <KEY_WPS_BUTTON>;
32                 };
33         };
34
35         gpio-leds {
36                 compatible = "gpio-leds";
37
38                 power_orange {
39                         label = "fast2504n:orange:power";
40                         gpios = <&pinctrl 2 1>;
41                 };
42                 power_green {
43                         label = "fast2504n:green:power";
44                         gpios = <&pinctrl 10 1>;
45                         default-state = "on";
46                 };
47                 inet_red {
48                         label = "fast2504n:red:internet";
49                         gpios = <&pinctrl 26 1>;
50                 };
51                 ok_green {
52                         label = "fast2504n:green:ok";
53                         gpios = <&pinctrl 28 1>;
54                 };
55                 ok_orange {
56                         label = "fast2504n:orange:ok";
57                         gpios = <&pinctrl 29 1>;
58                 };
59                 wlan_orangee {
60                         label = "fast2504n:orange:wlan";
61                         gpios = <&pinctrl 30 1>;
62                 };
63         };
64 };
65
66 &hsspi {
67         status = "ok";
68
69         flash@0 {
70                 compatible = "jedec,spi-nor";
71                 spi-max-frequency = <20000000>;
72                 spi-tx-bus-width = <2>;
73                 spi-rx-bus-width = <2>;
74                 reg = <0>;
75
76                 #address-cells = <1>;
77                 #size-cells = <1>;
78
79                 linux,part-probe = "bcm63xxpart";
80
81                 partitions {
82                         compatible = "fixed-partitions";
83                         #address-cells = <1>;
84                         #size-cells = <1>;
85
86                         cfe@0 {
87                                 reg = <0x000000 0x010000>;
88                                 label = "cfe";
89                                 read-only;
90                         };
91
92                         linux@10000 {
93                                 reg = <0x010000 0x7e0000>;
94                                 label = "linux";
95                                 compatible = "brcm,bcm963xx-imagetag";
96                         };
97
98                         nvram@7f0000 {
99                                 reg = <0x7f0000 0x010000>;
100                                 label = "nvram";
101                         };
102                 };
103         };
104 };
105
106 &uart0 {
107         status = "ok";
108 };