Go to advanced search

by PhilE
Tue Sep 17, 2019 9:19 am
Forum: Device Tree
Topic: Error while compiling device tree overlay file
Replies: 2
Views: 54

Re: Error while compiling device tree overlay file

To expand on what @6by9 said, phandles are the manifestation of labels in the compiled Device Tree file - think of them like numeric bookmarks. Every node that has a label attached will automatically be given a phandle with a unique small integer. Every reference to a label will be replaced with the...
by PhilE
Tue Sep 17, 2019 9:10 am
Forum: Device Tree
Topic: TouchScreen Driver Support for Hycon 46XX Chip
Replies: 4
Views: 1278

Re: TouchScreen Driver Support for Hycon 46XX Chip

P.S. When compiling the overlay you need to include the '-@' parameter, otherwise it will complain about undefined symbols and/or fail to apply. You can check for overlay application errors with "sudo vcdbg log msg".
by PhilE
Tue Sep 17, 2019 9:08 am
Forum: Device Tree
Topic: TouchScreen Driver Support for Hycon 46XX Chip
Replies: 4
Views: 1278

Re: TouchScreen Driver Support for Hycon 46XX Chip

I missed this thread the first time round, so I'm a bit late to the party. Is the driver being compiled (look for hy46xx_ts.o)? Unless you have also adding TOUCHSCREEN_HYCON to the relevant Kconfig file and added TOUCHSCREEN_HYCON=y or TOUCHSCREEN_HYCON=m to bcm2710_defconfig (or edited the .config ...
by PhilE
Mon Sep 16, 2019 4:27 pm
Forum: Compute Module
Topic: CM3 Plus and WiFi/BT CYW43455
Replies: 35
Views: 4107

Re: CM3 Plus and WiFi/BT CYW43455

> Or are there discrete components (including the CYW43455) soldered to the Pi and the metal can is soldered to the Pi PCB?

This, as you can see if you look carefully around the edge of the can.
by PhilE
Mon Sep 16, 2019 12:24 pm
Forum: Troubleshooting
Topic: VLI firmware v2.0 - powersaving features enabled
Replies: 56
Views: 3625

Re: VLI firmware v2.0 - powersaving features enabled

There were some internal implementation changes in the vl805 utility, and library linkage is now static, but the functionality should be identical.
by PhilE
Mon Sep 16, 2019 10:22 am
Forum: Device Tree
Topic: Combining overlays for single GPIO use
Replies: 3
Views: 103

Re: Combining overlays for single GPIO use

OK, I've got some good news and some less-good news. The Linux gpiolib subsystem has a new flag - GPIOD_FLAGS_BIT_NONEXCLUSIVE - that allows two drivers to claim the same GPIO. It is intended for use with regulators, and there are warning comments about the hacky nature and how it may only work in a...
by PhilE
Mon Sep 16, 2019 8:53 am
Forum: Device Tree
Topic: Combining overlays for single GPIO use
Replies: 3
Views: 103

Re: Combining overlays for single GPIO use

Overlays don't provide any functionality themselves, they just enable and configure functionality provided by device drivers. The gpio-poweroff overlays makes use of the gpio-poweroff driver, whereas the gpio-shutdown overlay configures the gpio-keys driver to generate KEY_POWER. Both of those drive...
by PhilE
Sat Sep 14, 2019 7:56 pm
Forum: Compute Module
Topic: Compute Module 4
Replies: 5
Views: 284

Re: Compute Module 4

If you are going to ask questions we can't answer, you could at least make them original: https://www.raspberrypi.org/forums/view ... p?t=243395
by PhilE
Fri Sep 13, 2019 12:59 pm
Forum: Device Tree
Topic: Make pin low active on PCA9554
Replies: 2
Views: 113

Re: Make pin low active on PCA9554

