This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM3352 linux-3.8.13 with 320x240 RGB TFT LCD.

Other Parts Discussed in Thread: AM3352

Hello,

I've already configured Linux-3.2.0 framebuffer for 320x240 TFT LCD in 16bits RGB mode, and the framebuffer works

properly. 

For the Linux-3.8.13 I've used follow DTS file but it doesn't work:

BB-BONE-ILI9341-00A0.dts

/*
 * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */
/dts-v1/;
/plugin/;

/ {
	compatible = "ti,beaglebone", "ti,beaglebone-black";

	/* identification */
	part-number = "BB-BONE-ILI9341";
	version = "00A0";

	/* state the resources this cape uses */
	exclusive-use =
		/* the pin header uses */
		"P8.45",	/* lcd: lcd_data0 */
		"P8.46",	/* lcd: lcd_data1 */
		"P8.43",	/* lcd: lcd_data2 */
		"P8.44",	/* lcd: lcd_data3 */
		"P8.41",	/* lcd: lcd_data4 */
		"P8.42",	/* lcd: lcd_data5 */
		"P8.39",	/* lcd: lcd_data6 */
		"P8.40",	/* lcd: lcd_data7 */
		"P8.37",	/* lcd: lcd_data8 */
		"P8.38",	/* lcd: lcd_data9 */
		"P8.36",	/* lcd: lcd_data10 */
		"P8.34",	/* lcd: lcd_data11 */
		"P8.35",	/* lcd: lcd_data12 */
		"P8.33",	/* lcd: lcd_data13 */
		"P8.31",	/* lcd: lcd_data14 */
		"P8.32",	/* lcd: lcd_data15 */
		"P8.27",	/* lcd: lcd_vsync */
		"P8.29",	/* lcd: lcd_hsync */
		"P8.28",	/* lcd: lcd_pclk */
		"P8.30",	/* lcd: lcd_ac_bias_en */
		"P9.16",	/* tsc: gpio1_19 */
		"P9.14",	/* led: gpio1_18 */
		/* the hardware IP uses */
		"gpio1_19",
		"gpio1_18",
		"lcd",
		"tps-bl";

	fragment@0 {
		target = <&am33xx_pinmux>;
		__overlay__ {

			bone_lcd4_cape_led_00A0_pins: pinmux_bone_lcd4_cape_led_00A0_pins {
				pinctrl-single,pins = <
					0x48 0x07	/* gpmc_a2.gpio1_18, OUTPUT | MODE7 */
				>;
			};

			bone_lcd4_cape_lcd_pins: pinmux_bone_lcd4_cape_lcd_pins {
				pinctrl-single,pins = <
					0xa0 0x08	/* lcd_data0.lcd_data0, OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA */
					0xa4 0x08	/* lcd_data1.lcd_data1, OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA */
					0xa8 0x08	/* lcd_data2.lcd_data2, OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA */
					0xac 0x08	/* lcd_data3.lcd_data3, OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA */
					0xb0 0x08	/* lcd_data4.lcd_data4, OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA */
					0xb4 0x08	/* lcd_data5.lcd_data5, OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA */
					0xb8 0x08	/* lcd_data6.lcd_data6, OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA */
					0xbc 0x08	/* lcd_data7.lcd_data7, OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA */
					0xc0 0x08	/* lcd_data8.lcd_data8, OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA */
					0xc4 0x08	/* lcd_data9.lcd_data9, OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA */
					0xc8 0x08	/* lcd_data10.lcd_data10, OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA */
					0xcc 0x08	/* lcd_data11.lcd_data11, OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA */
					0xd0 0x08	/* lcd_data12.lcd_data12, OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA */
					0xd4 0x08	/* lcd_data13.lcd_data13, OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA */
					0xd8 0x08	/* lcd_data14.lcd_data14, OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA */
					0xdc 0x08	/* lcd_data15.lcd_data15, OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA */
					0xe0 0x00	/* lcd_vsync.lcd_vsync, OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT */
					0xe4 0x00	/* lcd_hsync.lcd_hsync, OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT */
					0xe8 0x00	/* lcd_pclk.lcd_pclk, OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT */
					0xec 0x00	/* lcd_ac_bias_en.lcd_ac_bias_en, OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT */
					0x4c 0x27       /* TSC_INT gpmc_a3.gpio1_19, INPUT | MODE7 */
				>;
			};

		};
	};

	fragment@1 {
		target = <&tps>;
		__overlay__ {
			backlight {
				compatible = "not-tps65217-backlight";
				isel = <1>;
				fdim = <200>;
				brightness = <100>;
				tps = <&tps>;
			};
		};
	};

	fragment@2 {
		target = <&ocp>;

		__overlay__ {

			/* avoid stupid warning */
			#address-cells = <1>;
			#size-cells = <1>;

			tscadc {
				compatible = "ti,ti-tscadc";
				reg = <0x44e0d000 0x1000>;

				interrupt-parent = <&intc>;
				interrupts = <16>;
				ti,hwmods = "adc_tsc";
				status = "okay";

				tsc {
					ti,wires = <4>;
					ti,x-plate-resistance = <200>;
					ti,coordinate-readouts = <5>;
					ti,wire-config = <0x00 0x11 0x22 0x33>;
				};

				adc {
					ti,adc-channels = <4 5 6 7>;
				};
			};

			gpio-leds-cape-lcd4 {
				compatible = "gpio-leds";
				pinctrl-names = "default";

				pinctrl-0 = <&bone_lcd4_cape_led_00A0_pins>;

				lcd4-led0 {
					label = "lcd4:green:usr0";
					gpios = <&gpio2 18 0>;
					linux,default-trigger = "heartbeat";
					default-state = "off";
				};
			};

			/* Settings for ILI9341 cape: */
			panel {
				compatible = "tilcdc,panel";
				pinctrl-names = "default";
				pinctrl-0 = <&bone_lcd4_cape_lcd_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>;
					sync-edge         = <0>;
					sync-ctrl         = <1>;
					raster-order      = <0>;
					fifo-th           = <0>;
				};
				display-timings {
					native-mode = <&timing0>;
			        timing0: 320x240 {
				        hactive         = <320>;
				        vactive         = <240>;
				        hback-porch     = <21>;
				        hfront-porch    = <58>;
				        hsync-len       = <47>;
				        vback-porch     = <11>;
				        vfront-porch    = <23>;
				        vsync-len       = <2>;
				        clock-frequency = <8000000>;
				        hsync-active    = <0>;
				        vsync-active    = <0>;
                    };
				};
			};

			fb {
				compatible = "ti,am33xx-tilcdc";
				reg = <0x4830e000 0x1000>;
				interrupt-parent = <&intc>;
				interrupts = <36>;
				ti,hwmods = "lcdc";
			};

		};
	};
};

