-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request - Add a module for sc16is752 to the standard configurations #1594
Comments
It's fine with me. @popcornmix? |
Okay. |
kernel: config: Enable SENSORS_LM75 See: #508 kernel: config: Enable SERIAL_SC16IS7XX See: raspberrypi/linux#1594 kernel: snd-bcm2835: Don't allow responses from VC to be interrupted by user signals See: raspberrypi/linux#1560
kernel: config: Enable SENSORS_LM75 See: raspberrypi/firmware#508 kernel: config: Enable SERIAL_SC16IS7XX See: raspberrypi/linux#1594 kernel: snd-bcm2835: Don't allow responses from VC to be interrupted by user signals See: raspberrypi/linux#1560
This is now in latest |
Thanks a lot, this is what I call a support. Less then 24 hours. |
Cool. Feel free to close the issue. |
Hello! |
Hi DimionDR, |
Hello, |
I'm sorry, I didn't get the file working with SPI. With i2c it works, but to be honest, the commends to controll the chip are missing (like setting bau drate or gpios). I know how to write to the registers with I2C or SPI, but the overlay was too much for my knowledge. Perhaps someone else has more experience and will complete the work and thread in the forum. To spend nearly two weeks on such a small issue is too long. |
What @DimionDR has spotted is that the config change only enables support for the I2C interface, not the SPI mode, which explains the behaviour you are seeing:
I'll reopen this until SERIAL_SC16IS7XX_SPI is also defined. |
Okay, my fault. I will edit the thread in the forum |
Previously only the I2C mode was supported. See: #1594
With the SERIAL_SC16IS7XX_SPI option specified, modinfo now includes:
I've merged a patch that adds this option to the standard configurations. It will get picked up by the next kernel build. |
kernel: config: Enable SERIAL_SC16IS7XX_SPI See: raspberrypi/linux#1594 kernel: Added Overlay for Microchip MCP23S08/17 SPI gpio expanders See: raspberrypi/linux#1566 kernel: BCM270X_DT: Add audio_pins to CM dtb kernel: BCM270X_DT: Don't enable UART0 in CM3 dtb kernel: overlays: Add audremap overlay kernel: overlays: Add swap_lr and enable_jack to audremap See: raspberrypi/linux#1473 firmware: Raspi[Still|Vid]Yuv: Add option for just saving luma See: raspberrypi/userland#170 firmware: RaspiVidYuv: Add option of saving RGB data firmware: Only change I2C/GPIO pin functions when needed firmware: platform: Redo the audio remapping logic See: raspberrypi/linux#1473
kernel: config: Enable SERIAL_SC16IS7XX_SPI See: raspberrypi/linux#1594 kernel: Added Overlay for Microchip MCP23S08/17 SPI gpio expanders See: raspberrypi/linux#1566 kernel: BCM270X_DT: Add audio_pins to CM dtb kernel: BCM270X_DT: Don't enable UART0 in CM3 dtb kernel: overlays: Add audremap overlay kernel: overlays: Add swap_lr and enable_jack to audremap See: raspberrypi/linux#1473 firmware: Raspi[Still|Vid]Yuv: Add option for just saving luma See: raspberrypi/userland#170 firmware: RaspiVidYuv: Add option of saving RGB data firmware: Only change I2C/GPIO pin functions when needed firmware: platform: Redo the audio remapping logic See: raspberrypi/linux#1473
latest |
Previously only the I2C mode was supported. See: #1594
@MasterWuff have you tried the new firmware? Feel free to close the issue, if the issue has been fixed. |
Just checked it with SPI - it works |
Previously only the I2C mode was supported. See: #1594
Previously only the I2C mode was supported. See: #1594
Previously only the I2C mode was supported. See: raspberrypi/linux#1594
Previously only the I2C mode was supported. See: #1594
Previously only the I2C mode was supported. See: #1594
Previously only the I2C mode was supported. See: #1594
Previously only the I2C mode was supported. See: #1594
Hi there, |
Please start a topic on the Device Tree forum with your problem - please include full details of what you have tried, and post or link to your overlay file(s). |
OK I created this new topic https://www.raspberrypi.org/forums/viewtopic.php?p=1059608#p1059608 I was hopping i get some help here, my interest and issues are with existing overlays that have been discussed here, why there is available only overlays for single uart sc16is750 on i2c and dual sc16is752 on spi? There is some config where I can tell that the sc16is752-spi1 overlay will be used on i2c? |
Problem was solved and I got 2 more UARTs, thanks to PhilE, it was caused by copy/paste and "EN Dash" mixed with "Hyphen-Minus" |
Cool. Yes, that PhilE can be quite helpful. ;-) |
Previously only the I2C mode was supported. See: raspberrypi/linux#1594
Previously only the I2C mode was supported. See: raspberrypi#1594
Previously only the I2C mode was supported. See: raspberrypi/linux#1594
Previously only the I2C mode was supported. See: raspberrypi/linux#1594
Previously only the I2C mode was supported. See: raspberrypi/linux#1594
Previously only the I2C mode was supported. See: raspberrypi/linux#1594
Previously only the I2C mode was supported. See: raspberrypi/linux#1594
kernel: config: Enable SERIAL_SC16IS7XX_SPI See: raspberrypi/linux#1594 kernel: Added Overlay for Microchip MCP23S08/17 SPI gpio expanders See: raspberrypi/linux#1566 kernel: BCM270X_DT: Add audio_pins to CM dtb kernel: BCM270X_DT: Don't enable UART0 in CM3 dtb kernel: overlays: Add audremap overlay kernel: overlays: Add swap_lr and enable_jack to audremap See: raspberrypi/linux#1473 firmware: Raspi[Still|Vid]Yuv: Add option for just saving luma See: raspberrypi/userland#170 firmware: RaspiVidYuv: Add option of saving RGB data firmware: Only change I2C/GPIO pin functions when needed firmware: platform: Redo the audio remapping logic See: raspberrypi/linux#1473
Previously only the I2C mode was supported. See: raspberrypi/linux#1594
Previously only the I2C mode was supported. See: raspberrypi/linux#1594
Previously only the I2C mode was supported. See: raspberrypi/linux#1594
Previously only the I2C mode was supported. See: raspberrypi/linux#1594
Previously only the I2C mode was supported. See: raspberrypi/linux#1594
Previously only the I2C mode was supported. See: raspberrypi/linux#1594
Previously only the I2C mode was supported. See: raspberrypi/linux#1594
Previously only the I2C mode was supported. See: raspberrypi/linux#1594
Previously only the I2C mode was supported. See: raspberrypi/linux#1594
Previously only the I2C mode was supported. See: raspberrypi/linux#1594
Hi,
Recently I had a problem when I was switching from RPi2 to RPi3, because of only one UART interface. Never the less, I decided to buy a SC16IS752 from NXP. It can connected it to the RPi via I2C and SPI. The external interfaces are two UART ports and 8 GPIOs.
But here is the problem, the module isn't in the standard configurations to work with that.
There is the solution to complile the kernel, but I don't feel really confident with that.
Why to add the module?
-The code already exists: https://github.com/raspberrypi/linux/blob/rpi-4.1.y/drivers/tty/serial/sc16is7xx.c
-The overlay already exists (/boot/overlays/sc16is752-spi1.dtbo)
-It is only 24kB
-i'm not the only one who is dealing with one UART interface
Thanks in advance and on spending so much time to keep the system up to date.
The text was updated successfully, but these errors were encountered: