Go to advanced search

by PhilE
Sat Jul 24, 2021 1:57 pm
Forum: Device Tree
Topic: Problems with overlay for TI TLC59116
Replies: 5
Views: 136

Re: Problems with overlay for TI TLC59116

Let's start with a few simple questions:
1. Which GPIO pins is the device connected to?
2. Do you have any external pull-ups fitted?
3. Can you account for the other devices (0x60 and 0x6b)?
4. Should the other devices be on the same bus (group of pins)?
by PhilE
Fri Jul 23, 2021 10:20 am
Forum: Troubleshooting
Topic: Any Updates on the Pi Zero Wifi in South Korea Issue?
Replies: 32
Views: 1073

Re: Any Updates on the Pi Zero Wifi in South Korea Issue?

We've been told that 43430 WiFi firmware contains a clm_blob that requires the use of non-zero versions of the CC settings in order to work correctly in some regions - "KR" being the main one. The brcmfmac driver does not support this usage except via obsolete board support code. The sugge...
by PhilE
Fri Jul 23, 2021 9:13 am
Forum: Beginners
Topic: chromium won't load certain websites
Replies: 1
Views: 119

Re: chromium won't load certain websites

Without examples of websites that don't work for you, any suggestions would be total guesswork.
by PhilE
Thu Jul 22, 2021 9:03 pm
Forum: Device Tree
Topic: CM4 BQ25890 dtoverlay help
Replies: 7
Views: 251

Re: CM4 BQ25890 dtoverlay help

If you include:

Code: Select all

status = "okay";
in the overlay then you won't need the "dtparam=i2c_vc=on".

Can you modprobe the module? Are there any relevant errors in the output of "dmesg"?
by PhilE
Thu Jul 22, 2021 1:02 pm
Forum: Compute Module
Topic: spi-gpio35-39 does not set CE
Replies: 7
Views: 175

Re: spi-gpio35-39 does not set CE

I don't think you can get direct control of the CE line without hacking the driver or using direct hardware access (e.g. raspi-gpio). However, the structure that define an SPI transfer for spidev includes the field "delay_usecs", of which the documentation says: * @delay_usecs: If nonzero,...
by PhilE
Thu Jul 22, 2021 8:26 am
Forum: Device Tree
Topic: CM4 BQ25890 dtoverlay help
Replies: 7
Views: 251

Re: CM4 BQ25890 dtoverlay help

I think your problem is that there is an I2C multiplexer enabled by default which the i2c0 partially (but not completely) disables. Out of the box, the "i2c0" DT label and /dev/i2c-0 both select the I2C0 hardware interface enabled on GPIOs 0 & 1. I2C0 on GPIOs 44 & 45 is available ...
by PhilE
Thu Jul 22, 2021 7:36 am
Forum: Device Tree
Topic: CM4 BQ25890 dtoverlay help
Replies: 7
Views: 251

Re: CM4 BQ25890 dtoverlay help

Does the device appear in the output of "i2cdetect -y 0"?
by PhilE
Wed Jul 21, 2021 11:20 am
Forum: Compute Module
Topic: spi-gpio35-39 does not set CE
Replies: 7
Views: 175

Re: spi-gpio35-39 does not set CE

The spi-gpio35-39 overlay is behaving as intended, even though the end result isn't what you hoped for. I suggest you get help from your device supplier - I don't have time to debug it for you.
by PhilE
Wed Jul 21, 2021 11:05 am
Forum: Compute Module
Topic: spi-gpio35-39 does not set CE
Replies: 7
Views: 175

Re: spi-gpio35-39 does not set CE

The bcm2835 SPI driver is configured to use arbitrary GPIOs for software CS/CE. Switching to alt0 on GPIO35 bypasses that at least partially - I suspect the kernel is still trying to waggle the GPIO line "manually", but having no effect because the GPIO function isn't enabled. What do you ...
by PhilE
Wed Jul 21, 2021 10:34 am
Forum: Compute Module
Topic: spi-gpio35-39 does not set CE
Replies: 7
Views: 175

Re: spi-gpio35-39 does not set CE

Post the output of the following commands:

Code: Select all

$ sudo apt install gpiod
$ raspi-gpio get 35-39
$ gpioinfo gpiochip0
by PhilE
Tue Jul 20, 2021 5:58 pm
Forum: Compute Module
Topic: [SOLVED] CM4 PMIC not switched off
Replies: 8
Views: 410

Re: CM4 PMIC not switched off

The kernel reboot/halt/poweroff handler uses the watchdog hardware but does not need the userspace watchdog utilities.
by PhilE
Tue Jul 20, 2021 9:56 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: multiple IO with i2ctransfer not working
Replies: 18
Views: 577

Re: multiple IO with i2ctransfer not working

I think that's a wise choice. And technically it's only ~12% slower. ;)
by PhilE
Tue Jul 20, 2021 9:37 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: multiple IO with i2ctransfer not working
Replies: 18
Views: 577

Re: multiple IO with i2ctransfer not working

You have three options:
1. Submit a patch to the bcm2835 driver that allows it (if a suitable Device Tree property is present) to fall back multiple stops and starts in the way that the i2c-bcm2708 driver does.
2. Continue to use i2c-bcm2708.
3. Live with the 14% slower operation.
by PhilE
Tue Jul 20, 2021 8:56 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: multiple IO with i2ctransfer not working
Replies: 18
Views: 577

