Go to advanced search

by PhilE
Fri May 18, 2018 11:57 am
Forum: Compute Module
Topic: Please help to Remap pin Uart 0
Replies: 26
Views: 1550

Re: Please help to Remap pin Uart 0

I've been looking into the issue of why the UART is left maped to GPIOs 14 and 15, and the answer is essentially because the firmware is not expecting it to move. Only Compute Modules are able to make use of the GPIOs above 27, so the firmware assumes that the primary UART (the one not used by Bluet...
by PhilE
Thu May 17, 2018 5:24 pm
Forum: Device Tree
Topic: Review: eMMC part on CM1
Replies: 11
Views: 145

Re: Review: eMMC part on CM1

Yes, your understanding is correct - the CM uses a 1.8V voltage reference for the SD interface on 48-53. I haven't found a code path where providing a fixed 1.8V vqmmc makes a useful difference - it will just run more core before returning an error - but in terms of describing the hardware it is mor...
by PhilE
Thu May 17, 2018 3:08 pm
Forum: Compute Module
Topic: Please help to Remap pin Uart 0
Replies: 26
Views: 1550

Re: Please help to Remap pin Uart 0

Having had a chance to try myself, I can see that the problem is your alt function for 36 and 37. Alt3 (7) for 36 and 37 is SD1_DAT0&1 - you want Alt2 (6), which works once you set 14 and 15 to inputs. I hope to have an answer to the lack of unmapping of 14 and 15 soon.
by PhilE
Thu May 17, 2018 2:24 pm
Forum: Device Tree
Topic: Review: eMMC part on CM1
Replies: 11
Views: 145

Re: Review: eMMC part on CM1

I never said it's changeable.
Then please explain this statement:
Without providing a fixed regulator the MMC core doesn't have any chance to know the IO line power and assume 3.3 V. This is correct for most of the Raspberry Pis except the Compute Modules.
by PhilE
Thu May 17, 2018 2:00 pm
Forum: Device Tree
Topic: Review: eMMC part on CM1
Replies: 11
Views: 145

Re: Review: eMMC part on CM1

> Without providing a fixed regulator the MMC core doesn't have any chance to know the IO line power and assume 3.3 V. This is correct for most of the Raspberry Pis except the Compute Modules.

What makes you think it is changeable? The EMMC is hard-wired to GPIOs 48-53, which aren't affected by J3.
by PhilE
Thu May 17, 2018 1:37 pm
Forum: Device Tree
Topic: Review: eMMC part on CM1
Replies: 11
Views: 145

Re: Review: eMMC part on CM1

The regulator voltages are correct, but the bindings document says: Controllers may implement power control from both the connected cards and the IO signaling (for example to change to high-speed 1.8V signalling). If the system supports this, then the following two properties should point to valid r...
by PhilE
Thu May 17, 2018 1:21 pm
Forum: Device Tree
Topic: Review: eMMC part on CM1
Replies: 11
Views: 145

Re: Review: eMMC part on CM1

That's correct - the EMMC RSTN is tied high. I'm not sure why you would be confused, since the schematics are published here . GPIO47 provides the SoC's input to the logic that allows the user to choose to boot from EMMC or USB (but with the ability to access EMMC after boot). It also drives the ACT...
by PhilE
Thu May 17, 2018 12:52 pm
Forum: Device Tree
Topic: Review: eMMC part on CM1
Replies: 11
Views: 145

Re: Review: eMMC part on CM1

What is your intention with the EMMC pwrseq support? Lowering EMMC_DISABLE_N won't reset the EMMC device, only disconnect the CMD line.
by PhilE
Wed May 16, 2018 11:15 am
Forum: Compute Module
Topic: Please help to Remap pin Uart 0
Replies: 26
Views: 1550

Re: Please help to Remap pin Uart 0

Having the same pin function, especially input functions, mapped to multiple pins is usually a bad idea, so I think the investigation is going to split into two halves: does unmapping the UART from 14 and 15 allow it to work on 36 and 37, and how to automatically unmap it from 14 and 15. For 1, afte...
by PhilE
Mon May 14, 2018 8:17 am
Forum: Device Tree
Topic: enable_uart=1 does NOT set core_freq=250
Replies: 1
Views: 83

Re: enable_uart=1 does NOT set core_freq=250

You need to read that section of the documentation together with the preceding paragraph: Also, when the Linux console uses the mini UART (Raspberry Pi 3, Raspberry Pi Zero W), as a consequence of the UART being disabled, the console is also disabled. The Linux console can be re-enabled by adding en...
by PhilE
Sun May 13, 2018 7:06 pm
Forum: Device Tree
Topic: Two drivers using same gpio pin
Replies: 10
Views: 674

Re: Two drivers using same gpio pin

I've merged the PR, so the updated driver and overlay will be in the next firmware release.
by PhilE
Sat May 12, 2018 10:18 am
Forum: General discussion
Topic: Controlling LAN LEDs individually
Replies: 34
Views: 14298

Re: Controlling LAN LEDs individually

