treewide: convert mtd-mac-address-increment* to generic implementation
[openwrt/staging/hauke.git] / target / linux / ath79 / dts / ar7242_meraki_mr12.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar7242.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "meraki,mr12", "qca,ar7242";
10 model = "Meraki MR12";
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 link1 {
30 label = "green:link1";
31 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
32 };
33
34 link2 {
35 label = "green:link2";
36 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
37 };
38
39 link3 {
40 label = "green:link3";
41 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
42 };
43
44 link4 {
45 label = "green:link4";
46 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
47 };
48
49 lan {
50 label = "green:lan";
51 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
52 };
53
54 led_power_orange: power_orange {
55 label = "orange:power";
56 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
57 panic-indicator;
58 };
59
60 led_power_green: power_green {
61 label = "green:power";
62 gpios = <&gpio 17 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 8 GPIO_ACTIVE_LOW>;
73 };
74 };
75 };
76
77 &pcie {
78 status = "okay";
79
80 wifi@0,0,0 {
81 compatible = "pci168c,002a";
82 reg = <0x0000 0 0 0 0>;
83 qca,no-eeprom;
84 mtd-mac-address = <&config 0x66>;
85 mac-address-increment = <1>;
86 };
87 };
88
89 &pll {
90 clocks = <&extosc>;
91 };
92
93 &mdio0 {
94 status = "okay";
95
96 phy4: ethernet-phy@4 {
97 reg = <4>;
98 };
99 };
100
101 &eth0 {
102 status = "okay";
103
104 mtd-mac-address = <&config 0x66>;
105
106 pll-data = <0x02000000 0x00000101 0x00001313>;
107
108 phy-mode = "rgmii-id";
109 phy-handle = <&phy4>;
110 };
111
112 &mdio1 {
113 status = "okay";
114 };
115
116 &eth1 {
117 status = "okay";
118
119 mtd-mac-address = <&config 0x66>;
120 };
121
122 &spi {
123 status = "okay";
124
125 flash@0 {
126 compatible = "jedec,spi-nor";
127 reg = <0>;
128 spi-max-frequency = <50000000>;
129
130 partitions {
131 compatible = "fixed-partitions";
132 #address-cells = <1>;
133 #size-cells = <1>;
134
135 partition@0 {
136 label = "u-boot";
137 reg = <0x000000 0x40000>;
138 read-only;
139 };
140
141 partition@40000 {
142 label = "u-boot-env";
143 reg = <0x40000 0x40000>;
144 read-only;
145 };
146
147 config: partition@80000 {
148 label = "config";
149 reg = <0x80000 0x20000>;
150 read-only;
151 };
152
153 partition@a0000 {
154 label = "firmware";
155 reg = <0xa0000 0xf40000>;
156 compatible = "denx,uimage";
157 };
158
159 partition@fe0000 {
160 label = "art";
161 reg = <0xfe0000 0x20000>;
162 read-only;
163 };
164 };
165 };
166 };