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.

How to add a new i2c client driver and mux setting in dts file.

Other Parts Discussed in Thread: TPS65910

Hi,

I am trying to insert my touchscreen driver module in linux 3.7 kernel for am335x sitara starter kit . In this architecture its look like i have to do modification for board specific changes  in dts file which is new for me.

i have done some changes in dts file to include my i2c driver as a module . I am not familiar with dts code structure so i am suspecting the mux setting is not happening properly.Can anyone help me to do modification to insert my module in "am335x-evmsk.dts" file . Or there is any other way to do boars specific changes.

 bellow is the kernel crash ...

U-Boot 2012.10 (Dec 04 2012 - 20:47:38)

I2C:   ready
DRAM:  256 MiB
WARNING: Caches not enabled
NAND:  No NAND device found!!!
0 MiB
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
*** Warning - readenv() failed, using default environment

musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
musb-hdrc: MHDRC RTL version 2.0
musb-hdrc: setup fifo_mode 4
musb-hdrc: 28/31 max ep, 16384/16384 memory
USB Peripheral mode controller at 47401000 using PIO, IRQ 0
musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
musb-hdrc: MHDRC RTL version 2.0
musb-hdrc: setup fifo_mode 4
musb-hdrc: 28/31 max ep, 16384/16384 memory
USB Host mode controller at 47401800 using PIO, IRQ 0
Net:   cpsw, usb_ether
Hit any key to stop autoboot:  0
U-Boot#
U-Boot#
U-Boot# mmc rescan 0
U-Boot# fatload mmc 0 80000000 am335x-evmsk.dtb
reading am335x-evmsk.dtb

9460 bytes read
U-Boot# fatload mmc 0 81000000 uImage
reading uImage

3892440 bytes read
U-Boot# fatload mmc 0 82000000 ramdisk.gz
reading ramdisk.gz

2069185 bytes read
U-Boot# setenv bootargs console=ttyO0,115200n8 mem=256M root=/dev/ram0 rw initrd=0x82000000,16MB ramdisk_size=65536 earlyprintk=serial
U-Boot# bootm 81000000 - 80000000
## Booting kernel from Legacy Image at 81000000 ...
   Image Name:   Linux-3.7.0-rc8-next-20121211-ga
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3892376 Bytes = 3.7 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 80000000
   Booting using the fdt blob at 0x80000000
   Loading Kernel Image ... OK
OK
   Loading Device Tree to 8fe2a000, end 8fe2f4f3 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 3.7.0-rc8-next-20121211-ga5a8073-dirty (samir@samir) (gcc version 4.5.3 20110311 (prerelease) (GCC) ) #9 SMP Wed Feb 13 18:13:04 EST 2013
