PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2784
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: ads7846 on spi1

Fri May 11, 2018 8:48 am

That's recent enough - it's the last firmware released before the switch to the 4.14 kernel tree.

Start by renaming the compiled overlay to "ads7846-spi1.dtbo" to distinguish it from the original, comment out the current overlay directive in config.txt and replace it with:

Code: Select all

dtoverlay=ads7846-spi1
Verify that the driver module gets loaded. Then add the parameters, leaving out keep_vref_on, and splitting the line when it reaches 80 characters.

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2784
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: ads7846 on spi1

Fri May 11, 2018 8:52 am

its the firmware delivered with the screen, also with the same parameters.
Perhaps the supplier of the screen has modified the standard overlay - can you upload the original .dtbo (or .dtb) somewhere so I can take a look?

Robin466
Posts: 29
Joined: Tue May 08, 2018 5:55 am
Location: Fryslân, The Netherlands

Re: ads7846 on spi1

Fri May 11, 2018 8:59 am

PhilE wrote:
Fri May 11, 2018 8:48 am
Start by renaming the compiled overlay to "ads7486-spi1.dtbo" to distinguish it from the original, comment out the current overlay directive in config.txt and replace it with:

Code: Select all

dtoverlay=ads7846-spi1
shouldn't be it :

Code: Select all

 dtoverlay=ads7486-spi1
?

Robin466
Posts: 29
Joined: Tue May 08, 2018 5:55 am
Location: Fryslân, The Netherlands

Re: ads7846 on spi1

Fri May 11, 2018 9:04 am

PhilE wrote:
Fri May 11, 2018 8:52 am
its the firmware delivered with the screen, also with the same parameters.
Perhaps the supplier of the screen has modified the standard overlay - can you upload the original .dtbo (or .dtb) somewhere so I can take a look?
sure https://www.dropbox.com/sh/pdkji46ui8ae ... E2hva?dl=0

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2784
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: ads7846 on spi1

Fri May 11, 2018 9:11 am

Code: Select all

dtoverlay=ads7846-spi1
shouldn't be it :

Code: Select all

dtoverlay=ads7486-spi1
No, this was correct - it was the rename I got wrong (now corrected).

Robin466
Posts: 29
Joined: Tue May 08, 2018 5:55 am
Location: Fryslân, The Netherlands

Re: ads7846 on spi1

Fri May 11, 2018 9:11 am

ignore this post
Last edited by Robin466 on Fri May 11, 2018 9:22 am, edited 1 time in total.

Robin466
Posts: 29
Joined: Tue May 08, 2018 5:55 am
Location: Fryslân, The Netherlands

Re: ads7846 on spi1

Fri May 11, 2018 9:21 am

PhilE wrote:
Fri May 11, 2018 9:11 am

Code: Select all

dtoverlay=ads7846-spi1
shouldn't be it :

Code: Select all

dtoverlay=ads7486-spi1
No, this was correct - it was the rename I got wrong (now corrected).
ah that did the trick, overlay is now loaded !

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2784
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: ads7846 on spi1

Fri May 11, 2018 9:26 am

The default ads7846 overlay was unmodified, so it had no "keep_vref_on" parameter. This should not have prevented it from being loaded, but it was an error.

Using this configuration:

Code: Select all

dtdebug=1
dtoverlay=spi1-1cs,cs0_pin=16,cs0_spidev=off
dtoverlay=ads7846-spi1,penirq=5,penirq_pull=2,speed=50000,swapxy=0
dtparam=pmax=255,xohms=150,xmin=200,xmax=3900,ymin=200,ymax=3900
post the "sudo vcdbg log msg" output (which will now be more verbose) and the output from "ls -l /boot/overlays/ads7846*".

Robin466
Posts: 29
Joined: Tue May 08, 2018 5:55 am
Location: Fryslân, The Netherlands

Re: ads7846 on spi1

Fri May 11, 2018 9:29 am

PhilE wrote:
Fri May 11, 2018 9:26 am
The default ads7846 overlay was unmodified, so it had no "keep_vref_on" parameter. This should not have prevented it from being loaded, but it was an error.

Using this configuration:

Code: Select all

dtdebug=1
dtoverlay=spi1-1cs,cs0_pin=16,cs0_spidev=off
dtoverlay=ads7846-spi1,penirq=5,penirq_pull=2,speed=50000,swapxy=0
dtparam=pmax=255,xohms=150,xmin=200,xmax=3900,ymin=200,ymax=3900
post the "sudo vcdbg log msg" output (which will now be more verbose) and the output from "ls -l /boot/overlays/ads7846*".
i allready did that without dtdebug=1, but Touch seems to be working right now.

However, its upside down, can raspberry change its orientation ?

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2784
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: ads7846 on spi1

Fri May 11, 2018 9:33 am

i allready did that without dtdebug=1, but Touch seems to be working right now.
Cool - our messages crossed.
However, its upside down, can raspberry change its orientation ?
Please describe carefully what is upside down relative to what.

Robin466
Posts: 29
Joined: Tue May 08, 2018 5:55 am
Location: Fryslân, The Netherlands

Re: ads7846 on spi1

Fri May 11, 2018 9:38 am

