d7632c69deec3b4ce0a7bca9cc0eb4cfa87979ab
[openwrt/staging/mkresin.git] / target / linux / brcm63xx / dts / 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 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 24 1>;
25 linux,code = <KEY_WPS_BUTTON>;
26 };
27 wifi {
28 label = "wifi";
29 gpios = <&pinctrl 25 1>;
30 linux,code = <KEY_WLAN>;
31 };
32 reset {
33 label = "reset";
34 gpios = <&pinctrl 31 1>;
35 linux,code = <KEY_RESTART>;
36 };
37 };
38
39 };
40
41 &pinctrl {
42 pinctrl_leds: leds {
43 function = "led";
44 pins = "gpio0", "gpio1";
45 };
46 };
47
48 &leds {
49 status = "ok";
50
51 pinctrl-names = "default";
52 pinctrl-0 = <&pinctrl_leds &pinctrl_serial_led
53 &pinctrl_ephy0_spd_led &pinctrl_ephy1_act_led
54 &pinctrl_ephy2_act_led &pinctrl_ephy3_act_led>;
55
56 brcm,serial-leds;
57 brcm,serial-shift-inv;
58 brcm,serial-dat-low;
59
60 inet_red@0 {
61 reg = <0>;
62 active-low;
63 label = "AD1018:red:internet";
64 };
65
66 inet_green@1 {
67 reg = <1>;
68 active-low;
69 label = "AD1018:green:internet";
70 };
71
72 power_green@8 {
73 reg = <8>;
74 active-low;
75 label = "AD1018:green:power";
76 default-state = "on";
77 };
78
79 adsl_green@10 {
80 reg = <10>;
81 active-low;
82 label = "AD1018:green:adsl";
83 };
84
85 adsl_red@11 {
86 reg = <11>;
87 active-low;
88 label = "AD1018:red:adsl";
89 };
90
91 phone_green@12 {
92 reg = <12>;
93 active-low;
94 label = "AD1018:green:phone";
95 };
96
97 wps_green@13 {
98 reg = <13>;
99 active-low;
100 label = "AD1018:green:wps";
101 };
102
103 wifi_green@14 {
104 reg = <14>;
105 active-low;
106 label = "AD1018:green:wifi";
107 };
108
109 usb_green@15 {
110 reg = <15>;
111 active-low;
112 label = "AD1018:green:usb";
113 };
114
115 ephy0_spd@17 {
116 reg = <17>;
117 brcm,hardware-controlled;
118 };
119 };
120
121 &hsspi {
122 status = "ok";
123
124 flash@0 {
125 compatible = "jedec,spi-nor";
126 spi-max-frequency = <16666667>;
127 spi-tx-bus-width = <2>;
128 spi-rx-bus-width = <2>;
129 reg = <0>;
130
131 #address-cells = <1>;
132 #size-cells = <1>;
133
134 linux,part-probe = "bcm63xxpart";
135 };
136 };