[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: Generic AM33XX (Flattened Device Tree), model: TI AM335x EVM-SK
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] On node 0 totalpages: 65280
[    0.000000] free_area_init_node: node 0, pgdat c07b6b80, node_mem_map c0d15000
[    0.000000]   Normal zone: 512 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 64768 pages, LIFO batch:15
[    0.000000] AM335X ES1.0 (neon )
[    0.000000] PERCPU: Embedded 9 pages/cpu @c0f1f000 s12992 r8192 d15680 u36864
[    0.000000] pcpu-alloc: s12992 r8192 d15680 u36864 alloc=9*4096
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 64768
[    0.000000] Kernel command line: console=ttyO0,115200n8 mem=256M root=/dev/ram0 rw initrd=0x82000000,16MB ramdisk_size=65536 earlyprintk=serial
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] __ex_table already sorted, skipping sort
[    0.000000] Memory: 255MB = 255MB total
[    0.000000] Memory: 228988k/228988k available, 33156k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xd0800000 - 0xff000000   ( 744 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc06d4e90   (6964 kB)
[    0.000000]       .init : 0xc06d5000 - 0xc07262c0   ( 325 kB)
[    0.000000]       .data : 0xc0728000 - 0xc07b9590   ( 582 kB)
[    0.000000]        .bss : 0xc07b95b4 - 0xc0d142b0   (5484 kB)
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=2 to nr_cpu_ids=1.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[    0.000000] Total of 128 interrupts on 1 active controller
[    0.000000] OMAP clockevent source: GPTIMER1 at 24000000 Hz
[    0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
[    0.000000] OMAP clocksource: GPTIMER2 at 24000000 Hz
[    0.000000] Console: colour dummy device 80x30
[    0.000000] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
[    0.000000] ... MAX_LOCKDEP_SUBCLASSES:  8
[    0.000000] ... MAX_LOCK_DEPTH:          48
[    0.000000] ... MAX_LOCKDEP_KEYS:        8191
[    0.000000] ... CLASSHASH_SIZE:          4096
[    0.000000] ... MAX_LOCKDEP_ENTRIES:     16384
[    0.000000] ... MAX_LOCKDEP_CHAINS:      32768
[    0.000000] ... CHAINHASH_SIZE:          16384
[    0.000000]  memory used by lock dependency info: 3695 kB
[    0.000000]  per task-struct memory footprint: 1152 bytes
[    0.000988] Calibrating delay loop... 478.91 BogoMIPS (lpj=1867776)
[    0.085671] pid_max: default: 32768 minimum: 301
[    0.086151] Security Framework initialized
[    0.086315] Mount-cache hash table entries: 512
[    0.088546] BUG: spinlock bad magic on CPU#0, swapper/0/0
[    0.088588]  lock: atomic64_lock+0x280/0x400, .magic: 00000000, .owner: <none>/-1, .owner_cpu: 0
[    0.088636] [<c001af84>] (unwind_backtrace+0x0/0xf0) from [<c02c3570>] (do_raw_spin_lock+0x158/0x198)
[    0.088661] [<c02c3570>] (do_raw_spin_lock+0x158/0x198) from [<c04d8aec>] (_raw_spin_lock_irqsave+0x4c/0x58)
[    0.088682] [<c04d8aec>] (_raw_spin_lock_irqsave+0x4c/0x58) from [<c02cc2e4>] (atomic64_add_return+0x30/0x5c)
[    0.088715] [<c02cc2e4>] (atomic64_add_return+0x30/0x5c) from [<c01256bc>] (alloc_mnt_ns.clone.14+0x44/0xac)
[    0.088737] [<c01256bc>] (alloc_mnt_ns.clone.14+0x44/0xac) from [<c01260a4>] (create_mnt_ns+0xc/0x54)
[    0.088764] [<c01260a4>] (create_mnt_ns+0xc/0x54) from [<c06f4140>] (mnt_init+0x120/0x1d4)
[    0.088784] [<c06f4140>] (mnt_init+0x120/0x1d4) from [<c06f3cec>] (vfs_caches_init+0xe0/0x10c)
[    0.088805] [<c06f3cec>] (vfs_caches_init+0xe0/0x10c) from [<c06d579c>] (start_kernel+0x29c/0x300)
[    0.088824] [<c06d579c>] (start_kernel+0x29c/0x300) from [<80008078>] (0x80008078)
[    0.093750] CPU: Testing write buffer coherency: ok
[    0.094327] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[    0.094398] Setting up static identity map for 0x804de3c8 - 0x804de438
[    0.095730] Brought up 1 CPUs
[    0.095752] SMP: Total of 1 processors activated (478.91 BogoMIPS).
[    0.103092] ttyO0 used as console in debug mode: uart0 clocks will not be gated
[    0.161139] pinctrl core: initialized pinctrl subsystem
[    0.163113] regulator-dummy: no parameters
[    0.163978] NET: Registered protocol family 16
[    0.164633] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.165378] omap-gpmc omap-gpmc: GPMC revision 6.0
[    0.180871] gpiochip_add: registered GPIOs 0 to 31 on device: gpio
[    0.181091] OMAP GPIO hardware version 0.1
[    0.182846] gpiochip_add: registered GPIOs 32 to 63 on device: gpio
[    0.184610] gpiochip_add: registered GPIOs 64 to 95 on device: gpio
[    0.186337] gpiochip_add: registered GPIOs 96 to 127 on device: gpio
[    0.194535] No ATAGs?
[    0.194561] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.234494] bio: create slab <bio-0> at 0
[    0.285787] omap-dma-engine omap-dma-engine: OMAP DMA engine driver
[    0.286038] of_get_named_gpio_flags: can't parse gpios property
[    0.286532] vbat: 5000 mV
[    0.286764] of_get_named_gpio_flags: can't parse gpios property
[    0.287219] lis3_reg: no parameters
[    0.292310] SCSI subsystem initialized
[    0.293796] usbcore: registered new interface driver usbfs
[    0.294133] usbcore: registered new interface driver hub
[    0.294568] usbcore: registered new device driver usb
[    0.295826] omap_i2c 44e0b000.i2c: did not get pins for i2c error: -19
[    0.297163] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[    0.298156] ------------[ cut here ]------------
[    0.298200] WARNING: at kernel/irq/irqdomain.c:137 irq_domain_legacy_revmap+0x20/0x48()
[    0.298212] Modules linked in:
[    0.298267] [<c001af84>] (unwind_backtrace+0x0/0xf0) from [<c00421bc>] (warn_slowpath_common+0x4c/0x64)
[    0.298290] [<c00421bc>] (warn_slowpath_common+0x4c/0x64) from [<c00421f0>] (warn_slowpath_null+0x1c/0x24)
[    0.298310] [<c00421f0>] (warn_slowpath_null+0x1c/0x24) from [<c00a5a7c>] (irq_domain_legacy_revmap+0x20/0x48)
[    0.298334] [<c00a5a7c>] (irq_domain_legacy_revmap+0x20/0x48) from [<c00a60a4>] (irq_create_mapping+0x20/0x11c)
[    0.298354] [<c00a60a4>] (irq_create_mapping+0x20/0x11c) from [<c00a621c>] (irq_create_of_mapping+0x7c/0x100)
[    0.298388] [<c00a621c>] (irq_create_of_mapping+0x7c/0x100) from [<c0408008>] (irq_of_parse_and_map+0x2c/0x34)
[    0.298414] [<c0408008>] (irq_of_parse_and_map+0x2c/0x34) from [<c0408c58>] (of_i2c_register_devices+0x12c/0x1c4)
[    0.298449] [<c0408c58>] (of_i2c_register_devices+0x12c/0x1c4) from [<c03decc8>] (omap_i2c_probe+0x600/0x770)
[    0.298478] [<c03decc8>] (omap_i2c_probe+0x600/0x770) from [<c0320f30>] (platform_drv_probe+0x18/0x1c)
[    0.298501] [<c0320f30>] (platform_drv_probe+0x18/0x1c) from [<c031fcf0>] (driver_probe_device+0x84/0x224)
[    0.298522] [<c031fcf0>] (driver_probe_device+0x84/0x224) from [<c031ff24>] (__driver_attach+0x94/0x98)
[    0.298541] [<c031ff24>] (__driver_attach+0x94/0x98) from [<c031e5c0>] (bus_for_each_dev+0x50/0x7c)
[    0.298560] [<c031e5c0>] (bus_for_each_dev+0x50/0x7c) from [<c031f420>] (bus_add_driver+0xa0/0x240)
[    0.298579] [<c031f420>] (bus_add_driver+0xa0/0x240) from [<c0320458>] (driver_register+0x78/0x144)
[    0.298601] [<c0320458>] (driver_register+0x78/0x144) from [<c00086a4>] (do_one_initcall+0x34/0x180)
[    0.298624] [<c00086a4>] (do_one_initcall+0x34/0x180) from [<c04cfd8c>] (kernel_init+0x104/0x29c)
[    0.298656] [<c04cfd8c>] (kernel_init+0x104/0x29c) from [<c0013390>] (ret_from_fork+0x14/0x24)
[    0.298722] ---[ end trace 1b75b31a2719ed1c ]---
[    0.298735] ------------[ cut here ]------------
[    0.298752] WARNING: at kernel/irq/irqdomain.c:137 irq_domain_legacy_revmap+0x20/0x48()
[    0.298762] Modules linked in:
[    0.298789] [<c001af84>] (unwind_backtrace+0x0/0xf0) from [<c00421bc>] (warn_slowpath_common+0x4c/0x64)
[    0.298809] [<c00421bc>] (warn_slowpath_common+0x4c/0x64) from [<c00421f0>] (warn_slowpath_null+0x1c/0x24)
[    0.298829] [<c00421f0>] (warn_slowpath_null+0x1c/0x24) from [<c00a5a7c>] (irq_domain_legacy_revmap+0x20/0x48)
[    0.298849] [<c00a5a7c>] (irq_domain_legacy_revmap+0x20/0x48) from [<c00a621c>] (irq_create_of_mapping+0x7c/0x100)
[    0.298870] [<c00a621c>] (irq_create_of_mapping+0x7c/0x100) from [<c0408008>] (irq_of_parse_and_map+0x2c/0x34)
[    0.298893] [<c0408008>] (irq_of_parse_and_map+0x2c/0x34) from [<c0408c58>] (of_i2c_register_devices+0x12c/0x1c4)
[    0.298915] [<c0408c58>] (of_i2c_register_devices+0x12c/0x1c4) from [<c03decc8>] (omap_i2c_probe+0x600/0x770)
[    0.298936] [<c03decc8>] (omap_i2c_probe+0x600/0x770) from [<c0320f30>] (platform_drv_probe+0x18/0x1c)
[    0.298956] [<c0320f30>] (platform_drv_probe+0x18/0x1c) from [<c031fcf0>] (driver_probe_device+0x84/0x224)
[    0.298975] [<c031fcf0>] (driver_probe_device+0x84/0x224) from [<c031ff24>] (__driver_attach+0x94/0x98)
[    0.298993] [<c031ff24>] (__driver_attach+0x94/0x98) from [<c031e5c0>] (bus_for_each_dev+0x50/0x7c)
[    0.299011] [<c031e5c0>] (bus_for_each_dev+0x50/0x7c) from [<c031f420>] (bus_add_driver+0xa0/0x240)
[    0.299029] [<c031f420>] (bus_add_driver+0xa0/0x240) from [<c0320458>] (driver_register+0x78/0x144)
[    0.299048] [<c0320458>] (driver_register+0x78/0x144) from [<c00086a4>] (do_one_initcall+0x34/0x180)
[    0.299067] [<c00086a4>] (do_one_initcall+0x34/0x180) from [<c04cfd8c>] (kernel_init+0x104/0x29c)
[    0.299087] [<c04cfd8c>] (kernel_init+0x104/0x29c) from [<c0013390>] (ret_from_fork+0x14/0x24)
[    0.299098] ---[ end trace 1b75b31a2719ed1d ]---
[    0.303694] Switching to clocksource gp_timer
[    0.373030] NET: Registered protocol family 2
[    0.374006] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.374457] TCP bind hash table entries: 2048 (order: 4, 73728 bytes)
[    0.374753] TCP: Hash tables configured (established 2048 bind 2048)
[    0.374866] TCP: reno registered
[    0.374891] UDP hash table entries: 256 (order: 2, 20480 bytes)
[    0.374985] UDP-Lite hash table entries: 256 (order: 2, 20480 bytes)
[    0.375494] NET: Registered protocol family 1
[    0.376071] RPC: Registered named UNIX socket transport module.
[    0.376089] RPC: Registered udp transport module.
[    0.376100] RPC: Registered tcp transport module.
[    0.376110] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.376526] Trying to unpack rootfs image as initramfs...
[    0.377776] rootfs image is not initramfs (no cpio magic); looks like an initrd
[    0.478012] Freeing initrd memory: 16384K
[    0.478187] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.478641] CPU PMU: probing PMU on CPU 0
[    0.478673] hw perfevents: enabled with ARMv7 Cortex-A8 PMU driver, 5 counters available
[    0.634578] VFS: Disk quotas dquot_6.5.2
[    0.634766] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.636002] NFS: Registering the id_resolver key type
[    0.636123] Key type id_resolver registered
[    0.636138] Key type id_legacy registered
[    0.636201] jffs2: version 2.2. (NAND) (SUMMARY)  �© 2001-2006 Red Hat, Inc.
[    0.636510] msgmni has been set to 479
[    0.638077] io scheduler noop registered
[    0.638096] io scheduler deadline registered
[    0.638155] io scheduler cfq registered (default)
[    0.638906] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
[    0.641510] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.644834] omap_uart 44e09000.serial: did not get pins for uart0 error: -19
[    0.645077] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 88) is a OMAP UART0
[    1.812327] console [ttyO0] enabled
[    1.836459] brd: module loaded
[    1.850380] loop: module loaded
[    1.857268] mtdoops: mtd device (mtddev=name/number) must be supplied
[    1.864615] OneNAND driver initializing
[    1.873001] usbcore: registered new interface driver asix
[    1.879267] usbcore: registered new interface driver cdc_ether
[    1.885836] usbcore: registered new interface driver smsc95xx
[    1.892458] usbcore: registered new interface driver net1080
[    1.898810] usbcore: registered new interface driver cdc_subset
[    1.905311] usbcore: registered new interface driver zaurus
[    1.911618] usbcore: registered new interface driver cdc_ncm
[    1.918771] usbcore: registered new interface driver cdc_wdm
[    1.924806] Initializing USB Mass Storage driver...
[    1.930342] usbcore: registered new interface driver usb-storage
[    1.936711] USB Mass Storage support registered.
[    1.941911] usbcore: registered new interface driver usbtest
[    1.948756] mousedev: PS/2 mouse device common for all mice
[    1.955965]
[    1.955965]
[    1.955965]   1   irq=0    irq=0   add=38
[    1.955965]
[    1.964908]
[    1.964908]
[    1.964908]   1   irq=224    irq=e0   add=38
[    1.964908]
[    1.974045]
[    1.974045]
[    1.974045]
[    1.974045]
[    1.974045] #############################################==ft5x0x_ts_probe=
[    1.987564] ==kzalloc=
[    1.990035] ==i2c_set_clientdata=
[    1.993530] ==INIT_WORK=
[    1.996179] ==create_singlethread_workqueue=
[    2.000824] Unhandled fault: external abort on non-linefetch (0x1028) at 0xfa1ac140
[    2.008862] Internal error: : 1028 [#1] SMP ARM
[    2.013612] Modules linked in:
[    2.016827] CPU: 0    Tainted: G        W     (3.7.0-rc8-next-20121211-ga5a8073-dirty #9)
[    2.025424] PC is at _set_gpio_triggering+0x30/0x2b0
[    2.030633] LR is at gpio_irq_type+0x64/0x10c
[    2.035200] pc : [<c02d5a18>]    lr : [<c02d60d0>]    psr: 20000193
[    2.035200] sp : cf043db4  ip : fa1ac000  fp : c0d0dfa4
[    2.047228] r10: 0000004e  r9 : cf0add70  r8 : cf0bc410
[    2.052703] r7 : 20000193  r6 : cf0bc46c  r5 : 00000044  r4 : fa1ac140
[    2.059542] r3 : 00000001  r2 : 00000002  r1 : 00004000  r0 : cf0bc410
[    2.066385] Flags: nzCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
[    2.074135] Control: 10c5387d  Table: 80004019  DAC: 00000017
[    2.080157] Process swapper/0 (pid: 1, stack limit = 0xcf042240)
[    2.086452] Stack: (0xcf043db4 to 0xcf044000)
[    2.091020] 3da0:                                              00000002 cf0add40 cf0bc46c
[    2.099594] 3dc0: cf0adde4 cf0add40 c02d606c 00000000 c0797f04 000000e0 00000002 c00a2b0c
[    2.108166] 3de0: cf0adde4 cdc059c0 cf0add40 cdbf1840 000000e0 cf0add90 60000113 c00a2f74
[    2.116740] 3e00: c00a304c c01064a0 c07317d8 c005d50c cdc059c0 c03d768c 00000000 000000e0
[    2.125314] 3e20: cf0add40 cf0cd020 cdbf1840 c00a3094 c066e88c 00000022 00000001 cf0cd000
[    2.133887] 3e40: 00000001 c0d0be88 00000000 cdc059c0 c06fd488 c03d7458 c066e8cc cdc059c0
[    2.142461] 3e60: cf141e00 c07ad290 cf0cd000 c0d0be88 00000000 c07ad2b8 c07229d8 c06fd488
[    2.151035] 3e80: 00000000 c03db7f4 c03db770 cf0cd020 c0d0be78 c031fcf0 00000000 cf0cd020
[    2.159609] 3ea0: c07ad2b8 cf0cd054 00000000 c06d51c8 c06fd488 c031ff24 c07ad2b8 c031fe90
[    2.168182] 3ec0: 00000000 c031e5c0 cf0bcaa8 cf1f2f90 c07ad2b8 c07ad5e0 cdc05a40 c031f420
[    2.176755] 3ee0: c066e960 c07ad2b8 c07ad2b8 c07b95c0 cf042000 00000000 c06d51c8 c0320458
[    2.185326] 3f00: c07ad5e0 c07ad290 c07b95c0 cf042000 00000000 c06d51c8 c06fd488 c03dbb3c
[    2.193897] 3f20: 00000000 c0707584 c07b95c0 c00086a4 00000002 00000000 c06aa690 c06fd488
[    2.202471] 3f40: 0000009a c0061ce0 c066c670 c06a9cf0 00000006 00000006 60000113 c0707584
[    2.211044] 3f60: 00000007 c07b95c0 c0707564 c06d51c8 c07229d8 0000009a 00000000 c04cfd8c
[    2.219616] 3f80: 00000006 00000006 c06d51c8 00000000 00000000 c04cfc88 00000000 00000000
[    2.228188] 3fa0: 00000000 00000000 00000000 c0013390 00000000 00000000 00000000 00000000
[    2.236760] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    2.245331] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000 ffcdfe5d bfdd5ff6
[    2.253922] [<c02d5a18>] (_set_gpio_triggering+0x30/0x2b0) from [<cf0adde4>] (0xcf0adde4)
[    2.262499] Code: 0a000063 e3a03001 e08c4004 e1a01113 (e5943000)
[    2.268895] ---[ end trace 1b75b31a2719ed1e ]---
[    2.273880] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    2.273880]

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------

