ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar9344_openmesh_mr600.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 chosen {
10 /delete-property/ bootargs;
11 };
12
13 aliases {
14 label-mac-device = &eth0;
15 };
16
17 keys {
18 compatible = "gpio-keys";
19
20 reset {
21 label = "reset";
22 linux,code = <KEY_RESTART>;
23 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
24 };
25 };
26 };
27
28 &ref {
29 clock-frequency = <40000000>;
30 };
31
32 &spi {
33 status = "okay";
34
35 flash@0 {
36 compatible = "jedec,spi-nor";
37 reg = <0>;
38 spi-max-frequency = <40000000>;
39
40 /* partitions are passed via bootloader */
41 partitions {
42 compatible = "fixed-partitions";
43 #address-cells = <1>;
44 #size-cells = <1>;
45
46 partition@0 {
47 label = "u-boot";
48 reg = <0x000000 0x040000>;
49 read-only;
50 };
51
52 partition@40000 {
53 label = "u-boot-env";
54 reg = <0x040000 0x010000>;
55 };
56
57 partition@50000 {
58 label = "custom";
59 reg = <0x050000 0x060000>;
60 read-only;
61 };
62
63 partition@b0000 {
64 label = "inactive";
65 reg = <0x0b0000 0x7a0000>;
66 };
67
68 partition@850000 {
69 label = "inactive2";
70 reg = <0x850000 0x7a0000>;
71 };
72
73 partition@ff0000 {
74 label = "ART";
75 reg = <0xff0000 0x010000>;
76 read-only;
77
78 nvmem-layout {
79 compatible = "fixed-layout";
80 #address-cells = <1>;
81 #size-cells = <1>;
82
83 macaddr_art_0: macaddr@0 {
84 compatible = "mac-base";
85 reg = <0x0 0x6>;
86 #nvmem-cell-cells = <1>;
87 };
88
89 calibration_art_1000: calibration@1000 {
90 reg = <0x1000 0x440>;
91 };
92
93 calibration_art_5000: calibration@5000 {
94 reg = <0x5000 0x440>;
95 };
96 };
97 };
98 };
99 };
100 };
101
102 &mdio0 {
103 status = "okay";
104
105 phy0: ethernet-phy@0 {
106 reg = <0>;
107 eee-broken-100tx;
108 eee-broken-1000t;
109 };
110 };
111
112 &eth0 {
113 status = "okay";
114
115 pll-data = <0x02000000 0x00000101 0x00001313>;
116
117 nvmem-cells = <&macaddr_art_0 0>;
118 nvmem-cell-names = "mac-address";
119
120 phy-mode = "rgmii-id";
121 phy-handle = <&phy0>;
122
123 gmac-config {
124 device = <&gmac>;
125 rgmii-gmac0 = <1>;
126 rxdv-delay = <3>;
127 rxd-delay = <3>;
128 };
129 };
130
131 &wmac {
132 status = "okay";
133
134 nvmem-cells = <&macaddr_art_0 1>, <&calibration_art_1000>;
135 nvmem-cell-names = "mac-address", "calibration";
136 };
137
138 &pcie {
139 status = "okay";
140
141 ath9k: wifi@0,0 {
142 compatible = "pci168c,0030";
143 reg = <0x0000 0 0 0 0>;
144 nvmem-cells = <&macaddr_art_0 8>, <&calibration_art_5000>;
145 nvmem-cell-names = "mac-address", "calibration";
146
147 gpio-controller;
148 #gpio-cells = <2>;
149 };
150 };