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