ft5x0x_ts is my driver .

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------

bellow is my code for am335x-evmsk.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.
 */

/*
 * AM335x Starter Kit
 * http://www.ti.com/tool/tmdssk3358
 */

/dts-v1/;

/include/ "am33xx.dtsi"

/ {
    model = "TI AM335x EVM-SK";
    compatible = "ti,am335x-evmsk", "ti,am33xx";

    cpus {
        cpu@0 {
            cpu0-supply = <&vdd1_reg>;
        };
    };

    memory {
        device_type = "memory";
        reg = <0x80000000 0x10000000>; /* 256 MB */
    };

    am33xx_pinmux: pinmux@44e10800 {
        pinctrl-names = "default";
        pinctrl-0 = <&user_leds_s0 &gpio_keys_s0>;

        user_leds_s0: user_leds_s0 {
            pinctrl-single,pins = <
                0x10 0x7    /* gpmc_ad4.gpio1_4, OUTPUT | MODE7 */
                0x14 0x7    /* gpmc_ad5.gpio1_5, OUTPUT | MODE7 */
                0x18 0x7    /* gpmc_ad6.gpio1_6, OUTPUT | MODE7 */
                0x1c 0x7    /* gpmc_ad7.gpio1_7, OUTPUT | MODE7 */
            >;
        };

        gpio_keys_s0: gpio_keys_s0 {
            pinctrl-single,pins = <
                0x94 0x27    /* gpmc_oen_ren.gpio2_3, INPUT | MODE7 */
                0x90 0x27    /* gpmc_advn_ale.gpio2_2, INPUT | MODE7 */
                0x70 0x27    /* gpmc_wait0.gpio0_30, INPUT | MODE7 */
                0x9c 0x27    /* gpmc_ben0_cle.gpio2_5, INPUT | MODE7 */
                0x8c 0x27    /* gpio2_1, INPUT | MODE7 changed my amir*/
                0x88 0x27    /* gpio2_0, INPUT | MODE7 changed my amir*/

            >;
        };
    };

    ocp {
        uart1: serial@44e09000 {
            status = "okay";
        };

        i2c1: i2c@44e0b000 {
            status = "okay";
            clock-frequency = <400000>;

            tps: tps@2d {
                reg = <0x2d>;
            };

            ft5x06_ts: ft5x06_ts@38 {
                compatible = "ti,ft5x06_ts","ti,am335x-evm", "ti,am33xx", "ti,omap3";    /*added samir driver*/
                reg = <0x38>;
                interrupts = <224>;
            };
        };
    };

    vbat: fixedregulator@0 {
        compatible = "regulator-fixed";
        regulator-name = "vbat";
        regulator-min-microvolt = <5000000>;
        regulator-max-microvolt = <5000000>;
        regulator-boot-on;
    };

    lis3_reg: fixedregulator@1 {
        compatible = "regulator-fixed";
        regulator-name = "lis3_reg";
        regulator-boot-on;
    };

    leds {
        compatible = "gpio-leds";

        led@1 {
            label = "evmsk:green:usr0";
            gpios = <&gpio2 4 0>;
            default-state = "off";
        };

        led@2 {
            label = "evmsk:green:usr1";
            gpios = <&gpio2 5 0>;
            default-state = "off";
        };

        led@3 {
            label = "evmsk:green:mmc0";
            gpios = <&gpio2 6 0>;
            linux,default-trigger = "mmc0";
            default-state = "off";
        };

        led@4 {
            label = "evmsk:green:heartbeat";
            gpios = <&gpio2 7 0>;
            linux,default-trigger = "heartbeat";
            default-state = "off";
        };
    };

    gpio_buttons: gpio_buttons@0 {
        compatible = "gpio-keys";
        #address-cells = <1>;
        #size-cells = <0>;

        switch@1 {
            label = "button0";
            linux,code = <0x100>;
            gpios = <&gpio3 3 0>;
        };

        switch@2 {
            label = "button1";
            linux,code = <0x101>;
            gpios = <&gpio3 2 0>;
        };

        switch@3 {
            label = "button2";
            linux,code = <0x102>;
            gpios = <&gpio1 30 0>;
            gpio-key,wakeup;
        };

        switch@4 {
            label = "button3";
            linux,code = <0x103>;
            gpios = <&gpio3 5 0>;
        };
    };
};