I'm not familiar with DTS file, after insert overlay I got the error message :

root@android:/ #  echo BB-BONE-ILI9341 > /sys/devices/bone_capemgr.*/slots
[  701.652683] bone-capemgr bone_capemgr.9: part_number 'BB-BONE-ILI9341', version 'N/A'
[  701.661054] bone-capemgr bone_capemgr.9: slot #7: generic override
[  701.667552] bone-capemgr bone_capemgr.9: bone: Using override eeprom data at slot 7
[  701.675558] bone-capemgr bone_capemgr.9: slot #7: 'Override Board Name,00A0,Override Manuf,BB-BONE-ILI9341'
[  701.685842] bone-capemgr bone_capemgr.9: slot #7: Requesting part number/version based 'BB-BONE-ILI9341-00A0.dtbo
[  701.696577] bone-capemgr bone_capemgr.9: slot #7: Requesting firmware 'BB-BONE-ILI9341-00A0.dtbo' for board-name 'Override Board Name', version '00A0'
[  701.710656] bone-capemgr bone_capemgr.9: slot #7: dtbo 'BB-BONE-ILI9341-00A0.dtbo' loaded; converting to live tree
[  701.722039] bone-capemgr bone_capemgr.9: slot #7: #3 overlays
[  701.732082] input: ti-tsc as /devices/ocp.3/44e0d000.tscadc/tsc/input/input1
[  701.743495] panel panel.14: panel: No power control GPIO
[  701.749372] platform 4830e000.fb: alias fck already exists
[  701.757166] tilcdc 4830e000.fb: No power control GPIO
[  701.763113] [drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
[  701.770075] [drm] No driver support for vblank timestamp query.
[  701.777617] ------------[ cut here ]------------
[  701.777643] WARNING: at drivers/gpu/drm/tilcdc/tilcdc_crtc.c:248 tilcdc_crtc_mode_set+0x53b/0x554()
[  701.777650] Modules linked in:
[  701.777678] [<c001125d>] (unwind_backtrace+0x1/0x98) from [<c002edb3>] (warn_slowpath_common+0x33/0x48)
[  701.777689] [<c002edb3>] (warn_slowpath_common+0x33/0x48) from [<c002edd9>] (warn_slowpath_null+0x11/0x14)
[  701.777699] [<c002edd9>] (warn_slowpath_null+0x11/0x14) from [<c029f69f>] (tilcdc_crtc_mode_set+0x53b/0x554)
[  701.777720] [<c029f69f>] (tilcdc_crtc_mode_set+0x53b/0x554) from [<c028d423>] (drm_crtc_helper_set_mode+0x14f/0x258)
[  701.777732] [<c028d423>] (drm_crtc_helper_set_mode+0x14f/0x258) from [<c028dc15>] (drm_crtc_helper_set_config+0x615/0x6c4)
[  701.777744] [<c028dc15>] (drm_crtc_helper_set_config+0x615/0x6c4) from [<c028ca03>] (drm_fb_helper_set_par+0x3b/0x80)
[  701.777759] [<c028ca03>] (drm_fb_helper_set_par+0x3b/0x80) from [<c0259465>] (fbcon_init+0x365/0x3a4)
[  701.777780] [<c0259465>] (fbcon_init+0x365/0x3a4) from [<c027b4f3>] (visual_init+0x6f/0xb4)
[  701.777794] [<c027b4f3>] (visual_init+0x6f/0xb4) from [<c027cbf7>] (do_bind_con_driver+0xdb/0x254)
[  701.777807] [<c027cbf7>] (do_bind_con_driver+0xdb/0x254) from [<c027cdc5>] (do_take_over_console+0x25/0x28)
[  701.777817] [<c027cdc5>] (do_take_over_console+0x25/0x28) from [<c02594d9>] (do_fbcon_takeover+0x35/0x80)
[  701.777833] [<c02594d9>] (do_fbcon_takeover+0x35/0x80) from [<c04949bb>] (notifier_call_chain+0x3f/0x50)
[  701.777855] [<c04949bb>] (notifier_call_chain+0x3f/0x50) from [<c00488ed>] (__blocking_notifier_call_chain+0x29/0x38)
[  701.777868] [<c00488ed>] (__blocking_notifier_call_chain+0x29/0x38) from [<c004890d>] (blocking_notifier_call_chain+0x11/0x14)
[  701.777890] [<c004890d>] (blocking_notifier_call_chain+0x11/0x14) from [<c02539c7>] (register_framebuffer+0xff/0x1b0)
[  701.777903] [<c02539c7>] (register_framebuffer+0xff/0x1b0) from [<c028cb2b>] (drm_fb_helper_single_fb_probe+0xe3/0x220)
[  701.777915] [<c028cb2b>] (drm_fb_helper_single_fb_probe+0xe3/0x220) from [<c028cdf3>] (drm_fb_helper_initial_config+0xf7/0x160)
[  701.777927] [<c028cdf3>] (drm_fb_helper_initial_config+0xf7/0x160) from [<c028e44f>] (drm_fbdev_cma_init+0x4b/0xa4)
[  701.777944] [<c028e44f>] (drm_fbdev_cma_init+0x4b/0xa4) from [<c02a0ff9>] (tilcdc_load+0x321/0x464)
[  701.778037] [<c02a0ff9>] (tilcdc_load+0x321/0x464) from [<c0295377>] (drm_get_platform_dev+0xa7/0x150)
[  701.778057] [<c0295377>] (drm_get_platform_dev+0xa7/0x150) from [<c02a5ab9>] (platform_drv_probe+0xd/0x10)
[  701.778070] [<c02a5ab9>] (platform_drv_probe+0xd/0x10) from [<c02a4f65>] (driver_probe_device+0x4d/0x168)
[  701.778081] [<c02a4f65>] (driver_probe_device+0x4d/0x168) from [<c02a3fcb>] (bus_for_each_drv+0x23/0x4c)
[  701.778091] [<c02a3fcb>] (bus_for_each_drv+0x23/0x4c) from [<c02a4eef>] (device_attach+0x47/0x58)
[  701.778101] [<c02a4eef>] (device_attach+0x47/0x58) from [<c02a48e3>] (bus_probe_device+0x57/0x70)
[  701.778110] [<c02a48e3>] (bus_probe_device+0x57/0x70) from [<c02a3a95>] (device_add+0x375/0x3e0)
[  701.778133] [<c02a3a95>] (device_add+0x375/0x3e0) from [<c03a073f>] (of_platform_device_create_pdata+0x37/0x50)
[  701.778148] [<c03a073f>] (of_platform_device_create_pdata+0x37/0x50) from [<c03a17ef>] (of_overlay_device_entry_change.isra.0+0x67/0xd0)
[  701.778158] [<c03a17ef>] (of_overlay_device_entry_change.isra.0+0x67/0xd0) from [<c03a1a59>] (of_overlay+0x6d/0x144)
[  701.778180] [<c03a1a59>] (of_overlay+0x6d/0x144) from [<c02b5743>] (bone_capemgr_load+0x307/0x45c)
[  701.778194] [<c02b5743>] (bone_capemgr_load+0x307/0x45c) from [<c02b6405>] (slots_store+0x191/0x29c)
[  701.778207] [<c02b6405>] (slots_store+0x191/0x29c) from [<c02a29f3>] (dev_attr_store+0xb/0x14)
[  701.778225] [<c02a29f3>] (dev_attr_store+0xb/0x14) from [<c00fb0b9>] (sysfs_write_file+0xe5/0x10c)
[  701.778244] [<c00fb0b9>] (sysfs_write_file+0xe5/0x10c) from [<c00b9b57>] (vfs_write+0x5f/0xf8)
[  701.778256] [<c00b9b57>] (vfs_write+0x5f/0xf8) from [<c00b9d5d>] (sys_write+0x29/0x4c)
[  701.778272] [<c00b9d5d>] (sys_write+0x29/0x4c) from [<c000c741>] (ret_fast_syscall+0x1/0x46)
[  701.778277] ---[ end trace 81e72b18dc850117 ]---
[  701.778294] [drm:drm_crtc_helper_set_config] *ERROR* failed to set mode on [CRTC:3]
[  701.778307] fbcon_init: detected unhandled fb_set_par error, error code -22
[  701.778394] ------------[ cut here ]------------
[  701.778405] WARNING: at drivers/gpu/drm/tilcdc/tilcdc_crtc.c:248 tilcdc_crtc_mode_set+0x53b/0x554()
[  701.778410] Modules linked in:
[  701.778425] [<c001125d>] (unwind_backtrace+0x1/0x98) from [<c002edb3>] (warn_slowpath_common+0x33/0x48)
[  701.778435] [<c002edb3>] (warn_slowpath_common+0x33/0x48) from [<c002edd9>] (warn_slowpath_null+0x11/0x14)
[  701.778445] [<c002edd9>] (warn_slowpath_null+0x11/0x14) from [<c029f69f>] (tilcdc_crtc_mode_set+0x53b/0x554)
[  701.778458] [<c029f69f>] (tilcdc_crtc_mode_set+0x53b/0x554) from [<c028d423>] (drm_crtc_helper_set_mode+0x14f/0x258)
[  701.778470] [<c028d423>] (drm_crtc_helper_set_mode+0x14f/0x258) from [<c028dc15>] (drm_crtc_helper_set_config+0x615/0x6c4)
[  701.778482] [<c028dc15>] (drm_crtc_helper_set_config+0x615/0x6c4) from [<c028bd7d>] (drm_fb_helper_pan_display+0x4d/0x74)
[  701.778495] [<c028bd7d>] (drm_fb_helper_pan_display+0x4d/0x74) from [<c0252a07>] (fb_pan_display+0x77/0xc0)
[  701.778508] [<c0252a07>] (fb_pan_display+0x77/0xc0) from [<c025be35>] (bit_update_start+0x11/0x24)
[  701.778519] [<c025be35>] (bit_update_start+0x11/0x24) from [<c025a30f>] (fbcon_switch+0x1e7/0x35c)
[  701.778530] [<c025a30f>] (fbcon_switch+0x1e7/0x35c) from [<c027c68d>] (redraw_screen+0xc5/0x164)
[  701.778541] [<c027c68d>] (redraw_screen+0xc5/0x164) from [<c02590a1>] (fbcon_prepare_logo+0x241/0x2a0)
[  701.778550] [<c02590a1>] (fbcon_prepare_logo+0x241/0x2a0) from [<c025934f>] (fbcon_init+0x24f/0x3a4)
[  701.778560] [<c025934f>] (fbcon_init+0x24f/0x3a4) from [<c027b4f3>] (visual_init+0x6f/0xb4)
[  701.778571] [<c027b4f3>] (visual_init+0x6f/0xb4) from [<c027cbf7>] (do_bind_con_driver+0xdb/0x254)
[  701.778583] [<c027cbf7>] (do_bind_con_driver+0xdb/0x254) from [<c027cdc5>] (do_take_over_console+0x25/0x28)
[  701.778593] [<c027cdc5>] (do_take_over_console+0x25/0x28) from [<c02594d9>] (do_fbcon_takeover+0x35/0x80)
[  701.778605] [<c02594d9>] (do_fbcon_takeover+0x35/0x80) from [<c04949bb>] (notifier_call_chain+0x3f/0x50)
[  701.778619] [<c04949bb>] (notifier_call_chain+0x3f/0x50) from [<c00488ed>] (__blocking_notifier_call_chain+0x29/0x38)
[  701.778630] [<c00488ed>] (__blocking_notifier_call_chain+0x29/0x38) from [<c004890d>] (blocking_notifier_call_chain+0x11/0x14)
[  701.778642] [<c004890d>] (blocking_notifier_call_chain+0x11/0x14) from [<c02539c7>] (register_framebuffer+0xff/0x1b0)
[  701.778655] [<c02539c7>] (register_framebuffer+0xff/0x1b0) from [<c028cb2b>] (drm_fb_helper_single_fb_probe+0xe3/0x220)
[  701.778667] [<c028cb2b>] (drm_fb_helper_single_fb_probe+0xe3/0x220) from [<c028cdf3>] (drm_fb_helper_initial_config+0xf7/0x160)
[  701.778679] [<c028cdf3>] (drm_fb_helper_initial_config+0xf7/0x160) from [<c028e44f>] (drm_fbdev_cma_init+0x4b/0xa4)
[  701.778691] [<c028e44f>] (drm_fbdev_cma_init+0x4b/0xa4) from [<c02a0ff9>] (tilcdc_load+0x321/0x464)
[  701.778702] [<c02a0ff9>] (tilcdc_load+0x321/0x464) from [<c0295377>] (drm_get_platform_dev+0xa7/0x150)
[  701.778714] [<c0295377>] (drm_get_platform_dev+0xa7/0x150) from [<c02a5ab9>] (platform_drv_probe+0xd/0x10)
[  701.778725] [<c02a5ab9>] (platform_drv_probe+0xd/0x10) from [<c02a4f65>] (driver_probe_device+0x4d/0x168)
[  701.778734] [<c02a4f65>] (driver_probe_device+0x4d/0x168) from [<c02a3fcb>] (bus_for_each_drv+0x23/0x4c)
[  701.778744] [<c02a3fcb>] (bus_for_each_drv+0x23/0x4c) from [<c02a4eef>] (device_attach+0x47/0x58)
[  701.778753] [<c02a4eef>] (device_attach+0x47/0x58) from [<c02a48e3>] (bus_probe_device+0x57/0x70)
[  701.778762] [<c02a48e3>] (bus_probe_device+0x57/0x70) from [<c02a3a95>] (device_add+0x375/0x3e0)
[  701.778775] [<c02a3a95>] (device_add+0x375/0x3e0) from [<c03a073f>] (of_platform_device_create_pdata+0x37/0x50)
[  701.778787] [<c03a073f>] (of_platform_device_create_pdata+0x37/0x50) from [<c03a17ef>] (of_overlay_device_entry_change.isra.0+0x67/0xd0)
[  701.778797] [<c03a17ef>] (of_overlay_device_entry_change.isra.0+0x67/0xd0) from [<c03a1a59>] (of_overlay+0x6d/0x144)
[  701.778811] [<c03a1a59>] (of_overlay+0x6d/0x144) from [<c02b5743>] (bone_capemgr_load+0x307/0x45c)
[  701.778821] [<c02b5743>] (bone_capemgr_load+0x307/0x45c) from [<c02b6405>] (slots_store+0x191/0x29c)
[  701.778832] [<c02b6405>] (slots_store+0x191/0x29c) from [<c02a29f3>] (dev_attr_store+0xb/0x14)
[  701.778844] [<c02a29f3>] (dev_attr_store+0xb/0x14) from [<c00fb0b9>] (sysfs_write_file+0xe5/0x10c)
[  701.778856] [<c00fb0b9>] (sysfs_write_file+0xe5/0x10c) from [<c00b9b57>] (vfs_write+0x5f/0xf8)
[  701.778866] [<c00b9b57>] (vfs_write+0x5f/0xf8) from [<c00b9d5d>] (sys_write+0x29/0x4c)
[  701.778876] [<c00b9d5d>] (sys_write+0x29/0x4c) from [<c000c741>] (ret_fast_syscall+0x1/0x46)
[  701.778880] ---[ end trace 81e72b18dc850118 ]---
[  701.778889] [drm:drm_crtc_helper_set_config] *ERROR* failed to set mode on [CRTC:3]
[  701.780054] Console: switching to colour frame buffer device 80x40
[  701.780093] ------------[ cut here ]------------
[  701.780107] WARNING: at drivers/gpu/drm/tilcdc/tilcdc_crtc.c:248 tilcdc_crtc_mode_set+0x53b/0x554()
[  701.780111] Modules linked in:
[  701.780125] [<c001125d>] (unwind_backtrace+0x1/0x98) from [<c002edb3>] (warn_slowpath_common+0x33/0x48)
[  701.780135] [<c002edb3>] (warn_slowpath_common+0x33/0x48) from [<c002edd9>] (warn_slowpath_null+0x11/0x14)
[  701.780144] [<c002edd9>] (warn_slowpath_null+0x11/0x14) from [<c029f69f>] (tilcdc_crtc_mode_set+0x53b/0x554)
[  701.780157] [<c029f69f>] (tilcdc_crtc_mode_set+0x53b/0x554) from [<c028d423>] (drm_crtc_helper_set_mode+0x14f/0x258)
[  701.780169] [<c028d423>] (drm_crtc_helper_set_mode+0x14f/0x258) from [<c028dc15>] (drm_crtc_helper_set_config+0x615/0x6c4)
[  701.780180] [<c028dc15>] (drm_crtc_helper_set_config+0x615/0x6c4) from [<c028bd7d>] (drm_fb_helper_pan_display+0x4d/0x74)
[  701.780193] [<c028bd7d>] (drm_fb_helper_pan_display+0x4d/0x74) from [<c0252a07>] (fb_pan_display+0x77/0xc0)
[  701.780205] [<c0252a07>] (fb_pan_display+0x77/0xc0) from [<c025be35>] (bit_update_start+0x11/0x24)
[  701.780215] [<c025be35>] (bit_update_start+0x11/0x24) from [<c025a30f>] (fbcon_switch+0x1e7/0x35c)
[  701.780226] [<c025a30f>] (fbcon_switch+0x1e7/0x35c) from [<c027c68d>] (redraw_screen+0xc5/0x164)
[  701.780238] [<c027c68d>] (redraw_screen+0xc5/0x164) from [<c027cd29>] (do_bind_con_driver+0x20d/0x254)
[  701.780249] [<c027cd29>] (do_bind_con_driver+0x20d/0x254) from [<c027cdc5>] (do_take_over_console+0x25/0x28)
[  701.780260] [<c027cdc5>] (do_take_over_console+0x25/0x28) from [<c02594d9>] (do_fbcon_takeover+0x35/0x80)
[  701.780271] [<c02594d9>] (do_fbcon_takeover+0x35/0x80) from [<c04949bb>] (notifier_call_chain+0x3f/0x50)
[  701.780284] [<c04949bb>] (notifier_call_chain+0x3f/0x50) from [<c00488ed>] (__blocking_notifier_call_chain+0x29/0x38)
[  701.780296] [<c00488ed>] (__blocking_notifier_call_chain+0x29/0x38) from [<c004890d>] (blocking_notifier_call_chain+0x11/0x14)
[  701.780308] [<c004890d>] (blocking_notifier_call_chain+0x11/0x14) from [<c02539c7>] (register_framebuffer+0xff/0x1b0)
[  701.780321] [<c02539c7>] (register_framebuffer+0xff/0x1b0) from [<c028cb2b>] (drm_fb_helper_single_fb_probe+0xe3/0x220)
[  701.780332] [<c028cb2b>] (drm_fb_helper_single_fb_probe+0xe3/0x220) from [<c028cdf3>] (drm_fb_helper_initial_config+0xf7/0x160)
[  701.780343] [<c028cdf3>] (drm_fb_helper_initial_config+0xf7/0x160) from [<c028e44f>] (drm_fbdev_cma_init+0x4b/0xa4)
[  701.780355] [<c028e44f>] (drm_fbdev_cma_init+0x4b/0xa4) from [<c02a0ff9>] (tilcdc_load+0x321/0x464)
[  701.780366] [<c02a0ff9>] (tilcdc_load+0x321/0x464) from [<c0295377>] (drm_get_platform_dev+0xa7/0x150)
[  701.780378] [<c0295377>] (drm_get_platform_dev+0xa7/0x150) from [<c02a5ab9>] (platform_drv_probe+0xd/0x10)
[  701.780389] [<c02a5ab9>] (platform_drv_probe+0xd/0x10) from [<c02a4f65>] (driver_probe_device+0x4d/0x168)
[  701.780399] [<c02a4f65>] (driver_probe_device+0x4d/0x168) from [<c02a3fcb>] (bus_for_each_drv+0x23/0x4c)
[  701.780408] [<c02a3fcb>] (bus_for_each_drv+0x23/0x4c) from [<c02a4eef>] (device_attach+0x47/0x58)
[  701.780418] [<c02a4eef>] (device_attach+0x47/0x58) from [<c02a48e3>] (bus_probe_device+0x57/0x70)
[  701.780427] [<c02a48e3>] (bus_probe_device+0x57/0x70) from [<c02a3a95>] (device_add+0x375/0x3e0)
[  701.780439] [<c02a3a95>] (device_add+0x375/0x3e0) from [<c03a073f>] (of_platform_device_create_pdata+0x37/0x50)
[  701.780451] [<c03a073f>] (of_platform_device_create_pdata+0x37/0x50) from [<c03a17ef>] (of_overlay_device_entry_change.isra.0+0x67/0xd0)
[  701.780460] [<c03a17ef>] (of_overlay_device_entry_change.isra.0+0x67/0xd0) from [<c03a1a59>] (of_overlay+0x6d/0x144)
[  701.780475] [<c03a1a59>] (of_overlay+0x6d/0x144) from [<c02b5743>] (bone_capemgr_load+0x307/0x45c)
[  701.780486] [<c02b5743>] (bone_capemgr_load+0x307/0x45c) from [<c02b6405>] (slots_store+0x191/0x29c)
[  701.780496] [<c02b6405>] (slots_store+0x191/0x29c) from [<c02a29f3>] (dev_attr_store+0xb/0x14)
[  701.780508] [<c02a29f3>] (dev_attr_store+0xb/0x14) from [<c00fb0b9>] (sysfs_write_file+0xe5/0x10c)
[  701.780520] [<c00fb0b9>] (sysfs_write_file+0xe5/0x10c) from [<c00b9b57>] (vfs_write+0x5f/0xf8)
[  701.780530] [<c00b9b57>] (vfs_write+0x5f/0xf8) from [<c00b9d5d>] (sys_write+0x29/0x4c)
[  701.780541] [<c00b9d5d>] (sys_write+0x29/0x4c) from [<c000c741>] (ret_fast_syscall+0x1/0x46)
[  701.780545] ---[ end trace 81e72b18dc850119 ]---
[  701.780554] [drm:drm_crtc_helper_set_config] *ERROR* failed to set mode on [CRTC:3]
[  703.047317] tilcdc 4830e000.fb: fb0:  frame buffer device
[  703.052968] tilcdc 4830e000.fb: registered panic notifier
[  703.058950] [drm] Initialized tilcdc 1.0.0 20121205 on minor 0
[  703.065157] bone-capemgr bone_capemgr.9: slot #7: Applied #3 overlays.

Please show me how to configure 320x240 TFT LCD in Linux-3.8.13 ? For the AM3352 should we use da8xx-fb or ticdc ? Are there any reference DTS files ?

 

  • Pls help me,

    AM3352 without GPU, should we use drivers/gpu/drm/tilcdc or drivers/video/da8xx-fb.c ??? 
    In Linux-3.8-13/drivers/video/da8xx-fb.c, I got error message after running bellow code :
    fb_clk = devm_clk_get(&device->dev, "fck");
    	if (IS_ERR(fb_clk)) {
    		dev_err(&device->dev, "Can not get device clock\n");
    		return -ENODEV;
    }

    So I've changed to :

    fb_clk = clk_get(&device->dev, "lcdc_fck");

    The program can continue however kernel dump after accessing LCD controller registers

    "Unhandled fault: external abort on non-linefetch (0x1028)"

    The LCD controller maybe still not turned on properly, so register accessing is inhibited.