ixp4xx: Update to 4.9 kernel, refresh patches. Remove kmod-spi-gpio-old usage.
[oweals/openwrt.git] / target / linux / lantiq / dts / WBMR.dts
1 /dts-v1/;
2
3 #include "ar9.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8         model = "WBMR - Buffalo WBMR-HP-G300H";
9
10         chosen {
11                 bootargs = "console=ttyLTQ0,115200";
12         };
13
14         aliases {
15                 led-boot = &power_green;
16                 led-failsafe = &power_red;
17                 led-running = &power_green;
18
19                 led-dsl = &dsl;
20                 led-internet = &online_green;
21                 led-usb = &usb;
22                 led-wifi = &wifi;
23         };
24
25         memory@0 {
26                 reg = <0x0 0x4000000>;
27         };
28
29         fpi@10000000 {
30                 localbus@0 {
31                         nor-boot@0 {
32                                 compatible = "lantiq,nor";
33                                 bank-width = <2>;
34                                 reg = <0 0x0 0x2000000>;
35                                 #address-cells = <1>;
36                                 #size-cells = <1>;
37
38                                 partitions {
39                                         compatible = "fixed-partitions";
40                                         #address-cells = <1>;
41                                         #size-cells = <1>;
42
43                                         partition@0 {
44                                                 label = "uboot";
45                                                 reg = <0x00000 0x40000>;
46                                                 read-only;
47                                         };
48
49                                         partition@40000 {
50                                                 label = "uboot_env";
51                                                 reg = <0x40000 0x20000>;
52                                                 read-only;
53                                         };
54
55                                         partition@20000 {
56                                                 label = "firmware";
57                                                 reg = <0x60000 0x1f20000>;
58                                         };
59
60                                         boardconfig: partition@1fc0000 {
61                                                 label = "board";
62                                                 reg = <0x1fc0000 0x20000>;
63                                                 read-only;
64                                         };
65
66                                         partition@1fe0000 {
67                                                 label = "calibration";
68                                                 reg = <0x1fe0000 0x20000>;
69                                                 read-only;
70                                         };
71                                 };
72                         };
73                 };
74
75                 gpio: pinmux@E100B10 {
76                         pinctrl-names = "default";
77                         pinctrl-0 = <&state_default>;
78
79                         state_default: pinmux {
80                                 pci-in {
81                                         lantiq,groups = "req1";
82                                         lantiq,output = <0>;
83                                         lantiq,open-drain = <1>;
84                                         lantiq,pull = <2>;
85                                 };
86                                 pci-out {
87                                         lantiq,groups = "gnt1";
88                                         lantiq,output = <1>;
89                                         lantiq,pull = <0>;
90                                 };
91                                 pci_rst {
92                                         lantiq,pins = "io21";
93                                         lantiq,pull = <0>;
94                                         lantiq,output = <1>;
95                                 };
96                         };
97                 };
98
99                 etop@E180000 {
100                         phy-mode = "rgmii";
101                         mtd-mac-address = <&boardconfig 0x10024>;
102                 };
103
104                 ifxhcd@E101000 {
105                         status = "okay";
106                         gpios = <&gpio 36 GPIO_ACTIVE_HIGH>;
107                 };
108
109                 pci@E105400 {
110                         status = "okay";
111                 };
112         };
113
114         gpio-keys-polled {
115                 compatible = "gpio-keys-polled";
116                 #address-cells = <1>;
117                 #size-cells = <0>;
118                 poll-interval = <100>;
119
120                 wps {
121                         label = "wps";
122                         gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
123                         linux,code = <KEY_WPS_BUTTON>;
124                 };
125                 reset {
126                         label = "reset";
127                         gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
128                         linux,code = <KEY_RESTART>;
129                 };
130                 eject {
131                         label = "eject";
132                         gpios = <&gpio 34 GPIO_ACTIVE_LOW>;
133                         linux,code = <KEY_EJECTCD>;
134                 };
135                 movie {
136                         label = "movie";
137                         gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
138                         linux,code = <KEY_VIDEO>;
139                 };
140         };
141
142         gpio-leds {
143                 compatible = "gpio-leds";
144
145                 power_green: power {
146                         label = "wbmr:green:power";
147                         gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
148                         default-state = "keep";
149                 };
150                 power_red: power2 {
151                         label = "wbmr:red:power";
152                         gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
153                 };
154                 security {
155                         label = "wbmr:yellow:security";
156                         gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
157                 };
158                 wifi: wifi {
159                         label = "wbmr:green:wireless";
160                         gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
161                 };
162                 dsl: dsl {
163                         label = "wbmr:green:dsl";
164                         gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
165                 };
166                 online_green: online {
167                         label = "wbmr:green:internet";
168                         gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
169                 };
170                 online2 {
171                         label = "wbmr:red:internet";
172                         gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
173                 };
174                 movie {
175                         label = "wbmr:blue:movie";
176                         gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
177                 };
178                 usb: usb {
179                         label = "wbmr:green:usb";
180                         gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
181                         default-state = "on";
182                 };
183         };
184 };