[Emc-developers] Pi GPIO driver

2018-04-07 Thread andy pugh
I just noticed that we don't have a GPIO driver for the Pi.
Not of huge interest to me at the moment, but I thought that there
used to be one, I seem to recall using it at Wichita.
There is one in MK. I don't know the rules well enough to know if we
could just take it.

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1916

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


Re: [Emc-developers] Pi GPIO driver

2018-04-07 Thread schooner30--- via Emc-developers


On 07/04/18 13:03, emc-developers-requ...@lists.sourceforge.net wrote:

Message: 1
Date: Sat, 7 Apr 2018 12:35:21 +0100
From: andy pugh 
To: EMC developers 
Subject: [Emc-developers] Pi GPIO driver
Message-ID:

Content-Type: text/plain; charset="UTF-8"

I just noticed that we don't have a GPIO driver for the Pi.
Not of huge interest to me at the moment, but I thought that there
used to be one, I seem to recall using it at Wichita.
There is one in MK. I don't know the rules well enough to know if we
could just take it.


'Borrow with pride' Andy, so long as whoever wrote it gets kudos.

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


Re: [Emc-developers] Pi GPIO driver

2018-04-07 Thread Alec Ari via Emc-developers
This was just added to the kernel tree about two months ago:


https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/gpio/gpio-raspberrypi-exp.c

Would this be of any use?

Alec

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


Re: [Emc-developers] Pi GPIO driver

2018-04-07 Thread Gene Heskett
On Saturday 07 April 2018 09:01:57 schooner30--- via Emc-developers 
wrote:

> On 07/04/18 13:03, emc-developers-requ...@lists.sourceforge.net wrote:
> > Message: 1
> > Date: Sat, 7 Apr 2018 12:35:21 +0100
> > From: andy pugh 
> > To: EMC developers 
> > Subject: [Emc-developers] Pi GPIO driver
> > Message-ID:
> >  >> Content-Type: text/plain; charset="UTF-8"
> >
> > I just noticed that we don't have a GPIO driver for the Pi.
> > Not of huge interest to me at the moment, but I thought that there
> > used to be one, I seem to recall using it at Wichita.
> > There is one in MK. I don't know the rules well enough to know if we
> > could just take it.
>
> 'Borrow with pride' Andy, so long as whoever wrote it gets kudos.
>
You may want to check gpio availability Andy. The kernels own spi driver 
has to be disabled in order for rpspi.ko to function as its self 
contained. Once thats done rpspi works very well, but it uses 4 of the 
gpio pins to run a potentially 2 channel spi, that linuxcnc only uses 
one of. I don't know if the gpio's rpspi doesn't use are otherwise open 
and available.

-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers