brcm63xx: switch to new partition layout specification
[oweals/openwrt.git] / target / linux / brcm63xx / dts / ct-5365.dts
1 /dts-v1/;
2
3 #include "bcm6348.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8         model = "Comtrend CT-5365";
9         compatible = "comtrend,ct-5365", "brcm,bcm6348";
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 33 1>;
26                         linux,code = <KEY_RESTART>;
27                 };
28                 wlan {
29                         label = "wlan";
30                         gpios = <&pinctrl 34 1>;
31                         linux,code = <KEY_WLAN>;
32                 };
33                 wps {
34                         label = "wps";
35                         gpios = <&pinctrl 35 1>;
36                         linux,code = <KEY_WPS_BUTTON>;
37                 };
38         };
39
40         gpio-leds {
41                 compatible = "gpio-leds";
42
43                 power_green {
44                         label = "96348A-122:green:power";
45                         gpios = <&pinctrl 0 1>;
46                         default-state = "on";
47                 };
48                 alarm_red {
49                         label = "96348A-122:red:alarm";
50                         gpios = <&pinctrl 2 1>;
51                 };
52                 wps_green {
53                         label = "96348A-122:green:wps";
54                         gpios = <&pinctrl 6 1>;
55                 };
56         };
57 };
58
59 &pflash {
60         status = "ok";
61
62         linux,part-probe = "bcm63xxpart";
63
64         partitions {
65                 compatible = "fixed-partitions";
66                 #address-cells = <1>;
67                 #size-cells = <1>;
68
69                 cfe@0 {
70                         label = "CFE";
71                         reg = <0x000000 0x010000>;
72                         read-only;
73                 };
74
75                 linux@10000 {
76                         label = "linux";
77                         reg = <0x010000 0x3e0000>;
78                         compatible = "brcm,bcm963xx-imagetag";
79                 };
80
81                 nvram@3f0000 {
82                         label = "nvram";
83                         reg = <0x3f0000 0x010000>;
84                 };
85         };
86 };
87
88 &pinctrl {
89         pinctrl-names = "default";
90         pinctrl-0 = <&pinctrl_pci &pinctrl_ext_mii>;
91 };
92
93 &uart0 {
94         status = "ok";
95 };