c75edd933c4451ba16f3519da93e4c1dc182d555
[openwrt/staging/wigyori.git] / target / linux / lantiq / files / arch / mips / boot / dts / lantiq / vr9_avm_fritz7362sl.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "vr9_avm_fritz736x.dtsi"
4
5 / {
6 compatible = "avm,fritz7362sl", "avm,fritz736x", "lantiq,xway", "lantiq,vr9";
7 model = "AVM FRITZ!Box 7362 SL";
8 };
9
10 &state_default {
11 pcie-rst {
12 lantiq,pins = "io21";
13 lantiq,open-drain = <1>;
14 lantiq,output = <1>;
15 };
16 };
17
18 &spi {
19 status = "okay";
20
21 flash@4 {
22 #address-cells = <1>;
23 #size-cells = <1>;
24 compatible = "jedec,spi-nor";
25 reg = <4>;
26 spi-max-frequency = <1000000>;
27
28 partitions {
29 compatible = "fixed-partitions";
30 #address-cells = <1>;
31 #size-cells = <1>;
32
33 urlader: partition@0 {
34 reg = <0x0 0x40000>;
35 label = "urlader";
36 read-only;
37 };
38
39 partition@40000 {
40 reg = <0x40000 0x60000>;
41 label = "tffs (1)";
42 read-only;
43 };
44
45 partition@A0000 {
46 reg = <0xA0000 0x60000>;
47 label = "tffs (2)";
48 read-only;
49 };
50 };
51 };
52 };
53
54 &localbus {
55 flash1: flash@1 {
56 compatible = "lantiq,nand-xway";
57 lantiq,cs1 = <1>;
58 bank-width = <1>;
59 reg = <1 0x0 0x2000000>;
60
61 pinctrl-0 = <&nand_pins>, <&nand_cs1_pins>;
62 pinctrl-names = "default";
63
64 nand-ecc-engine = <&flash1>;
65
66 partitions {
67 compatible = "fixed-partitions";
68 #address-cells = <1>;
69 #size-cells = <1>;
70
71 partition@0 {
72 label = "kernel";
73 reg = <0x0 0x400000>;
74 };
75
76 partition@400000 {
77 label = "ubi";
78 reg = <0x400000 0x7c00000>;
79 };
80 };
81 };
82 };
83
84 &pcie0 {
85 gpio-reset = <&gpio 21 GPIO_ACTIVE_LOW>;
86
87 pcie@0 {
88 #size-cells = <1>;
89 #address-cells = <2>;
90 };
91 };
92
93 &eth0 {
94 nvmem-cells = <&macaddr_urlader_a91>;
95 nvmem-cell-names = "mac-address";
96 mac-address-increment = <(-2)>;
97 };
98
99 &urlader {
100 compatible = "nvmem-cells";
101 #address-cells = <1>;
102 #size-cells = <1>;
103
104 macaddr_urlader_a91: macaddr@a91 {
105 reg = <0xa91 0x6>;
106 };
107 };