xref: /linux/scripts/dtc/include-prefixes/arm/cirrus/ep93xx-ts7250.dts (revision 3fd6c59042dbba50391e30862beac979491145fe)
1*454b61d8SNikita Shubin// SPDX-License-Identifier: GPL-2.0
2*454b61d8SNikita Shubin/*
3*454b61d8SNikita Shubin * Device Tree file for Technologic Systems ts7250 board based on Cirrus EP9302 SoC
4*454b61d8SNikita Shubin */
5*454b61d8SNikita Shubin/dts-v1/;
6*454b61d8SNikita Shubin#include "ep93xx.dtsi"
7*454b61d8SNikita Shubin
8*454b61d8SNikita Shubin/ {
9*454b61d8SNikita Shubin	compatible = "technologic,ts7250", "cirrus,ep9301";
10*454b61d8SNikita Shubin	model = "TS-7250 SBC";
11*454b61d8SNikita Shubin	#address-cells = <1>;
12*454b61d8SNikita Shubin	#size-cells = <1>;
13*454b61d8SNikita Shubin
14*454b61d8SNikita Shubin	chosen {
15*454b61d8SNikita Shubin	};
16*454b61d8SNikita Shubin
17*454b61d8SNikita Shubin	memory@0 {
18*454b61d8SNikita Shubin		device_type = "memory";
19*454b61d8SNikita Shubin		/* should be set from ATAGS */
20*454b61d8SNikita Shubin		reg = <0x00000000 0x02000000>,
21*454b61d8SNikita Shubin		      <0x000530c0 0x01fdd000>;
22*454b61d8SNikita Shubin	};
23*454b61d8SNikita Shubin
24*454b61d8SNikita Shubin	leds {
25*454b61d8SNikita Shubin		compatible = "gpio-leds";
26*454b61d8SNikita Shubin		led-0 {
27*454b61d8SNikita Shubin			label = "grled";
28*454b61d8SNikita Shubin			gpios = <&gpio4 0 GPIO_ACTIVE_HIGH>;
29*454b61d8SNikita Shubin			linux,default-trigger = "heartbeat";
30*454b61d8SNikita Shubin			function = LED_FUNCTION_HEARTBEAT;
31*454b61d8SNikita Shubin		};
32*454b61d8SNikita Shubin
33*454b61d8SNikita Shubin		led-1 {
34*454b61d8SNikita Shubin			label = "rdled";
35*454b61d8SNikita Shubin			gpios = <&gpio4 1 GPIO_ACTIVE_HIGH>;
36*454b61d8SNikita Shubin			function = LED_FUNCTION_FAULT;
37*454b61d8SNikita Shubin		};
38*454b61d8SNikita Shubin	};
39*454b61d8SNikita Shubin};
40*454b61d8SNikita Shubin
41*454b61d8SNikita Shubin&ebi {
42*454b61d8SNikita Shubin	nand-controller@60000000 {
43*454b61d8SNikita Shubin		compatible = "technologic,ts7200-nand";
44*454b61d8SNikita Shubin		reg = <0x60000000 0x8000000>;
45*454b61d8SNikita Shubin		#address-cells = <1>;
46*454b61d8SNikita Shubin		#size-cells = <0>;
47*454b61d8SNikita Shubin
48*454b61d8SNikita Shubin		nand@0 {
49*454b61d8SNikita Shubin			reg = <0>;
50*454b61d8SNikita Shubin			partitions {
51*454b61d8SNikita Shubin				compatible = "fixed-partitions";
52*454b61d8SNikita Shubin				#address-cells = <1>;
53*454b61d8SNikita Shubin				#size-cells = <1>;
54*454b61d8SNikita Shubin
55*454b61d8SNikita Shubin				partition@0 {
56*454b61d8SNikita Shubin					label = "TS-BOOTROM";
57*454b61d8SNikita Shubin					reg = <0x00000000 0x00020000>;
58*454b61d8SNikita Shubin					read-only;
59*454b61d8SNikita Shubin				};
60*454b61d8SNikita Shubin
61*454b61d8SNikita Shubin				partition@20000 {
62*454b61d8SNikita Shubin					label = "Linux";
63*454b61d8SNikita Shubin					reg = <0x00020000 0x07d00000>;
64*454b61d8SNikita Shubin				};
65*454b61d8SNikita Shubin
66*454b61d8SNikita Shubin				partition@7d20000 {
67*454b61d8SNikita Shubin					label = "RedBoot";
68*454b61d8SNikita Shubin					reg = <0x07d20000 0x002e0000>;
69*454b61d8SNikita Shubin					read-only;
70*454b61d8SNikita Shubin				};
71*454b61d8SNikita Shubin			};
72*454b61d8SNikita Shubin		};
73*454b61d8SNikita Shubin	};
74*454b61d8SNikita Shubin
75*454b61d8SNikita Shubin	rtc@10800000 {
76*454b61d8SNikita Shubin		compatible = "st,m48t86";
77*454b61d8SNikita Shubin		reg = <0x10800000 0x1>,
78*454b61d8SNikita Shubin			<0x11700000 0x1>;
79*454b61d8SNikita Shubin	};
80*454b61d8SNikita Shubin
81*454b61d8SNikita Shubin	watchdog@23800000 {
82*454b61d8SNikita Shubin		compatible = "technologic,ts7200-wdt";
83*454b61d8SNikita Shubin		reg = <0x23800000 0x01>,
84*454b61d8SNikita Shubin			<0x23c00000 0x01>;
85*454b61d8SNikita Shubin		timeout-sec = <30>;
86*454b61d8SNikita Shubin	};
87*454b61d8SNikita Shubin};
88*454b61d8SNikita Shubin
89*454b61d8SNikita Shubin&eth0 {
90*454b61d8SNikita Shubin	phy-handle = <&phy0>;
91*454b61d8SNikita Shubin};
92*454b61d8SNikita Shubin
93*454b61d8SNikita Shubin&gpio1 {
94*454b61d8SNikita Shubin	/* PWM */
95*454b61d8SNikita Shubin	gpio-ranges = <&syscon 6 163 1>;
96*454b61d8SNikita Shubin};
97*454b61d8SNikita Shubin
98*454b61d8SNikita Shubin/* ts7250 doesn't have GPIO Port D present */
99*454b61d8SNikita Shubin&gpio3 {
100*454b61d8SNikita Shubin	status = "disabled";
101*454b61d8SNikita Shubin};
102*454b61d8SNikita Shubin
103*454b61d8SNikita Shubin&gpio4 {
104*454b61d8SNikita Shubin	gpio-ranges = <&syscon 0 97 2>;
105*454b61d8SNikita Shubin};
106*454b61d8SNikita Shubin
107*454b61d8SNikita Shubin&gpio6 {
108*454b61d8SNikita Shubin	gpio-ranges = <&syscon 0 87 2>;
109*454b61d8SNikita Shubin};
110*454b61d8SNikita Shubin
111*454b61d8SNikita Shubin&gpio7 {
112*454b61d8SNikita Shubin	gpio-ranges = <&syscon 2 199 4>;
113*454b61d8SNikita Shubin};
114*454b61d8SNikita Shubin
115*454b61d8SNikita Shubin&spi0 {
116*454b61d8SNikita Shubin	cs-gpios = <&gpio5 2 GPIO_ACTIVE_HIGH>;
117*454b61d8SNikita Shubin	dmas = <&dma1 10 2>, <&dma1 10 1>;
118*454b61d8SNikita Shubin	dma-names = "rx", "tx";
119*454b61d8SNikita Shubin	status = "okay";
120*454b61d8SNikita Shubin
121*454b61d8SNikita Shubin	tmp122: temperature-sensor@0 {
122*454b61d8SNikita Shubin		compatible = "ti,tmp122";
123*454b61d8SNikita Shubin		reg = <0>;
124*454b61d8SNikita Shubin		spi-max-frequency = <2000000>;
125*454b61d8SNikita Shubin	};
126*454b61d8SNikita Shubin};
127*454b61d8SNikita Shubin
128*454b61d8SNikita Shubin&mdio0 {
129*454b61d8SNikita Shubin	phy0: ethernet-phy@1 {
130*454b61d8SNikita Shubin		reg = <1>;
131*454b61d8SNikita Shubin		device_type = "ethernet-phy";
132*454b61d8SNikita Shubin	};
133*454b61d8SNikita Shubin};
134*454b61d8SNikita Shubin
135*454b61d8SNikita Shubin&uart0 {
136*454b61d8SNikita Shubin	status = "okay";
137*454b61d8SNikita Shubin};
138*454b61d8SNikita Shubin
139*454b61d8SNikita Shubin&uart1 {
140*454b61d8SNikita Shubin	status = "okay";
141*454b61d8SNikita Shubin};
142*454b61d8SNikita Shubin
143*454b61d8SNikita Shubin&usb0 {
144*454b61d8SNikita Shubin	status = "okay";
145*454b61d8SNikita Shubin};
146