I2C Expansion Board
#31
(07-27-2016, 09:33 PM)khgoh Wrote: Hi,
This is the schematic  for the i2c POT board.

Thanks !
That clarify why other pins were also initialized with pullups, they are the interrupts.
  Reply
#32
(07-27-2016, 04:54 PM)martinayotte Wrote: I think I've succeed to place new DTS entries for S_TWI (PL8/PL9), it is now appearing as /dev/i2c-3 as I've prescribed in an DTS alias.
The only thing is that I didn't test with some hardware yet, I'm usually using TWI0 (/dev/i2c-0).
I will probably try tomorrow using dupont jumpers and will post back.

Unfortunately, false victory, at least until now.
The SoC does'nt seem to communicate on the pins, although no complain in dmesg, not even seeing their pullups, "i2cdetect -y 3" still choking.
I'm running out of ideas...
  Reply
#33
Do you have your changes to the dts on github?
Come have a chat in the Pine A64 IRC channel >>
  Reply
#34
(07-28-2016, 06:21 AM)DonFL Wrote:
(07-27-2016, 09:33 PM)khgoh Wrote: Hi,
This is the schematic  for the i2c POT board.

Thanks for sharing. Hoping this can be added to the wiki for easy reference (along with the other POT device schematics....).
Just put it up in the wiki at http://wiki.pine64.org/index.php/POT#POT...PMI2C01.29
  Reply
#35
(07-28-2016, 03:58 PM)xalius Wrote: Do you have your changes to the dts on github?

No, I'm usually doing commit only and things are working and are ready for PR.

So, here is a gist snippet instead :

https://gist.github.com/martinayotte/145...e53ecc2b84
  Reply
#36
(07-28-2016, 05:46 PM)martinayotte Wrote:
(07-28-2016, 03:58 PM)xalius Wrote: Do you have your changes to the dts on github?

No, I'm usually doing commit only and things are working and are ready for PR.

So, here is a gist snippet instead :

https://gist.github.com/martinayotte/145...e53ecc2b84

Thanks, that is about as far as I got in my attempts too... but I could not figure out how to set the interrupts =.... attribute, can you help me out there? I wonder if those devices in the CPUS domain need any special configuration?
Come have a chat in the Pine A64 IRC channel >>
  Reply
#37
For interrupt, following the specs sheet, it was pretty easy to determine that the s_twi is 0x2c (76 in the specs, but offsetted by 32) since the s_uart is 0x26 (70 in specs) (except if the previous offsetting is wrong), maybe I should try to get rid of this offset which I don't know where it is coming from.
Problem can also be from clock and reset, which are not using apb0_gates/apb0_reset like other sunxi such H3 where the I2C on i2c@01f02400 is working.
I hate this PineA64 DTS since it is coming from a decompiled version from AllWinner and doesn't follow rules used in Mainline, where apb0_gates/apb0_reset doesn't even exist.

EDIT: I've checked the interrupt on H3, and it is really 0x2C (76 with offset of 32). Som it must be something else, the clock or the reset.
  Reply
#38
Hi. About latest version IDE CodeBlocks. http://forum.pine64.org/showthread.php?tid=1896 This is the first test version of the manual writing in two languages. If you have any comments and suggestions please send them to me by e-mail blademoon@yandex.ru. I sincerely hope that it will help you.
  Reply
#39
(07-30-2016, 06:31 AM)Artyom Wrote: Hi. About latest version IDE CodeBlocks. http://forum.pine64.org/showthread.php?tid=1896 This is the first test version of the manual writing in two languages. If you have any comments and suggestions please send them to me by e-mail blademoon@yandex.ru.  I sincerely hope that it will help you.

Thanks on the IDE CodeBlocks..
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Poll: interest for SPDIF-only POT board? amp 0 674 05-01-2019, 11:17 PM
Last Post: amp
  Audio DAC pot board nejec 2 2,154 12-09-2017, 01:43 PM
Last Post: nejec
  Zwave Board: 300, 400 or 500? Lugor 4 2,539 01-10-2017, 08:55 PM
Last Post: Lugor
  Questions. board serial.? bongky youn 8 3,501 09-12-2016, 09:24 AM
Last Post: bongky youn
  My Board Layout Diagram UnixOutlaw 8 4,889 09-09-2016, 02:41 AM
Last Post: pfeerick
  New module: POT board Crispin 25 15,057 07-12-2016, 08:47 PM
Last Post: khgoh
  GPS expansion board stephen fleming 3 1,977 07-06-2016, 11:20 AM
Last Post: xalius

Forum Jump:


Users browsing this thread: 1 Guest(s)