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