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.

Linux/PROCESSOR-SDK-AM335X: AM335X Resistive Touch (AR1021-i2C) Controller Device Tree

Part Number: PROCESSOR-SDK-AM335X
Other Parts Discussed in Thread: TPS65217

Tool/software: Linux

Hi all,

I am experiencing issues with the device tree setup of the AR1021 Resistive Touch Controller. It seems that the driver is detecting the controller and attaching it to its address correctly but, I am having issues configuring the interrupt pin and I am getting the following from my boot log:

[    3.636603] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
[    5.653150] pinctrl-single 44e10800.pinmux: mux offset out of range: 0xfffff99c (0x)
[    5.661278] pinctrl-single 44e10800.pinmux: could not add functions for ar1021_pinsx

Device Tree:

&i2c0 {
            status = "okay";
            pinctrl-names = "default";
            pinctrl-0 = <&i2c0_pins>;

            // configuration start
            clock-frequency = <100000>;

            #address-cells = <1>;
            #size-cells = <0>;

            ar1021_i2c:  ar1021_i2c@4d {
                #address-cells = <1>;
                #size-cells = <0>;
                pinctrl-names = "default";
                pinctrl-0 = <&ar1021_pins>;

                compatible = "microchip,ar1021-i2c";
                reg = <0x4d>;
                interrupt-parent = <&gpio3>;
                interrupts = <17 IRQ_TYPE_LEVEL_HIGH>;
                touchscreen-offset-x=<250>;
                touchscreen-offset-y=<300>;

                touchscreen-inverted-y;
            };
};

