rootfs: fix USE_APK detection
[openwrt/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
23 led_power: power {
24 label = "green:power";
25 gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
26 };
27
28 usb {
29 label = "green:usb";
30 gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
31 trigger-sources = <&ohci_port1>, <&ehci_port1>;
32 linux,default-trigger = "usbport";
33 };
34
35 air {
36 label = "green:wifi";
37 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
38 };
39 };
40
41 keys {
42 compatible = "gpio-keys";
43
44 reset {
45 label = "reset";
46 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
47 linux,code = <KEY_RESTART>;
48 };
49 };
50 };
51
52 &spi0 {
53 status = "okay";
54
55 flash0: flash@0 {
56 compatible = "jedec,spi-nor";
57 reg = <0>;
58 spi-max-frequency = <10000000>;
59
60 partitions {
61 compatible = "fixed-partitions";
62 #address-cells = <1>;
63 #size-cells = <1>;
64
65 partition@0 {
66 label = "u-boot";
67 reg = <0x0 0x30000>;
68 read-only;
69 };
70
71 partition@30000 {
72 label = "u-boot-env";
73 reg = <0x30000 0x10000>;
74 read-only;
75 };
76
77 factory: partition@40000 {
78 label = "factory";
79 reg = <0x40000 0x10000>;
80 read-only;
81 };
82
83 firmware: partition@50000 {
84 compatible = "denx,uimage";
85 label = "firmware";
86 /* reg property is set based on flash size in DTS files */
87 };
88 };
89 };
90 };
91
92 &gpio1 {
93 status = "okay";
94 };
95
96 &gpio3 {
97 status = "okay";
98 };
99
100 &sdhci {
101 status = "okay";
102 };
103
104 &ehci {
105 status = "okay";
106 };
107
108 &ohci {
109 status = "okay";
110 };
111
112 &ethernet {
113 nvmem-cells = <&macaddr_factory_4>;
114 nvmem-cell-names = "mac-address";
115
116 mediatek,portmap = "llllw";
117 };
118
119 &wmac {
120 ralink,mtd-eeprom = <&factory 0x0>;
121 };
122
123 &state_default {
124 default {
125 groups = "i2c", "uartf", "wled", "spi refclk", "pa";
126 function = "gpio";
127 };
128 };
129
130 &pcie {
131 status = "okay";
132 };
133
134 &factory {
135 compatible = "nvmem-cells";
136 #address-cells = <1>;
137 #size-cells = <1>;
138
139 macaddr_factory_4: macaddr@4 {
140 reg = <0x4 0x6>;
141 };
142 };