Commit | Line | Data |
---|---|---|
04e151e8 DC |
1 | /* |
2 | * Copyright 2013 Eukréa Electromatique <denis@eukrea.com> | |
3 | * | |
4 | * This program is free software; you can redistribute it and/or | |
5 | * modify it under the terms of the GNU General Public License | |
6 | * as published by the Free Software Foundation; either version 2 | |
7 | * of the License, or (at your option) any later version. | |
8 | * This program is distributed in the hope that it will be useful, | |
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
11 | * GNU General Public License for more details. | |
12 | */ | |
13 | ||
14 | #include "imx25-eukrea-mbimxsd25-baseboard.dts" | |
15 | ||
16 | / { | |
17 | model = "Eukrea MBIMXSD25 with the CMO-QVGA Display"; | |
18 | compatible = "eukrea,mbimxsd25-baseboard-cmo-qvga", "eukrea,mbimxsd25-baseboard", "eukrea,cpuimx25", "fsl,imx25"; | |
19 | ||
20 | cmo_qvga: display { | |
21 | model = "CMO-QVGA"; | |
22 | bits-per-pixel = <16>; | |
23 | fsl,pcr = <0xcad08b80>; | |
24 | bus-width = <18>; | |
25 | native-mode = <&qvga_timings>; | |
26 | display-timings { | |
27 | qvga_timings: 320x240 { | |
28 | clock-frequency = <6500000>; | |
29 | hactive = <320>; | |
30 | vactive = <240>; | |
31 | hback-porch = <30>; | |
32 | hfront-porch = <38>; | |
33 | vback-porch = <20>; | |
34 | vfront-porch = <3>; | |
35 | hsync-len = <15>; | |
36 | vsync-len = <4>; | |
37 | }; | |
38 | }; | |
39 | }; | |
40 | ||
41 | regulators { | |
42 | compatible = "simple-bus"; | |
43 | #address-cells = <1>; | |
44 | #size-cells = <0>; | |
45 | ||
46 | reg_lcd_3v3: regulator@0 { | |
47 | compatible = "regulator-fixed"; | |
48 | reg = <0>; | |
49 | pinctrl-names = "default"; | |
50 | pinctrl-0 = <&pinctrl_reg_lcd_3v3>; | |
51 | regulator-name = "lcd-3v3"; | |
52 | regulator-min-microvolt = <3300000>; | |
53 | regulator-max-microvolt = <3300000>; | |
54 | gpio = <&gpio1 26 GPIO_ACTIVE_HIGH>; | |
55 | }; | |
56 | }; | |
57 | }; | |
58 | ||
59 | &iomuxc { | |
60 | imx25-eukrea-mbimxsd25-baseboard-cmo-qvga { | |
61 | pinctrl_reg_lcd_3v3: reg_lcd_3v3 { | |
62 | fsl,pins = <MX25_PAD_PWM__GPIO_1_26 0x80000000>; | |
63 | }; | |
64 | }; | |
65 | }; | |
66 | ||
67 | &lcdc { | |
68 | display = <&cmo_qvga>; | |
69 | fsl,lpccr = <0x00a903ff>; | |
70 | lcd-supply = <®_lcd_3v3>; | |
71 | status = "okay"; | |
72 | }; |