/
0047-cape-dvi-Convert-DVI-capes-to-the-new-LCDC-DRM-drive.patch
168 lines (158 loc) · 4.33 KB
/
0047-cape-dvi-Convert-DVI-capes-to-the-new-LCDC-DRM-drive.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
From ce4a08bf8fb186dbf7cc44fd5b78a82f203043c4 Mon Sep 17 00:00:00 2001
From: Pantelis Antoniou <panto@antoniou-consulting.com>
Date: Wed, 9 Jan 2013 16:34:14 +0200
Subject: [PATCH 047/184] cape-dvi: Convert DVI capes to the new LCDC DRM
driver
The new DRM driver works fine, switch into using that and ditch
da8xx-fb.
Signed-off-by: Pantelis Antoniou <panto@antoniou-consulting.com>
---
firmware/capes/cape-bone-dvi-00A0.dts | 55 ++++++++++++++++++++++++++++++-----
firmware/capes/cape-bone-dvi-00A1.dts | 53 ++++++++++++++++++++++++++++-----
2 files changed, 93 insertions(+), 15 deletions(-)
diff --git a/firmware/capes/cape-bone-dvi-00A0.dts b/firmware/capes/cape-bone-dvi-00A0.dts
index b9db80b..5445847 100644
--- a/firmware/capes/cape-bone-dvi-00A0.dts
+++ b/firmware/capes/cape-bone-dvi-00A0.dts
@@ -59,6 +59,10 @@
target = <&ocp>;
__overlay__ {
+ /* avoid stupid warning */
+ #address-cells = <1>;
+ #size-cells = <1>;
+
gpio-leds-cape-dvi {
compatible = "gpio-leds";
pinctrl-names = "default";
@@ -79,17 +83,52 @@
};
};
- dvi-cape {
- compatible = "da8xx-dt";
+ /* Settings for DVI 1024x768@60 */
+ panel {
+ compatible = "lcdc,panel";
pinctrl-names = "default";
- ti,hwmods = "lcdc";
-
- disp-pll = <560000000>;
- panel-type = "1024x768@60";
-
pinctrl-0 = <&bone_dvi_cape_dvi_00A0_pins>;
- powerdn-gpio = <&gpio2 7 0>;
+ panel-info {
+ ac-bias = <255>;
+ ac-bias-intrpt = <0>;
+ dma-burst-sz = <16>;
+ bpp = <16>;
+ fdd = <0x80>;
+ tft-alt-mode = <0>;
+ stn-565-mode = <0>;
+ mono-8bit-mode = <0>;
+ invert-line-clock = <1>;
+ invert-frm-clock = <1>;
+ sync-edge = <0>;
+ sync-ctrl = <1>;
+ raster-order = <0>;
+ fifo-th = <0>;
+ };
+ display-timings {
+ native-mode = <&timing0>;
+ timing0: 1024x768 {
+ hactive = <1024>;
+ vactive = <768>;
+ hback-porch = <80>;
+ hfront-porch = <48>;
+ vback-porch = <15>;
+ vfront-porch = <3>;
+ hsync-len = <32>;
+ vsync-len = <4>;
+ clock-frequency = <56000000>;
+ };
+ };
};
+
+ fb {
+ compatible = "ti,am33xx-lcdc";
+ reg = <0x4830e000 0x1000>;
+ interrupt-parent = <&intc>;
+ interrupts = <36>;
+ ti,hwmods = "lcdc";
+ ti,power-gpio = <&gpio2 7 0x0>;
+ };
+
};
};
};
diff --git a/firmware/capes/cape-bone-dvi-00A1.dts b/firmware/capes/cape-bone-dvi-00A1.dts
index 567d12b..dc31146 100644
--- a/firmware/capes/cape-bone-dvi-00A1.dts
+++ b/firmware/capes/cape-bone-dvi-00A1.dts
@@ -59,6 +59,10 @@
target = <&ocp>;
__overlay__ {
+ /* avoid stupid warning */
+ #address-cells = <1>;
+ #size-cells = <1>;
+
gpio-leds-cape-dvi {
compatible = "gpio-leds";
pinctrl-names = "default";
@@ -79,16 +83,51 @@
};
};
- dvi-cape {
- compatible = "da8xx-dt";
+ /* Settings for DVI 1024x768@60 */
+ panel {
+ compatible = "lcdc,panel";
pinctrl-names = "default";
- ti,hwmods = "lcdc";
+ pinctrl-0 = <&bone_dvi_cape_dvi_00A1_pins>;
+ panel-info {
+ ac-bias = <255>;
+ ac-bias-intrpt = <0>;
+ dma-burst-sz = <16>;
+ bpp = <16>;
+ fdd = <0x80>;
+ tft-alt-mode = <0>;
+ stn-565-mode = <0>;
+ mono-8bit-mode = <0>;
+ invert-line-clock = <1>;
+ invert-frm-clock = <1>;
+ sync-edge = <0>;
+ sync-ctrl = <1>;
+ raster-order = <0>;
+ fifo-th = <0>;
+ };
+ display-timings {
+ native-mode = <&timing0>;
+ timing0: 1024x768 {
+ hactive = <1024>;
+ vactive = <768>;
+ hback-porch = <80>;
+ hfront-porch = <48>;
+ vback-porch = <15>;
+ vfront-porch = <3>;
+ hsync-len = <32>;
+ vsync-len = <4>;
+ clock-frequency = <56000000>;
+ };
+ };
+ };
- disp-pll = <560000000>;
- panel-type = "1024x768@60";
+ fb {
+ compatible = "ti,am33xx-lcdc";
+ reg = <0x4830e000 0x1000>;
+ interrupt-parent = <&intc>;
+ interrupts = <36>;
+ ti,hwmods = "lcdc";
+ ti,power-gpio = <&gpio2 31 0x0>;
- pinctrl-0 = <&bone_dvi_cape_dvi_00A1_pins>;
- powerdn-gpio = <&gpio2 31 0>;
};
};
};
--
1.8.2.1