&am33xx_pinmux {

ar1021_pins: ar1021_pins {
    pinctrl-single,pins = <
        AM33XX_IOPAD(0x19c, PIN_INPUT | MUX_MODE7) /* (C12) mcasp0_ahclkr.gpio3[17] */
    >;
};

Kernel Version: 4.9.119-bone11

Complete Boot Log:

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.119-bone11 (root@oscar-ideacentre-300S-08IHH) (gcc ve8
[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt:Machine model: TI AM335x BeagleBone Black
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] cma: Reserved 48 MiB at 0x9d000000
[    0.000000] Memory policy: Data cache writeback
[    0.000000] On node 0 totalpages: 131072
[    0.000000] free_area_init_node: node 0, pgdat c13d5194, node_mem_map dcb61000
[    0.000000]   Normal zone: 1152 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 131072 pages, LIFO batch:31
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] AM335X ES2.1 (sgx neon)
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768                           
[    0.000000] pcpu-alloc: [0] 0                                                       
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 120
[    0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/mmcblk0p1 ro roott
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)                     
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)         
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)          
[    0.000000] Memory: 449572K/524288K available (12288K kernel code, 1059K rwdata, 40)
[    0.000000] Virtual kernel memory layout:                                           
                   vector  : 0xffff0000 - 0xffff1000   (   4 kB)                       
                   fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)                       
                   vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)                       
                   lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)                       
                   pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)                       
                   modules : 0xbf000000 - 0xbfe00000   (  14 MB)                       
                     .text : 0xc0008000 - 0xc0d00000   (13280 kB)                      
                     .init : 0xc1200000 - 0xc1300000   (1024 kB)                       
                     .data : 0xc1300000 - 0xc1408d1c   (1060 kB)                       
                      .bss : 0xc140a000 - 0xc14b4490   ( 682 kB)                       
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1              
[    0.000000] Preemptible hierarchical RCU implementation.                            
[    0.000000]  Build-time adjustment of leaf fanout to 32.                            
[    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] OMAP clockevent source: timer2 at 24000000 Hz                           
[    0.000016] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971s
[    0.000038] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_s
[    0.000050] OMAP clocksource: timer1 at 24000000 Hz                                 
[    0.000569] clocksource_probe: no matching clocksources found                       
[    0.000750] Console: colour dummy device 80x30                                      
[    0.000777] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'              
[    0.000784] This ensures that you still see kernel messages. Please                 
[    0.000791] update your kernel commandline.                                         
[    0.000813] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)                 
[    0.088884] pid_max: default: 32768 minimum: 301                                    
[    0.089134] Security Framework initialized                                          
[    0.089147] Yama: becoming mindful.                                                 
[    0.089183] AppArmor: AppArmor disabled by boot time parameter                      
[    0.089378] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)             
[    0.089391] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)        
[    0.090404] CPU: Testing write buffer coherency: ok                                 
[    0.090469] ftrace: allocating 37499 entries in 110 pages                           
[    0.196449] Setting up static identity map for 0x80100000 - 0x80100058              
[    0.199913] EFI services will not be available.                                     
[    0.201580] devtmpfs: initialized                                                   
[    0.216946] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[    0.217391] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idles
[    0.217417] futex hash table entries: 256 (order: -1, 3072 bytes)                   
[    0.221075] xor: measuring software checksum speed                                  
[    0.318913]    arm4regs  :  1220.000 MB/sec                                         
[    0.418855]    8regs     :   958.000 MB/sec                                         
[    0.518843]    32regs    :  1090.400 MB/sec                                         
[    0.618843]    neon      :  1666.800 MB/sec                                         
[    0.618852] xor: using function: neon (1666.800 MB/sec)                             
[    0.618872] pinctrl core: initialized pinctrl subsystem                             
[    0.620180] NET: Registered protocol family 16                                      
[    0.622425] DMA: preallocated 256 KiB pool for atomic coherent allocations          
[    0.639275] omap_hwmod: debugss: _wait_target_disable failed                        
[    0.708870] cpuidle: using governor menu                                            
[    0.715121] OMAP GPIO hardware version 0.1                                          
[    0.731489] No ATAGs?                                                               
[    0.731516] hw-breakpoint: debug architecture 0x4 unsupported.                      
[    0.938990] raid6: int32x1  gen()   251 MB/s                                        
[    1.108904] raid6: int32x1  xor()   218 MB/s                                        
[    1.279012] raid6: int32x2  gen()   327 MB/s                                        
[    1.448865] raid6: int32x2  xor()   265 MB/s                                        
[    1.618912] raid6: int32x4  gen()   306 MB/s                                        
[    1.788889] raid6: int32x4  xor()   246 MB/s                                        
[    1.958843] raid6: int32x8  gen()   295 MB/s                                        
[    2.128852] raid6: int32x8  xor()   210 MB/s                                        
[    2.298877] raid6: neonx1   gen()  1455 MB/s                                        
[    2.468853] raid6: neonx1   xor()   845 MB/s                                        
[    2.618839] random: fast init done                                                  
[    2.638862] raid6: neonx2   gen()  1919 MB/s                                        
[    2.808842] raid6: neonx2   xor()  1195 MB/s                                        
[    2.978863] raid6: neonx4   gen()  1955 MB/s                                        
[    3.148854] raid6: neonx4   xor()  1210 MB/s                                        
[    3.318873] raid6: neonx8   gen()  1097 MB/s                                        
[    3.488842] raid6: neonx8   xor()   782 MB/s                                        
[    3.488850] raid6: using algorithm neonx4 gen() 1955 MB/s                           
[    3.488857] raid6: .... xor() 1210 MB/s, rmw enabled                                
[    3.488864] raid6: using intx1 recovery algorithm                                   
[    3.496669] edma 49000000.edma: TI EDMA DMA engine driver                           
[    3.498992] SCSI subsystem initialized                                              
[    3.499353] libata version 3.00 loaded.                                             
[    3.499675] usbcore: registered new interface driver usbfs                          
[    3.499746] usbcore: registered new interface driver hub                            
[    3.499841] usbcore: registered new device driver usb                               
[    3.500353] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44ce
[    3.500403] omap_i2c 4819c000.i2c: could not find pctldev for node /ocp/l4_wkup@44ce
[    3.500512] media: Linux media interface: v0.10                                     
[    3.500566] Linux video capture interface: v2.00                                    
[    3.500641] pps_core: LinuxPPS API ver. 1 registered                                
[    3.500649] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <g>
[    3.500671] PTP clock support registered                                            
[    3.501169] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400                   
[    3.501812] Advanced Linux Sound Architecture Driver Initialized.                   
[    3.503072] NetLabel: Initializing                                                  
[    3.503087] NetLabel:  domain hash size = 128                                       
[    3.503092] NetLabel:  protocols = UNLABELED CIPSOv4                                
[    3.503174] NetLabel:  unlabeled traffic allowed by default                         
[    3.503840] clocksource: Switched to clocksource timer1                             
[    3.594025] VFS: Disk quotas dquot_6.6.0                                            
[    3.594124] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)         
[    3.605912] NET: Registered protocol family 2                                       
[    3.606680] TCP established hash table entries: 4096 (order: 2, 16384 bytes)        
[    3.606726] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)               
[    3.606765] TCP: Hash tables configured (established 4096 bind 4096)                
[    3.606836] UDP hash table entries: 256 (order: 0, 4096 bytes)                      
[    3.606854] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)                 
[    3.607002] NET: Registered protocol family 1                                       
[    3.607591] RPC: Registered named UNIX socket transport module.                     
[    3.607605] RPC: Registered udp transport module.                                   
[    3.607611] RPC: Registered tcp transport module.                                   
[    3.607618] RPC: Registered tcp NFSv4.1 backchannel transport module.               
[    3.608343] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters avaie
[    3.610533] audit: initializing netlink subsys (disabled)                           
[    3.610630] audit: type=2000 audit(3.540:1): initialized                            
[    3.611665] workingset: timestamp_bits=14 max_order=17 bucket_order=3               
[    3.620725] zbud: loaded                                                            
[    3.624412] NFS: Registering the id_resolver key type                               
[    3.624465] Key type id_resolver registered                                         
[    3.624474] Key type id_legacy registered                                           
[    3.624493] nfs4filelayout_init: NFSv4 File Layout Driver Registering...            
[    3.624815] fuse init (API version 7.26)                                            
[    3.625748] orangefs_debugfs_init: called with debug mask: :none: :0:               
[    3.625991] orangefs_init: module version upstream loaded                           
[    3.626002] SGI XFS with ACLs, security attributes, realtime, no debug enabled      
[    3.634677] Key type asymmetric registered                                          
[    3.634700] Asymmetric key parser 'x509' registered                                 
[    3.635034] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)    
[    3.635250] io scheduler noop registered                                            
[    3.635262] io scheduler deadline registered                                        
[    3.635519] io scheduler cfq registered (default)                                   
[    3.636603] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568        
[    3.638907] backlight supply power not found, using dummy regulator                 
[    3.640378] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle            
[    3.641396] Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled                
[    3.644059] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 158, base_baud = 300000
[    4.475779] console [ttyS0] enabled                                                 
[    4.481332] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20             
[    4.488286] [drm] Initialized                                                       
[    4.493180] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).             
[    4.499971] [drm] No driver support for vblank timestamp query.                     
[    4.563874] ------------[ cut here ]------------                                    
[    4.563918] WARNING: CPU: 0 PID: 1 at drivers/gpu/drm/drm_atomic_helper.c:1140 drm_c
[    4.563922] [CRTC:24] vblank wait timed out                                         
[    4.563930] Modules linked in:                                                      
[    4.563941] CPU: 0 PID: 1 Comm: swapper Not tainted 4.9.119-bone11 #18              
[    4.563944] Hardware name: Generic AM33XX (Flattened Device Tree)                   
[    4.563980] [<c0110e50>] (unwind_backtrace) from [<c010d7b4>] (show_stack+0x20/0x24)
[    4.563996] [<c010d7b4>] (show_stack) from [<c06efd34>] (dump_stack+0x24/0x28)      
[    4.564019] [<c06efd34>] (dump_stack) from [<c0135930>] (__warn+0xf4/0x10c)         
[    4.564031] [<c0135930>] (__warn) from [<c013599c>] (warn_slowpath_fmt+0x54/0x70)   
[    4.564044] [<c013599c>] (warn_slowpath_fmt) from [<c07d5f88>] (drm_atomic_helper_w)
[    4.564067] [<c07d5f88>] (drm_atomic_helper_wait_for_vblanks) from [<c080d89c>] (ti)
[    4.564083] [<c080d89c>] (tilcdc_commit) from [<c07fab08>] (drm_atomic_commit+0x5c/)
[    4.564098] [<c07fab08>] (drm_atomic_commit) from [<c07dc208>] (restore_fbdev_mode+)
[    4.564110] [<c07dc208>] (restore_fbdev_mode) from [<c07dd2dc>] (drm_fb_helper_rest)
[    4.564120] [<c07dd2dc>] (drm_fb_helper_restore_fbdev_mode_unlocked) from [<c07dd36)
[    4.564132] [<c07dd364>] (drm_fb_helper_set_par) from [<c074b2ec>] (fbcon_init+0x4f)
[    4.564151] [<c074b2ec>] (fbcon_init) from [<c07a4794>] (visual_init+0xcc/0x110)    
[    4.564163] [<c07a4794>] (visual_init) from [<c07a5dfc>] (do_bind_con_driver+0x1bc/)
[    4.564174] [<c07a5dfc>] (do_bind_con_driver) from [<c07a63dc>] (do_take_over_conso)
[    4.564183] [<c07a63dc>] (do_take_over_console) from [<c074b3bc>] (do_fbcon_takeove)
[    4.564193] [<c074b3bc>] (do_fbcon_takeover) from [<c074eec0>] (fbcon_event_notify+)
[    4.564212] [<c074eec0>] (fbcon_event_notify) from [<c01599c0>] (notifier_call_chai)
[    4.564224] [<c01599c0>] (notifier_call_chain) from [<c0159ec0>] (__blocking_notifi)
[    4.564235] [<c0159ec0>] (__blocking_notifier_call_chain) from [<c0159f00>] (blocki)
[    4.564249] [<c0159f00>] (blocking_notifier_call_chain) from [<c07551c8>] (fb_notif)
[    4.564260] [<c07551c8>] (fb_notifier_call_chain) from [<c07572b4>] (register_frame)
[    4.564271] [<c07572b4>] (register_framebuffer) from [<c07dd660>] (drm_fb_helper_in)
[    4.564281] [<c07dd660>] (drm_fb_helper_initial_config) from [<c07de01c>] (drm_fbde)
[    4.564290] [<c07de01c>] (drm_fbdev_cma_init_with_funcs) from [<c07de0bc>] (drm_fbd)
[    4.564301] [<c07de0bc>] (drm_fbdev_cma_init) from [<c080d788>] (tilcdc_load+0x62c/)
[    4.564310] [<c080d788>] (tilcdc_load) from [<c07e8534>] (drm_dev_register+0xc0/0xe)
[    4.564321] [<c07e8534>] (drm_dev_register) from [<c07e9ba8>] (drm_platform_init+0x)
[    4.564331] [<c07e9ba8>] (drm_platform_init) from [<c080d998>] (tilcdc_pdev_probe+0)
[    4.564351] [<c080d998>] (tilcdc_pdev_probe) from [<c081b958>] (platform_drv_probe+)
[    4.564363] [<c081b958>] (platform_drv_probe) from [<c08193e4>] (driver_probe_devic)
[    4.564373] [<c08193e4>] (driver_probe_device) from [<c081980c>] (__driver_attach+0)
[    4.564383] [<c081980c>] (__driver_attach) from [<c0816f40>] (bus_for_each_dev+0x8c)
[    4.564393] [<c0816f40>] (bus_for_each_dev) from [<c0818c10>] (driver_attach+0x2c/0)
[    4.564403] [<c0818c10>] (driver_attach) from [<c0818644>] (bus_add_driver+0x16c/0x)
[    4.564413] [<c0818644>] (bus_add_driver) from [<c081a3ac>] (driver_register+0x88/0)
[    4.564423] [<c081a3ac>] (driver_register) from [<c081b8a4>] (__platform_driver_reg)
[    4.564443] [<c081b8a4>] (__platform_driver_register) from [<c124a9f0>] (tilcdc_drm)
[    4.564456] [<c124a9f0>] (tilcdc_drm_init) from [<c0101b8c>] (do_one_initcall+0x68/)
[    4.564476] [<c0101b8c>] (do_one_initcall) from [<c1200fc0>] (kernel_init_freeable+)
[    4.564500] [<c1200fc0>] (kernel_init_freeable) from [<c0cae454>] (kernel_init+0x18)
[    4.564517] [<c0cae454>] (kernel_init) from [<c0108f10>] (ret_from_fork+0x14/0x24)  
[    4.564532] ---[ end trace 10cfcc05a75e1efb ]---                                    
[    4.573932] Console: switching to colour frame buffer device 240x45                 
[    4.988690] tilcdc 4830e000.lcdc: fb0:  frame buffer device                         
[    5.023878] [drm] Initialized tilcdc 1.0.0 20121205 on minor 0                      
[    5.033522] libphy: Fixed MDIO Bus: probed                                          
[    5.103928] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6                   
[    5.110136] davinci_mdio 4a101000.mdio: detected phy mask fffffffe                  
[    5.116757] davinci_mdio: dt: updated phy_id[0] from phy_mask[fffffffe]             
[    5.124559] libphy: 4a101000.mdio: probed                                           
[    5.128610] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver SMS0
[    5.138598] cpsw 4a100000.ethernet: Detected MACID = c8:fd:19:c5:e4:a8              
[    5.147125] usbcore: registered new interface driver usb-storage                    
[    5.155163] 47401300.usb-phy supply vcc not found, using dummy regulator            
[    5.166762] 47401b00.usb-phy supply vcc not found, using dummy regulator            
[    5.176938] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver                       
[    5.182848] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number1
[    5.191018] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002           
[    5.197873] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1      
[    5.205144] usb usb1: Product: MUSB HDRC host driver                                
[    5.210142] usb usb1: Manufacturer: Linux 4.9.119-bone11 musb-hcd                   
[    5.216278] usb usb1: SerialNumber: musb-hdrc.1.auto                                
[    5.222090] hub 1-0:1.0: USB hub found                                              
[    5.226091] hub 1-0:1.0: 1 port detected                                            
[    5.240430] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0        
[    5.248633] i2c /dev entries driver                                                 
[    5.254153] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec          
[    5.261506] softdog: initialized. soft_noboot=0 soft_margin=60 sec soft_panic=0 (no)
[    5.271338] omap_hsmmc 48060000.mmc: Got CD GPIO                                    
[    5.395092] ledtrig-cpu: registered to indicate activity on CPUs                    
[    5.401436] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2                       
[    5.407789] omap-aes 53500000.aes: will run requests pump with realtime priority    
[    5.419730] omap-sham 53100000.sham: hw accel on OMAP rev 4.3                       
[    5.427272] hidraw: raw HID events driver (C) Jiri Kosina                           
[    5.433516] usbcore: registered new interface driver usbhid                         
[    5.439277] usbhid: USB HID core driver                                             
[    5.443497]  remoteproc0: wkup_m3 is available                                      
[    5.449223]  remoteproc0: Note: remoteproc is still under development and considere.
[    5.458387]  remoteproc0: THE BINARY FORMAT IS NOT YET FINALIZED, and backward comp.
[    5.472523] wireguard: WireGuard 0.0.20180809 loaded. See www.wireguard.com for inf.
[    5.481357] wireguard: Copyright (C) 2015-2018 Jason A. Donenfeld <Jason@zx2c4.com>.
[    5.492052] NET: Registered protocol family 10                                      
[    5.497945] mip6: Mobile IPv6                                                       
[    5.501010] mmc0: host does not support reading read-only switch, assuming write-ene
[    5.509290] mmc0: new high speed SDHC card at address aaaa                          
[    5.510108] mmcblk0: mmc0:aaaa SL16G 14.8 GiB                                       
[    5.516716]  mmcblk0: p1                                                            
[    5.524772] NET: Registered protocol family 17                                      
[    5.529364] Key type dns_resolver registered                                        
[    5.533654] mpls_gso: MPLS GSO support                                              
[    5.537705] omap_voltage_late_init: Voltage driver support not added                
[    5.544358] ThumbEE CPU extension supported.                                        
[    5.548663] Registering SWP/SWPB emulation handler                                  
[    5.554499] registered taskstats version 1                                          
[    5.558749] zswap: loaded using pool lzo/zbud                                       
[    5.565800] Btrfs loaded, crc32c=crc32c-generic                                     
[    5.571954] Key type encrypted registered                                           
[    5.627619] input: tps65217_pwr_but as /devices/platform/ocp/44e0b000.i2c/i2c-0/0-00
[    5.640194] tps65217 0-0024: TPS65217 ID 0xe version 1.2                            
[    5.646052] at24 0-0050: 32768 byte 24c256 EEPROM, writable, 1 bytes/write          
[    5.653150] pinctrl-single 44e10800.pinmux: mux offset out of range: 0xfffff99c (0x)
[    5.661278] pinctrl-single 44e10800.pinmux: could not add functions for ar1021_pinsx
[    5.670781] input: ar1021 I2C Touchscreen as /devices/platform/ocp/44e0b000.i2c/i2c1
[    5.680813] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 100 kHz                         
[    5.687941] at24 2-0054: 32768 byte 24c256 EEPROM, writable, 1 bytes/write          
[    5.695249] at24 2-0055: 32768 byte 24c256 EEPROM, writable, 1 bytes/write          
[    5.702516] at24 2-0056: 32768 byte 24c256 EEPROM, writable, 1 bytes/write          
[    5.709761] at24 2-0057: 32768 byte 24c256 EEPROM, writable, 1 bytes/write          
[    5.716751] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 100 kHz                         
[    5.723202]  remoteproc0: powering up wkup_m3                                       
[    5.727692]  remoteproc0: Booting fw image am335x-pm-firmware.elf, size 217168      
[    5.735380]  remoteproc0: remote processor wkup_m3 is now up                        
[    5.741079] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x193          
[    5.762895] bone_capemgr bone_capemgr: Baseboard: 'A335BNLT,000C,1823BBBG0042'      
[    5.770235] bone_capemgr bone_capemgr: compatible-baseboard=ti,beaglebone-black - #4
[    5.805522] bone_capemgr bone_capemgr: slot #0: No cape found                       
[    5.834406] bone_capemgr bone_capemgr: slot #1: No cape found                       
[    5.864925] bone_capemgr bone_capemgr: slot #2: No cape found                       
[    5.895456] bone_capemgr bone_capemgr: slot #3: No cape found                       
[    5.901294] bone_capemgr bone_capemgr: initialized OK.                              
[    5.909379] omap_rtc 44e3e000.rtc: setting system clock to 2000-01-01 00:00:01 UTC )
[    5.918205] of_cfs_init                                                             
[    5.920771] of_cfs_init: OK                                                         
[    5.924198] PM: Hibernation image not present or could not be loaded.               
[    5.924320] ALSA device list:                                                       
[    5.927396]   No soundcards found.                                                  
[    5.946240] EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Opts: ()
[    5.954588] VFS: Mounted root (ext4 filesystem) readonly on device 179:1.           
[    5.967283] devtmpfs: mounted                                                       
[    5.971629] Freeing unused kernel memory: 1024K                                     
[    6.373085] systemd[1]: System time before build time, advancing clock.             
[    6.442897] ip_tables: (C) 2000-2006 Netfilter Core Team                            
[    6.464286] random: systemd: uninitialized urandom read (16 bytes read)             
[    6.474078] random: systemd: uninitialized urandom read (16 bytes read)             
[    6.492926] systemd[1]: systemd 232 running in system mode. (+PAM +AUDIT +SELINUX +)
[    6.511934] systemd[1]: Detected architecture arm.                                  
[    6.548138] systemd[1]: Set hostname to <arm>.                                      
[    6.713052] random: systemd-gpt-aut: uninitialized urandom read (16 bytes read)     
[    7.130761] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.         
[    7.175499] systemd[1]: Created slice System Slice.                                 
[    7.204608] systemd[1]: Listening on Journal Socket (/dev/log).                     
[    7.234596] systemd[1]: Listening on udev Control Socket.                           
[    7.265188] systemd[1]: Created slice User and Session Slice.                       
[    7.294182] systemd[1]: Reached target Slices.                                      
[    7.325169] systemd[1]: Created slice system-serial\x2dgetty.slice.                 
[    8.407055] EXT4-fs (mmcblk0p1): re-mounted. Opts: errors=remount-ro                
[    8.983665] systemd-journald[125]: Received request to flush runtime journal from P1
[   10.644487] net eth0: initializing cpsw version 1.12 (0)                            
[   10.774692] SMSC LAN8710/LAN8720 4a101000.mdio:00: attached PHY driver [SMSC LAN871)
[   10.889430] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready                      
[   12.094078] nf_conntrack version 0.5.0 (8192 buckets, 32768 max)                    
[   12.366571] Bluetooth: Core ver 2.22                                                
[   12.383745] NET: Registered protocol family 31                                      
[   12.416293] Bluetooth: HCI device and connection manager initialized                
[   12.451888] Bluetooth: HCI socket layer initialized                                 
[   12.479412] Bluetooth: L2CAP socket layer initialized                               
[   12.507457] Bluetooth: SCO socket layer initialized                                 
[   12.944758] cpsw 4a100000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx
[   12.990538] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready                 
[   13.170354] 8021q: 802.1Q VLAN Support v1.8                                         
[   13.204225] 8021q: adding VLAN 0 to HW filter on device eth0                        
[   14.126829] using random self ethernet address                                      
[   14.131323] using random host ethernet address                                      
[   14.179288] using random self ethernet address                                      
[   14.189082] using random host ethernet address                                      
[   14.300327] usb0: HOST MAC c8:fd:19:c5:e4:a9                                        
[   14.315211] usb0: MAC c8:fd:19:c5:e4:aa                                             
[   14.334839] usb1: HOST MAC c8:fd:19:c5:e4:ac                                        
[   14.359540] usb1: MAC c8:fd:19:c5:e4:ad                                             
[   14.764055] configfs-gadget gadget: high-speed config #1: c                         
[   14.923367] IPv6: ADDRCONF(NETDEV_UP): usb1: link is not ready                      
[   18.039376] CAN device driver interface                                             
[   18.324426] c_can_platform 481d0000.can: c_can_platform device registered (regs=fa1)
[  171.304854] sysrq: SysRq : HELP : loglevel(0-9) reboot(b) crash(c) terminate-all-ta
[  174.482388] sysrq: SysRq : HELP : loglevel(0-9) reboot(b) crash(c) terminate-all-ta
[  177.482267] sysrq: SysRq : HELP : loglevel(0-9) reboot(b) crash(c) terminate-all-ta
[  294.390263] random: crng init done                                                  
[  294.393753] random: 7 urandom warning(s) missed due to ratelimiting

I have tried a few different methods to configure the interrupt pin with the same result. Any help would be greatly appreciated.

Regards,

Oscar

  • Hello Oscar,

    Why are you doing separate pinmuxing for that one i2c pin? TI does not own or support AR1021, but when I look at the device tree bindings documentation for AR1021 in ti-processor-sdk-am335x-evm-.../board-support/linux-.../Documentation/devicetree/bindings/input/touchscreen/ar1021.txt it looks different from what you are doing.

    Regards,
    Nick