Go to advanced search

by PhilE
Wed Feb 26, 2020 2:34 pm
Forum: Compute Module
Topic: [SOLVED] CM3 Plus and WiFi/BT CYW43455
Replies: 95
Views: 13427

Re: [SOLVED] CM3 Plus and WiFi/BT CYW43455

[ I'm back in the office now, so support becomes a lot easier. ] I think your problem is that the CM3 dtb is a skeleton - a starting point to creating an application-specific DTB. Unlike Pi 3B which has a set of known peripherals, the CM3 can be plugged into a wide variety of base boards, and we did...
by PhilE
Tue Feb 25, 2020 8:47 pm
Forum: Device Tree
Topic: gpio_keys device tree overlay
Replies: 17
Views: 6656

Re: gpio_keys device tree overlay

A slightly neater hack would be to add the following to config.txt:

Code: Select all

gpio=12,13,16=ip,pu
by PhilE
Sun Feb 23, 2020 9:05 pm
Forum: Device Tree
Topic: gpio_keys device tree overlay
Replies: 17
Views: 6656

Re: gpio_keys device tree overlay

As you say, GPIOs 0-8 have a default pull up, while GPIOs 9-27 pull down. This is the reset state designed into the GPIO block, and the firmware doesn't change it unless asked to with a dt-blob, ”gpio=" directive, etc. You can get the pinctrl driver to change the pulls for you by creating a group ("...
by PhilE
Sun Feb 23, 2020 2:11 pm
Forum: Compute Module
Topic: [SOLVED] CM3 Plus and WiFi/BT CYW43455
Replies: 95
Views: 13427

Re: [SOLVED] CM3 Plus and WiFi/BT CYW43455

The vcdbg output earlier shows a few problems: 017337.758: dtparam: uart0_arm=on 017346.358: Unknown dtparam 'uart0_arm' - ignored 017346.533: dtparam: audio=on 017405.958: brfs: File read: 1674 bytes 017414.234: brfs: File read: /mfs/sd/overlays/uart1-bt.dtbo 017431.105: dterror: can't find symbol ...
by PhilE
Sat Feb 22, 2020 3:56 pm
Forum: Compute Module
Topic: [SOLVED] CM3 Plus and WiFi/BT CYW43455
Replies: 95
Views: 13427

Re: [SOLVED] CM3 Plus and WiFi/BT CYW43455

I didn't explain the bt_pins change clearly enough - try with:

Code: Select all

	fragment@6 {
		target = <&bt_pins>;
		__overlay__ {
			brcm,pins = "-"; 
			brcm,function = <0>;
			brcm,pull = <2>;
		};
	};
};
If that still doesn't work, have a look for/at /proc/device-tree/soc/gpio@7e200000/bt_pins/brcm,pins.
by PhilE
Sat Feb 22, 2020 9:35 am
Forum: Compute Module
Topic: [SOLVED] CM3 Plus and WiFi/BT CYW43455
Replies: 95
Views: 13427

Re: [SOLVED] CM3 Plus and WiFi/BT CYW43455

Hmm - try replacing the target of fragment 6 with "&bt_pins" and using just the properties as the content of the __overlay__ node. Also verify that the overlay is still being applied (check the output of raspi-gpio and "sudo vcdbg log msg").
by PhilE
Fri Feb 21, 2020 4:38 pm
Forum: Compute Module
Topic: [SOLVED] CM3 Plus and WiFi/BT CYW43455
Replies: 95
Views: 13427

Re: [SOLVED] CM3 Plus and WiFi/BT CYW43455

This is the important line in the systemd output: ConditionFileNotEmpty=/proc/device-tree/soc/gpio@7e200000/bt_pins/brcm,pins Forgive my vagueness - I'm away from the office and computers - but there is an overlay that sets the brcm,pins property of the bt_pins node to an empty string (""). This is ...
by PhilE
Fri Feb 21, 2020 7:08 am
Forum: Compute Module
Topic: [SOLVED] CM3 Plus and WiFi/BT CYW43455
Replies: 95
Views: 13427

Re: [SOLVED] CM3 Plus and WiFi/BT CYW43455

You don't need to enable a fake CTS pin when you have a real one - the clash will prevent the uart1 device node from being instantiated.
by PhilE
Thu Feb 20, 2020 9:22 pm
Forum: Device Tree
Topic: Enable UART1 from HAT EEPROM
Replies: 3
Views: 170

Re: Enable UART1 from HAT EEPROM

You've got the syntax of the fragment enabling parameter wrong. The initial phandle (the part which is normally a reference to a label) must be zero, and the string is a sequence of "<symbol><number>" pairs, where the number is the number of a fragment and the symbol is one of: = : enable or disable...
by PhilE
Thu Feb 20, 2020 9:02 pm
Forum: Device Tree
Topic: gpio_keys device tree overlay
Replies: 17
Views: 6656

Re: gpio_keys device tree overlay

I've answered as much as I can, having not attempted the kind of key remapping you require. Just keep searching and trying - the worst that can happen is that you might learn something.
by PhilE
Thu Feb 20, 2020 1:57 pm
Forum: Compute Module
Topic: [SOLVED] CM3 Plus and WiFi/BT CYW43455
Replies: 95
Views: 13427

