a46af063234c0eb206c5588bf0d241e69f8fb1e9
[openwrt/staging/dedeckeh.git] / target / linux / ramips / dts / ZBT-WE826.dtsi
1 #include "mt7620a.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "zbtlink,zbt-we826", "ralink,mt7620a-soc";
8
9 aliases {
10 led-status = &led_power;
11 };
12
13 chosen {
14 bootargs = "console=ttyS0,115200";
15 };
16
17 gpio-leds {
18 compatible = "gpio-leds";
19 led_power: power {
20 label = "zbt-we826:green:power";
21 gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
22 };
23 usb {
24 label = "zbt-we826:green:usb";
25 gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
26 trigger-sources = <&ohci_port1>, <&ehci_port1>;
27 linux,default-trigger = "usbport";
28 };
29 air {
30 label = "zbt-we826:green:wifi";
31 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
32 };
33 };
34
35 gpio-keys-polled {
36 compatible = "gpio-keys-polled";
37 poll-interval = <20>;
38 reset {
39 label = "reset";
40 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
41 linux,code = <KEY_RESTART>;
42 };
43 };
44 };
45
46 &gpio0 {
47 status = "okay";
48 };
49
50 &gpio1 {
51 status = "okay";
52 };
53
54 &gpio3 {
55 status = "okay";
56 };
57
58 &sdhci {
59 status = "okay";
60 };
61
62 &ehci {
63 status = "okay";
64 };
65
66 &ohci {
67 status = "okay";
68 };
69
70 &ethernet {
71 mtd-mac-address = <&factory 0x4>;
72 mediatek,portmap = "wllll";
73 };
74
75 &wmac {
76 ralink,mtd-eeprom = <&factory 0>;
77 };
78
79 &pinctrl {
80 state_default: pinctrl0 {
81 default {
82 ralink,group = "i2c", "uartf", "wled", "spi refclk", "pa";
83 ralink,function = "gpio";
84 };
85 };
86 };
87
88 &pcie {
89 status = "okay";
90 };