Go to advanced search

by PhilE
Wed Feb 13, 2019 6:59 pm
Forum: Compute Module
Topic: wiringPi problems with CM3+
Replies: 10
Views: 150

Re: wiringPi problems with CM3+

If all you need is the gpio readall functionality, "raspi-gpio get" works on all Pis.
by PhilE
Tue Feb 12, 2019 7:22 pm
Forum: Compute Module
Topic: Compute Module M3+ dts file
Replies: 2
Views: 53

Re: Compute Module M3+ dts file

Apart from the different board revision number, CM3+ is identical to CM3 from a software perspective. In other words, you want bcm2710-rpi-cm3.dts.
by PhilE
Tue Feb 12, 2019 6:49 am
Forum: Compute Module
Topic: Pi 3B+ image compatible with CM3+?
Replies: 2
Views: 109

Re: Pi 3B+ image compatible with CM3+?

Provided the firmware is recent enough to recognise the CM3+, and assuming the image fits, there should be no issues.
by PhilE
Wed Feb 06, 2019 12:12 pm
Forum: Device Tree
Topic: Using device-tree to configure GPIO - basic questions
Replies: 30
Views: 665

Re: Using device-tree to configure GPIO - basic questions

Upstream (i.e. the Linux kernel maintainers) would probably want a driver for each, especially if they really are separately addressable bits of hardware.
by PhilE
Wed Feb 06, 2019 11:40 am
Forum: Device Tree
Topic: Using device-tree to configure GPIO - basic questions
Replies: 30
Views: 665

Re: Using device-tree to configure GPIO - basic questions

The touchscreen dimensions are configured in cypress_get_gpio_config and registered in cypress_request_input_dev, but your probe function says: cypress_request_input_dev(ts); cypress_get_gpio_config(ts); i.e. the values are used before they are properly configured. Also, goodix_request_input_dev is ...
by PhilE
Mon Feb 04, 2019 11:44 am
Forum: Device Tree
Topic: Error creating a IRQ on MMC1 for WL1837MOD.
Replies: 21
Views: 474

Re: Error creating a IRQ on MMC1 for WL1837MOD.

I can't undertake bespoke investigations to support your development. Perhaps a simpler solution - certainly something worth trying - is to change the kernel config to enable CONFIG_MMC_SDHCI_IPROC instead of CONFIG_MMC_BCM2835_MMC. That driver is used by the upstream kernel - the compatible string ...
by PhilE
Mon Feb 04, 2019 10:52 am
Forum: Device Tree
Topic: Using device-tree to configure GPIO - basic questions
Replies: 30
Views: 665

Re: Using device-tree to configure GPIO - basic questions

One observation: your driver won't report an error if it fails to claim the GPIO because devm_gpiod_get_optional returns a valid pointer or NULL, not an error (that's what the _optional part means).
by PhilE
Mon Feb 04, 2019 10:27 am
Forum: Device Tree
Topic: Using device-tree to configure GPIO - basic questions
Replies: 30
Views: 665

Re: Using device-tree to configure GPIO - basic questions

I think the pinctrl value are sufficient to make the pin an input (which is the default, anyway), so I think somethin else is interfering with the pin. You don't state whether that "gpio readall" is before running any code - can you confirm or retest, accordingly?
by PhilE
Mon Feb 04, 2019 9:08 am
Forum: Device Tree
Topic: Using device-tree to configure GPIO - basic questions
Replies: 30
Views: 665

Re: Using device-tree to configure GPIO - basic questions

The documentation I could find on the touchscreen controller didn't mention an IRQ pin - it sounded like a very programmable device where the pin usage was firmware defined. The C does seem to be equivalent to the Python, but you can verify that it is (at least at the level of I2C atraffic): $ sudo ...
by PhilE
Sat Feb 02, 2019 8:22 pm
Forum: Device Tree
Topic: Using device-tree to configure GPIO - basic questions
Replies: 30
Views: 665

Re: Using device-tree to configure GPIO - basic questions

There's an error in your overlay that I didn't spot earlier - the GPIO pull is in the wrong direction (2 means up, 1 is down and 0 is no pull), which probably explains why the interrupt pin is always high.
by PhilE
Fri Feb 01, 2019 5:13 pm
Forum: Device Tree
Topic: Error creating a IRQ on MMC1 for WL1837MOD.
Replies: 21
Views: 474

Re: Error creating a IRQ on MMC1 for WL1837MOD.

It looks like the mmc framework doesn't manipulate vmmc - that seems to be left to individual drivers. The Raspberry Pi bcm2835 SD/MMC drivers don't (although the upstream mmc driver does).

You might be able to use the vqmmc regulator instead, which does seem to be managed by the mmc framework.
by PhilE
Fri Feb 01, 2019 4:11 pm
Forum: Device Tree
Topic: Error creating a IRQ on MMC1 for WL1837MOD.
Replies: 21
Views: 474

Re: Error creating a IRQ on MMC1 for WL1837MOD.

Put your fixedregulator0 node in a new fragment with "target = <&soc>;".
by PhilE
Fri Feb 01, 2019 3:57 pm
Forum: Device Tree
Topic: Using device-tree to configure GPIO - basic questions
Replies: 30
Views: 665

Re: Using device-tree to configure GPIO - basic questions

Yes, that's what I meant.
by PhilE
Fri Feb 01, 2019 3:16 pm
Forum: Device Tree
Topic: Using device-tree to configure GPIO - basic questions
Replies: 30
Views: 665