This is currently a Pi 3B+-specific feature. The default LED modes weren't very useful so we had to change the LAN7800 driver anyway, and making the modes user-selectable was a simple extension.
by PhilE
Fri May 11, 2018 2:29 pm
Forum: Linux Kernel
Topic: How to enable wlan0 in raspberry pi3
Replies: 6
Views: 146

Re: How to enable wlan0 in raspberry pi3

Thanks for the correction!
by PhilE
Fri May 11, 2018 11:57 am
Forum: Device Tree
Topic: ads7846 on spi1
Replies: 44
Views: 1488

Re: ads7846 on spi1

The swap-xy parameter swaps the axes - x becomes y and vice versa, whereas we want to invert both axes. As I understand it, lcd_rotate reprograms the panel to change the orientation, which is more efficient than rotating the framebuffer, but I can see why it may not work for an arbitrary display. Yo...
by PhilE
Fri May 11, 2018 11:29 am
Forum: Device Tree
Topic: ads7846 on spi1
Replies: 44
Views: 1488

Re: ads7846 on spi1

I've asked @jamesh if he has any suggestions.
by PhilE
Fri May 11, 2018 9:44 am
Forum: Device Tree
Topic: ads7846 on spi1
Replies: 44
Views: 1488

Re: ads7846 on spi1

Does "lcd_rotate=2" (instead of "display_rotate=0") work (see viewtopic.php?p=815847#p815847)?
by PhilE
Fri May 11, 2018 9:41 am
Forum: Device Tree
Topic: ads7846 on spi1
Replies: 44
Views: 1488

Re: ads7846 on spi1

With "display_rotate=2" does the touchscreen match the image (but with a rotated image)?
by PhilE
Fri May 11, 2018 9:33 am
Forum: Device Tree
Topic: ads7846 on spi1
Replies: 44
Views: 1488

Re: ads7846 on spi1

i allready did that without dtdebug=1, but Touch seems to be working right now.
Cool - our messages crossed.
However, its upside down, can raspberry change its orientation ?
Please describe carefully what is upside down relative to what.
by PhilE
Fri May 11, 2018 9:26 am
Forum: Device Tree
Topic: ads7846 on spi1
Replies: 44
Views: 1488

Re: ads7846 on spi1

The default ads7846 overlay was unmodified, so it had no "keep_vref_on" parameter. This should not have prevented it from being loaded, but it was an error. Using this configuration: dtdebug=1 dtoverlay=spi1-1cs,cs0_pin=16,cs0_spidev=off dtoverlay=ads7846-spi1,penirq=5,penirq_pull=2,speed=50000,swap...
by PhilE
Fri May 11, 2018 9:11 am
Forum: Device Tree
Topic: ads7846 on spi1
Replies: 44
Views: 1488

Re: ads7846 on spi1

Code: Select all

dtoverlay=ads7846-spi1
shouldn't be it :

Code: Select all

dtoverlay=ads7486-spi1
No, this was correct - it was the rename I got wrong (now corrected).
by PhilE
Fri May 11, 2018 8:52 am
Forum: Device Tree
Topic: ads7846 on spi1
Replies: 44
Views: 1488

Re: ads7846 on spi1

its the firmware delivered with the screen, also with the same parameters.
Perhaps the supplier of the screen has modified the standard overlay - can you upload the original .dtbo (or .dtb) somewhere so I can take a look?
by PhilE
Fri May 11, 2018 8:48 am
Forum: Device Tree
Topic: ads7846 on spi1
Replies: 44
Views: 1488

Re: ads7846 on spi1

That's recent enough - it's the last firmware released before the switch to the 4.14 kernel tree. Start by renaming the compiled overlay to "ads7846-spi1.dtbo" to distinguish it from the original, comment out the current overlay directive in config.txt and replace it with: dtoverlay=ads7846-spi1 Ver...
by PhilE
Fri May 11, 2018 8:41 am
Forum: Linux Kernel
Topic: How to enable wlan0 in raspberry pi3
Replies: 6
Views: 146

Re: How to enable wlan0 in raspberry pi3

You might have more luck asking for advice from the OPTEE community - they will be much more aware of how things are supposed to work - but you could start by adding the utilities from the iw repo . wpa_supplicant doesn't seem to have a canonical git repo, but http://www.linuxfromscratch.org , a use...
by PhilE
Fri May 11, 2018 8:33 am
Forum: Linux Kernel
Topic: How to enable wlan0 in raspberry pi3
Replies: 6
Views: 146

Re: How to enable wlan0 in raspberry pi3

I'm confused. You say you are not using Raspbian (I presume you mean Raspbian, or is there a distro called Razbian?), yet you say that the command you are trying don't exist is Raspbian. When the OP writes: First, there is no command such as iwlist or iwconfig used in RazBian, and /etc/wpa_supplica...
by PhilE
Fri May 11, 2018 8:29 am
Forum: Linux Kernel
Topic: How to enable wlan0 in raspberry pi3
Replies: 6
Views: 146

Re: How to enable wlan0 in raspberry pi3

You started two very similar threads at the same time, but it makes more sense to keep it all discussion in the same thread. The significant text from your other thread (now deleted) is: I built a Linux Kernel on the OPTEE site (https://github.com/OP-TEE/build/blob/ma ... cs/rpi3.md) and then flashe...

Go to advanced search