Go to advanced search

by PhilE
Sat Sep 21, 2019 7:02 pm
Forum: Device Tree
Topic: dtoverlay disable from command line
Replies: 5
Views: 73

Re: dtoverlay disable from command line

Although you can't remove an overlay applied from config.txt, you could apply it at runtime instead which would then allow you to subsequently remove it. Try the following: 1. Comment out the line in the config file and reboot. 2. Run "sudo dtoverlay mcp23017" 3. Verify that it works. 4. Run "sudo d...
by PhilE
Sat Sep 21, 2019 1:46 pm
Forum: Device Tree
Topic: dtoverlay disable from command line
Replies: 5
Views: 73

Re: dtoverlay disable from command line

Either my eyesight is failing or the after looks a lot like the before - should there have been a # comment character at the start of the edited version?
by PhilE
Fri Sep 20, 2019 12:57 pm
Forum: Official Foundation Display
Topic: Conditional filter to set HDMI as the default display.
Replies: 16
Views: 1672

Re: Conditional filter to set HDMI as the default display.

A commit has just gone into the firmware software repo that supports the use of "[edid=*]" to mean any valid EDID, i.e. an HDMI device is attached. It will be in the next firmware build, available first using "sudo rpi-update".
by PhilE
Thu Sep 19, 2019 2:40 pm
Forum: Compute Module
Topic: CM3 Plus and WiFi/BT CYW43455
Replies: 40
Views: 4306

Re: CM3 Plus and WiFi/BT CYW43455

OK -thanks. This will target the SD1 (ALT3) for WiFi and not affect the SD0 (ALT0) used by the micro SD flash filesystem? Yes - the help information is misleading/incorrect when it refers to sdhost - this is SD1: sdio_ovl_pins: sdio_ovl_pins { brcm,pins = <22 23 24 25 26 27>; brcm,function = <7>; /...
by PhilE
Thu Sep 19, 2019 2:21 pm
Forum: Compute Module
Topic: CM3 Plus and WiFi/BT CYW43455
Replies: 40
Views: 4306

Re: CM3 Plus and WiFi/BT CYW43455

I don't think there's an overlay to enable UART0 flow control on GPIOs 16-17. A custom overlay would look something like this: /dts-v1/; /plugin/; /{ compatible = "brcm,bcm2835"; fragment@0 { target = <&uart0_pins>; __overlay__ { brcm,pins = <14 15 16 17>; brcm,function = <4 4 7 7>; brcm,pull = <0 2...
by PhilE
Thu Sep 19, 2019 2:15 pm
Forum: Compute Module
Topic: CM3 Plus and WiFi/BT CYW43455
Replies: 40
Views: 4306

Re: CM3 Plus and WiFi/BT CYW43455

Just add "dtoverlay=sdio" to config.txt to switch the SDIO function to GPIOs 22-27. Run "dtoverlay -h sdio" for more info.
by PhilE
Tue Sep 17, 2019 9:19 am
Forum: Device Tree
Topic: Error while compiling device tree overlay file
Replies: 2
Views: 63

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: 1309

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: 1309

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: 40
Views: 4306

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: 57
Views: 4027

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: 120

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: 120

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: 8
Views: 437

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: 164

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: 57
Views: 4027

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: 57
Views: 4027

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: 66

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: 120

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: 243

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: 14558

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: 11451

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: 57
Views: 4027

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: 243

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: 40
Views: 4306

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...

Go to advanced search