Re: [SOLVED] CM3 Plus and WiFi/BT CYW43455

Yes it is - take a look at the miniuart-bt overlay: https://github.com/raspberrypi/linux/bl ... verlay.dts
by PhilE
Thu Feb 20, 2020 12:08 pm
Forum: Compute Module
Topic: [SOLVED] CM3 Plus and WiFi/BT CYW43455
Replies: 95
Views: 13427

Re: [SOLVED] CM3 Plus and WiFi/BT CYW43455

It's not possible - of the UARTs, only UART1 can be in that position.
by PhilE
Wed Feb 19, 2020 6:56 am
Forum: Device Tree
Topic: Reuse SPI pin.
Replies: 3
Views: 146

Re: Reuse SPI pin.

raspi-gpio will give you an accurate picture of whether or not the pinctrl has worked, but it sounds as though you have removed the contention.
by PhilE
Tue Feb 18, 2020 8:34 am
Forum: Device Tree
Topic: Reuse SPI pin.
Replies: 3
Views: 146

Re: Reuse SPI pin.

You need to add another fragment that modifies the spi0_pins node to remove the pin assignments. The order of those pins doesn't matter (it's pinctrl that reads them, not the SPI driver), so just revive remove 9 from the list.
by PhilE
Mon Feb 17, 2020 4:50 pm
Forum: Device Tree
Topic: add i2c node
Replies: 1
Views: 73

Re: add i2c node

From a first glance I'd say the problem is that i2c80 doesn't exist - try &i2c_arm instead.
by PhilE
Fri Feb 14, 2020 2:16 pm
Forum: Advanced users
Topic: Accessing Embedded Trace Buffer on PI?
Replies: 1
Views: 135

Re: Accessing Embedded Trace Buffer on PI?

You can enable ARM JTAG pins on the header for hardware debugging, but I don't think Pi 3 (BCM2710) has an ETM block (I've not seen it mentioned, and never tried it). Pi 4 (BCM2711) does claim to have an ARM debug core, but I don't know if anyone has tried to use it.
by PhilE
Fri Feb 14, 2020 10:30 am
Forum: Device Tree
Topic: SPI1-spidev2 troubleshoot
Replies: 5
Views: 224

Re: SPI1-spidev2 troubleshoot

interrupt2 = <&arinc_pins>,"brcm,pins:4",<&arinc>,"interrupts:8"; This line defines the parameter called "interrupt2". The parameter is configured to patch two integer properties (the ":<n>" part means a 4-byte integer at byte offset <n> from the start of the property) - "brcm,pins" at offset 4 in ...
by PhilE
Thu Feb 13, 2020 4:55 pm
Forum: Compute Module
Topic: Rare comms failure with enc28j60 and compute module "netdev watchdog: eth0 ("enc28j60"): transmit queue 0 timed out"
Replies: 21
Views: 3092

Re: Rare comms failure with enc28j60 and compute module "netdev watchdog: eth0 ("enc28j60"): transmit queue 0 timed out"

I've had a number of failures so far, and I'm progressively increasing the enabled tracing to try and get a handle on what is happening. So far I can see the amount of SPI traffic suddenly slow down, then 4 seconds later the timeout goes off. I had expected the cause to be a lack of interrupts, but ...
by PhilE
Thu Feb 13, 2020 3:18 pm
Forum: Device Tree
Topic: SPI1-spidev2 troubleshoot
Replies: 5
Views: 224

Re: SPI1-spidev2 troubleshoot

Here's a version of the overlay that has a chance of working (but see notes below): /* * Device tree overlay for hi3593/arinc on spi1.2 */ /dts-v1/; /plugin/; / { compatible = "brcm,bcm2835", "brcm,bcm2836", "brcm,bcm2708", "brcm,bcm2709"; /* enable spi-dev for spi1.2 */ fragment@0 { target = <&spi1...
by PhilE
Wed Feb 12, 2020 4:19 pm
Forum: Device Tree
Topic: SPI1-spidev2 troubleshoot
Replies: 5
Views: 224

Re: SPI1-spidev2 troubleshoot

Hmm, where to start? I'll try working through your post in order, commenting as I go. I am loading the dtoverlay=spi1-3cs in the config.txt to enable the 3 chip selects of the SPI1 But while implementing the device tree overlay for the ARINC chip I have stumbled upon an error: Which is strange becau...
by PhilE
Tue Feb 11, 2020 5:46 pm
Forum: Device Tree
Topic: gpio_keys device tree overlay
Replies: 17
Views: 6656

Re: gpio_keys device tree overlay

Not that I can think of, but you might get more help in a different forum such as Interfacing.
by PhilE
Tue Feb 11, 2020 12:06 pm
Forum: Compute Module
Topic: [SOLVED] CM3 Plus and WiFi/BT CYW43455
Replies: 95
Views: 13427

Re: [SOLVED] CM3 Plus and WiFi/BT CYW43455

Was it the typo? If not, can you share what fixed it for you in case somebody else encounters the same problem.

Go to advanced search