PhilE wrote:
Fri May 11, 2018 9:33 am
i allready did that without dtdebug=1, but Touch seems to be working right now.
Cool - our messages crossed.
thank you for your patience and help during this fase ! :D
However, its upside down, can raspberry change its orientation ?
Please describe carefully what is upside down relative to what.
well if i press top left corner of the touch the cursor moves to de right lower corner so touch is upside down relative to the LCD (have rotated the image Display_rotate=0 (standard is display_rotate=2)

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2784
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: ads7846 on spi1

Fri May 11, 2018 9:41 am

With "display_rotate=2" does the touchscreen match the image (but with a rotated image)?

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2784
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: ads7846 on spi1

Fri May 11, 2018 9:44 am

Does "lcd_rotate=2" (instead of "display_rotate=0") work (see viewtopic.php?p=815847#p815847)?

Robin466
Posts: 29
Joined: Tue May 08, 2018 5:55 am
Location: Fryslân, The Netherlands

Re: ads7846 on spi1

Fri May 11, 2018 9:48 am

Yes, Correct only seems to be a little of in the middle, but calibration will do the trick i gues :-)

how ever when i put the rotate back to 0 the touch is upside down again

Robin466
Posts: 29
Joined: Tue May 08, 2018 5:55 am
Location: Fryslân, The Netherlands

Re: ads7846 on spi1

Fri May 11, 2018 9:52 am

PhilE wrote:
Fri May 11, 2018 9:44 am
Does "lcd_rotate=2" (instead of "display_rotate=0") work (see viewtopic.php?p=815847#p815847)?
same story as down below.... :o :(

Robin466
Posts: 29
Joined: Tue May 08, 2018 5:55 am
Location: Fryslân, The Netherlands

Re: ads7846 on spi1

Fri May 11, 2018 11:24 am

i tried this procedure, however doesn't seem to be working right now...

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2784
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: ads7846 on spi1

Fri May 11, 2018 11:29 am

I've asked @jamesh if he has any suggestions.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 26011
Joined: Sat Jul 30, 2011 7:41 pm

Re: ads7846 on spi1

Fri May 11, 2018 11:45 am

So this is a SPI based touchscreen, on an LCD panel, but not one of ours?

Quite a few TS drivers I've seen have DT parameters to do swaps/mirrors. Quick look at the kernel driver shows there is a boolean DT parameter

`swap-xy`

Does that work? (See drivers/input/touchscreen/ads7846.c for all the DT parameters)
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“My wife said to me `...you’re not even listening`.
I thought, that’s an odd way to start a conversation.."

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2784
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: ads7846 on spi1

Fri May 11, 2018 11:57 am

The swap-xy parameter swaps the axes - x becomes y and vice versa, whereas we want to invert both axes.

As I understand it, lcd_rotate reprograms the panel to change the orientation, which is more efficient than rotating the framebuffer, but I can see why it may not work for an arbitrary display.

You may instead be able to tell the Linux/X input system to invert both axes.

Robin466
Posts: 29
Joined: Tue May 08, 2018 5:55 am
Location: Fryslân, The Netherlands

Re: ads7846 on spi1

Fri May 11, 2018 12:12 pm

guys thank you both for you amazing support i really appreciate it :)

but the solution to this problem was super simple, just as simple as just calibrating the touchscreen :oops:

everything is working fine now, and this methode is proving to be working !

cheers,

Robin

TheJanitor
Posts: 7
Joined: Sun Dec 08, 2019 2:08 pm

Re: ads7846 on spi1

Sun Dec 08, 2019 3:34 pm

heyoo,

i know this is a old thread but im kinda new to this and im having problems getting this https://www.amazon.de/gp/product/B01F3J ... =UTF8&th=1 running on spi1using same pins on a Pi3 Model b+ (spi0 is used by a RFID reader). I pretty much followed all other steps ive seen here but the touch function still wont work. I tested the display on a 2nd Pi on spi0 and it works fine. any help would be appreciated.

ads7846-spi1-overlay.dts:

Code: Select all

                                                                                             ads7846-spi1-overlay.dts

                        ads7846: [email protected] {
                                compatible = "ti,ads7846";
                                reg = <2>;
                                pinctrl-names = "default";
                                pinctrl-0 = <&ads7846_pins>;

                                spi-max-frequency = <2000000>;
                                interrupts = <255 2>; /* high-to-low edge triggered */
                                interrupt-parent = <&gpio>;
                                pendown-gpio = <&gpio 255 0>;

                                /* driver defaults */
                                ti,x-min = /bits/ 16 <0>;
                                ti,y-min = /bits/ 16 <0>;
                                ti,x-max = /bits/ 16 <0x0FFF>;
                                ti,y-max = /bits/ 16 <0x0FFF>;
                                ti,pressure-min = /bits/ 16 <0>;
                                ti,pressure-max = /bits/ 16 <0xFFFF>;
                                ti,x-plate-ohms = /bits/ 16 <400>;
                        };
                };
        };
        __overrides__ {
                cs =     <&ads7846>,"reg:0";
                speed =  <&ads7846>,"spi-max-frequency:0";
                penirq = <&ads7846_pins>,"brcm,pins:0", /* REQUIRED */
                         <&ads7846>,"interrupts:0",
                         <&ads7846>,"pendown-gpio:4";
                penirq_pull = <&ads7846_pins>,"brcm,pull:0";
                swapxy = <&ads7846>,"ti,swap-xy?";
                xmin =   <&ads7846>,"ti,x-min;0";
                ymin =   <&ads7846>,"ti,y-min;0";
                xmax =   <&ads7846>,"ti,x-max;0";
                ymax =   <&ads7846>,"ti,y-max;0";
                pmin =   <&ads7846>,"ti,pressure-min;0";
                pmax =   <&ads7846>,"ti,pressure-max;0";
                xohms =  <&ads7846>,"ti,x-plate-ohms;0";
        };
};
boot config:

Code: Select all

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4

# uncomment for composite PAL
#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800

# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on

# Uncomment this to enable the lirc-rpi module
#dtoverlay=lirc-rpi

# Additional overlays and parameters are documented /boot/overlays/README
dtoverlay=pi3-disable-bt

# Enable audio (loads snd_bcm2835)
dtparam=audio=on

[pi4]
# Enable DRM VC4 V3D driver on top of the dispmanx display stack
dtoverlay=vc4-fkms-v3d
max_framebuffers=2

