ath79: Add support for OpenMesh MR600 v1
[openwrt/openwrt.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 serial0 = &uart;
15 label-mac-device = &eth0;
16 };
17
18 keys {
19 compatible = "gpio-keys";
20
21 reset {
22 label = "reset";
23 linux,code = <KEY_RESTART>;
24 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
25 };
26 };
27 };
28
29 &ref {
30 clock-frequency = <40000000>;
31 };
32
33 &uart {
34 status = "okay";
35 };
36
37 &spi {
38 status = "okay";
39
40 flash@0 {
41 compatible = "jedec,spi-nor";
42 reg = <0>;
43 spi-max-frequency = <40000000>;
44
45 /* partitions are passed via bootloader */
46 partitions {
47 compatible = "fixed-partitions";
48 #address-cells = <1>;
49 #size-cells = <1>;
50
51 partition@0 {
52 label = "u-boot";
53 reg = <0x000000 0x040000>;
54 read-only;
55 };
56
57 partition@40000 {
58 label = "u-boot-env";
59 reg = <0x040000 0x010000>;
60 };
61
62 partition@50000 {
63 label = "custom";
64 reg = <0x050000 0x060000>;
65 read-only;
66 };
67
68 partition@b0000 {
69 label = "inactive";
70 reg = <0x0b0000 0x7a0000>;
71 };
72
73 partition@850000 {
74 label = "inactive2";
75 reg = <0x850000 0x7a0000>;
76 };
77
78 art: partition@ff0000 {
79 label = "ART";
80 reg = <0xff0000 0x010000>;
81 read-only;
82 };
83 };
84 };
85 };
86
87 &mdio0 {
88 status = "okay";
89
90 phy-mask = <0x1>;
91
92 phy0: ethernet-phy@0 {
93 reg = <0>;
94 eee-broken-100tx;
95 eee-broken-1000t;
96 };
97 };
98
99 &eth0 {
100 status = "okay";
101
102 pll-data = <0x06000000 0x00000101 0x00001313>;
103
104 mtd-mac-address = <&art 0x0>;
105
106 phy-mode = "rgmii";
107 phy-handle = <&phy0>;
108
109 gmac-config {
110 device = <&gmac>;
111 rgmii-gmac0 = <1>;
112 };
113 };
114
115 &wmac {
116 status = "okay";
117
118 mtd-cal-data = <&art 0x1000>;
119 mtd-mac-address = <&art 0x0>;
120 mtd-mac-address-increment = <1>;
121 };
122
123 &pcie {
124 status = "okay";
125
126 ath9k: wifi@0,0 {
127 compatible = "pci168c,0030";
128 reg = <0x0000 0 0 0 0>;
129 qca,no-eeprom;
130 mtd-mac-address = <&art 0x0>;
131 mtd-mac-address-increment = <8>;
132 };
133 };