Go to advanced search

by PhilE
Wed Apr 24, 2019 4:17 pm
Forum: Device Tree
Topic: Merge 2 DTS
Replies: 30
Views: 439

Re: Merge 2 DTS

Also with your driver, the device is set to be capture device. doesn't it have to be a playback device when i want to record from it? It's not my driver - I just hacked it for you until it compiled. The si4689 datasheet only mentions I2S playback, so it is strange that the driver describes it as a ...
by PhilE
Wed Apr 24, 2019 3:39 pm
Forum: Device Tree
Topic: Merge 2 DTS
Replies: 30
Views: 439

Re: Merge 2 DTS

Do you get one of these errors for each attempt?

Code: Select all

[  352.159010] ASoC: dabboard <-> 3f203000.i2s No matching formats
I suspect this is the problem.
by PhilE
Wed Apr 24, 2019 10:34 am
Forum: Compute Module
Topic: SDIO1 CM3+ WILC1000
Replies: 7
Views: 90

Re: SDIO1 CM3+ WILC1000

So if I understood, I can't use it to plug my external WiFi module ? Do you know if there is an easy way to do that ?
There is no easy way - you would need to break the tracks and reconnect them to other GPIOs, which is harder than what you are doing now.
by PhilE
Wed Apr 24, 2019 10:25 am
Forum: Compute Module
Topic: SDIO1 CM3+ WILC1000
Replies: 7
Views: 90

Re: SDIO1 CM3+ WILC1000

I think your problem is in the wiring - either the signal integrity is too bad, or you have not connected (or misconnected) something.

The SD card adaptor on the CMIO board is only for the CM Lite variant - it isn't connected to the right GPIOs to be useful as a secondary device.
by PhilE
Wed Apr 24, 2019 9:59 am
Forum: Compute Module
Topic: SDIO1 CM3+ WILC1000
Replies: 7
Views: 90

Re: SDIO1 CM3+ WILC1000

pi@raspberrypi:~ $ dmesg | grep sdio [ 0.804391] mmc-bcm2835 3f300000.sdio: could not get clk, deferring probe [ 1.872941] mmc-bcm2835 3f300000.sdio: mmc_debug:0 mmc_debug2:0 [ 1.881101] mmc-bcm2835 3f300000.sdio: DMA channel allocated This isn't an error - it's just an artifact of the way Linux ma...
by PhilE
Wed Apr 24, 2019 9:33 am
Forum: Device Tree
Topic: Merge 2 DTS
Replies: 30
Views: 439

Re: Merge 2 DTS

Did you run "sudo depmod" to update the modules aliases, etc?
by PhilE
Tue Apr 23, 2019 8:43 pm
Forum: Device Tree
Topic: Merge 2 DTS
Replies: 30
Views: 439

Re: Merge 2 DTS

The remove function should have been deleted. Here's the whole file: /* * sound/soc/codecs/si468x.c -- Codec driver for SI468X chips * * Copyright (C) 2012 Innovative Converged Devices(ICD) * Copyright (C) 2013 Andrey Smirnov * Copyright (C) 2014 Bjoern Biesenbach * Copyright (C) 2016 Heiko Jehmlich...
by PhilE
Tue Apr 23, 2019 7:37 pm
Forum: Device Tree
Topic: Merge 2 DTS
Replies: 30
Views: 439

Re: Merge 2 DTS

Change: static struct snd_soc_codec_driver soc_codec_dev_si468x = { .dapm_widgets = si468x_dapm_widgets, .num_dapm_widgets = ARRAY_SIZE(si468x_dapm_widgets), .dapm_routes = si468x_dapm_routes, .num_dapm_routes = ARRAY_SIZE(si468x_dapm_routes), }; static int si468x_probe(struct platform_device *pdev)...
by PhilE
Tue Apr 23, 2019 3:36 pm
Forum: Device Tree
Topic: Merge 2 DTS
Replies: 30
Views: 439

Re: Merge 2 DTS

Try changing line 79 to:

Code: Select all