[all]
#dtoverlay=vc4-fkms-v3d
hdmi_force_hotplug=1
dtparam=i2c_arm=on
dtparam=spi=on
enable_uart=0
display_rotate=0
max_usb_current=1
config_hdmi_boost=7
hdmi_group=2
hdmi_mode=1
hdmi_mode=87
hdmi_drive=1
hdmi_cvt 800 480 60 6 0 0 0
dtdebug=1
dtoverlay=spi1-1cs,cs0_pin=16,cs0_spidev=off
dtoverlay=ads7846-spi1,penirq=5,penirq_pull=2,speed=50000
dtparam=swapxy=0,pmax=255,xohms=150,xmin=200,xmax=3900,ymin=200,ymax=3900
dmesg:

Code: Select all

[email protected]:~ $ dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.19.75-v7+ ([email protected]) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1270 SMP Tue Sep 24 18:45:11 BST 2019
[    0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Raspberry Pi 3 Model B Plus Rev 1.3
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Reserved 8 MiB at 0x3ac00000
[    0.000000] On node 0 totalpages: 242688
[    0.000000]   Normal zone: 2133 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 242688 pages, LIFO batch:63
[    0.000000] random: get_random_bytes called from start_kernel+0xac/0x4b4 with crng_init=0
[    0.000000] percpu: Embedded 17 pages/cpu s39488 r8192 d21952 u69632
[    0.000000] pcpu-alloc: s39488 r8192 d21952 u69632 alloc=17*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 240555
[    0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 bcm2708_fb.fbwidth=800 bcm2708_fb.fbheight=480 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait fbcon=map:10 fbcon=font:ProFont6x11 logo.nologo
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 939084K/970752K available (8192K kernel code, 629K rwdata, 2176K rodata, 1024K init, 821K bss, 23476K reserved, 8192K cma-reserved)
[    0.000000] Virtual kernel memory layout:
                   vector  : 0xffff0000 - 0xffff1000   (   4 kB)
                   fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
                   vmalloc : 0xbb800000 - 0xff800000   (1088 MB)
                   lowmem  : 0x80000000 - 0xbb400000   ( 948 MB)
                   modules : 0x7f000000 - 0x80000000   (  16 MB)
                     .text : 0x(ptrval) - 0x(ptrval)   (9184 kB)
                     .init : 0x(ptrval) - 0x(ptrval)   (1024 kB)
                     .data : 0x(ptrval) - 0x(ptrval)   ( 630 kB)
                      .bss : 0x(ptrval) - 0x(ptrval)   ( 822 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] ftrace: allocating 26399 entries in 78 pages
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] arch_timer: cp15 timer(s) running at 19.20MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
[    0.000007] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
[    0.000023] Switching to timer-based delay loop, resolution 52ns
[    0.000292] Console: colour dummy device 80x30
[    0.000913] console [tty1] enabled
[    0.000974] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000)
[    0.001020] pid_max: default: 32768 minimum: 301
[    0.001379] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001416] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.002355] CPU: Testing write buffer coherency: ok
[    0.002837] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.003511] Setting up static identity map for 0x100000 - 0x10003c
[    0.003680] rcu: Hierarchical SRCU implementation.
[    0.004499] smp: Bringing up secondary CPUs ...
[    0.005365] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.006299] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.007174] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.007295] smp: Brought up 1 node, 4 CPUs
[    0.007376] SMP: Total of 4 processors activated (153.60 BogoMIPS).
[    0.007400] CPU: All CPU(s) started in HYP mode.
[    0.007420] CPU: Virtualization extensions available.
[    0.008411] devtmpfs: initialized
[    0.021774] VFP support v0.3: implementor 41 architecture 3 part 40 variant 3 rev 4
[    0.022039] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.022087] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.022706] pinctrl core: initialized pinctrl subsystem
[    0.023603] NET: Registered protocol family 16
[    0.026537] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[    0.032174] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.032210] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.032442] Serial: AMBA PL011 UART driver
[    0.034744] bcm2835-mbox 3f00b880.mailbox: mailbox enabled
[    0.069692] bcm2835-dma 3f007000.dma: DMA legacy API manager at (ptrval), dmachans=0x1
[    0.071616] SCSI subsystem initialized
[    0.071858] usbcore: registered new interface driver usbfs
[    0.071934] usbcore: registered new interface driver hub
[    0.072045] usbcore: registered new device driver usb
[    0.090295] raspberrypi-firmware soc:firmware: Attached to firmware from 2019-09-24 17:37, variant start
[    0.100122] raspberrypi-firmware soc:firmware: Firmware hash is 6820edeee4ef3891b95fc01cf02a7abd7ca52f17
[    0.111750] clocksource: Switched to clocksource arch_sys_counter
[    0.201281] VFS: Disk quotas dquot_6.6.0
[    0.201392] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.201575] FS-Cache: Loaded
[    0.201835] CacheFiles: Loaded
[    0.211892] NET: Registered protocol family 2
[    0.212676] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    0.212741] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.212871] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.213075] TCP: Hash tables configured (established 8192 bind 8192)
[    0.213229] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.213295] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.213626] NET: Registered protocol family 1
[    0.214218] RPC: Registered named UNIX socket transport module.
[    0.214245] RPC: Registered udp transport module.
[    0.214267] RPC: Registered tcp transport module.
[    0.214289] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.215998] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 7 counters available
[    0.219036] Initialise system trusted keyrings
[    0.219241] workingset: timestamp_bits=14 max_order=18 bucket_order=4
[    0.229060] FS-Cache: Netfs 'nfs' registered for caching
[    0.229665] NFS: Registering the id_resolver key type
[    0.229712] Key type id_resolver registered
[    0.229734] Key type id_legacy registered
[    0.229766] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.232101] Key type asymmetric registered
[    0.232130] Asymmetric key parser 'x509' registered
[    0.232197] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    0.232381] io scheduler noop registered
[    0.232405] io scheduler deadline registered (default)
[    0.232605] io scheduler cfq registered
[    0.232629] io scheduler mq-deadline registered (default)
[    0.232653] io scheduler kyber registered
[    0.234881] bcm2708_fb soc:fb: FB found 1 display(s)
[    0.247303] Console: switching to colour frame buffer device 100x30
[    0.257307] bcm2708_fb soc:fb: Registered framebuffer for display 0, size 800x480
[    0.261805] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled
[    0.266647] bcm2835-rng 3f104000.rng: hwrng registered
[    0.270327] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
[    0.274390] vc-sm: Videocore shared memory driver
[    0.278155] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000
[    0.292477] brd: module loaded
[    0.306181] loop: module loaded
[    0.310406] Loading iSCSI transport class v2.0-870.
[    0.314750] libphy: Fixed MDIO Bus: probed
[    0.318405] usbcore: registered new interface driver lan78xx
[    0.322041] usbcore: registered new interface driver smsc95xx
[    0.325528] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    0.356846] dwc_otg 3f980000.usb: base=(ptrval)
[    0.560470] Core Release: 2.80a
[    0.563873] Setting default values for core params
[    0.567292] Finished setting default values for core params
[    0.771060] Using Buffer DMA mode
[    0.774481] Periodic Transfer Interrupt Enhancement - disabled
[    0.777923] Multiprocessor Interrupt Enhancement - disabled
[    0.781382] OTG VER PARAM: 0, OTG VER FLAG: 0
[    0.784810] Dedicated Tx FIFOs mode
[    0.788560] WARN::dwc_otg_hcd_init:1045: FIQ DMA bounce buffers: virt = bad14000 dma = 0xfad14000 len=9024
[    0.795582] FIQ FSM acceleration enabled for :
               Non-periodic Split Transactions
               Periodic Split Transactions
               High-Speed Isochronous Endpoints
               Interrupt/Control Split Transaction hack enabled
