bcm63xx: use generic diag.sh
[openwrt/openwrt.git] / target / linux / bcm63xx / dts / bcm6318-comtrend-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 aliases {
12 led-boot = &led_power_green;
13 led-failsafe = &led_power_green;
14 led-running = &led_power_green;
15 led-upgrade = &led_power_green;
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 wps {
30 label = "wps";
31 gpios = <&pinctrl 3 1>;
32 linux,code = <KEY_WPS_BUTTON>;
33 debounce-interval = <60>;
34 };
35
36 reset {
37 label = "reset";
38 gpios = <&pinctrl 33 1>;
39 linux,code = <KEY_RESTART>;
40 debounce-interval = <60>;
41 };
42 };
43
44 leds {
45 compatible = "gpio-leds";
46
47 wps_green {
48 label = "AR-5315u:green:wps";
49 gpios = <&pinctrl 0 1>;
50 };
51 led_power_green: power_green {
52 label = "AR-5315u:green:power";
53 gpios = <&pinctrl 1 1>;
54 default-state = "on";
55 };
56 usb_green {
57 label = "AR-5315u:green:usb";
58 gpios = <&pinctrl 2 1>;
59 };
60 inet_green {
61 label = "AR-5315u:green:inet";
62 gpios = <&pinctrl 8 1>;
63 };
64 inet_red {
65 label = "AR-5315u:red:inet";
66 gpios = <&pinctrl 9 1>;
67 };
68 dsl_green {
69 label = "AR-5315u:green:dsl";
70 gpios = <&pinctrl 10 1>;
71 };
72 power_red {
73 label = "AR-5315u:red:power";
74 gpios = <&pinctrl 11 1>;
75 };
76 };
77 };
78
79 &hsspi {
80 status = "ok";
81
82 flash@0 {
83 compatible = "jedec,spi-nor";
84 spi-max-frequency = <62500000>;
85 spi-tx-bus-width = <2>;
86 spi-rx-bus-width = <2>;
87 reg = <0>;
88
89 #address-cells = <1>;
90 #size-cells = <1>;
91
92 partitions {
93 compatible = "fixed-partitions";
94 #address-cells = <1>;
95 #size-cells = <1>;
96
97 cfe@0 {
98 reg = <0x000000 0x010000>;
99 label = "cfe";
100 read-only;
101 };
102
103 linux@10000 {
104 reg = <0x010000 0xfe0000>;
105 label = "linux";
106 compatible = "brcm,bcm963xx-imagetag";
107 };
108
109 nvram@ff0000 {
110 reg = <0xff0000 0x010000>;
111 label = "nvram";
112 };
113 };
114 };
115 };
116
117 &pinctrl {
118 pinctrl-names = "default";
119 pinctrl-0 = <&pinctrl_ephy0_act_led &pinctrl_ephy1_act_led
120 &pinctrl_ephy2_act_led &pinctrl_ephy3_act_led>;
121 };
122
123 &uart0 {
124 status = "ok";
125 };