dnsmasq: rework network interface ignore
[openwrt/staging/jow.git] / target / linux / ath79 / dts / ar9342_ubnt_xw.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9344.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "ubnt,xw", "qca,ar9342";
10 model = "Ubiquiti Networks XW board";
11
12 keys {
13 compatible = "gpio-keys";
14
15 reset {
16 label = "Reset button";
17 linux,code = <KEY_RESTART>;
18 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
19 debounce-interval = <60>;
20 };
21 };
22 };
23
24 &ref {
25 clock-frequency = <40000000>;
26 };
27
28 &spi {
29 status = "okay";
30
31 flash@0 {
32 compatible = "jedec,spi-nor";
33 reg = <0>;
34 spi-max-frequency = <25000000>;
35
36 partitions {
37 compatible = "fixed-partitions";
38 #address-cells = <1>;
39 #size-cells = <1>;
40
41 partition@0 {
42 label = "u-boot";
43 reg = <0x000000 0x040000>;
44 read-only;
45 };
46
47 partition@40000 {
48 label = "u-boot-env";
49 reg = <0x040000 0x010000>;
50 read-only;
51 };
52
53 partition@50000 {
54 compatible = "denx,uimage";
55 label = "firmware";
56 reg = <0x050000 0x760000>;
57 };
58
59 partition@7b0000 {
60 label = "cfg";
61 reg = <0x7b0000 0x040000>;
62 read-only;
63 };
64
65 art: partition@7f0000 {
66 label = "art";
67 reg = <0x7f0000 0x010000>;
68 read-only;
69
70 nvmem-layout {
71 compatible = "fixed-layout";
72 #address-cells = <1>;
73 #size-cells = <1>;
74
75 macaddr_art_0: macaddr@0 {
76 reg = <0x0 0x6>;
77 };
78
79 calibration_art_1000: calibration@1000 {
80 reg = <0x1000 0x440>;
81 };
82 };
83 };
84 };
85 };
86 };
87
88 &wmac {
89 status = "okay";
90
91 nvmem-cells = <&calibration_art_1000>;
92 nvmem-cell-names = "calibration";
93 };
94
95 &eth0 {
96 nvmem-cells = <&macaddr_art_0>;
97 nvmem-cell-names = "mac-address";
98 };