M1LKYWVY
Posts: 15
Joined: Fri Jan 04, 2019 2:02 pm

UARt Alternate fucntion and dpi conflict

Mon Jun 17, 2019 9:11 am

I am using both uarts on my CM3. Everything works fine. Uarts were configured with listed below method (/boot/config.txt)

Code: Select all

enable_uart=1

dtoverlay=uart0,txd0_pin=32,rxd0_pin=33,pin_func=7
dtoverlay=uart1,txd1_pin=40,rxd1_pin=41
I configured dpi. Added this lines to the end of /boot/config.txt

Code: Select all

dtoverlay=dpi18
overscan_left=0
overscan_right=0
overscan_top=0
overscan_bottom=0
framebuffer_width=800
framebuffer_height=480
enable_dpi_lcd=1
display_default_lcd=1
dpi_group=2
dpi_mode=87
dpi_output_format=0x3322
dpi_timings=800 0 0 48 0 480 0 0 3 0 0 0 0 60 0 32000000 6
After that action serial0 does nor works. Here is dmesg output.

Code: Select all

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.19.42-v7+ ([email protected]) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1219 SMP Tue May 14 21:20:58 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 Compute Module 3 Rev 1.0
[    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 smsc95xx.macaddr=B8:27:EB:A4:66:A4 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  dwc_otg.lpm_enable=0 console=tty1 root=PARTUUID=6481eae4-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles
[    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: 939088K/970752K available (8192K kernel code, 627K rwdata, 2164K rodata, 1024K init, 821K bss, 23472K 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)   ( 628 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 26229 entries in 77 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.000018] Switching to timer-based delay loop, resolution 52ns
[    0.000275] Console: colour dummy device 80x30
[    0.000294] console [tty1] enabled
[    0.000340] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000)
[    0.000356] pid_max: default: 32768 minimum: 301
[    0.000696] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000712] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001621] CPU: Testing write buffer coherency: ok
[    0.002077] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002729] Setting up static identity map for 0x100000 - 0x10003c
[    0.002879] rcu: Hierarchical SRCU implementation.
[    0.003671] smp: Bringing up secondary CPUs ...
[    0.004500] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.005420] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.006279] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.006399] smp: Brought up 1 node, 4 CPUs
[    0.006411] SMP: Total of 4 processors activated (153.60 BogoMIPS).
[    0.006416] CPU: All CPU(s) started in HYP mode.
[    0.006421] CPU: Virtualization extensions available.
[    0.007403] devtmpfs: initialized
[    0.019181] VFP support v0.3: implementor 41 architecture 3 part 40 variant 3 rev 4
[    0.019413] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.019431] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.020060] pinctrl core: initialized pinctrl subsystem
[    0.020926] NET: Registered protocol family 16
[    0.023976] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[    0.029772] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.029780] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.030020] Serial: AMBA PL011 UART driver
[    0.032389] bcm2835-mbox 3f00b880.mailbox: mailbox enabled
[    0.067913] bcm2835-dma 3f007000.dma: DMA legacy API manager at (ptrval), dmachans=0x1
[    0.069569] SCSI subsystem initialized
[    0.069794] usbcore: registered new interface driver usbfs
[    0.069849] usbcore: registered new interface driver hub
[    0.069942] usbcore: registered new device driver usb
[    0.090128] raspberrypi-firmware soc:firmware: Attached to firmware from 2019-03-27 15:45, variant start
[    0.100362] raspberrypi-firmware soc:firmware: Firmware hash is 2e98b31d18547962e564bdf88e57b3df7085c29b
[    0.111851] clocksource: Switched to clocksource arch_sys_counter
[    0.200607] VFS: Disk quotas dquot_6.6.0
[    0.200690] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.200917] FS-Cache: Loaded
[    0.201135] CacheFiles: Loaded
[    0.211159] NET: Registered protocol family 2
[    0.211988] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    0.212026] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.212135] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.212321] TCP: Hash tables configured (established 8192 bind 8192)
[    0.212458] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.212509] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.212839] NET: Registered protocol family 1
[    0.213432] RPC: Registered named UNIX socket transport module.
[    0.213439] RPC: Registered udp transport module.
[    0.213445] RPC: Registered tcp transport module.
[    0.213450] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.215189] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 7 counters available
[    0.218248] Initialise system trusted keyrings
[    0.218444] workingset: timestamp_bits=14 max_order=18 bucket_order=4
[    0.228256] FS-Cache: Netfs 'nfs' registered for caching
[    0.228832] NFS: Registering the id_resolver key type
[    0.228858] Key type id_resolver registered
[    0.228864] Key type id_legacy registered
[    0.228881] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.231167] Key type asymmetric registered
[    0.231175] Asymmetric key parser 'x509' registered
[    0.231224] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    0.231386] io scheduler noop registered
[    0.231393] io scheduler deadline registered (default)
[    0.231573] io scheduler cfq registered
[    0.231581] io scheduler mq-deadline registered (default)
[    0.231587] io scheduler kyber registered
[    0.235024] BCM2708FB: allocated DMA memory 0xfad10000
[    0.235068] BCM2708FB: allocated DMA channel 0
[    0.246688] Console: switching to colour frame buffer device 100x30
[    0.253801] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled
[    0.255440] bcm2835-rng 3f104000.rng: hwrng registered
[    0.255616] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
[    0.256118] vc-sm: Videocore shared memory driver
[    0.256440] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000
[    0.267273] brd: module loaded
[    0.277446] loop: module loaded
[    0.277459] Loading iSCSI transport class v2.0-870.
[    0.278205] libphy: Fixed MDIO Bus: probed
[    0.278313] usbcore: registered new interface driver lan78xx
[    0.278370] usbcore: registered new interface driver smsc95xx
[    0.278386] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    0.306290] dwc_otg 3f980000.usb: base=(ptrval)
[    0.506533] Core Release: 2.80a
[    0.506543] Setting default values for core params
[    0.506573] Finished setting default values for core params
[    0.706831] Using Buffer DMA mode
[    0.706837] Periodic Transfer Interrupt Enhancement - disabled
[    0.706843] Multiprocessor Interrupt Enhancement - disabled
[    0.706850] OTG VER PARAM: 0, OTG VER FLAG: 0
[    0.706868] Dedicated Tx FIFOs mode
[    0.707341] WARN::dwc_otg_hcd_init:1045: FIQ DMA bounce buffers: virt = bad04000 dma = 0xfad04000 len=9024
[    0.707367] FIQ FSM acceleration enabled for :
               Non-periodic Split Transactions
               Periodic Split Transactions
               High-Speed Isochronous Endpoints
               Interrupt/Control Split Transaction hack enabled
