Draft
Conversation
vanilla sc16is7xx driver has a bug where it registers the gpiochip _before_ setting up data needed by the gpio functions themselves usually this doesn't cause issues because everything will be set up properly by the time the driver finishes loading, but if there's a child gpio hog node present it'll try to add it and immediately access uninitialized memory, leading to a kernel panic this should also be fixed in mainline
eventually a better driver will need to be written to handle the PWDOWN pin during low power states thanks to @al3x10m for all the testing and help
|
I've made such an adapter out of the original ROHM IC, and wired the irda tx/rx lines to an off-the-shelf 3v3 UART adapter and I can't see anything in its output while tuned in at 115200 baud rate. And as for wiring - I connected the RC TX and power down signals to 0v via 2k resistors, added a salvaged-from-3ds 3.3 resistor between VccLed and Vcc, and there are 2 caps on 3v3 power line to filter out any noise. When I look at that IR diode stuff with my phone's camera I can see it's blinking all the time, which I don't see on my New 3DS. Might be because it's not powered off with power disable signal and on 3DS it is. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
this PR should fix the serial hardware situation so that a pure uart signal (idle high, 8 bits, no parity, start and stop bits) is transmitted over the infrared LEDs
unfortunately this setup requires somewhat non standard hardware on the other side - most infrared transceivers respect IrDA but we don't (we're too cool for that), so the TX and RX LEDs need to be directly connected to something that can understand serial and doesn't try to perform any conversions
the above paragraph is all "in theory", as the hardware hasn't been built yet by me but we've confirmed that the TX LED does come on in the 3DS when transmitting data via microcom (/dev/ttySC0, 115200)
when the hardware is built and we have better descriptions/schematics, this'll be merged
thanks to @al3x10m for helping out the last few days by testing and gutting his IR daughterboard