Loading...
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: flash@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 = <®_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};
1/*
2 * Copyright (C) 2012 Marek Vasut <marex@denx.de>
3 *
4 * The code contained herein is licensed under the GNU General Public
5 * License. You may obtain a copy of the GNU General Public License
6 * Version 2 or later at the following locations:
7 *
8 * http://www.opensource.org/licenses/gpl-license.html
9 * http://www.gnu.org/copyleft/gpl.html
10 */
11
12/dts-v1/;
13#include "imx28.dtsi"
14
15/ {
16 model = "SchulerControl GmbH, SC SPS 1";
17 compatible = "schulercontrol,imx28-sps1", "fsl,imx28";
18
19 memory {
20 reg = <0x40000000 0x08000000>;
21 };
22
23 apb@80000000 {
24 apbh@80000000 {
25 pinctrl@80018000 {
26 pinctrl-names = "default";
27 pinctrl-0 = <&hog_pins_a>;
28
29 hog_pins_a: hog-gpios@0 {
30 reg = <0>;
31 fsl,pinmux-ids = <
32 MX28_PAD_GPMI_D00__GPIO_0_0
33 MX28_PAD_GPMI_D03__GPIO_0_3
34 MX28_PAD_GPMI_D06__GPIO_0_6
35 >;
36 fsl,drive-strength = <MXS_DRIVE_4mA>;
37 fsl,voltage = <MXS_VOLTAGE_HIGH>;
38 fsl,pull-up = <MXS_PULL_DISABLE>;
39 };
40
41 };
42
43 ssp0: ssp@80010000 {
44 compatible = "fsl,imx28-mmc";
45 pinctrl-names = "default";
46 pinctrl-0 = <&mmc0_4bit_pins_a>;
47 bus-width = <4>;
48 status = "okay";
49 };
50
51 ssp2: ssp@80014000 {
52 #address-cells = <1>;
53 #size-cells = <0>;
54 compatible = "fsl,imx28-spi";
55 pinctrl-names = "default";
56 pinctrl-0 = <&spi2_pins_a>;
57 status = "okay";
58
59 flash: m25p80@0 {
60 #address-cells = <1>;
61 #size-cells = <1>;
62 compatible = "everspin,mr25h256", "mr25h256";
63 spi-max-frequency = <40000000>;
64 reg = <0>;
65 };
66 };
67 };
68
69 apbx@80040000 {
70 i2c0: i2c@80058000 {
71 pinctrl-names = "default";
72 pinctrl-0 = <&i2c0_pins_a>;
73 status = "okay";
74
75 rtc: rtc@51 {
76 compatible = "nxp,pcf8563";
77 reg = <0x51>;
78 };
79
80 eeprom: eeprom@52 {
81 compatible = "atmel,24c64";
82 reg = <0x52>;
83 pagesize = <32>;
84 };
85 };
86
87 duart: serial@80074000 {
88 pinctrl-names = "default";
89 pinctrl-0 = <&duart_pins_a>;
90 status = "okay";
91 };
92
93 usbphy0: usbphy@8007c000 {
94 status = "okay";
95 };
96
97 auart0: serial@8006a000 {
98 pinctrl-names = "default";
99 pinctrl-0 = <&auart0_pins_a>;
100 status = "okay";
101 };
102 };
103 };
104
105 ahb@80080000 {
106 usb0: usb@80080000 {
107 vbus-supply = <®_usb0_vbus>;
108 pinctrl-names = "default";
109 pinctrl-0 = <&usb0_pins_b>;
110 status = "okay";
111 };
112
113 mac0: ethernet@800f0000 {
114 phy-mode = "rmii";
115 pinctrl-names = "default";
116 pinctrl-0 = <&mac0_pins_a>;
117 status = "okay";
118 };
119
120 mac1: ethernet@800f4000 {
121 phy-mode = "rmii";
122 pinctrl-names = "default";
123 pinctrl-0 = <&mac1_pins_a>;
124 status = "okay";
125 };
126 };
127
128 regulators {
129 compatible = "simple-bus";
130 #address-cells = <1>;
131 #size-cells = <0>;
132
133 reg_usb0_vbus: regulator@0 {
134 compatible = "regulator-fixed";
135 reg = <0>;
136 regulator-name = "usb0_vbus";
137 regulator-min-microvolt = <5000000>;
138 regulator-max-microvolt = <5000000>;
139 gpio = <&gpio3 9 0>;
140 };
141 };
142
143 leds {
144 #address-cells = <1>;
145 #size-cells = <0>;
146 compatible = "gpio-leds";
147 status = "okay";
148
149 led@1 {
150 label = "sps1-1:yellow:user";
151 gpios = <&gpio0 6 0>;
152 linux,default-trigger = "heartbeat";
153 reg = <0>;
154 };
155
156 led@2 {
157 label = "sps1-2:red:user";
158 gpios = <&gpio0 3 0>;
159 linux,default-trigger = "heartbeat";
160 reg = <1>;
161 };
162
163 led@3 {
164 label = "sps1-3:red:user";
165 gpios = <&gpio0 0 0>;
166 default-trigger = "heartbeat";
167 reg = <2>;
168 };
169
170 };
171};