Re: Using device-tree to configure GPIO - basic questions

That looks good. You can avoid one dtc warning by giving your [email protected] node a "reg = <0>;" property. It would also allow you to renumber it using an overlay parameter, should you ever need to avoid a clash. Just for information, it is possible to combine fragments 0&1 and 2&3, but it is nice and clear ...
by PhilE
Fri Feb 01, 2019 1:37 pm
Forum: Device Tree
Topic: Using device-tree to configure GPIO - basic questions
Replies: 30
Views: 665

Re: Using device-tree to configure GPIO - basic questions

/* Disable SPI - because DPI uses it? */ SPI needs to be disabled because DPI in 18-bit mode wants to use the same pins. However, it should be disabled by default. If something does ever try to enable SPI it will cause contention in pinctrl, and one of them will lose. /* There is no DPI driver modu...
by PhilE
Fri Feb 01, 2019 12:35 pm
Forum: Device Tree
Topic: Error creating a IRQ on MMC1 for WL1837MOD.
Replies: 21
Views: 474

Re: Error creating a IRQ on MMC1 for WL1837MOD.

Hmm - looking at the driver, it rejects anything other than function 2 - the "wlan function" - so you'd better leave it at that (but rename the node to "[email protected]" to match, just for consistency). I think you should locate copies of the firmware files it is looking for, and put them in "/lib/firmware...
by PhilE
Fri Feb 01, 2019 11:46 am
Forum: Device Tree
Topic: Error creating a IRQ on MMC1 for WL1837MOD.
Replies: 21
Views: 474

Re: Error creating a IRQ on MMC1 for WL1837MOD.

That looks like a driver is loaded - is it? What does lsmod show?
by PhilE
Fri Feb 01, 2019 11:05 am
Forum: Device Tree
Topic: Error creating a IRQ on MMC1 for WL1837MOD.
Replies: 21
Views: 474

Re: Error creating a IRQ on MMC1 for WL1837MOD.

Everything looks OK - it just isn't loading the driver. Try this:
1. Edit /etc/udev/udev.conf, and (after uncommenting if necessary), set udev_log="debug".
2. Reboot.
3. Run "sudo journalctl --all --this-boot --no-pager -o verbose | grep -i sdio"
by PhilE
Thu Jan 31, 2019 6:04 pm
Forum: Device Tree
Topic: Error creating a IRQ on MMC1 for WL1837MOD.
Replies: 21
Views: 474

Re: Error creating a IRQ on MMC1 for WL1837MOD.

Are there any relevant messages in dmesg? If you aren't sure, upload the whole output.
by PhilE
Thu Jan 31, 2019 5:46 pm
Forum: Device Tree
Topic: Error creating a IRQ on MMC1 for WL1837MOD.
Replies: 21
Views: 474

Re: Error creating a IRQ on MMC1 for WL1837MOD.

Please use "[email protected]" and "reg = <1>", then repeat my grep command:

Code: Select all

$ grep . /sys/class/mmchost/mmc1/mmc1:0001/*/*
If that doesn't show anything useful, do you see anything interesting under /sys/class/mmchost/mmc1/ ?
by PhilE
Thu Jan 31, 2019 4:58 pm
Forum: Device Tree
Topic: Error creating a IRQ on MMC1 for WL1837MOD.
Replies: 21
Views: 474

Re: Error creating a IRQ on MMC1 for WL1837MOD.

I expected to see another directory under /sys/class/mmc_host/mmc1, specifically mmc1:0001. That string does appear in your dmesg trace, but perhaps the error has caused the sysfs entry to be removed. Reading the mmc device tree bindings , it says: Use of Function subnodes ------------------------ O...
by PhilE
Thu Jan 31, 2019 3:10 pm
Forum: Device Tree
Topic: Error creating a IRQ on MMC1 for WL1837MOD.
Replies: 21
Views: 474

Re: Error creating a IRQ on MMC1 for WL1837MOD.

I think the problem is that the device framework doesn't associate your DT wlcore node with the device instance created by the MMC/SDIO subsystem. 1. The bindings document doesn't include "ti,wl18xx" in the list of recognised compatible strings - try "ti,wl1837". 2. Are you sure that the SDIO functi...
by PhilE
Thu Jan 31, 2019 2:57 pm
Forum: Device Tree
Topic: Using device-tree to configure GPIO - basic questions
Replies: 30
Views: 665

Re: Using device-tree to configure GPIO - basic questions

So in the case where I am creating my own driver, I have my own device node in which I can put all the pinctrl stuff without having to hijack another device such as the LED driver. Exactly. So I still have to use API functions in my driver to request and configure my own GPIOs? You make it sound li...
by PhilE
Thu Jan 31, 2019 2:15 pm
Forum: Device Tree
Topic: Using device-tree to configure GPIO - basic questions
Replies: 30
Views: 665

Re: Using device-tree to configure GPIO - basic questions

You seem to already have a pretty good understanding of Device Tree and how Linux uses it. So if I create my own device driver, I am at liberty to specify my own configuration nodes, read the appropriate values from them, and then allocate and configure any GPIO pins as I require using appropriate a...
by PhilE
Wed Jan 30, 2019 10:45 am
Forum: Compute Module
Topic: CM3+ Released with up to 32GB eMMC
Replies: 28
Views: 1256

Re: CM3+ Released with up to 32GB eMMC

No changes are required that I am aware of.

Go to advanced search