blob: 43be7a6a769bcb171ba164f1cbb5b4cf62bfb784 [file] [log] [blame]
Thomas Gleixnerfcaf2032019-05-27 08:55:08 +02001// SPDX-License-Identifier: GPL-2.0-or-later
Marek Vasut160d5f22012-11-18 22:08:29 +01002/*
3 * Copyright (C) 2012 Marek Vasut <marex@denx.de>
Marek Vasut160d5f22012-11-18 22:08:29 +01004 */
5
6/dts-v1/;
Lothar Waßmannbc3875f2013-09-19 08:59:48 +02007#include "imx28.dtsi"
Marek Vasut160d5f22012-11-18 22:08:29 +01008
9/ {
10 model = "SchulerControl GmbH, SC SPS 1";
11 compatible = "schulercontrol,imx28-sps1", "fsl,imx28";
12
Marco Franchiad00e082018-01-24 11:22:14 -020013 memory@40000000 {
Fabio Estevam32018d12018-11-26 10:08:56 -020014 device_type = "memory";
Marek Vasut160d5f22012-11-18 22:08:29 +010015 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 = <
Lothar Waßmannbc3875f2013-09-19 08:59:48 +020027 MX28_PAD_GPMI_D00__GPIO_0_0
28 MX28_PAD_GPMI_D03__GPIO_0_3
29 MX28_PAD_GPMI_D06__GPIO_0_6
Marek Vasut160d5f22012-11-18 22:08:29 +010030 >;
Lothar Waßmann4191c342013-09-22 14:02:59 +080031 fsl,drive-strength = <MXS_DRIVE_4mA>;
32 fsl,voltage = <MXS_VOLTAGE_HIGH>;
33 fsl,pull-up = <MXS_PULL_DISABLE>;
Marek Vasut160d5f22012-11-18 22:08:29 +010034 };
35
36 };
37
Rob Herring5a2ecf02018-09-13 13:12:29 -050038 ssp0: spi@80010000 {
Marek Vasut160d5f22012-11-18 22:08:29 +010039 compatible = "fsl,imx28-mmc";
40 pinctrl-names = "default";
41 pinctrl-0 = <&mmc0_4bit_pins_a>;
42 bus-width = <4>;
43 status = "okay";
44 };
45
Rob Herring5a2ecf02018-09-13 13:12:29 -050046 ssp2: spi@80014000 {
Marek Vasut160d5f22012-11-18 22:08:29 +010047 #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>;
Marek Vasut160d5f22012-11-18 22:08:29 +010068 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";
Michael Grzeschikc8e42bc2013-12-06 15:56:40 +0100104 pinctrl-0 = <&usb0_pins_b>;
Marek Vasut160d5f22012-11-18 22:08:29 +0100105 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";
Shawn Guo352d3182014-02-07 23:18:30 +0800125 #address-cells = <1>;
126 #size-cells = <0>;
Marek Vasut160d5f22012-11-18 22:08:29 +0100127
Shawn Guo352d3182014-02-07 23:18:30 +0800128 reg_usb0_vbus: regulator@0 {
Marek Vasut160d5f22012-11-18 22:08:29 +0100129 compatible = "regulator-fixed";
Shawn Guo352d3182014-02-07 23:18:30 +0800130 reg = <0>;
Marek Vasut160d5f22012-11-18 22:08:29 +0100131 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};