ramips: mt7621: Add new device AsiaRF AP7621-NV1
[oweals/openwrt.git] / target / linux / ramips / dts / mt7620a_zbtlink_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-boot = &led_power;
11                 led-failsafe = &led_power;
12                 led-running = &led_power;
13                 led-upgrade = &led_power;
14         };
15
16         chosen {
17                 bootargs = "console=ttyS0,115200";
18         };
19
20         leds {
21                 compatible = "gpio-leds";
22                 led_power: power {
23                         label = "zbt-we826:green:power";
24                         gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
25                 };
26                 usb {
27                         label = "zbt-we826:green:usb";
28                         gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
29                         trigger-sources = <&ohci_port1>, <&ehci_port1>;
30                         linux,default-trigger = "usbport";
31                 };
32                 air {
33                         label = "zbt-we826:green:wifi";
34                         gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
35                 };
36         };
37
38         keys {
39                 compatible = "gpio-keys-polled";
40                 poll-interval = <20>;
41                 reset {
42                         label = "reset";
43                         gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
44                         linux,code = <KEY_RESTART>;
45                 };
46         };
47 };
48
49 &gpio0 {
50         status = "okay";
51 };
52
53 &gpio1 {
54         status = "okay";
55 };
56
57 &gpio3 {
58         status = "okay";
59 };
60
61 &sdhci {
62         status = "okay";
63 };
64
65 &ehci {
66         status = "okay";
67 };
68
69 &ohci {
70         status = "okay";
71 };
72
73 &ethernet {
74         mtd-mac-address = <&factory 0x4>;
75         mediatek,portmap = "wllll";
76 };
77
78 &wmac {
79         ralink,mtd-eeprom = <&factory 0>;
80 };
81
82 &pinctrl {
83         state_default: pinctrl0 {
84                 default {
85                         ralink,group = "i2c", "uartf", "wled", "spi refclk", "pa";
86                         ralink,function = "gpio";
87                 };
88         };
89 };
90
91 &pcie {
92         status = "okay";
93 };