ath79: qca955x: remove redundant phy-mode
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar7161_meraki_mr16.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar7100.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "meraki,mr16", "qca,ar7161";
10 model = "Meraki MR16";
11
12 aliases {
13 led-boot = &led_power_orange;
14 led-failsafe = &led_power_orange;
15 led-running = &led_power_green;
16 led-upgrade = &led_power_orange;
17 };
18
19 extosc: ref {
20 compatible = "fixed-clock";
21 #clock-cells = <0>;
22 clock-output-names = "ref";
23 clock-frequency = <40000000>;
24 };
25
26 leds {
27 compatible = "gpio-leds";
28
29 wifi1 {
30 label = "green:wifi1";
31 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
32 };
33
34 wifi2 {
35 label = "green:wifi2";
36 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
37 };
38
39 wifi3 {
40 label = "green:wifi3";
41 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
42 };
43
44 wifi4 {
45 label = "green:wifi4";
46 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
47 };
48
49 wan {
50 label = "green:wan";
51 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
52 };
53
54 led_power_orange: power_orange {
55 label = "orange:power";
56 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
57 panic-indicator;
58 };
59
60 led_power_green: power_green {
61 label = "green:power";
62 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
63 };
64 };
65
66 keys {
67 compatible = "gpio-keys";
68
69 reset {
70 label = "reset";
71 linux,code = <KEY_RESTART>;
72 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
73 };
74 };
75 };
76
77 &pcie0 {
78 status = "okay";
79
80 ath9k0: wifi@0,11 { /* 2.4 GHz */
81 compatible = "pci168c,0029";
82 reg = <0x8800 0 0 0 0>;
83 qca,no-eeprom;
84 mtd-mac-address = <&config 0x66>;
85 mtd-mac-address-increment = <1>;
86 #gpio-cells = <2>;
87 gpio-controller;
88 };
89
90 ath9k1: wifi@0,12 { /* 5 GHz */
91 compatible = "pci168c,0029";
92 reg = <0x9000 0 0 0 0>;
93 qca,no-eeprom;
94 mtd-mac-address = <&config 0x66>;
95 mtd-mac-address-increment = <2>;
96 #gpio-cells = <2>;
97 gpio-controller;
98 };
99 };
100
101 &pll {
102 clocks = <&extosc>;
103 };
104
105 &uart {
106 status = "okay";
107 };
108
109 &mdio0 {
110 status = "okay";
111
112 phy-mask = <0x1>;
113
114 phy0: ethernet-phy@0 {
115 reg = <0>;
116 };
117 };
118
119 &eth0 {
120 status = "okay";
121 mtd-mac-address = <&config 0x66>;
122
123 pll-data = <0x00110000 0x00001099 0x00991099>;
124
125 phy-mode = "rgmii";
126 phy-handle = <&phy0>;
127 };
128
129 &spi {
130 status = "okay";
131
132 flash@0 {
133 compatible = "jedec,spi-nor";
134 reg = <0>;
135 spi-max-frequency = <25000000>;
136
137 partitions {
138 compatible = "fixed-partitions";
139 #address-cells = <1>;
140 #size-cells = <1>;
141
142 partition@0 {
143 label = "u-boot";
144 reg = <0x000000 0x40000>;
145 read-only;
146 };
147
148 partition@40000 {
149 label = "u-boot-env";
150 reg = <0x40000 0x40000>;
151 read-only;
152 };
153
154 config: partition@80000 {
155 label = "config";
156 reg = <0x80000 0x20000>;
157 read-only;
158 };
159
160 partition@a0000 {
161 label = "firmware";
162 reg = <0xa0000 0xf40000>;
163 compatible = "denx,uimage";
164 };
165
166 partition@fe0000 {
167 label = "art";
168 reg = <0xfe0000 0x20000>;
169 read-only;
170 };
171 };
172 };
173 };