4794d45d74221415a31787f2405d7833dffa7966
[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 = "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 wps {
24 label = "wps";
25 gpios = <&pinctrl 24 1>;
26 linux,code = <KEY_WPS_BUTTON>;
27 };
28 wifi {
29 label = "wifi";
30 gpios = <&pinctrl 25 1>;
31 linux,code = <KEY_WLAN>;
32 };
33 reset {
34 label = "reset";
35 gpios = <&pinctrl 31 1>;
36 linux,code = <KEY_RESTART>;
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 partitions {
135 compatible = "brcm,bcm963xx-cfe-nor-partitions";
136 };
137 };
138 };
139
140 &uart0 {
141 status = "ok";
142 };