xref: /linux/arch/mips/boot/dts/lantiq/danube_easy50712.dts (revision a69dfb4e0acb22fb6347656626520157948b3aa8)
1// SPDX-License-Identifier: GPL-2.0
2/dts-v1/;
3
4/include/ "danube.dtsi"
5
6/ {
7	chosen {
8		bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
9	};
10
11	memory@0 {
12		device_type = "memory";
13		reg = <0x0 0x2000000>;
14	};
15
16	fpi@10000000 {
17		#address-cells = <1>;
18		#size-cells = <1>;
19		localbus@0 {
20			#address-cells = <2>;
21			#size-cells = <1>;
22			ranges = <0 0 0x0 0x3ffffff /* addrsel0 */
23				1 0 0x4000000 0x4000010>; /* addsel1 */
24			compatible = "lantiq,localbus", "simple-bus";
25
26			nor-boot@0 {
27				compatible = "lantiq,nor";
28				bank-width = <2>;
29				reg = <0 0x0 0x2000000>;
30				#address-cells = <1>;
31				#size-cells = <1>;
32
33				partition@0 {
34					label = "uboot";
35					reg = <0x00000 0x10000>; /* 64 KB */
36				};
37
38				partition@10000 {
39					label = "uboot_env";
40					reg = <0x10000 0x10000>; /* 64 KB */
41				};
42
43				partition@20000 {
44					label = "linux";
45					reg = <0x20000 0x3d0000>;
46				};
47
48				partition@400000 {
49					label = "rootfs";
50					reg = <0x400000 0x400000>;
51				};
52			};
53		};
54
55		gpio: pinmux@e100b10 {
56			compatible = "lantiq,danube-pinctrl";
57			pinctrl-names = "default";
58			pinctrl-0 = <&state_default>;
59
60			#gpio-cells = <2>;
61			gpio-controller;
62			reg = <0xe100b10 0xa0>;
63
64			state_default: pinmux {
65				stp {
66					lantiq,groups = "stp";
67					lantiq,function = "stp";
68				};
69				exin {
70					lantiq,groups = "exin1";
71					lantiq,function = "exin";
72				};
73				pci {
74					lantiq,groups = "gnt1";
75					lantiq,function = "pci";
76				};
77				conf_out {
78					lantiq,pins = "io4", "io5", "io6"; /* stp */
79					lantiq,open-drain;
80					lantiq,pull = <0>;
81				};
82			};
83		};
84
85		ethernet@e180000 {
86			compatible = "lantiq,etop-xway";
87			reg = <0xe180000 0x40000>;
88			interrupt-parent = <&icu0>;
89			interrupts = <73 78>;
90			interrupt-names = "tx", "rx";
91			phy-mode = "rmii";
92			mac-address = [ 00 11 22 33 44 55 ];
93			lantiq,rx-burst-length = <4>;
94			lantiq,tx-burst-length = <4>;
95		};
96
97		stp0: stp@e100bb0 {
98			#gpio-cells = <2>;
99			compatible = "lantiq,gpio-stp-xway";
100			gpio-controller;
101			reg = <0xe100bb0 0x40>;
102
103			lantiq,shadow = <0xfff>;
104			lantiq,groups = <0x3>;
105		};
106
107		pci@e105400 {
108			lantiq,bus-clock = <33333333>;
109			interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
110			interrupt-map = <
111				0x7000 0 0 1 &icu0 29 1 // slot 14, irq 29
112			>;
113			gpios-reset = <&gpio 21 0>;
114			req-mask = <0x1>;		/* GNT1 */
115		};
116
117	};
118};
119