Go to advanced search

by PhilE
Thu Jun 01, 2023 9:46 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Non Conflicting I2C device not working together (Pi Zero W)
Replies: 3
Views: 121

Re: Non Conflicting I2C device not working together (Pi Zero W)

GPIO 8 and 9
Which pin/GPIO numbering scheme are you using? The I2C bus with the pull-ups is on SoC/Broadcom GPIOs 2 & 3, which are on header pins 3 & 5.
by PhilE
Thu Jun 01, 2023 7:31 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Non Conflicting I2C device not working together (Pi Zero W)
Replies: 3
Views: 121

Re: Non Conflicting I2C device not working together (Pi Zero W)

Are the other devices all being powered from the Pi via the 4-pin connectors? The Zero W isn't capable of powering much in the way of external peripherals. Do you have a way to give at least one an independent power supply?
by PhilE
Wed May 31, 2023 1:51 pm
Forum: Compute Module
Topic: Invalid GPIO command 2=op,dl
Replies: 3
Views: 89

Re: Invalid GPIO command 2=op,dl

And the early bootloader does also parse it, hence the diagnostic messages above.
by PhilE
Wed May 31, 2023 1:50 pm
Forum: Compute Module
Topic: Invalid GPIO command 2=op,dl
Replies: 3
Views: 89

Re: Invalid GPIO command 2=op,dl

It looks fine to me: $ grep gpio /boot/config.txt #dtoverlay=gpio-ir,gpio_pin=17 #dtoverlay=gpio-ir-tx,gpio_pin=18 gpio=2=op,dl which leads to: RPi: BOOTLOADER release VERSION:8ba17717 DATE: 2023/01/11 TIME: 17:40:52 ... FAT32 clusters 130554 Read config.txt bytes 2130 hnd 0x6702 gpio_cmd: '2=op,dl'...
by PhilE
Sun May 28, 2023 5:15 pm
Forum: Compute Module
Topic: CM4: Mismatched revision code from bootloader vs cpuinfo
Replies: 8
Views: 384

Re: CM4: Mismatched revision code from bootloader vs cpuinfo

What is in boot.scr? Any references to fdt are particularly relevant.
by PhilE
Fri May 26, 2023 3:04 pm
Forum: Device Tree
Topic: Setting mmc0 4-bit mode actual clock speed on rpi4b
Replies: 3
Views: 214

Re: Setting mmc0 4-bit mode actual clock speed on rpi4b

I made a mistake - the sd_overclock parameter is currently only supported on the older Pis, and was intended to boost the clock as well as reduce it. Something similar could probably added to the sdhci-iproc driver used by BCM2711, but it isn't there yet. And you're right about the sdhci-iproc drive...
by PhilE
Thu May 25, 2023 9:40 pm
Forum: Device Tree
Topic: Setting mmc0 4-bit mode actual clock speed on rpi4b
Replies: 3
Views: 214

Re: Setting mmc0 4-bit mode actual clock speed on rpi4b

SD cards are meant to run as fast as they can, which for that interface is 50MHz. Linux has no standard way to change that. However, the Pi MMC/SD drivers have an extra setting that allows the clock to be changed. To run the interface at 20MHz, add "dtparam=sd_overclock=20" to confíg.txt. ...
by PhilE
Thu May 25, 2023 2:21 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CTS RTS Pin enable
Replies: 10
Views: 317

Re: CTS RTS Pin enable

> how i can enable the flow control of uart5? You've done enough to enable the flow control signals from the UART to appear on the 40-pin header, but: 1. The UART may not be configured to use them. RTS (strictly, nRTS) is driven low when the UART is ready to receive data. Similarly, it looks for low...
by PhilE
Thu May 25, 2023 1:44 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CTS RTS Pin enable
Replies: 10
Views: 317

Re: CTS RTS Pin enable

> in which version of kernel shows ttyAMA5?

The patch appeared in 6.1.26, so it should be included in yours. "ls /dev/ttyAMA*" if you're in doubt. Note that you might get different results if the Device Tree (dtb) files weren't also updated.
by PhilE
Thu May 25, 2023 1:19 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CTS RTS Pin enable
Replies: 10
Views: 317

Re: CTS RTS Pin enable

To see if the overlay has been applied correctly and is being used by the kernel, what does "raspi-gpio get 12-15" show?

Note that with one of the latest kernels, enabling UART5 results in /dev/ttyAMA5 appearing, not /dev/ttyAMA1.
by PhilE
Thu May 25, 2023 8:04 am
Forum: Compute Module
Topic: CM4: Mismatched revision code from bootloader vs cpuinfo
Replies: 8
Views: 384

Re: CM4: Mismatched revision code from bootloader vs cpuinfo

Did you run both of those images on the same board? Did you notice that the serial number also changed? My guess is that U-boot has been configured to use a pre-canned, pre-patched DTB, rather than inherit one from the firmware (which U-boot can easily do).
by PhilE
Wed May 24, 2023 8:22 pm
Forum: Compute Module
Topic: CM4: Mismatched revision code from bootloader vs cpuinfo
Replies: 8
Views: 384

