lantiq: add support for AVM FRITZ!Box 7362 SL
[openwrt/staging/dedeckeh.git] / target / linux / lantiq / files-4.14 / arch / mips / boot / dts / FRITZ7362SL.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include "FRITZ736X.dtsi"
5
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/mips/lantiq_rcu_gphy.h>
8
9 / {
10 compatible = "avm,fritz7362sl", "avm,fritz736x", "lantiq,xway", "lantiq,vr9";
11 model = "AVM FRITZ!Box 7362 SL";
12 };
13
14 &power_green {
15 label = "fritz7362sl:green:power";
16 };
17
18 &power_red {
19 label = "fritz7362sl:red:power";
20 };
21
22 &info_green {
23 label = "fritz7362sl:green:info";
24 };
25
26 &wifi {
27 label = "fritz7362sl:green:wlan";
28 };
29
30 &info_red {
31 label = "fritz7362sl:red:info";
32 };
33
34 &dect {
35 label = "fritz7362sl:green:dect";
36 };
37
38 &gpio {
39 pins_spi_default: pins_spi_default {
40 spi_in {
41 lantiq,groups = "spi_di";
42 lantiq,function = "spi";
43 };
44
45 spi_out {
46 lantiq,groups = "spi_do", "spi_clk",
47 "spi_cs4";
48 lantiq,function = "spi";
49 lantiq,output = <1>;
50 };
51 };
52 };
53
54 &state_default {
55 nand {
56 lantiq,groups = "nand ale", "nand cle",
57 "nand cs1", "nand rd", "nand rdy";
58 lantiq,function = "ebu";
59 };
60
61 pcie-rst {
62 lantiq,pins = "io21";
63 lantiq,open-drain = <1>;
64 lantiq,output = <1>;
65 };
66 };
67
68 &spi {
69 status = "okay";
70 pinctrl-names = "default";
71 pinctrl-0 = <&pins_spi_default>;
72
73 flash@4 {
74 #address-cells = <1>;
75 #size-cells = <1>;
76 compatible = "jedec,spi-nor";
77 reg = <4 0>;
78 spi-max-frequency = <1000000>;
79
80 urlader: partition@0 {
81 reg = <0x0 0x40000>;
82 label = "urlader";
83 read-only;
84 };
85
86 partition@40000 {
87 reg = <0x40000 0x60000>;
88 label = "tffs (1)";
89 read-only;
90 };
91
92 partition@A0000 {
93 reg = <0xA0000 0x60000>;
94 label = "tffs (2)";
95 read-only;
96 };
97 };
98 };
99
100 &localbus {
101 nand@1 {
102 compatible = "lantiq,nand-xway";
103 lantiq,cs1 = <1>;
104 bank-width = <1>;
105 reg = <1 0x0 0x2000000>;
106 #address-cells = <1>;
107 #size-cells = <1>;
108 nand-ecc-mode = "on-die";
109
110 partitions {
111 compatible = "fixed-partitions";
112 #address-cells = <1>;
113 #size-cells = <1>;
114
115 partition@0 {
116 label = "kernel";
117 reg = <0x0 0x400000>;
118 };
119
120 partition@400000 {
121 label = "ubi";
122 reg = <0x400000 0x7c00000>;
123 };
124 };
125 };
126 };
127
128 &pcie0 {
129 gpio-reset = <&gpio 21 GPIO_ACTIVE_LOW>;
130
131 pcie@0 {
132 #size-cells = <1>;
133 #address-cells = <2>;
134 };
135 };