bcm63xx: use generic diag.sh
[openwrt/openwrt.git] / target / linux / bcm63xx / dts / bcm6328-sercomm-ad1018-nor.dts
1 /dts-v1/;
2
3 #include "bcm6328.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 model = "Sercomm AD1018 (SPI flash mod)";
9 compatible = "sercomm,ad1018-nor", "brcm,bcm6328";
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 24 1>;
32 linux,code = <KEY_WPS_BUTTON>;
33 debounce-interval = <60>;
34 };
35
36 wifi {
37 label = "wifi";
38 gpios = <&pinctrl 25 1>;
39 linux,code = <KEY_WLAN>;
40 debounce-interval = <60>;
41 };
42
43 reset {
44 label = "reset";
45 gpios = <&pinctrl 31 1>;
46 linux,code = <KEY_RESTART>;
47 debounce-interval = <60>;
48 };
49 };
50 };
51
52 &pinctrl {
53 pinctrl_leds: leds {
54 function = "led";
55 pins = "gpio0", "gpio1";
56 };
57 };
58
59 &leds {
60 status = "ok";
61
62 pinctrl-names = "default";
63 pinctrl-0 = <&pinctrl_leds &pinctrl_serial_led
64 &pinctrl_ephy0_spd_led &pinctrl_ephy1_act_led
65 &pinctrl_ephy2_act_led &pinctrl_ephy3_act_led>;
66
67 brcm,serial-leds;
68 brcm,serial-shift-inv;
69 brcm,serial-dat-low;
70
71 inet_red@0 {
72 reg = <0>;
73 active-low;
74 label = "AD1018:red:internet";
75 };
76
77 inet_green@1 {
78 reg = <1>;
79 active-low;
80 label = "AD1018:green:internet";
81 };
82
83 led_power_green: power_green@8 {
84 reg = <8>;
85 active-low;
86 label = "AD1018:green:power";
87 default-state = "on";
88 };
89
90 adsl_green@10 {
91 reg = <10>;
92 active-low;
93 label = "AD1018:green:adsl";
94 };
95
96 adsl_red@11 {
97 reg = <11>;
98 active-low;
99 label = "AD1018:red:adsl";
100 };
101
102 phone_green@12 {
103 reg = <12>;
104 active-low;
105 label = "AD1018:green:phone";
106 };
107
108 wps_green@13 {
109 reg = <13>;
110 active-low;
111 label = "AD1018:green:wps";
112 };
113
114 wifi_green@14 {
115 reg = <14>;
116 active-low;
117 label = "AD1018:green:wifi";
118 };
119
120 usb_green@15 {
121 reg = <15>;
122 active-low;
123 label = "AD1018:green:usb";
124 };
125
126 ephy0_spd@17 {
127 reg = <17>;
128 brcm,hardware-controlled;
129 };
130 };
131
132 &hsspi {
133 status = "ok";
134
135 flash@0 {
136 compatible = "jedec,spi-nor";
137 spi-max-frequency = <16666667>;
138 spi-tx-bus-width = <2>;
139 spi-rx-bus-width = <2>;
140 reg = <0>;
141
142 #address-cells = <1>;
143 #size-cells = <1>;
144
145 partitions {
146 compatible = "brcm,bcm963xx-cfe-nor-partitions";
147 };
148 };
149 };
150
151 &uart0 {
152 status = "ok";
153 };