summaryrefslogtreecommitdiffstats
path: root/arch/arm/dts/ep7212-clep7212.dts
blob: 37a93994642851dc402adabd89e519fd3d9d0664 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// SPDX-License-Identifier: GPL-2.0+
/* Author: Alexander Shiyan <shc_work@mail.ru> */

#include <arm/cirrus/ep7211.dtsi>

/ {
	model = "Cirrus Logic EP7212";
	compatible = "cirrus,clep7212", "cirrus,ep7212", "cirrus,ep7209";

	memory@c0000000 {
		device_type = "memory";
		reg = <0xc0000000 0x02000000>;
	};

	chosen {
		stdout-path = &uart1;

		environment {
			compatible = "barebox,environment";
			device-path = &env_nor;
		};
	};
};

&bus {
	/* Setup Memory Timings */
	/* CS0 = WAITSTATE_6_1 | BUS_WIDTH_16 */
	/* CS1 = WAITSTATE_6_1 | BUS_WIDTH_8 */
	/* CS2 = WAITSTATE_8_3 | BUS_WIDTH_16 | CLKENB */
	/* CS3 = WAITSTATE_7_1 | BUS_WIDTH_32 */
	barebox,ep7209-memcfg1 = <0x25802b28>;

	flash: nor@0 {
		compatible = "cfi-flash";
		reg = <0 0x00000000 0x02000000>;
		bank-width = <2>;

		partitions {
			compatible = "fixed-partitions";
			#address-cells = <1>;
			#size-cells = <1>;

			partition@0 {
				label = "boot";
				reg = <0x00000 0x80000>;
			};

			env_nor: partition@80000 {
				label = "env";
				reg = <0x80000 0x40000>;
			};

			partition@c0000 {
				label = "kernel";
				reg = <0xc0000 0x340000>;
			};

			partition@400000 {
				label = "root";
				reg = <0x400000 0>;
			};
		};
	};
};