pca9554: nxp@20 { compatible = "nxp,pca9554"; reg = <0x20>; gpio-controller; #gpio-cells = <2>; data-gpios = <&gpio 6 1>; I see what you are trying to do here, but you seem to have a few things backwards: 1. Device Tree GPIO declarations typically have three parts - a reference to the GPIO controll...
by PhilE
Thu Sep 12, 2019 11:45 am
Forum: Troubleshooting
Topic: VLI firmware v2.0 - powersaving features enabled
Replies: 56
Views: 3625

Re: VLI firmware v2.0 - powersaving features enabled

The utility contains VIA proprietary information so is closed source, but for greater portability I've updated the archive with a statically linked build.
by PhilE
Wed Sep 11, 2019 4:11 pm
Forum: Troubleshooting
Topic: VLI firmware v2.0 - powersaving features enabled
Replies: 56
Views: 3625

Re: VLI firmware v2.0 - powersaving features enabled

For performance measurements I would also recommend switching to the performance governor:

Code: Select all

sudo sh -c "echo performance > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor"
by PhilE
Wed Sep 11, 2019 2:08 pm
Forum: Device Tree
Topic: Problem with GPIO Mode
Replies: 1
Views: 54

Re: Problem with GPIO Mode

Can I see the rest of your overlay? And which platform are you on?
by PhilE
Wed Sep 11, 2019 8:13 am
Forum: Compute Module
Topic: Write the MAC-Address into the OTP-Register 64/65 with the command line
Replies: 1
Views: 101

Re: Write the MAC-Address into the OTP-Register 64/65 with the command line

You can't - there is no mechanism for that on the Compute Module.
by PhilE
Tue Sep 10, 2019 12:25 pm
Forum: Device Tree
Topic: PCIe node in the DTB
Replies: 5
Views: 215

Re: PCIe node in the DTB

I have not seen any mention of ECAM - just the 4KB steerable configuration space window at offset 0x8000 from the base address. 0x9310 is the size of the known registers, some of which are after the window (hence the odd size).
by PhilE
Tue Sep 10, 2019 8:26 am
Forum: Advanced users
Topic: New RT (Real Time) kernel branch
Replies: 45
Views: 14457

Re: New RT (Real Time) kernel branch

The RT kernel is officially hosted but not officially supported. The aim is to reduce the amount of effort required to use a -rt kernel by pre-applying the necessary RT patches, but we have no plans to build and distribute it.
by PhilE
Mon Sep 09, 2019 8:38 pm
Forum: Device Tree
Topic: Adding a 2nd w1 GPIO
Replies: 23
Views: 11404

Re: Adding a 2nd w1 GPIO

I understand what you are saying, but it doesn't make sense. You should get identical results between the two variants - the lines aren't long enough to cause a problem. Try reverting to the two-line version, adding "dtdebug=1", then after rebooting run "sudo vcdbg log msg |& grep dt" and post the o...
by PhilE
Mon Sep 09, 2019 2:33 pm
Forum: Troubleshooting
Topic: VLI firmware v2.0 - powersaving features enabled
Replies: 56
Views: 3625

Re: VLI firmware v2.0 - powersaving features enabled

... if USB devices become inaccessible after flashing the firmware (the script rescans the bus) There used to be a wrapper script called "vl805_flash" that would perform a rescan after flashing, but we don't use that now. The provided "vl805" utility just updates the EEPROM and should have no other...
by PhilE
Sun Sep 08, 2019 6:09 pm
Forum: Device Tree
Topic: PCIe node in the DTB
Replies: 5
Views: 215

Re: PCIe node in the DTB

The PCIe node is correct enough to work. If somebody wants to submit corrections then I'll consider them, otherwise I won't be making any changes there.
by PhilE
Fri Sep 06, 2019 9:40 pm
Forum: Compute Module
Topic: CM3 Plus and WiFi/BT CYW43455
Replies: 35
Views: 4107

Re: CM3 Plus and WiFi/BT CYW43455

1) Sufficient disclosure of a hardware schematic (3B, 3B+ or reference CM3 carrier board) so that a WiFi/BT module with same chipset (CYW43438 or CYW43455) can be wired correctly (SDIO + Serial) to the CM3+ pins to match the Pi3B (CYW43438) or Pi3B+ (CYW43455). Any chipset will come with a datashee...
by PhilE
Fri Sep 06, 2019 9:25 pm
Forum: Compute Module
Topic: CM3 Plus and WiFi/BT CYW43455
Replies: 35
Views: 4107

Re: CM3 Plus and WiFi/BT CYW43455

I take it you've already given Roger that feedback?
by PhilE
Fri Sep 06, 2019 10:02 am
Forum: Troubleshooting
Topic: stretch WAP suddenly not working.
Replies: 2
Views: 137

Re: stretch WAP suddenly not working.

For somebody who has "asked about this before", your post is light on important information such as which USB dongle you are using. Are you saying that the only thing that happened between a working system and a dead one was a power outage? That sounds like either the card has become corrupted or th...
by PhilE
Thu Sep 05, 2019 7:23 pm
Forum: Device Tree
Topic: Device Tree to enable 2 serials and bluetooth
Replies: 5
Views: 1591

Re: Device Tree to enable 2 serials and bluetooth

You're missing 36/37 (alt2) for UART 0, but otherwise that list is correct.
by PhilE
Wed Sep 04, 2019 1:47 pm
Forum: HATs and other add-ons
Topic: cm3plus does not read id eeprom at boot
Replies: 3
Views: 134

Re: cm3plus does not read id eeprom at boot

Are you sure your dt-blob.bin is being used? Try modifying some other pin, e.g. make GPIO4 an output, and verify with raspi-gpio that it is taking effect.

And do use external pull-ups - the internal pull-ups aren't strong enough for I2C.
by PhilE
Wed Sep 04, 2019 1:05 pm
Forum: Compute Module
Topic: cm/cm3 boot-time configuration
Replies: 8
Views: 1197

Re: cm/cm3 boot-time configuration

Did you find solution reading the HAT EEPROM and get details loaded into /proc/device-tree/hat at boot?
If you really want to read a HAT EEPROM on a CM, then you can add "force_eeprom_read=1" to config.txt, and define ID_SDA and ID_SCL in your dt-blob.bin.
by PhilE
Tue Sep 03, 2019 11:27 am
Forum: Device Tree
Topic: Using two audio devices in device tree
Replies: 3
Views: 173

Re: Using two audio devices in device tree

The likely problem with using two audio devices is the fact that the audio overlays all(?) place the definition of the sound card in the same DT node - /soc/sound - so each additional overlay overwrites any predecessors, at least partially. There's no technical reason why this should be the case, it...

Go to advanced search