Skip to content

Commit e2b6b35

Browse files
committed
arm64: vexpress: Add CLCD support to the ARMv8 model platform
This patch enables CLCD support for the VE platform emulated by the ARMv8 software model (DT bindings are based on Pawel's vexpress patches) together with defconfig entries for SERIO_AMBAKMI and FB_ARMCLCD. Signed-off-by: Catalin Marinas <[email protected]> Acked-by: Pawel Moll <[email protected]>
1 parent ceab3fe commit e2b6b35

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed

arch/arm64/boot/dts/rtsm_ve-motherboard.dtsi

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
bank-width = <4>;
2323
};
2424

25-
vram@2,00000000 {
25+
v2m_video_ram: vram@2,00000000 {
2626
compatible = "arm,vexpress-vram";
2727
reg = <2 0x00000000 0x00800000>;
2828
};
@@ -179,9 +179,42 @@
179179
clcd@1f0000 {
180180
compatible = "arm,pl111", "arm,primecell";
181181
reg = <0x1f0000 0x1000>;
182+
interrupt-names = "combined";
182183
interrupts = <14>;
183184
clocks = <&v2m_oscclk1>, <&v2m_clk24mhz>;
184185
clock-names = "clcdclk", "apb_pclk";
186+
arm,pl11x,framebuffer = <0x18000000 0x00180000>;
187+
memory-region = <&v2m_video_ram>;
188+
max-memory-bandwidth = <130000000>; /* 16bpp @ 63.5MHz */
189+
190+
port {
191+
v2m_clcd_pads: endpoint {
192+
remote-endpoint = <&v2m_clcd_panel>;
193+
arm,pl11x,tft-r0g0b0-pads = <0 8 16>;
194+
};
195+
};
196+
197+
panel {
198+
compatible = "panel-dpi";
199+
200+
port {
201+
v2m_clcd_panel: endpoint {
202+
remote-endpoint = <&v2m_clcd_pads>;
203+
};
204+
};
205+
206+
panel-timing {
207+
clock-frequency = <63500127>;
208+
hactive = <1024>;
209+
hback-porch = <152>;
210+
hfront-porch = <48>;
211+
hsync-len = <104>;
212+
vactive = <768>;
213+
vback-porch = <23>;
214+
vfront-porch = <3>;
215+
vsync-len = <4>;
216+
};
217+
};
185218
};
186219

187220
virtio_block@0130000 {

arch/arm64/configs/defconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ CONFIG_NET_XGENE=y
7878
# CONFIG_WLAN is not set
7979
CONFIG_INPUT_EVDEV=y
8080
# CONFIG_SERIO_SERPORT is not set
81+
CONFIG_SERIO_AMBAKMI=y
8182
CONFIG_LEGACY_PTY_COUNT=16
8283
CONFIG_SERIAL_8250=y
8384
CONFIG_SERIAL_8250_CONSOLE=y
@@ -90,6 +91,7 @@ CONFIG_VIRTIO_CONSOLE=y
9091
CONFIG_REGULATOR=y
9192
CONFIG_REGULATOR_FIXED_VOLTAGE=y
9293
CONFIG_FB=y
94+
CONFIG_FB_ARMCLCD=y
9395
CONFIG_FRAMEBUFFER_CONSOLE=y
9496
CONFIG_LOGO=y
9597
# CONFIG_LOGO_LINUX_MONO is not set

0 commit comments

Comments
 (0)