Re: multiple IO with i2ctransfer not working

Yes, for some values of "working". It may be doing what you want it to do, but it's not doing what it should because it is releasing the bus between the reads. Why are you using i2ctransfer? Is it for speed or convenience? If the single-transfer isn't important to you then you may find it ...
by PhilE
Mon Jul 19, 2021 2:45 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: multiple IO with i2ctransfer not working
Replies: 18
Views: 577

Re: multiple IO with i2ctransfer not working

Oh - you're using I2C0. Try "dtoverlay=i2c0,combine=off" to see if it makes a difference, but I think the "i2c-bcm2708" overlay should be extended to also change the compatible string for I2C0. pi@raspberrypi:~$ dtoverlay -h i2c0 Name: i2c0 Info: Change i2c0 pin usage. Not all pi...
by PhilE
Mon Jul 19, 2021 12:19 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: multiple IO with i2ctransfer not working
Replies: 18
Views: 577

Re: multiple IO with i2ctransfer not working

The dtoverlay line appears to have not worked. What does "sudo vcdbg log msg |& grep dt" show?
by PhilE
Mon Jul 19, 2021 10:41 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: multiple IO with i2ctransfer not working
Replies: 18
Views: 577

Re: multiple IO with i2ctransfer not working

From https://i2c.info/i2c-bus-specification: https://i2c.info/wp-content/images/i2c.info/7-bit-address-writing-reading.gif There is no suggestion that restarts must only be used for write->read switchovers. I tried with the old i2c-bcm2708 driver and using i2ctransfer for two reads worked. However, ...
by PhilE
Sun Jul 18, 2021 9:20 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: multiple IO with i2ctransfer not working
Replies: 18
Views: 577

Re: multiple IO with i2ctransfer not working

Well, the i2ctransfer manpage (https://manpages.debian.org/unstable/i2c-tools/i2ctransfer.8.en.html) says: i2ctransfer is a program to create I2C messages and send them combined as one transfer. For read messages, the contents of the received buffers are printed to stdout, one line per read message....
by PhilE
Sun Jul 18, 2021 6:48 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: multiple IO with i2ctransfer not working
Replies: 18
Views: 577

Re: multiple IO with i2ctransfer not working

I haven't verified this, but my suspicion is that either the I2C hardware can't handle multiple restarts, only a single transition from a write phase to a read phase (the documentation is sketchy), or the author of the driver mistakenly thought that was the case. I don't see any such restriction in ...
by PhilE
Sat Jul 17, 2021 12:10 pm
Forum: Device Tree
Topic: @PhilE, can you help pls.
Replies: 2
Views: 260

Re: @PhilE, can you help pls.

I am aware. It's probably a limitation of the driver, but I can't check now.
by PhilE
Fri Jul 16, 2021 1:52 pm
Forum: Device Tree
Topic: Problems with setting Interrupt Pin to Active Low
Replies: 3
Views: 149

Re: Problems with setting Interrupt Pin to Active Low

now the PIN is again staying at HIGH. So something with the interrupt /GPIO configuration is wrong
You can only say there is something wrong with the configuration if the pin is toggling as expected and the interrupt is not being detected.
by PhilE
Fri Jul 16, 2021 12:26 pm
Forum: Device Tree
Topic: Problems with setting Interrupt Pin to Active Low
Replies: 3
Views: 149

Re: Problems with setting Interrupt Pin to Active Low

This bit of the overlay looks wrong: irq-gpio = <&gpio 4 0x2>; /* IRQF_TRIGGER_FALLING */ interrupts = <4 2>; /* high-to-low edge triggered */ interrupt-parent = <&gpio>; interrupt-controller; The "irq-gpio" property is probably ignored and should be deleted. The "interrupts&q...
by PhilE
Thu Jul 15, 2021 12:55 pm
Forum: Device Tree
Topic: Pi 4B u-boot devicetree loading issues on rev 1.4 boards
Replies: 3
Views: 222

Re: Pi 4B u-boot devicetree loading issues on rev 1.4 boards

However using os_prefix for example would mean I would need to swap files on the boot partition and somehow patch the config.txt which seems to be quite fragile. You're right - but with a there is one final piece of the puzzle that helps with this. Since mid-April the standard boot EEPROM image sup...
by PhilE
Wed Jul 14, 2021 11:36 am
Forum: Troubleshooting
Topic: Only sound for animated movies
Replies: 5
Views: 211

Re: Only sound for animated movies

Putting a new question at the end of an old one is a good way to get ignored. Please start a new topic.
by PhilE
Tue Jul 13, 2021 12:52 pm
Forum: Device Tree
Topic: Pi 4B u-boot devicetree loading issues on rev 1.4 boards
Replies: 3
Views: 222

Re: Pi 4B u-boot devicetree loading issues on rev 1.4 boards

I don't recommend the use of a static DTB loaded by U-boot - there are several changes applied by the firmware that allow us to reduce the number of DTBs that shipped with each kernel and take advantage of early processing time by the VPU, including generating a KASLR seed. You didn't say why you we...

Go to advanced search