ARM: dts: OMAP2: fix interrupt number for rng
[pandora-kernel.git] / arch / arm / boot / dts / imx28-apf28dev.dts
1 /*
2  * Copyright 2012 Armadeus Systems - <support@armadeus.com>
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 /* APF28Dev is a docking board for the APF28 SOM */
13 #include "imx28-apf28.dts"
14
15 / {
16         model = "Armadeus Systems APF28Dev docking/development board";
17         compatible = "armadeus,imx28-apf28dev", "armadeus,imx28-apf28", "fsl,imx28";
18
19         apb@80000000 {
20                 apbh@80000000 {
21                         ssp0: ssp@80010000 {
22                                 compatible = "fsl,imx28-mmc";
23                                 pinctrl-names = "default";
24                                 pinctrl-0 = <&mmc0_4bit_pins_a
25                                         &mmc0_cd_cfg &mmc0_sck_cfg>;
26                                 bus-width = <4>;
27                                 status = "okay";
28                         };
29
30                         ssp2: ssp@80014000 {
31                                 compatible = "fsl,imx28-spi";
32                                 pinctrl-names = "default";
33                                 pinctrl-0 = <&spi2_pins_a>;
34                                 status = "okay";
35                         };
36
37                         pinctrl@80018000 {
38                                 pinctrl-names = "default";
39                                 pinctrl-0 = <&hog_pins_apf28dev>;
40
41                                 hog_pins_apf28dev: hog@0 {
42                                         reg = <0>;
43                                         fsl,pinmux-ids = <
44                                                 MX28_PAD_LCD_D16__GPIO_1_16
45                                                 MX28_PAD_LCD_D17__GPIO_1_17
46                                                 MX28_PAD_LCD_D18__GPIO_1_18
47                                                 MX28_PAD_LCD_D19__GPIO_1_19
48                                                 MX28_PAD_LCD_D20__GPIO_1_20
49                                                 MX28_PAD_LCD_D21__GPIO_1_21
50                                                 MX28_PAD_LCD_D22__GPIO_1_22
51                                         >;
52                                         fsl,drive-strength = <MXS_DRIVE_4mA>;
53                                         fsl,voltage = <MXS_VOLTAGE_HIGH>;
54                                         fsl,pull-up = <MXS_PULL_DISABLE>;
55                                 };
56
57                                 lcdif_pins_apf28dev: lcdif-apf28dev@0 {
58                                         reg = <0>;
59                                         fsl,pinmux-ids = <
60                                                 MX28_PAD_LCD_RD_E__LCD_VSYNC
61                                                 MX28_PAD_LCD_WR_RWN__LCD_HSYNC
62                                                 MX28_PAD_LCD_RS__LCD_DOTCLK
63                                                 MX28_PAD_LCD_CS__LCD_ENABLE
64                                         >;
65                                         fsl,drive-strength = <MXS_DRIVE_4mA>;
66                                         fsl,voltage = <MXS_VOLTAGE_HIGH>;
67                                         fsl,pull-up = <MXS_PULL_DISABLE>;
68                                 };
69                         };
70
71                         lcdif@80030000 {
72                                 pinctrl-names = "default";
73                                 pinctrl-0 = <&lcdif_16bit_pins_a
74                                                 &lcdif_pins_apf28dev>;
75                                 display = <&display>;
76                                 status = "okay";
77
78                                 display: display {
79                                         bits-per-pixel = <16>;
80                                         bus-width = <16>;
81
82                                         display-timings {
83                                                 native-mode = <&timing0>;
84                                                 timing0: timing0 {
85                                                         clock-frequency = <33000033>;
86                                                         hactive = <800>;
87                                                         vactive = <480>;
88                                                         hback-porch = <96>;
89                                                         hfront-porch = <96>;
90                                                         vback-porch = <20>;
91                                                         vfront-porch = <21>;
92                                                         hsync-len = <64>;
93                                                         vsync-len = <4>;
94                                                         hsync-active = <1>;
95                                                         vsync-active = <1>;
96                                                         de-active = <1>;
97                                                         pixelclk-active = <0>;
98                                                 };
99                                         };
100                                 };
101                         };
102                 };
103
104                 apbx@80040000 {
105                         lradc@80050000 {
106                                 fsl,lradc-touchscreen-wires = <4>;
107                                 status = "okay";
108                         };
109
110                         i2c0: i2c@80058000 {
111                                 pinctrl-names = "default";
112                                 pinctrl-0 = <&i2c0_pins_a>;
113                                 status = "okay";
114                         };
115
116                         pwm: pwm@80064000 {
117                                 pinctrl-names = "default";
118                                 pinctrl-0 = <&pwm3_pins_a &pwm4_pins_a>;
119                                 status = "okay";
120                         };
121
122                         usbphy0: usbphy@8007c000 {
123                                 status = "okay";
124                         };
125
126                         usbphy1: usbphy@8007e000 {
127                                 status = "okay";
128                         };
129                 };
130         };
131
132         ahb@80080000 {
133                 usb0: usb@80080000 {
134                         vbus-supply = <&reg_usb0_vbus>;
135                         status = "okay";
136                 };
137
138                 usb1: usb@80090000 {
139                         status = "okay";
140                 };
141
142                 mac1: ethernet@800f4000 {
143                         phy-mode = "rmii";
144                         pinctrl-names = "default";
145                         pinctrl-0 = <&mac1_pins_a>;
146                         phy-reset-gpios = <&gpio0 23 0>;
147                         status = "okay";
148                 };
149         };
150
151         regulators {
152                 compatible = "simple-bus";
153
154                 reg_usb0_vbus: usb0_vbus {
155                         compatible = "regulator-fixed";
156                         regulator-name = "usb0_vbus";
157                         regulator-min-microvolt = <5000000>;
158                         regulator-max-microvolt = <5000000>;
159                         gpio = <&gpio1 23 1>;
160                 };
161         };
162
163         leds {
164                 compatible = "gpio-leds";
165
166                 user {
167                         label = "Heartbeat";
168                         gpios = <&gpio0 21 0>;
169                         linux,default-trigger = "heartbeat";
170                 };
171         };
172
173         backlight {
174                 compatible = "pwm-backlight";
175
176                 pwms = <&pwm 3 191000>;
177                 brightness-levels = <0 4 8 16 32 64 128 255>;
178                 default-brightness-level = <6>;
179         };
180 };