31523eaae00340cda88304a7c2f7d96dc3f10211
[openwrt/openwrt.git] / target / linux / lantiq / files / arch / mips / boot / dts / lantiq / vr9_avm_fritz7360sl.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "vr9_avm_fritz736x.dtsi"
4
5 / {
6 compatible = "avm,fritz7360sl", "avm,fritz736x", "lantiq,xway", "lantiq,vr9";
7 model = "AVM FRITZ!Box 7360 SL";
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
31 &localbus {
32 flash@0 {
33 compatible = "lantiq,nor";
34 bank-width = <2>;
35 reg = <0 0x0 0x1000000>;
36
37 partitions {
38 #address-cells = <1>;
39 #size-cells = <1>;
40 compatible = "fixed-partitions";
41
42 urlader: partition@0 {
43 label = "urlader";
44 reg = <0x00000 0x20000>;
45 read-only;
46 };
47
48 partition@20000 {
49 label = "firmware";
50 reg = <0x20000 0xf60000>;
51 };
52
53 partition@f80000 {
54 label = "tffs (1)";
55 reg = <0xf80000 0x40000>;
56 read-only;
57 };
58
59 partition@fc0000 {
60 label = "tffs (2)";
61 reg = <0xfc0000 0x40000>;
62 read-only;
63 };
64 };
65 };
66 };
67
68 &eth0 {
69 nvmem-cells = <&macaddr_urlader_a91>;
70 nvmem-cell-names = "mac-address";
71 mac-address-increment = <(-2)>;
72 };
73
74 &phy0 {
75 reset-gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
76 };
77
78 &phy1 {
79 reset-gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
80 };
81
82 &urlader {
83 compatible = "nvmem-cells";
84 #address-cells = <1>;
85 #size-cells = <1>;
86
87 macaddr_urlader_a91: macaddr@a91 {
88 reg = <0xa91 0x6>;
89 };
90 };