RZ-G/Boards/SK-RZG1M:BD101LCC1

From eLinux.org
Jump to: navigation, search

This page provides information (quick how-to) regarding connecting 10.1″ LG IPS Display+touch with the RZ/G1M Starter Kit board

Hardware

For detailed description, display and touchscreen datasheets and 'where to buy' information see Boundary Devices official web-site. Useful links: Display Datasheet

Connection

To connect BD101LCC1 with the RZ/G1M Starter Kit board two cables are required:

  • LVDS cable. The one provided with the display is suitable and should be connected to J14 on the display controller board and to CN30 on the the RZ/G1M Starter Kit board.
  • Touchscreen and backlight cable. Should be connected to J15 on the display controller board and to CN31 (I2C Touchscreen) on the the RZ/G1M Starter Kit board. See the table below showing cable pin-to-pin connection scheme.
Line name BD101LCC1 (J14) pin # RZ/G1M Starter Kit board CN31 pin#
+5V 1 7
Touchscreen IRQ 4 2
I2C SDA 5 4
I2C SCL 6 3
Ground 7 5
  • To enable backlight the RZ/G1M Starter Kit board's JP10 jumper should be set to 1-2 closed. This is specific for BD101LCC1 where pin #20 of the LVDS cable is used for PWM, so closing JP10 1-2 actually sets the brightness to maximum.

Software

LVDS display parameters

The RZ/G1M Starter Kit board BSP enables LG 10" LP101WX1 LVDS display parameters by default, so no additional modifications are needed. To support another LVDS display Linux kernel need to be modified. See arch/arm/mach-shmobile/board-skrzg1m-reference.c file, LVDS part of the skrzg1m_du_encoders structure:

static struct rcar_du_encoder_data skrzg1m_du_encoders[] = {
	{
		.type = RCAR_DU_ENCODER_HDMI,
		.output = RCAR_DU_OUTPUT_DPAD0,
	},
	{
		.type = RCAR_DU_ENCODER_NONE,
		.output = RCAR_DU_OUTPUT_LVDS0,
		.connector.lvds.panel = {
			.width_mm = 229,
			.height_mm = 149,
			.mode = {
				.clock = 69000,
				.hdisplay = 1280,
				.hsync_start = 1280 + 48,
				.hsync_end = 1280 + 48 + 32,
				.htotal = 1280 + 48 + 32 + 80,
				.vdisplay = 800,
				.vsync_start = 800 + 2,
				.vsync_end = 800 + 2 + 6,
				.vtotal = 800 + 2 + 6 + 15,
				.flags = 0,
			},
		},
	},
};

Touchscreen driver

To enable touchscreen the File:0001-FT5x06-support.patch patch need to be applied to the Linux kernel. It contains the driver itself and corresponding modifications to the SK-RZG1M device tree file.
To do so it should be placed under the meta-rzg1/recipes-kernel/linux/linux-renesas/ directory and added to the meta-rzg1/recipes-kernel/linux/linux-renesas_3.10.bb file.
Also meta-rzg1/recipes-kernel/linux/linux-renesas_3.10.bb need to be modified to enable the driver.