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