Dmitriy Zhuk Posted August 11, 2017 Posted August 11, 2017 Hello guys. I have issue regarding with smart card reader interface. According to it's datasheet http://linux-sunxi.org/images/4/4b/Allwinner_H3_Datasheet_V1.2.pdf page " Support FIFOs for receive and transmit buffers (up to 128 characters) with threshold " But in practice, the size of FIFO is only 16 bytes. Is anybody worked with SCR interface? May be I must to select size of FIFO in some REGISTER? Thanks for help.
martinayotte Posted August 11, 2017 Posted August 11, 2017 The H3 SPI has 64 bytes FIFO, so where did you find that it is 16 bytes ? Why do you think that your issue is coming from FIFO size since smart card reader usually has short messages ? In Mainline, we are applying a patch for interrupt driven FIFO that let manage messages up to 65535 bytes.
zador.blood.stained Posted August 11, 2017 Posted August 11, 2017 5 minutes ago, martinayotte said: The H3 SPI has 64 bytes FIFO, so where did you find that it is 16 bytes ? SCR is the smart card reader interface, it's not related to SPI. I don't think there is an existing or even WIP driver for it anyway.
Dmitriy Zhuk Posted August 11, 2017 Author Posted August 11, 2017 Yes, this is SCR, not SPI. May be somebody worked with it...
martinayotte Posted August 11, 2017 Posted August 11, 2017 As Zador said, I doubt any driver even exist. Easier to get an SPI reader and manage it with python library...
Dmitriy Zhuk Posted August 17, 2017 Author Posted August 17, 2017 I found the driver for similar processor: https://github.com/allwinner-zh/linux-3.4-sunxi/tree/master/drivers/char/sunxi-scr
Hardik Posted September 26, 2017 Posted September 26, 2017 Hi Dmitriy Zhuk, Have you tested the driver you found for H3. ( https://github.com/allwinner-zh/linux-3.4-sunxi/tree/master/drivers/char/sunxi-scr ) I have an Orange pi pc plus v1.1 but I don't know about SCR pinout. Could some please help me to get the right driver and pinout for the same? Thanks, Hardik
Dmitriy Zhuk Posted November 9, 2017 Author Posted November 9, 2017 Hello, Hardic. I didn't test it. I only investigated it. Do you need help yet?
Recommended Posts