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