/include/ "tps65910.dtsi"

&tps {
    vcc1-supply = <&vbat>;
    vcc2-supply = <&vbat>;
    vcc3-supply = <&vbat>;
    vcc4-supply = <&vbat>;
    vcc5-supply = <&vbat>;
    vcc6-supply = <&vbat>;
    vcc7-supply = <&vbat>;
    vccio-supply = <&vbat>;

    regulators {
        vrtc_reg: regulator@0 {
            regulator-always-on;
        };

        vio_reg: regulator@1 {
            regulator-always-on;
        };

        vdd1_reg: regulator@2 {
            /* VDD_MPU voltage limits 0.95V - 1.26V with +/-4% tolerance */
            regulator-name = "vdd_mpu";
            regulator-min-microvolt = <912500>;
            regulator-max-microvolt = <1312500>;
            regulator-boot-on;
            regulator-always-on;
        };

        vdd2_reg: regulator@3 {
            /* VDD_CORE voltage limits 0.95V - 1.1V with +/-4% tolerance */
            regulator-name = "vdd_core";
            regulator-min-microvolt = <912500>;
            regulator-max-microvolt = <1150000>;
            regulator-boot-on;
            regulator-always-on;
        };

        vdd3_reg: regulator@4 {
            regulator-always-on;
        };

        vdig1_reg: regulator@5 {
            regulator-always-on;
        };

        vdig2_reg: regulator@6 {
            regulator-always-on;
        };

        vpll_reg: regulator@7 {
            regulator-always-on;
        };

        vdac_reg: regulator@8 {
            regulator-always-on;
        };

        vaux1_reg: regulator@9 {
            regulator-always-on;
        };

        vaux2_reg: regulator@10 {
            regulator-always-on;
        };

        vaux33_reg: regulator@11 {
            regulator-always-on;
        };

        vmmc_reg: regulator@12 {
            regulator-always-on;
        };
    };
};