adafruit / adafruit-beaglebone-io-python

Adafruit's BeagleBone IO Python Library
http://learn.adafruit.com/setting-up-io-python-library-on-beaglebone-black
476 stars 218 forks source link

Porting to am437x #159

Closed alpintrekker closed 6 years ago

alpintrekker commented 6 years ago

Hello,

I'm interested porting GPIO, and only GPIO module to Dabian Jessie, running on am437x.

Since ther is no overlay support here at all, I don't need overlays, and any IO, other GPIO going to be handled by native python modules.

Do I consider correctly, that the task of porting would be limited to editing pin_t table in common.c and editing some compile options?

Any advice would be appreciated,

Regards, András

pdp7 commented 6 years ago

@alpintrekker I've not used AM437x SoC before. Which board do you have?

alpintrekker commented 6 years ago

@pdp7 this is CM-T43 from CompuLab on their development board, SB-SOM, but it is the same Sitara family like AM335x on BeagleBone (where I used to use Adafruit_BBIO.GPIO), except it has a reasonably better set of peripherals and a bit higher price tag in low volumes.

pdp7 commented 6 years ago

@alpintrekker I imagine you will need to change pwm_table[] and table[] in common.c. I suspect the the memory map addresses for peripherals may be different and therefore exact paths in /sys may differ. The device tree source files for your board should provide insights on what values to use.

pdp7 commented 6 years ago

@alpintrekker This work by @RobertCNelson may be of interest if you are still working on AM437x support: #173

I am going to close this issue for now. Please create a pull request if you have made changes to support AM437x.