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