static struct snd_soc_component_driver soc_codec_dev_si468x = {
If you get more build errors, compare the source with another codec such as https://github.com/raspberrypi/linux/bl ... adau1977.c in case the difference is obvious.
by PhilE
Tue Apr 23, 2019 12:09 pm
Forum: Troubleshooting
Topic: Could I Change MXL7704 Chip with Soldering Machine
Replies: 10
Views: 242

Re: Could I Change MXL7704 Chip with Soldering Machine

To save you wasting time and money, you will not be able to source an MXL7704 compatible with the 3B+.
by PhilE
Tue Apr 23, 2019 12:06 pm
Forum: Device Tree
Topic: Merge 2 DTS
Replies: 30
Views: 439

Re: Merge 2 DTS

A brief explanation of the messages you are seeing: -517 is -EPROBE_DEFER, Linux's alternative to a way of defining startup dependencies. When a component's probe function requests a resource which doesn't exist (yet) it gets -EPROBE_DEFER as an error - effectively "Try again later". The kernel will...
by PhilE
Fri Apr 19, 2019 2:12 pm
Forum: Device Tree
Topic: USB to serial adapter: ttyUSBx identification?
Replies: 2
Views: 67

Re: USB to serial adapter: ttyUSBx identification?

This isn't really a Device Tree question, but I'll have a go at answering. FTDI adaptors have unique serial identifiers, and you can use udev to associate specific names with them. From https://gist.github.com/cbrake/4337154: SUBSYSTEM=="tty", ATTRS{serial}=="FT4M9NIU", ENV{ID_USB_INTERFACE_NUM}=="0...
by PhilE
Wed Apr 17, 2019 9:21 pm
Forum: Device Tree
Topic: Merge 2 DTS
Replies: 30
Views: 439

Re: Merge 2 DTS

First of all, you can make it easier to compile the audiosense overlay by replacing the symbols constant macros with their real values. The decompiled version handily tells us what to substitute: // Definitions for audiosense add on soundcard /dts-v1/; /plugin/; / { compatible = "brcm,bcm2837", "brc...
by PhilE
Tue Apr 16, 2019 11:54 am
Forum: Device Tree
Topic: DPI display and SPI without CE?
Replies: 4
Views: 156

Re: DPI display and SPI without CE?

I can't immediately see a reason why "cs0_pin=27" would stop the driver from loading. I can think of three main possible causes (ignoring for a moment the precise mechanism): 1. The overlay doesn't apply. 2. The pinctrl subsystem detects a clash and the driver is skipped. 3. The driver is loaded but...
by PhilE
Tue Apr 16, 2019 8:00 am
Forum: Device Tree
Topic: [SOLVED] Which dtb for which model?
Replies: 1
Views: 55

Re: Which dtb for which model?

Most of them ought to be fairly self-explanatory, but some dtbs are used to support multiple boards when they are very similar (the firmware makes some small adjustments where necessary): bcm2708-rpi-0-w.dtb: Pi Zero W bcm2708-rpi-b.dtb: Pi Model B and Model A bcm2708-rpi-b-plus.dtb: Pi B+, A+ and Z...
by PhilE
Fri Apr 12, 2019 8:48 am
Forum: Device Tree
Topic: DPI display and SPI without CE?
Replies: 4
Views: 156

Re: DPI display and SPI without CE?

Have you tried the "spi0-cs" overlay? pi@raspberrypi:~$ dtoverlay -h spi0-cs Name: spi0-cs Info: Allows the (software) CS pins for SPI0 to be changed Usage: dtoverlay=spi0-cs,<param>=<val> Params: cs0_pin GPIO pin for CS0 (default 8) cs1_pin GPIO pin for CS1 (default 7)
by PhilE
Wed Apr 10, 2019 12:32 pm
Forum: Compute Module
Topic: I got thermal paste on my board
Replies: 7
Views: 220

Re: I got thermal paste on my board

IPA is safe enough that some people consume it by the pint.
by PhilE
Tue Apr 09, 2019 12:49 pm
Forum: Device Tree
Topic: [SOLVED] Mapping from pin@pxx to 40-in header, in dt-blob.dts
Replies: 2
Views: 103

Re: Mapping from pin@pxx to 40-in header, in dt-blob.dts

The dt-blob is not meant to list all pins - just those with a specific function and that require a non-default value. If you were to initialise GPIO18 from the dt-blob to be an output driving low you would need to add something like: pin@p18 { function = "output"; termination = "no_pulling"; polarit...
by PhilE
Thu Apr 04, 2019 8:39 am
Forum: Compute Module
Topic: Can't get UART1 to work on GPIO 14 and 15
Replies: 11
Views: 360

Re: Can't get UART1 to work on GPIO 14 and 15

Yes, yes and yes.
by PhilE
Thu Apr 04, 2019 7:56 am
Forum: Compute Module
Topic: Can't get UART1 to work on GPIO 14 and 15
Replies: 11
Views: 360

Re: Can't get UART1 to work on GPIO 14 and 15

Unfortunately, the updates will have overwritten the older firmware and undone the fix. The workaround is easy - download this older version of uart0.dtbo . The final solution - finding a better way to manage UART pin mappings to avoid unwanted and unexpected double mapping - will require careful th...
by PhilE
Wed Apr 03, 2019 2:07 pm
Forum: Compute Module
Topic: Can't get UART1 to work on GPIO 14 and 15
Replies: 11
Views: 360

Re: Can't get UART1 to work on GPIO 14 and 15

There is a typo in your dtoverlay line (it should be rxd1_pin), but that's probably a transcription error when writing this post. I think the problem is going to be pin contention caused by a change in November last year, the intention of which was to avoid leaving pins 14 and 15 with TXD0 and RXD0 ...
by PhilE
Wed Apr 03, 2019 1:02 pm
Forum: Compute Module
Topic: Can't get UART1 to work on GPIO 14 and 15
Replies: 11
Views: 360

Re: Can't get UART1 to work on GPIO 14 and 15

Which Pi are you running this on?
by PhilE
Wed Apr 03, 2019 9:03 am
Forum: Compute Module
Topic: Raspi-gpio doesn't work as per documentation
Replies: 3
Views: 253

Re: Raspi-gpio doesn't work as per documentation

The RPi-Distro/raspi-gpio repo contains a fix for this bug, and it will be picked up by the next package build.
by PhilE
Tue Apr 02, 2019 10:55 am
Forum: Compute Module
Topic: Raspi-gpio doesn't work as per documentation
Replies: 3
Views: 253

Re: Raspi-gpio doesn't work as per documentation

Ah - "apt info" is a very recent addition. For current and older releases you can use the slightly-less-obvious:

Code: Select all

$ apt-cache show raspi-gpio
by PhilE
Tue Apr 02, 2019 10:39 am
Forum: Compute Module
Topic: Raspi-gpio doesn't work as per documentation
Replies: 3
Views: 253

Re: Raspi-gpio doesn't work as per documentation

Congratulations - you are the first to report this bug. raspi-gpio is Raspbian package - not part of the firmware - so you can find its version from "apt info raspi-gpio". Fixing the issue shouldn't be difficult, but it won't be a high priority; until then, here is a workaround: $ alias gpio-funcs="...

Go to advanced search