[    0.707374] dwc_otg: Microframe scheduler enabled
[    0.707430] WARN::hcd_init_fiq:457: FIQ on core 1
[    0.707441] WARN::hcd_init_fiq:458: FIQ ASM at 8064b6dc length 36
[    0.707452] WARN::hcd_init_fiq:484: MPHI regs_base at f0006000
[    0.707515] dwc_otg 3f980000.usb: DWC OTG Controller
[    0.707549] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1
[    0.707583] dwc_otg 3f980000.usb: irq 56, io mem 0x00000000
[    0.707632] Init: Port Power? op_state=1
[    0.707637] Init: Power Port (0)
[    0.707893] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[    0.707904] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.707913] usb usb1: Product: DWC OTG Controller
[    0.707922] usb usb1: Manufacturer: Linux 4.19.42-v7+ dwc_otg_hcd
[    0.707931] usb usb1: SerialNumber: 3f980000.usb
[    0.708536] hub 1-0:1.0: USB hub found
[    0.708581] hub 1-0:1.0: 1 port detected
[    0.709163] dwc_otg: FIQ enabled
[    0.709169] dwc_otg: NAK holdoff enabled
[    0.709175] dwc_otg: FIQ split-transaction FSM enabled
[    0.709185] Module dwc_common_port init
[    0.709465] usbcore: registered new interface driver usb-storage
[    0.709642] mousedev: PS/2 mouse device common for all mice
[    0.710534] bcm2835-wdt 3f100000.watchdog: Broadcom BCM2835 watchdog timer
[    0.710850] bcm2835-cpufreq: min=600000 max=1200000
[    0.711321] sdhci: Secure Digital Host Controller Interface driver
[    0.711326] sdhci: Copyright(c) Pierre Ossman
[    0.711731] sdhost-bcm2835 3f202000.mmc: could not get clk, deferring probe
[    0.711891] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.712731] ledtrig-cpu: registered to indicate activity on CPUs
[    0.712810] hidraw: raw HID events driver (C) Jiri Kosina
[    0.712982] usbcore: registered new interface driver usbhid
[    0.712987] usbhid: USB HID core driver
[    0.713711] vchiq: vchiq_init_state: slot_zero = (ptrval), is_master = 0
[    0.715275] [vc_sm_connected_init]: start
[    0.724119] [vc_sm_connected_init]: end - returning 0
[    0.725163] Initializing XFRM netlink socket
[    0.725188] NET: Registered protocol family 17
[    0.725297] Key type dns_resolver registered
[    0.725868] Registering SWP/SWPB emulation handler
[    0.726508] registered taskstats version 1
[    0.726525] Loading compiled-in X.509 certificates
[    0.733792] pinctrl-bcm2835 3f200000.gpio: pin gpio14 already requested by leds; cannot claim for 3f201000.serial
[    0.734106] pinctrl-bcm2835 3f200000.gpio: pin-14 (3f201000.serial) status -22
[    0.734312] pinctrl-bcm2835 3f200000.gpio: could not request pin 14 (gpio14) from group gpio14  on device pinctrl-bcm2835
[    0.734612] uart-pl011 3f201000.serial: Error applying setting, reverse things back
[    0.734848] uart-pl011: probe of 3f201000.serial failed with error -22
[    0.736304] 3f215040.serial: ttyS0 at MMIO 0x0 (irq = 53, base_baud = 31250000) is a 16550
[    0.737354] sdhost: log_buf @ (ptrval) (fad07000)
[    0.784685] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[    0.785981] of_cfs_init
[    0.786139] of_cfs_init: OK
[    0.786746] Waiting for root device PARTUUID=6481eae4-02...
[    0.855799] mmc0: new high speed MMC card at address 0001
[    0.856973] mmcblk0: mmc0:0001 4FPD3R 3.64 GiB
[    0.857749] mmcblk0boot0: mmc0:0001 4FPD3R partition 1 4.00 MiB
[    0.858561] mmcblk0boot1: mmc0:0001 4FPD3R partition 2 4.00 MiB
[    0.858873] mmcblk0rpmb: mmc0:0001 4FPD3R partition 3 512 KiB, chardev (246:0)
[    0.860683]  mmcblk0: p1 p2
[    0.881803] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    0.881944] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    0.882644] devtmpfs: mounted
[    0.888462] Freeing unused kernel memory: 1024K
[    0.912227] Run /sbin/init as init process
[    0.921990] Indeed it is in host mode hprt0 = 00021501
[    1.000748] random: fast init done
[    1.131914] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    1.132067] Indeed it is in host mode hprt0 = 00001101
[    1.292953] systemd[1]: System time before build time, advancing clock.
[    1.372344] usb 1-1: New USB device found, idVendor=1a40, idProduct=0101, bcdDevice= 1.11
[    1.372359] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    1.372369] usb 1-1: Product: USB 2.0 Hub
[    1.372993] hub 1-1:1.0: USB hub found
[    1.373085] hub 1-1:1.0: 4 ports detected
[    1.426632] NET: Registered protocol family 10
[    1.427932] Segment Routing with IPv6
[    1.454422] random: systemd: uninitialized urandom read (16 bytes read)
[    1.456780] random: systemd: uninitialized urandom read (16 bytes read)
[    1.462753] systemd[1]: systemd 232 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
[    1.463339] systemd[1]: Detected architecture arm.
[    1.464297] systemd[1]: Set hostname to <raspberrypi>.
[    1.528189] random: systemd-sysv-ge: uninitialized urandom read (16 bytes read)
[    1.801912] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    1.984356] systemd[1]: Listening on Journal Socket (/dev/log).
[    1.984931] systemd[1]: Listening on udev Kernel Socket.
[    1.985275] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[    1.986202] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[    1.986518] systemd[1]: Listening on udev Control Socket.
[    1.986733] systemd[1]: Listening on fsck to fsckd communication Socket.
[    1.987004] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[    2.032784] usb 1-1.1: New USB device found, idVendor=0bda, idProduct=8179, bcdDevice= 0.00
[    2.032802] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.032811] usb 1-1.1: Product: 802.11n NIC
[    2.032820] usb 1-1.1: Manufacturer: Realtek
[    2.032828] usb 1-1.1: SerialNumber: 00E04C0001
[    2.128653] i2c /dev entries driver
[    2.490117] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    2.588677] systemd-journald[95]: Received request to flush runtime journal from PID 1
[    2.883058] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    2.949067] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    2.962569] Driver for 1-wire Dallas network protocol.
[    2.962700] lib80211: common routines for IEEE802.11 drivers
[    2.962709] lib80211_crypt: registered algorithm 'NULL'
[    2.968629] gpio-34 ([email protected]): enforced open drain please flag it properly in DT/ACPI DSDT/board file
[    2.993351] r8188eu: module is from the staging directory, the quality is unknown, you have been warned.
[    3.033434] Chip Version Info: CHIP_8188E_Normal_Chip_TSMC_D_CUT_1T1R_RomVer(0)
[    3.092099] usbcore: registered new interface driver r8188eu
[    3.175474] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
[    3.177323] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
[    3.177337] [vc_sm_connected_init]: start
[    3.186085] media: Linux media interface: v0.10
[    3.197821] [vc_sm_connected_init]: installed successfully
[    3.276863] videodev: Linux video capture interface: v2.00
[    3.322359] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[    3.331289] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned.
[    3.339151] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[    3.347709] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
[    3.359341] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
[    3.359354] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
[    3.384307] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
[    3.384322] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
[    3.389498] bcm2835_audio soc:audio: card created with 8 channels
[    3.413197] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[    3.413210] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
[    4.501042] random: crng init done
[    4.501075] random: 7 urandom warning(s) missed due to ratelimiting
[    5.512438] MAC Address = 50:3e:aa:af:01:c2
[    5.515249] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[    5.774506] w1_master_driver w1_bus_master1: w1_search: max_slave_count 64 reached, will continue next search.
[    5.799789] Adding 102396k swap on /var/swap.  Priority:-2 extents:1 across:102396k SSFS
[    7.081351] R8188EU: assoc success
[    7.118247] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   10.512815] fuse init (API version 7.27)
[   56.396724] w1_master_driver w1_bus_master1: Attaching one wire slave 00.800000000000 crc 8c
[   56.401726] w1_master_driver w1_bus_master1: Family 0 for 00.800000000000.8c is not registered.
[  119.997891] w1_master_driver w1_bus_master1: Attaching one wire slave 00.400000000000 crc 46
[  120.004742] w1_master_driver w1_bus_master1: Family 0 for 00.400000000000.46 is not registered.
[  170.756957] w1_master_driver w1_bus_master1: Attaching one wire slave 00.c00000000000 crc ca
[  170.763365] w1_master_driver w1_bus_master1: Family 0 for 00.c00000000000.ca is not registered.
[  247.197213] w1_master_driver w1_bus_master1: Attaching one wire slave 00.200000000000 crc 23
[  247.202249] w1_master_driver w1_bus_master1: Family 0 for 00.200000000000.23 is not registered.
[  310.797312] w1_master_driver w1_bus_master1: Attaching one wire slave 00.a00000000000 crc af
[  310.802225] w1_master_driver w1_bus_master1: Family 0 for 00.a00000000000.af is not registered.
[  348.717746] w1_master_driver w1_bus_master1: Attaching one wire slave 00.600000000000 crc 65
[  348.722688] w1_master_driver w1_bus_master1: Family 0 for 00.600000000000.65 is not registered.
Part connected with error

