d5636b07 | 01-Sep-2017 |
Matt Spinler <spinler@us.ibm.com> |
gpio-presence: Pass drivers in to application
With the optional --drivers argument, pass in the path/device pairs to bind/unbind. That string will be parsed, and then passed into the Presence class
gpio-presence: Pass drivers in to application
With the optional --drivers argument, pass in the path/device pairs to bind/unbind. That string will be parsed, and then passed into the Presence class.
Change-Id: I1ac0e005de673a679dcb45e93bcac35fddf24d01 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
show more ...
|
902d1c37 | 01-Sep-2017 |
Matt Spinler <spinler@us.ibm.com> |
gpio-presence: Add function to bind/unbind drivers
The cards that this app is doing presence detection for may have devices with drivers that need to be bound and unbound when the card is added and
gpio-presence: Add function to bind/unbind drivers
The cards that this app is doing presence detection for may have devices with drivers that need to be bound and unbound when the card is added and removed, respectively.
The drivers to do this to will be passed into the app on startup (in a future commit). Then when presence detect changes the proper binds/unbinds will be done.
This commit adds the code in the Presence class to do so.
Change-Id: I32827e45b88ddb7586aba6b819cc591b49aa9c51 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
show more ...
|
5d89f18a | 28-Jul-2017 |
Gunnar Mills <gmills@us.ibm.com> |
Fix test/Makefile.am format
Change-Id: I9448382ccddd0307d20ad52b0d1a5a108b092906 Signed-off-by: Gunnar Mills <gmills@us.ibm.com> |
4415ae43 | 27-Jul-2017 |
Gunnar Mills <gmills@us.ibm.com> |
Fix Makefile.am format
Change-Id: Ia1cd28328a95f8c9ab7672ee2eab200be7829631 Signed-off-by: Gunnar Mills <gmills@us.ibm.com> |
9925857a | 27-Jul-2017 |
Gunnar Mills <gmills@us.ibm.com> |
Refactor GPIO Monitor class
Refactor the GPIO Monitor class to use a common class, Evdev, to inherit from. Evdev does the basic libevdev handling.
Change-Id: I427aa9720b0bbbea0284c0babcc03ece92e55f
Refactor GPIO Monitor class
Refactor the GPIO Monitor class to use a common class, Evdev, to inherit from. Evdev does the basic libevdev handling.
Change-Id: I427aa9720b0bbbea0284c0babcc03ece92e55f5e Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
show more ...
|
835dfb88 | 26-Jul-2017 |
Gunnar Mills <gmills@us.ibm.com> |
Refactor GPIO Presence class
Refactor the GPIO Presence class to use a common class, Evdev, to inherit from. Evdev does the basic libevdev handling. A later commit moves monitor.hpp to this common c
Refactor GPIO Presence class
Refactor the GPIO Presence class to use a common class, Evdev, to inherit from. Evdev does the basic libevdev handling. A later commit moves monitor.hpp to this common class as well.
Change-Id: I3c872680c88f8f400fefe3af49eb9b84c7491ceb Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
show more ...
|
765725e0 | 06-Jul-2017 |
Gunnar Mills <gmills@us.ibm.com> |
Monitor for GPIO state change
Use libevdev to monitor for GPIO state change and update item present accordingly.
Change-Id: I1959a5ea09a7570c096b05d78a190394767a5ddd Signed-off-by: Gunnar Mills <gm
Monitor for GPIO state change
Use libevdev to monitor for GPIO state change and update item present accordingly.
Change-Id: I1959a5ea09a7570c096b05d78a190394767a5ddd Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
show more ...
|
80292bbe | 05-Jul-2017 |
Gunnar Mills <gmills@us.ibm.com> |
Update inventory item interface
Update the inventory item interface, setting Present and PrettyName.
Change-Id: I6a0a8bd66a8427253706b2b1ee14dca919d0a809 Signed-off-by: Gunnar Mills <gmills@us.ibm.
Update inventory item interface
Update the inventory item interface, setting Present and PrettyName.
Change-Id: I6a0a8bd66a8427253706b2b1ee14dca919d0a809 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
show more ...
|
5f101103 | 29-Jun-2017 |
Gunnar Mills <gmills@us.ibm.com> |
Read GPIO key on startup
Create class Presence which will be responsible for determining and monitoring presence of inventory items and updating D-Bus accordingly. With this commit class Presence on
Read GPIO key on startup
Create class Presence which will be responsible for determining and monitoring presence of inventory items and updating D-Bus accordingly. With this commit class Presence only reads the GPIO key on startup, more to come later.
Change-Id: I647ae11d42a813a103e6d9d8922fd0f5b2155132 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
show more ...
|
7263915a | 22-Jun-2017 |
Gunnar Mills <gmills@us.ibm.com> |
Add base support for GPIO presence
This is the starting code needed to build the application.
Change-Id: I46112a222afbc057ac4fc4f8fb2b4c83822023df Signed-off-by: Gunnar Mills <gmills@us.ibm.com> |
ba8de421 | 19-Jun-2017 |
Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com> |
Fix incorrect initialization of evdev
Fixes openbmc/openbmc#1799
Change-Id: I81662ede88d1a05db48686ec57aab969c8dea27a Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com> |
e3b859ca | 25-May-2017 |
Matt Spinler <spinler@us.ibm.com> |
Fill in gpio-util functionality
Process the command line arguments to know which GPIO to set and what to set it to. Then create the GPIO object and call the appropriate functions on it.
Change-Id:
Fill in gpio-util functionality
Process the command line arguments to know which GPIO to set and what to set it to. Then create the GPIO object and call the appropriate functions on it.
Change-Id: Ib8da78e5ae92e5ae0716901aa71243226668be10 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
show more ...
|
36df1979 | 25-May-2017 |
Matt Spinler <spinler@us.ibm.com> |
Add GPIO class
This class is used for accessing a GPIO via the /dev/gpiochipX interface.
It requests a GPIO line handle from the GPIO device to do the actual operation on.
The GPIO number to use,
Add GPIO class
This class is used for accessing a GPIO via the /dev/gpiochipX interface.
It requests a GPIO line handle from the GPIO device to do the actual operation on.
The GPIO number to use, for AST chips at least, is the actual GPIO number, such as GPIOA0 = 0 and GPIOA7 = 7.
The class currently only supports writes.
Change-Id: I1c2ae38c23c5db502d5f14bcf9aa2e35094f1e9b Signed-off-by: Matt Spinler <spinler@us.ibm.com>
show more ...
|
936a5043 | 25-May-2017 |
Matt Spinler <spinler@us.ibm.com> |
Create phosphor-gpio-util framework
This application can write GPIOs. Read support may be added in the future.
Aside from just setting a GPIO low or high, it can also do: 0 -> <delay> -> 1 or 1 ->
Create phosphor-gpio-util framework
This application can write GPIOs. Read support may be added in the future.
Aside from just setting a GPIO low or high, it can also do: 0 -> <delay> -> 1 or 1 -> <delay> -> 0. All functionality will be added in future commits
Change-Id: I2d3c761eb909ddce3952bfb3173ce271f03544ba Signed-off-by: Matt Spinler <spinler@us.ibm.com>
show more ...
|
77ec4799 | 10-Apr-2017 |
Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com> |
Use libevdev for monitoring GPIO state change
Change-Id: I962af3034586f027e6ba74387dcda6ef0cf3672e Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com> |
d7f9cd1f | 04-Apr-2017 |
Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com> |
Add gitignore
Change-Id: If41f0e682c5bed72700b5340a758cdb28d1dafc4 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com> |
32c97273 | 04-Apr-2017 |
Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com> |
Add gtest cases to test callback handler
Change-Id: If6c1e1616bcf73441648c8e0cb20017a4b218f70 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com> |
ba730130 | 04-Apr-2017 |
Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com> |
Call defined target when GPIO line is asserted
Change-Id: Ia5445a8d6585acfec69783ba158c8d866d526e97 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com> |
0b95603e | 04-Apr-2017 |
Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com> |
Add sd_event loop and callback handler
Change-Id: I032d1156be2b8082fdf347a60ec883a9bc0038ae Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com> |
4902a10c | 04-Apr-2017 |
Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com> |
Populate the file descriptor for the device
On a GPIO chip, there could be many gpio lines and for each line, there would be a corresponding input device event file. To know the assertion state of a
Populate the file descriptor for the device
On a GPIO chip, there could be many gpio lines and for each line, there would be a corresponding input device event file. To know the assertion state of a GPIO line, a descriptor is needed. This descriptor will later be plugged into sd_event so that the GPIO state changes can be caught and handled.
Change-Id: Idc8c2b429688fea2a5124b96677085b1be48128b Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
show more ...
|
affea8bf | 04-Apr-2017 |
Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com> |
Add code to accept command line arguments
Accepts command line arguments for path, interested GPIO transition and an optional systemd unit file to be called into when the GPIO transitions per expect
Add code to accept command line arguments
Accepts command line arguments for path, interested GPIO transition and an optional systemd unit file to be called into when the GPIO transitions per expectation.
Change-Id: I98d967d36cfbb768bc9d0dd04517575fa7e408fe Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
show more ...
|
32df9694 | 03-Apr-2017 |
Patrick Williams <patrick@stwcx.xyz> |
Initial commit |