summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/cirrus/ep93xx-ts7250.dts
blob: 9e03f93d9fc8522e2aebe38c2a3bccfd80b6f434 (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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
// SPDX-License-Identifier: GPL-2.0
/*
 * Device Tree file for Technologic Systems ts7250 board based on Cirrus EP9302 SoC
 */
/dts-v1/;
#include "ep93xx.dtsi"

/ {
	compatible = "technologic,ts7250", "cirrus,ep9301";
	model = "TS-7250 SBC";
	#address-cells = <1>;
	#size-cells = <1>;

	chosen {
	};

	memory@0 {
		device_type = "memory";
		/* should be set from ATAGS */
		reg = <0x00000000 0x02000000>,
		      <0x000530c0 0x01fdd000>;
	};

	leds {
		compatible = "gpio-leds";
		led-0 {
			label = "grled";
			gpios = <&gpio4 0 GPIO_ACTIVE_HIGH>;
			linux,default-trigger = "heartbeat";
			function = LED_FUNCTION_HEARTBEAT;
		};

		led-1 {
			label = "rdled";
			gpios = <&gpio4 1 GPIO_ACTIVE_HIGH>;
			function = LED_FUNCTION_FAULT;
		};
	};
};

&ebi {
	nand-controller@60000000 {
		compatible = "technologic,ts7200-nand";
		reg = <0x60000000 0x8000000>;
		#address-cells = <1>;
		#size-cells = <0>;

		nand@0 {
			reg = <0>;
			partitions {
				compatible = "fixed-partitions";
				#address-cells = <1>;
				#size-cells = <1>;

				partition@0 {
					label = "TS-BOOTROM";
					reg = <0x00000000 0x00020000>;
					read-only;
				};

				partition@20000 {
					label = "Linux";
					reg = <0x00020000 0x07d00000>;
				};

				partition@7d20000 {
					label = "RedBoot";
					reg = <0x07d20000 0x002e0000>;
					read-only;
				};
			};
		};
	};

	rtc@10800000 {
		compatible = "st,m48t86";
		reg = <0x10800000 0x1>,
			<0x11700000 0x1>;
	};

	watchdog@23800000 {
		compatible = "technologic,ts7200-wdt";
		reg = <0x23800000 0x01>,
			<0x23c00000 0x01>;
		timeout-sec = <30>;
	};
};

&eth0 {
	phy-handle = <&phy0>;
};

&gpio1 {
	/* PWM */
	gpio-ranges = <&syscon 6 163 1>;
};

/* ts7250 doesn't have GPIO Port D present */
&gpio3 {
	status = "disabled";
};

&gpio4 {
	gpio-ranges = <&syscon 0 97 2>;
};

&gpio6 {
	gpio-ranges = <&syscon 0 87 2>;
};

&gpio7 {
	gpio-ranges = <&syscon 2 199 4>;
};

&spi0 {
	cs-gpios = <&gpio5 2 GPIO_ACTIVE_HIGH>;
	dmas = <&dma1 10 2>, <&dma1 10 1>;
	dma-names = "rx", "tx";
	status = "okay";

	tmp122: temperature-sensor@0 {
		compatible = "ti,tmp122";
		reg = <0>;
		spi-max-frequency = <2000000>;
	};
};

&mdio0 {
	phy0: ethernet-phy@1 {
		reg = <1>;
		device_type = "ethernet-phy";
	};
};

&uart0 {
	status = "okay";
};

&uart1 {
	status = "okay";
};

&usb0 {
	status = "okay";
};