Code: Select all

[    0.733792] pinctrl-bcm2835 3f200000.gpio: pin gpio14 already requested by leds; cannot claim for 3f201000.serial
[    0.734106] pinctrl-bcm2835 3f200000.gpio: pin-14 (3f201000.serial) status -22
[    0.734312] pinctrl-bcm2835 3f200000.gpio: could not request pin 14 (gpio14) from group gpio14  on device pinctrl-bcm2835
[    0.734612] uart-pl011 3f201000.serial: Error applying setting, reverse things back
[    0.734848] uart-pl011: probe of 3f201000.serial failed with error -22
Situation was solved by replacing

Code: Select all

dtoverlay=uart0,txd0_pin=32,rxd0_pin=33,pin_func=7
with

Code: Select all

gpio=32-33=a3


Full /boot/config.txt

Code: Select all

# For more options and information see
# http://rpf.io/configtxt
# Some settings may impact device functionality. See link above for details

# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
#disable_overscan=1

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720

# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=2
#hdmi_mode=1
#hdmi_mode=87
#hdmi_cvt=800 480 60 6 0 0 0


# 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
core_freq=250

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


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

# Additional overlays and parameters are documented /boot/overlays/README

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

dtoverlay=w1-gpio,gpiopin=34

enable_uart=1

#dtoverlay=uart0,txd0_pin=32,rxd0_pin=33,pin_func=7
gpio=32-33=a3
dtoverlay=uart1,txd1_pin=40,rxd1_pin=41
#gpio=37-39=a0

dtoverlay=dpi18
overscan_left=0
overscan_right=0
overscan_top=0
overscan_bottom=0
framebuffer_width=800
framebuffer_height=480
enable_dpi_lcd=1
display_default_lcd=1
dpi_group=2
dpi_mode=87
dpi_output_format=0x3322
dpi_timings=800 0 0 48 0 480 0 0 3 0 0 0 0 60 0 32000000 6
So, is this behavior normal? Can I leave my /boot/config.txt without changing?
What improvements should i make to use

Code: Select all

dtoverlay=uart0,txd0_pin=32,rxd0_pin=33,pin_func=7
instead of

Code: Select all

gpio=32-33=a3
? This methods of configuration is similar?

Thanks in advance for your replies.

Return to “Compute Module”