GNU Linux-libre 4.14.290-gnu1
[releases.git] / arch / arm / boot / dts / imx23-evk.dts
1 /*
2  * Copyright 2012 Freescale Semiconductor, Inc.
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 "imx23.dtsi"
14
15 / {
16         model = "Freescale i.MX23 Evaluation Kit";
17         compatible = "fsl,imx23-evk", "fsl,imx23";
18
19         memory {
20                 reg = <0x40000000 0x08000000>;
21         };
22
23         apb@80000000 {
24                 apbh@80000000 {
25                         gpmi-nand@8000c000 {
26                                 pinctrl-names = "default";
27                                 pinctrl-0 = <&gpmi_pins_a &gpmi_pins_fixup>;
28                                 status = "okay";
29                         };
30
31                         ssp0: ssp@80010000 {
32                                 compatible = "fsl,imx23-mmc";
33                                 pinctrl-names = "default";
34                                 pinctrl-0 = <&mmc0_4bit_pins_a &mmc0_pins_fixup>;
35                                 bus-width = <4>;
36                                 wp-gpios = <&gpio1 30 0>;
37                                 vmmc-supply = <&reg_vddio_sd0>;
38                                 status = "okay";
39                         };
40
41                         pinctrl@80018000 {
42                                 pinctrl-names = "default";
43                                 pinctrl-0 = <&hog_pins_a>;
44
45                                 hog_pins_a: hog@0 {
46                                         reg = <0>;
47                                         fsl,pinmux-ids = <
48                                                 MX23_PAD_LCD_RESET__GPIO_1_18
49                                                 MX23_PAD_PWM3__GPIO_1_29
50                                                 MX23_PAD_PWM4__GPIO_1_30
51                                         >;
52                                         fsl,drive-strength = <MXS_DRIVE_4mA>;
53                                         fsl,voltage = <MXS_VOLTAGE_HIGH>;
54                                         fsl,pull-up = <MXS_PULL_DISABLE>;
55                                 };
56                         };
57
58                         lcdif@80030000 {
59                                 pinctrl-names = "default";
60                                 pinctrl-0 = <&lcdif_24bit_pins_a>;
61                                 lcd-supply = <&reg_lcd_3v3>;
62                                 display = <&display0>;
63                                 status = "okay";
64
65                                 display0: display0 {
66                                         bits-per-pixel = <32>;
67                                         bus-width = <24>;
68
69                                         display-timings {
70                                                 native-mode = <&timing0>;
71                                                 timing0: timing0 {
72                                                         clock-frequency = <9200000>;
73                                                         hactive = <480>;
74                                                         vactive = <272>;
75                                                         hback-porch = <15>;
76                                                         hfront-porch = <8>;
77                                                         vback-porch = <12>;
78                                                         vfront-porch = <4>;
79                                                         hsync-len = <1>;
80                                                         vsync-len = <1>;
81                                                         hsync-active = <0>;
82                                                         vsync-active = <0>;
83                                                         de-active = <1>;
84                                                         pixelclk-active = <0>;
85                                                 };
86                                         };
87                                 };
88                         };
89                 };
90
91                 apbx@80040000 {
92                         lradc@80050000 {
93                                 status = "okay";
94                                 fsl,lradc-touchscreen-wires = <4>;
95                         };
96
97                         pwm: pwm@80064000 {
98                                 pinctrl-names = "default";
99                                 pinctrl-0 = <&pwm2_pins_a>;
100                                 status = "okay";
101                         };
102
103                         auart0: serial@8006c000 {
104                                 pinctrl-names = "default";
105                                 pinctrl-0 = <&auart0_pins_a>;
106                                 status = "okay";
107                         };
108
109                         duart: serial@80070000 {
110                                 pinctrl-names = "default";
111                                 pinctrl-0 = <&duart_pins_a>;
112                                 status = "okay";
113                         };
114
115                         usbphy0: usbphy@8007c000 {
116                                 status = "okay";
117                         };
118                 };
119         };
120
121         ahb@80080000 {
122                 usb0: usb@80080000 {
123                         status = "okay";
124                 };
125         };
126
127         regulators {
128                 compatible = "simple-bus";
129                 #address-cells = <1>;
130                 #size-cells = <0>;
131
132                 reg_vddio_sd0: regulator@0 {
133                         compatible = "regulator-fixed";
134                         reg = <0>;
135                         regulator-name = "vddio-sd0";
136                         regulator-min-microvolt = <3300000>;
137                         regulator-max-microvolt = <3300000>;
138                         gpio = <&gpio1 29 0>;
139                 };
140
141                 reg_lcd_3v3: regulator@1 {
142                         compatible = "regulator-fixed";
143                         reg = <1>;
144                         regulator-name = "lcd-3v3";
145                         regulator-min-microvolt = <3300000>;
146                         regulator-max-microvolt = <3300000>;
147                         gpio = <&gpio1 18 0>;
148                         enable-active-high;
149                 };
150         };
151
152         backlight {
153                 compatible = "pwm-backlight";
154                 pwms = <&pwm 2 5000000>;
155                 brightness-levels = <0 4 8 16 32 64 128 255>;
156                 default-brightness-level = <6>;
157         };
158 };