a30746cde2b4307ce8d8a4c125dcbce0c489a619
[openwrt/openwrt.git] / target / linux / lantiq / files / arch / mips / boot / dts / lantiq / vr9_avm_fritz7360-v2.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "vr9_avm_fritz736x.dtsi"
4
5 / {
6 compatible = "avm,fritz7360-v2", "avm,fritz736x", "lantiq,xway", "lantiq,vr9";
7 model = "AVM FRITZ!Box 7360 V2";
8 };
9
10 &gpio {
11 pinctrl-names = "default";
12 pinctrl-0 = <&state_default>;
13
14 state_default: pinmux {
15 pcie-rst {
16 lantiq,pins = "io21";
17 lantiq,pull = <0>;
18 lantiq,output = <1>;
19 };
20
21 phy-rst {
22 lantiq,pins = "io37", "io44";
23 lantiq,pull = <0>;
24 lantiq,open-drain;
25 lantiq,output = <1>;
26 };
27 };
28 };
29
30 &localbus {
31 flash@0 {
32 compatible = "lantiq,nor";
33 bank-width = <2>;
34 reg = <0 0x0 0x2000000>;
35
36 partitions {
37 #address-cells = <1>;
38 #size-cells = <1>;
39 compatible = "fixed-partitions";
40
41 urlader: partition@0 {
42 label = "urlader";
43 reg = <0x00000 0x20000>;
44 read-only;
45
46 compatible = "nvmem-cells";
47 #address-cells = <1>;
48 #size-cells = <1>;
49
50 cal_urlader_985: cal@985 {
51 reg = <0x985 0x440>;
52 };
53
54 macaddr_urlader_a91: macaddr@a91 {
55 reg = <0xa91 0x6>;
56 };
57 };
58
59 partition@20000 {
60 label = "firmware";
61 reg = <0x20000 0x1f60000>;
62 };
63
64 partition@1f80000 {
65 label = "tffs (1)";
66 reg = <0x1f80000 0x40000>;
67 read-only;
68 };
69
70 partition@1fc0000 {
71 label = "tffs (2)";
72 reg = <0x1fc0000 0x40000>;
73 read-only;
74 };
75 };
76 };
77 };
78
79 &eth0 {
80 nvmem-cells = <&macaddr_urlader_a91>;
81 nvmem-cell-names = "mac-address";
82 mac-address-increment = <(-2)>;
83 };
84
85 &phy0 {
86 reset-gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
87 };
88
89 &phy1 {
90 reset-gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
91 };
92
93 &wifi {
94 /delete-property/ qca,no-eeprom;
95 nvmem-cells = <&cal_urlader_985>;
96 nvmem-cell-names = "calibration";
97 };