[    0.813353] dwc_otg: Microframe scheduler enabled
[    0.813413] WARN::hcd_init_fiq:457: FIQ on core 1
[    0.816944] WARN::hcd_init_fiq:458: FIQ ASM at 80655664 length 36
[    0.820410] WARN::hcd_init_fiq:497: MPHI regs_base at bb810000
[    0.823829] dwc_otg 3f980000.usb: DWC OTG Controller
[    0.827192] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1
[    0.830548] dwc_otg 3f980000.usb: irq 56, io mem 0x00000000
[    0.833846] Init: Port Power? op_state=1
[    0.836989] Init: Power Port (0)
[    0.840359] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[    0.843719] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.847051] usb usb1: Product: DWC OTG Controller
[    0.850334] usb usb1: Manufacturer: Linux 4.19.75-v7+ dwc_otg_hcd
[    0.853744] usb usb1: SerialNumber: 3f980000.usb
[    0.857696] hub 1-0:1.0: USB hub found
[    0.861041] hub 1-0:1.0: 1 port detected
[    0.864899] dwc_otg: FIQ enabled
[    0.864905] dwc_otg: NAK holdoff enabled
[    0.864910] dwc_otg: FIQ split-transaction FSM enabled
[    0.864922] Module dwc_common_port init
[    0.865187] usbcore: registered new interface driver usb-storage
[    0.868707] mousedev: PS/2 mouse device common for all mice
[    0.872956] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[    0.876566] bcm2835-cpufreq: min=600000 max=1400000
[    0.880842] sdhci: Secure Digital Host Controller Interface driver
[    0.884241] sdhci: Copyright(c) Pierre Ossman
[    0.887944] mmc-bcm2835 3f300000.mmcnr: could not get clk, deferring probe
[    0.891787] sdhost-bcm2835 3f202000.mmc: could not get clk, deferring probe
[    0.895327] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.900182] ledtrig-cpu: registered to indicate activity on CPUs
[    0.903703] hidraw: raw HID events driver (C) Jiri Kosina
[    0.907269] usbcore: registered new interface driver usbhid
[    0.910682] usbhid: USB HID core driver
[    0.914904] vchiq: vchiq_init_state: slot_zero = (ptrval), is_master = 0
[    0.919971] [vc_sm_connected_init]: start
[    0.928948] [vc_sm_connected_init]: end - returning 0
[    0.933557] Initializing XFRM netlink socket
[    0.937046] NET: Registered protocol family 17
[    0.940590] Key type dns_resolver registered
[    0.944478] Registering SWP/SWPB emulation handler
[    0.948550] registered taskstats version 1
[    0.951956] Loading compiled-in X.509 certificates
[    0.963951] mmc-bcm2835 3f300000.mmcnr: mmc_debug:0 mmc_debug2:0
[    0.967392] mmc-bcm2835 3f300000.mmcnr: DMA channel allocated
[    0.995128] sdhost: log_buf @ (ptrval) (fad13000)
[    1.033468] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[    1.038385] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.043213] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.049216] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[    1.052432] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[    1.056866] of_cfs_init
[    1.060068] of_cfs_init: OK
[    1.063728] Waiting for root device /dev/mmcblk0p2...
[    1.081911] Indeed it is in host mode hprt0 = 00021501
[    1.157941] random: fast init done
[    1.202728] mmc1: new high speed SDIO card at address 0001
[    1.208247] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.214825] mmc0: new high speed SDHC card at address aaaa
[    1.218898] mmcblk0: mmc0:aaaa SC16G 14.8 GiB
[    1.225159]  mmcblk0: p1 p2
[    1.243520] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.246669] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    1.253318] devtmpfs: mounted
[    1.261629] Freeing unused kernel memory: 1024K
[    1.282165] Run /sbin/init as init process
[    1.291799] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    1.295027] Indeed it is in host mode hprt0 = 00001101
[    1.532086] usb 1-1: New USB device found, idVendor=0424, idProduct=2514, bcdDevice= b.b3
[    1.535416] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    1.539360] hub 1-1:1.0: USB hub found
[    1.542738] hub 1-1:1.0: 4 ports detected
[    1.851822] systemd[1]: System time before build time, advancing clock.
[    1.861806] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    1.991381] NET: Registered protocol family 10
[    1.992166] usb 1-1.1: New USB device found, idVendor=0424, idProduct=2514, bcdDevice= b.b3
[    1.996084] Segment Routing with IPv6
[    1.998255] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.006200] hub 1-1.1:1.0: USB hub found
[    2.010089] hub 1-1.1:1.0: 3 ports detected
[    2.054784] systemd[1]: systemd 241 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid)
[    2.068038] systemd[1]: Detected architecture arm.
[    2.106701] systemd[1]: Set hostname to <raspberrypi>.
[    2.111804] usb 1-1.3: new full-speed USB device number 4 using dwc_otg
[    2.113064] systemd[1]: Failed to bump fs.file-max, ignoring: Invalid argument
[    2.259653] usb 1-1.3: New USB device found, idVendor=046d, idProduct=c52b, bcdDevice=24.01
[    2.264091] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    2.268775] usb 1-1.3: Product: USB Receiver
[    2.273043] usb 1-1.3: Manufacturer: Logitech
[    2.533240] systemd[1]: File /lib/systemd/system/systemd-journald.service:12 configures an IP firewall (IPAddressDeny=any), but the local system does not support BPF/cgroup based firewalling.
[    2.541907] systemd[1]: Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalling.)
[    2.781809] usb 1-1.1.1: new high-speed USB device number 5 using dwc_otg
[    2.912227] usb 1-1.1.1: New USB device found, idVendor=0424, idProduct=7800, bcdDevice= 3.00
[    2.916769] usb 1-1.1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    3.105558] random: systemd: uninitialized urandom read (16 bytes read)
[    3.121978] random: systemd: uninitialized urandom read (16 bytes read)
[    3.127165] systemd[1]: Listening on udev Control Socket.
[    3.137199] random: systemd: uninitialized urandom read (16 bytes read)
[    3.141929] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[    3.186755] lan78xx 1-1.1.1:1.0 (unnamed net_device) (uninitialized): No External EEPROM. Setting MAC Speed
[    3.187161] systemd[1]: Condition check resulted in Journal Audit Socket being skipped.
[    3.201307] systemd[1]: Listening on initctl Compatibility Named Pipe.
[    3.208501] libphy: lan78xx-mdiobus: probed
[    3.226571] lan78xx 1-1.1.1:1.0 (unnamed net_device) (uninitialized): int urb period 64
[    3.486292] i2c /dev entries driver
[    4.050113] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    4.195021] systemd-journald[121]: Received request to flush runtime journal from PID 1
[    4.896603] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
[    4.899303] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
[    4.899319] [vc_sm_connected_init]: start
[    4.906219] [vc_sm_connected_init]: installed successfully
[    4.907186] media: Linux media interface: v0.10
[    4.953931] videodev: Linux video capture interface: v2.00
[    5.015733] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[    5.015858] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[    5.041703] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned.
[    5.053082] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
[    5.063295] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
[    5.063337] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
[    5.071188] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[    5.082178] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
[    5.082216] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
[    5.086877] bcm2835_audio soc:audio: card created with 8 channels
[    5.088628] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[    5.088684] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
[    5.185130] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    5.252368] logitech-djreceiver 0003:046D:C52B.0003: hiddev96,hidraw0: USB HID v1.11 Device [Logitech USB Receiver] on usb-3f980000.usb-1.3/input2
[    5.325403] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    5.409363] input: Logitech Unifying Device. Wireless PID:404d Keyboard as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.2/0003:046D:C52B.0003/0003:046D:404D.0004/input/input0
[    5.410278] input: Logitech Unifying Device. Wireless PID:404d Mouse as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.2/0003:046D:C52B.0003/0003:046D:404D.0004/input/input1
[    5.413393] input: Logitech Unifying Device. Wireless PID:404d Consumer Control as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.2/0003:046D:C52B.0003/0003:046D:404D.0004/input/input2
[    5.413618] input: Logitech Unifying Device. Wireless PID:404d System Control as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.2/0003:046D:C52B.0003/0003:046D:404D.0004/input/input3
[    5.422852] hid-generic 0003:046D:404D.0004: input,hidraw1: USB HID v1.11 Keyboard [Logitech Unifying Device. Wireless PID:404d] on usb-3f980000.usb-1.3:1
[    5.441962] brcmfmac: F1 signature read @0x18000000=0x15264345
[    5.452066] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    5.453054] usbcore: registered new interface driver brcmfmac
[    5.718583] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    5.759652] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Feb 27 2018 03:15:32 version 7.45.154 (r684107 CY) FWID 01-4fbe0b04
[    5.793757] random: crng init done
[    5.793769] random: 7 urandom warning(s) missed due to ratelimiting
[    5.957590] ads7846 spi1.2: spi1.2 supply vcc not found, using dummy regulator
[    5.957672] ads7846 spi1.2: Linked as a consumer to regulator.0
[    5.966878] ads7846 spi1.2: touchscreen, irq 167
[    5.970473] input: ADS7846 Touchscreen as /devices/platform/soc/3f215080.spi/spi_master/spi1/spi1.2/input/input7
[    6.659477] input: Logitech K400 Plus as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.2/0003:046D:C52B.0003/0003:046D:404D.0004/input/input8
[    6.660718] logitech-hidpp-device 0003:046D:404D.0004: input,hidraw1: USB HID v1.11 Keyboard [Logitech K400 Plus] on usb-3f980000.usb-1.3:1
[    7.464274] 8021q: 802.1Q VLAN Support v1.8
[    7.938940] Adding 102396k swap on /var/swap.  Priority:-2 extents:1 across:102396k SSFS
[    7.950761] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[    7.950781] brcmfmac: power management disabled
[    8.371307] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    8.371324] 8021q: adding VLAN 0 to HW filter on device eth0
[   12.393409] fuse init (API version 7.27)
[   13.336986] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready

Code: Select all

[email protected]:~ $ sudo vcdbg log msg
001415.072: brfs: File read: /mfs/sd/config.txt
001416.446: brfs: File read: 2150 bytes
001496.711: brfs: File read: /mfs/sd/config.txt
001721.126: gpioman: gpioman_get_pin_num: pin DISPLAY_DSI_PORT not defined
001723.233: *** Restart logging
001723.300: brfs: File read: 2150 bytes
001753.899: hdmi: HDMI:hdmi_get_state is deprecated, use hdmi_get_display_state instead
001757.882: brfs: File read: /mfs/sd/cmdline.txt
001757.975: Read command line from file 'cmdline.txt':
001758.033: 'dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait fbcon=map:10 fbcon=font:ProFont6x11 logo.nologo'
001762.672: Trying Device Tree file 'bcm2710-rpi-3-b-plus.dtb'
001762.734: brfs: File read: 145 bytes
001766.627: brfs: File read: /mfs/sd/bcm2710-rpi-3-b-plus.dtb
001766.689: Loading 'bcm2710-rpi-3-b-plus.dtb' to 0x100 size 0x69ca
001785.797: dtdebug: delete_node(/__local_fixups__)
001796.381: dtdebug: /aliases:i2c_vc=i2c0
001806.951: dtdebug: /__symbols__:i2c_vc=i2c0
001814.843: dtdebug: /__overrides__:i2c_vc=i2c0
001829.966: dtdebug: /__overrides__:i2c_vc_baudrate=i2c0_baudrate
001834.733: dtdebug: /aliases:i2c=i2c1
001845.458: dtdebug: /__symbols__:i2c=i2c1
001853.451: dtdebug: /__overrides__:i2c=i2c1
001858.264: dtdebug: /aliases:i2c_arm=i2c1
001869.010: dtdebug: /__symbols__:i2c_arm=i2c1
001877.054: dtdebug: /__overrides__:i2c_arm=i2c1
001892.403: dtdebug: /__overrides__:i2c_baudrate=i2c1_baudrate
001907.858: dtdebug: /__overrides__:i2c_arm_baudrate=i2c1_baudrate
001915.232: dtparam: uart0_clkrate=48000000
001920.921: dtdebug: /__overrides__ has no uart0_clkrate property
001920.934: Unknown dtparam 'uart0_clkrate' - ignored
001921.001: brfs: File read: 27082 bytes
001925.497: brfs: File read: /mfs/sd/config.txt
001926.129: brfs: File read: 2150 bytes
001933.643: dtdebug: Opened overlay file 'overlays/pi3-disable-bt.dtbo'
001934.833: brfs: File read: /mfs/sd/overlays/pi3-disable-bt.dtbo
001956.662: Loaded overlay 'pi3-disable-bt'
001956.746: dtparam: audio=on
001956.988: dtdebug: /__overrides__ node not found
001962.412: dtdebug: Found override audio
001962.446: dtdebug:   override audio: string target 'status'
001977.227: dtparam: i2c_arm=on
001977.467: dtdebug: /__overrides__ node not found
001982.690: dtdebug: Found override i2c_arm
001982.724: dtdebug:   override i2c_arm: string target 'status'
001994.404: dtparam: spi=on
001994.647: dtdebug: /__overrides__ node not found
001999.998: dtdebug: Found override spi
002000.030: dtdebug:   override spi: string target 'status'
002009.730: dtdebug: Found fragment 0 (offset 36)
002022.832: dtdebug: merge_fragment(/soc/[email protected],/[email protected]/__overlay__)
002022.860: dtdebug:   +prop(status)
002024.924: dtdebug: merge_fragment() end
002024.981: dtdebug: Found fragment 1 (offset 116)
002035.435: dtdebug: merge_fragment(/soc/[email protected],/[email protected]/__overlay__)
002035.464: dtdebug:   +prop(pinctrl-names)
002037.825: dtdebug:   +prop(pinctrl-0)
002040.209: dtdebug:   +prop(status)
002042.593: dtdebug: merge_fragment() end
002042.653: dtdebug: Found fragment 2 (offset 228)
002052.671: dtdebug: merge_fragment(/soc/[email protected]/uart0_pins,/[email protected]/__overlay__)
002052.699: dtdebug:   +prop(brcm,pins)
002055.038: dtdebug:   +prop(brcm,function)
002057.390: dtdebug:   +prop(brcm,pull)
002059.749: dtdebug: merge_fragment() end
002059.808: dtdebug: Found fragment 3 (offset 320)
002069.744: dtdebug: merge_fragment(/soc/[email protected]/bt_pins,/[email protected]/__overlay__)
002069.772: dtdebug:   +prop(brcm,pins)
002072.114: dtdebug:   +prop(brcm,function)
002074.473: dtdebug:   +prop(brcm,pull)
002076.835: dtdebug: merge_fragment() end
002076.897: dtdebug: Found fragment 4 (offset 412)
002077.236: dtdebug: merge_fragment(/aliases,/[email protected]/__overlay__)
002077.262: dtdebug:   +prop(serial0)
002080.444: dtdebug:   +prop(serial1)
002083.657: dtdebug: merge_fragment() end
002083.751: brfs: File read: 954 bytes
002094.470: dtdebug: Opened overlay file 'overlays/spi1-1cs.dtbo'
002096.501: brfs: File read: /mfs/sd/overlays/spi1-1cs.dtbo
002114.792: Loaded overlay 'spi1-1cs'
002114.845: dtparam: cs0_pin=16
002115.083: dtdebug: Found override cs0_pin
002115.128: dtdebug:   override cs0_pin: cell target brcm,pins @ offset 0 (size 4)
002115.384: dtdebug:   override cs0_pin: cell target cs-gpios @ offset 4 (size 4)
002115.764: dtparam: cs0_spidev=off
002116.005: dtdebug: Found override cs0_spidev
002116.039: dtdebug:   override cs0_spidev: string target 'status'
002116.563: dtdebug: Found fragment 0 (offset 36)
002119.582: dtdebug: merge_fragment(/soc/[email protected],/[email protected]/__overlay__)
002127.454: dtdebug: merge_fragment(/soc/[email protected]/spi1_pins,/[email protected]/__overlay__/spi1_pins)
002127.481: dtdebug:   +prop(brcm,pins)
002130.484: dtdebug:   +prop(brcm,function)
002133.506: dtdebug:   +prop(phandle)
002136.478: dtdebug: merge_fragment() end
002144.431: dtdebug: merge_fragment(/soc/[email protected]/spi1_cs_pins,/[email protected]/__overlay__/spi1_cs_pins)
002144.457: dtdebug:   +prop(brcm,pins)
002147.475: dtdebug:   +prop(brcm,function)
002150.506: dtdebug:   +prop(phandle)
002153.486: dtdebug: merge_fragment() end
002153.513: dtdebug: merge_fragment() end
002153.606: dtdebug: Found fragment 1 (offset 240)
002167.192: dtdebug: merge_fragment(/soc/[email protected],/[email protected]/__overlay__)
002167.218: dtdebug:   +prop(#address-cells)
002169.247: dtdebug:   +prop(#size-cells)
002171.283: dtdebug:   +prop(pinctrl-names)
002173.530: dtdebug:   +prop(pinctrl-0)
002175.816: dtdebug:   +prop(cs-gpios)
002178.128: dtdebug:   +prop(status)
002187.151: dtdebug: merge_fragment(/soc/[email protected]/[email protected],/[email protected]/__overlay__/[email protected])
002187.178: dtdebug:   +prop(compatible)
002189.161: dtdebug:   +prop(reg)
002191.257: dtdebug:   +prop(#address-cells)
002193.283: dtdebug:   +prop(#size-cells)
002195.314: dtdebug:   +prop(spi-max-frequency)
002197.549: dtdebug:   +prop(status)
002199.683: dtdebug:   +prop(phandle)
002201.832: dtdebug: merge_fragment() end
002201.866: dtdebug: merge_fragment() end
002201.955: dtdebug: Found fragment 2 (offset 572)
002215.126: dtdebug: merge_fragment(/soc/[email protected],/[email protected]/__overlay__)
002215.153: dtdebug:   +prop(status)
002217.370: dtdebug: merge_fragment() end
002217.589: brfs: File read: 1523 bytes
002229.476: dtdebug: Opened overlay file 'overlays/ads7846-spi1.dtbo'
002231.152: brfs: File read: /mfs/sd/overlays/ads7846-spi1.dtbo
002246.410: Loaded overlay 'ads7846-spi1'
002246.468: dtparam: penirq=5
002246.673: dtdebug: Found override penirq
002246.720: dtdebug:   override penirq: cell target brcm,pins @ offset 0 (size 4)
002246.945: dtdebug:   override penirq: cell target interrupts @ offset 0 (size 4)
002247.426: dtdebug:   override penirq: cell target pendown-gpio @ offset 4 (size 4)
002247.904: dtparam: penirq_pull=2
002248.118: dtdebug: Found override penirq_pull
002248.162: dtdebug:   override penirq_pull: cell target brcm,pull @ offset 0 (size 4)
002248.381: dtparam: speed=50000
002248.585: dtdebug: Found override speed
002248.633: dtdebug:   override speed: cell target spi-max-frequency @ offset 0 (size 4)
002249.117: dtparam: swapxy=0
002249.336: dtdebug: Found override swapxy
002249.370: dtdebug:   override swapxy: boolean target ti,swap-xy
002249.892: dtparam: pmax=255
002250.144: dtdebug: Found override pmax
002250.191: dtdebug:   override pmax: cell target ti,pressure-max @ offset 0 (size 2)
002250.702: dtparam: xohms=150
002250.958: dtdebug: Found override xohms
002251.004: dtdebug:   override xohms: cell target ti,x-plate-ohms @ offset 0 (size 2)
002251.520: dtparam: xmin=200
002251.745: dtdebug: Found override xmin
002251.788: dtdebug:   override xmin: cell target ti,x-min @ offset 0 (size 2)
002252.268: dtparam: xmax=3900
002252.502: dtdebug: Found override xmax
002252.545: dtdebug:   override xmax: cell target ti,x-max @ offset 0 (size 2)
002253.038: dtparam: ymin=200
002253.266: dtdebug: Found override ymin
002253.310: dtdebug:   override ymin: cell target ti,y-min @ offset 0 (size 2)
002253.797: dtparam: ymax=3900
002254.040: dtdebug: Found override ymax
002254.084: dtdebug:   override ymax: cell target ti,y-max @ offset 0 (size 2)
002254.610: dtdebug: Found fragment 0 (offset 60)
002257.599: dtdebug: merge_fragment(/soc/[email protected],/[email protected]/__overlay__)
002265.633: dtdebug: merge_fragment(/soc/[email protected]/ads7846_pins,/[email protected]/__overlay__/ads7846_pins)
002265.661: dtdebug:   +prop(brcm,pins)
002268.712: dtdebug:   +prop(brcm,function)
002271.779: dtdebug:   +prop(brcm,pull)
002274.876: dtdebug:   +prop(phandle)
002277.902: dtdebug: merge_fragment() end
002277.933: dtdebug: merge_fragment() end
002278.010: dtdebug: Found fragment 1 (offset 204)
002291.637: dtdebug: merge_fragment(/soc/[email protected],/[email protected]/__overlay__)
002291.663: dtdebug:   +prop(#address-cells)
002293.738: dtdebug:   +prop(#size-cells)
002302.879: dtdebug: merge_fragment(/soc/[email protected]/[email protected],/[email protected]/__overlay__/[email protected])
002302.906: dtdebug:   +prop(compatible)
002304.917: dtdebug:   +prop(reg)
002307.018: dtdebug:   +prop(pinctrl-names)
002309.208: dtdebug:   +prop(pinctrl-0)
002311.423: dtdebug:   +prop(spi-max-frequency)
002313.677: dtdebug:   +prop(interrupts)
002315.832: dtdebug:   +prop(interrupt-parent)
002317.913: dtdebug:   +prop(pendown-gpio)
002320.712: dtdebug:   +prop(ti,x-min)
002323.543: dtdebug:   +prop(ti,y-min)
002326.386: dtdebug:   +prop(ti,x-max)
002329.233: dtdebug:   +prop(ti,y-max)
002332.097: dtdebug:   +prop(ti,pressure-min)
002334.974: dtdebug:   +prop(ti,pressure-max)
002337.873: dtdebug:   +prop(ti,x-plate-ohms)
002340.792: dtdebug:   +prop(phandle)
002343.118: dtdebug: merge_fragment() end
002343.168: dtdebug: merge_fragment() end
002361.374: dtparam: uart0=off
002367.000: dtdebug: Found override uart0
002367.036: dtdebug:   override uart0: string target 'status'
004082.208: dtparam: cam0-pwdn-ctrl=49
004087.866: dtdebug: Found override cam0-pwdn-ctrl
004087.892: dtparam: cam0-pwdn=5
004093.542: dtdebug: Found override cam0-pwdn
004106.084: dtparam: cam0-led-ctrl=49
004111.712: dtdebug: Found override cam0-led-ctrl
004111.737: dtparam: cam0-led=6
004117.410: dtdebug: Found override cam0-led
004117.435: gpioman: gpioman_get_pin_num: pin EMMC_ENABLE not defined
004117.529: dtparam: arm_freq=1400000000
004123.228: dtdebug: Found override arm_freq
004123.277: dtdebug:   override arm_freq: cell target clock-frequency @ offset 0 (size 4)
004139.628: dtdebug:   override arm_freq: cell target clock-frequency @ offset 0 (size 4)
004156.142: dtdebug:   override arm_freq: cell target clock-frequency @ offset 0 (size 4)
004172.697: dtdebug:   override arm_freq: cell target clock-frequency @ offset 0 (size 4)
004189.419: dtparam: core_freq=400000000
004195.453: dtdebug: /__overrides__ has no core_freq property
004195.467: Unknown dtparam 'core_freq' - ignored
004209.043: dtdebug: delete_node(/hat)
004221.924: brfs: File read: 2075 bytes
004592.917: brfs: File read: /mfs/sd/kernel7.img
004592.984: Loading 'kernel7.img' to 0x8000 size 0x5108a0
004593.060: Device tree loaded to 0x2eff8e00 (size 0x711a)
004595.326: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not defined
006048.201: vchiq_core: vchiq_init_state: slot_zero = 0xfad80000, is_master = 1
006052.606: hdmi: HDMI:hdmi_get_state is deprecated, use hdmi_get_display_state instead
006057.852: TV service:host side not connected, dropping notification 0x00000002, 0x00000002, 0x00000057
010181.569: brfs: File read: 5310624 bytes

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2784
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: ads7846 on spi1

Sun Dec 08, 2019 8:37 pm

I can't see anything wrong - there must be a lot right for the driver to load. It's more likely that there's a fault in the wiring.

Are any interrupts getting through?

Code: Select all

$ cat /proc/interrupts | grep 167
ought to show a number that increments with every touch. If it doesn't, try artificially grounding GPIO 5 to see if that does anything, then check the IRQ wire.

TheJanitor
Posts: 7
Joined: Sun Dec 08, 2019 2:08 pm

Re: ads7846 on spi1

Sun Dec 08, 2019 8:49 pm

i was actually testing the irq wire on diferent pins while using spi0 which worked. also checked the wires a few times since i try to get this to work since a few days already and it slowly drives me nuts XD

Code: Select all

[email protected]:~ $ cat /proc/interrupts | grep 167
167:        330          0          0          0  pinctrl-bcm2835   5 Edge      ads7846
[email protected]:~ $ cat /proc/interrupts | grep 167
167:        853          0          0          0  pinctrl-bcm2835   5 Edge      ads7846
[email protected]:~ $
[email protected]:~ $ cat /proc/interrupts | grep 167
167:       1564          0          0          0  pinctrl-bcm2835   5 Edge      ads7846
[email protected]:~ $ cat /proc/interrupts | grep 167
167:       1564          0          0          0  pinctrl-bcm2835   5 Edge      ads7846
[email protected]:~ $ cat /proc/interrupts | grep 167
167:       2077          0          0          0  pinctrl-bcm2835   5 Edge      ads7846
[email protected]:~ $ cat /proc/interrupts | grep 167
167:       2077          0          0          0  pinctrl-bcm2835   5 Edge      ads7846
[email protected]:~ $ cat /proc/interrupts | grep 167
167:       2077          0          0          0  pinctrl-bcm2835   5 Edge      ads7846
[email protected]:~ $ cat /proc/interrupts | grep 167
167:       3453          0          0          0  pinctrl-bcm2835   5 Edge      ads7846

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2784
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: ads7846 on spi1

Sun Dec 08, 2019 9:09 pm

Is there an entry for the touchscreen under /dev/input? Can you ever read any data from it?

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2784
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: ads7846 on spi1

Sun Dec 08, 2019 9:09 pm

Is there an entry for the touchscreen under /dev/input? Can you ever read any data from it?

Return to “Device Tree”