Re: CM4: Mismatched revision code from bootloader vs cpuinfo

It's certainly nothing to worry about, provided the cpuinfo value matches the device you paid for. I don't know how the value programmed into the OTP is obtained - whether it is supposed to change when the RAM size on the production line is changed, whether they all get the same fixed value, or some...
by PhilE
Tue May 23, 2023 9:38 am
Forum: Advanced users
Topic: Moving Linux Kernel to 6.1
Replies: 390
Views: 57404

Re: Moving Linux Kernel to 6.1

I can see something similar with an SPI display. I think it's caused by something in this PR: https://github.com/raspberrypi/linux/pull/5458
by PhilE
Fri May 19, 2023 4:49 pm
Forum: Compute Module
Topic: Connecting to CM4 via usb-serial (Linux host)
Replies: 4
Views: 281

Re: Connecting to CM4 via usb-serial (Linux host)

I couldn't say - I'm not an electronics engineer. It's also possible that the RX input on the CM4 is damaged.
by PhilE
Fri May 19, 2023 4:31 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SPI Clock speed jumping
Replies: 8
Views: 437

Re: SPI Clock speed jumping

The firmware has always reserved the right to control the core clock without any form of handshake with or limitation by the ARM, as a way of preventing thermal runaway. If ARM performance is not a limitation for you then you may find that switching the powersave governor is a suitable way to preven...
by PhilE
Fri May 19, 2023 4:26 pm
Forum: Compute Module
Topic: Connecting to CM4 via usb-serial (Linux host)
Replies: 4
Views: 281

Re: Connecting to CM4 via usb-serial (Linux host)

Code: Select all

pin 1(5V) --> 5V
That's a bit alarming - the GPIOs are 3.3V, and may explain why you can't get a response.
by PhilE
Fri May 19, 2023 12:54 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SPI Clock speed jumping
Replies: 8
Views: 437

Re: SPI Clock speed jumping

It's a subject that's come up more than once, and there should probably be a more portable way to achieve the same effect. "core_freq=max" or "core_freq=min" appeals, but the parser is expecting integers so that doesn't work. Magic values signifying max and min would be easy to a...
by PhilE
Fri May 19, 2023 10:43 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SPI Clock speed jumping
Replies: 8
Views: 437

Re: SPI Clock speed jumping

Doh - corrected. I wish I could say it was the first time I've got that wrong.
by PhilE
Fri May 19, 2023 10:27 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SPI Clock speed jumping
Replies: 8
Views: 437

Re: SPI Clock speed jumping

Unfortunately the SPI clock is derived from the core clock, and with the default configuration the core clock varies with load. On any Pi you can lock the core lock by giving the config.txt settings "core_freq" and "core_freq_min" the same value, e.g. 500 on a Pi 4. `force_turbo=...
by PhilE
Fri May 19, 2023 8:18 am
Forum: Compute Module
Topic: CM4 seems burnt with no reason
Replies: 1
Views: 273

Re: CM4 seems burnt with no reason

> The heat sink on the module Which heat sink is this? They aren't standard equipment. > I use PD charger which for my cell phone to supply this board, is it possible that it(charger) source more than 5V?? I genuine PD charger shouldn't offer higher current or voltages to a non-PD device, but you se...
by PhilE
Wed May 17, 2023 4:18 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: MAX3107 Won't appear in /dev [SOLVED]
Replies: 4
Views: 395

Re: MAX3107 Won't appear in /dev

Hmm - I wonder if your embedded clock declaration has confused the kernel into thinking you want it to be something other than a tty; that's how the kernel-configured Bluetooth support works. Try moving it into a fragment of its own, using a target-path (not a target) of "/" or ("/clo...
by PhilE
Wed May 17, 2023 8:05 am
Forum: Advanced users
Topic: Moving Linux Kernel to 6.1
Replies: 390
Views: 57404

Re: Moving Linux Kernel to 6.1

Because the new way is logical and what upstream do. We've been reverting a patch for years now, but apart from the fact that it is a change it is hard to justify not doing so.
by PhilE
Tue May 16, 2023 5:50 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: MAX3107 Won't appear in /dev [SOLVED]
Replies: 4
Views: 395

Re: MAX3107 Won't appear in /dev

Your overlay doesn't appear to disable spidev0.0. Are you using another overlay for that, or is the clash the cause of your problem?
by PhilE
Tue May 16, 2023 12:45 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Show all GPIOs in use
Replies: 1
Views: 266

Re: Show all GPIOs in use

This should do what you want:

Code: Select all

$ sudo cat /sys/kernel/debug/gpio
by PhilE
Tue May 16, 2023 10:56 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Thermal printer with parallel port
Replies: 6
Views: 464

Re: Thermal printer with parallel port

Searching for "raspberry pi thermal printer cups driver" finds quite a few tutorials that may be relevant.

Go to advanced search