1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Copyright (C) 2012 Marek Vasut <marex@denx.de>
4 */
5
6/dts-v1/;
7#include "imx28.dtsi"
8
9/ {
10	model = "SchulerControl GmbH, SC SPS 1";
11	compatible = "schulercontrol,imx28-sps1", "fsl,imx28";
12
13	memory@40000000 {
14		device_type = "memory";
15		reg = <0x40000000 0x08000000>;
16	};
17
18	reg_usb0_vbus: regulator-0 {
19		compatible = "regulator-fixed";
20		regulator-name = "usb0_vbus";
21		regulator-min-microvolt = <5000000>;
22		regulator-max-microvolt = <5000000>;
23		gpio = <&gpio3 9 0>;
24	};
25
26	leds {
27		#address-cells = <1>;
28		#size-cells = <0>;
29		compatible = "gpio-leds";
30		status = "okay";
31
32		led@1 {
33			label = "sps1-1:yellow:user";
34			gpios = <&gpio0 6 0>;
35			linux,default-trigger = "heartbeat";
36			reg = <0>;
37		};
38
39		led@2 {
40			label = "sps1-2:red:user";
41			gpios = <&gpio0 3 0>;
42			linux,default-trigger = "heartbeat";
43			reg = <1>;
44		};
45
46		led@3 {
47			label = "sps1-3:red:user";
48			gpios = <&gpio0 0 0>;
49			default-trigger = "heartbeat";
50			reg = <2>;
51		};
52
53	};
54};
55
56&auart0 {
57	pinctrl-names = "default";
58	pinctrl-0 = <&auart0_pins_a>;
59	status = "okay";
60};
61
62&duart {
63	pinctrl-names = "default";
64	pinctrl-0 = <&duart_pins_a>;
65	status = "okay";
66};
67
68&i2c0 {
69	pinctrl-names = "default";
70	pinctrl-0 = <&i2c0_pins_a>;
71	status = "okay";
72
73	rtc: rtc@51 {
74		compatible = "nxp,pcf8563";
75		reg = <0x51>;
76	};
77
78	eeprom: eeprom@52 {
79		compatible = "atmel,24c64";
80		reg = <0x52>;
81		pagesize = <32>;
82	};
83};
84
85&mac0 {
86	phy-mode = "rmii";
87	pinctrl-names = "default";
88	pinctrl-0 = <&mac0_pins_a>;
89	status = "okay";
90};
91
92&mac1 {
93	phy-mode = "rmii";
94	pinctrl-names = "default";
95	pinctrl-0 = <&mac1_pins_a>;
96	status = "okay";
97};
98
99&pinctrl {
100	pinctrl-names = "default";
101	pinctrl-0 = <&hog_pins_a>;
102
103	hog_pins_a: hog-gpios@0 {
104		reg = <0>;
105		fsl,pinmux-ids = <
106			MX28_PAD_GPMI_D00__GPIO_0_0
107			MX28_PAD_GPMI_D03__GPIO_0_3
108			MX28_PAD_GPMI_D06__GPIO_0_6
109		>;
110		fsl,drive-strength = <MXS_DRIVE_4mA>;
111		fsl,voltage = <MXS_VOLTAGE_HIGH>;
112		fsl,pull-up = <MXS_PULL_DISABLE>;
113	};
114};
115
116&ssp0 {
117	compatible = "fsl,imx28-mmc";
118	pinctrl-names = "default";
119	pinctrl-0 = <&mmc0_4bit_pins_a>;
120	bus-width = <4>;
121	status = "okay";
122};
123
124&ssp2 {
125	#address-cells = <1>;
126	#size-cells = <0>;
127	compatible = "fsl,imx28-spi";
128	pinctrl-names = "default";
129	pinctrl-0 = <&spi2_pins_a>;
130	status = "okay";
131
132	flash: flash@0 {
133		#address-cells = <1>;
134		#size-cells = <1>;
135		compatible = "everspin,mr25h256", "mr25h256";
136		spi-max-frequency = <40000000>;
137		reg = <0>;
138	};
139};
140
141&usb0 {
142	vbus-supply = <&reg_usb0_vbus>;
143	pinctrl-names = "default";
144	pinctrl-0 = <&usb0_pins_b>;
145	status = "okay";
146};
147
148&usbphy0 {
149	status = "okay";
150};
151