ipq806x: remove mac-address-increment
[openwrt/staging/hauke.git] / target / linux / ipq806x / files / arch / arm / boot / dts / qcom-ipq8068-mr42.dts
1 // SPDX-License-Identifier: GPL-2.0 OR MIT
2
3 #include "qcom-ipq8068-cryptid-common.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 model = "Meraki MR42";
9 compatible = "meraki,mr42", "qcom,ipq8064";
10
11 aliases {
12 serial1 = &gsbi1_serial;
13 ethernet0 = &gmac3;
14
15 led-boot = &led_active;
16 led-failsafe = &led_power;
17 led-running = &led_active;
18 led-upgrade = &led_active;
19 };
20
21 keys {
22 compatible = "gpio-keys";
23 pinctrl-0 = <&button_pins>;
24 pinctrl-names = "default";
25
26 reset {
27 label = "reset";
28 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_LOW>;
29 linux,code = <KEY_RESTART>;
30 debounce-interval = <60>;
31 wakeup-source;
32 };
33 };
34
35 leds {
36 compatible = "gpio-leds";
37 pinctrl-0 = <&led_pins>;
38 pinctrl-names = "default";
39
40 led_power: power {
41 label = "orange:power";
42 gpios = <&qcom_pinmux 31 GPIO_ACTIVE_HIGH>;
43 };
44
45 led_active: active {
46 label = "white:active";
47 gpios = <&qcom_pinmux 32 GPIO_ACTIVE_HIGH>;
48 };
49 };
50 };
51
52 &gmac3 {
53 status = "okay";
54
55 qcom,id = <3>;
56 mdiobus = <&mdio0>;
57
58 phy-mode = "sgmii";
59 phy-handle = <&phy2>;
60
61 nvmem-cells = <&mac_address 0>;
62 nvmem-cell-names = "mac-address";
63 };
64
65 &gsbi2 {
66 status = "okay";
67 qcom,mode = <GSBI_PROT_I2C>;
68 };
69
70 &gsbi2_i2c {
71 status = "okay";
72
73 pinctrl-0 = <&i2c0_pins>;
74 pinctrl-names = "default";
75
76 ina2xx@40 {
77 compatible = "ina219";
78 shunt-resistor = <40000>;
79 reg = <0x40>;
80 };
81
82 eeprom@56 {
83 compatible = "atmel,24c64";
84 pagesize = <32>;
85 reg = <0x56>;
86 read-only;
87
88 nvmem-layout {
89 compatible = "fixed-layout";
90 #address-cells = <1>;
91 #size-cells = <1>;
92
93 mac_address: mac-address@66 {
94 compatible = "mac-base";
95 reg = <0x66 0x6>;
96 #nvmem-cell-cells = <1>;
97 };
98 };
99 };
100 };
101
102 &gsbi6 {
103 qcom,mode = <GSBI_PROT_I2C>;
104 status = "okay";
105 };
106
107 &gsbi6_i2c {
108 status = "okay";
109
110 pinctrl-0 = <&i2c1_pins>;
111 pinctrl-names = "default";
112
113 tlc591xx@40 {
114 #address-cells = <1>;
115 #size-cells = <0>;
116 compatible = "ti,tlc59108";
117 reg = <0x40>;
118
119 red@0 {
120 label = "red:user";
121 reg = <0x0>;
122 };
123
124 green@1 {
125 label = "green:user";
126 reg = <0x1>;
127 };
128
129 blue@2 {
130 label = "blue:user";
131 reg = <0x2>;
132 };
133 };
134 };
135
136 &mdio0 {
137 status = "okay";
138
139 pinctrl-0 = <&mdio0_pins_active>, <&phy_active>;
140 pinctrl-names = "default";
141
142 phy2: ethernet-phy2 {
143 reg = <2>;
144
145 reset-gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
146 reset-assert-us = <24000>;
147
148 eee-broken-100tx;
149 eee-broken-1000t;
150 };
151 };
152
153 &qcom_pinmux {
154 i2c0_pins: i2c0_pins {
155 mux {
156 pins = "gpio24", "gpio25";
157 function = "gsbi2";
158 drive-strength = <2>;
159 bias-pull-up;
160 input;
161 };
162 };
163
164 button_pins: button_pins {
165 mux {
166 pins = "gpio26";
167 function = "gpio";
168 drive-strength = <2>;
169 bias-pull-up;
170 };
171 };
172
173 i2c1_pins: i2c1_pins {
174 mux {
175 pins = "gpio29", "gpio30";
176 function = "gsbi6";
177 drive-strength = <2>;
178 bias-pull-up;
179 input;
180 };
181 };
182
183 led_pins: led_pins {
184 mux {
185 pins = "gpio31", "gpio32";
186 function = "gpio";
187 drive-strength = <12>;
188 bias-pull-down;
189 output-low;
190 };
191 };
192 };
193
194 &wifi0 {
195 nvmem-cells = <&mac_address 1>;
196 nvmem-cell-names = "mac-address";
197 };
198
199 &wifi1 {
200 nvmem-cells = <&mac_address 2>;
201 nvmem-cell-names = "mac-address";
202 };
203
204 &wifi2 {
205 nvmem-cells = <&mac_address 3>;
206 nvmem-cell-names = "mac-address";
207 };
208
209 &hs_phy_0 {
210 status = "okay";
211 };
212
213 &ss_phy_0 {
214 status = "okay";
215 };
216
217 &usb3_0 {
218 status = "okay";
219 };
220
221 &hs_phy_1 {
222 status = "okay";
223 };
224
225 &ss_phy_1 {
226 status = "okay";
227 };
228
229 &usb3_1 {
230 status = "okay";
231 };