63883f048ba8133bddeee055e530954ceba61127
[openwrt/openwrt.git] / target / linux / brcm63xx / dts / ar-5315u.dts
1 /dts-v1/;
2
3 #include "bcm6318.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 model = "Comtrend AR-5315u";
9 compatible = "comtrend,ar-5315u", "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 wps {
23 label = "wps";
24 gpios = <&pinctrl 3 1>;
25 linux,code = <KEY_WPS_BUTTON>;
26 };
27 reset {
28 label = "reset";
29 gpios = <&pinctrl 33 1>;
30 linux,code = <KEY_RESTART>;
31 };
32 };
33
34 gpio-leds {
35 compatible = "gpio-leds";
36
37 wps_green {
38 label = "AR-5315u:green:wps";
39 gpios = <&pinctrl 0 1>;
40 };
41 power_green {
42 label = "AR-5315u:green:power";
43 gpios = <&pinctrl 1 1>;
44 default-state = "on";
45 };
46 usb_green {
47 label = "AR-5315u:green:usb";
48 gpios = <&pinctrl 2 1>;
49 };
50 inet_green {
51 label = "AR-5315u:green:inet";
52 gpios = <&pinctrl 8 1>;
53 };
54 inet_red {
55 label = "AR-5315u:red:inet";
56 gpios = <&pinctrl 9 1>;
57 };
58 dsl_green {
59 label = "AR-5315u:green:dsl";
60 gpios = <&pinctrl 10 1>;
61 };
62 power_red {
63 label = "AR-5315u:red:power";
64 gpios = <&pinctrl 11 1>;
65 };
66 };
67 };
68
69 &hsspi {
70 status = "ok";
71
72 flash@0 {
73 compatible = "jedec,spi-nor";
74 spi-max-frequency = <62500000>;
75 spi-tx-bus-width = <2>;
76 spi-rx-bus-width = <2>;
77 reg = <0>;
78
79 #address-cells = <1>;
80 #size-cells = <1>;
81
82 linux,part-probe = "bcm63xxpart";
83
84 cfe@0 {
85 reg = <0x000000 0x010000>;
86 label = "cfe";
87 read-only;
88 };
89
90 linux@10000 {
91 reg = <0x010000 0xfe0000>;
92 label = "linux";
93 };
94
95 nvram@ff0000 {
96 reg = <0xff0000 0x010000>;
97 label = "nvram";
98 };
99 };
100 };
101
102 &pinctrl {
103 pinctrl-names = "default";
104 pinctrl-0 = <&pinctrl_ephy0_act_led &pinctrl_ephy1_act_led
105 &pinctrl_ephy2_act_led &pinctrl_ephy3_act_led>;
106 };