summaryrefslogtreecommitdiff
path: root/gpiodaemon/include
AgeCommit message (Collapse)AuthorFilesLines
2019-03-25Support: sampled value property in gpio daemonRichard Marian Thomaiyar1-5/+4
1. Added property SampledValue, which will reflect the gpio value status always, will be used when ignore property is true 2. Removed enabled property, as it is not used anymore 3. Fixed bug for Value property which had the inversion first before comparison. Tested: 1. Verified the behavior using D-Bus commands 2. Verified Power-up / Gpio Sampling / etc, along with Buttons & set-passthrough patch. Change-Id: I30b31d12019c54377d0f279f604aee83c5f63883 Signed-off-by: Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>
2019-03-21gpio daemon: Support addedRichard Marian Thomaiyar1-80/+14
Simplified Gpio daemon service and it's corresponding members. Buttons must use these gpio daemon instead of directly queriying gpio. Daemon will send out properties changed signal, when there is change in gpio value. Introduced Ignore property, if set true will return cached values for the specified gpio. Gpio daemon will query objects from entity manager and initialize accordignly. Restarting gpio daemon, will re-init these pins as per the entity manager. Tested: 1. Verified the properties of Power button & Reset button 2. Performed FP buttons operation and made sure power button & reset button properties changed signals are properly sent out 3. Testd against updated buttons code (which uses gpio daemon) and verified basic power operations both from front panel and from ipmitool power 4. Verified object creation, during gpio daemon restart and also on entity-manager restart Change-Id: I89ad04d58c74ebd534712f38be53549ec2c39662 Signed-off-by: Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>
2018-12-12Monitor gpio value changesCezary Golder1-5/+73
Only gpio with direction set as "input" are monitored. Each gpio by separate GpioState class. Presently only gpio "value" property is monitored by looking into file descriptor of /sys/class/gpio/gpioXX/edge. Planning to be changed into gpio cheracter device soon. Change-Id: Id2aa717d32903df02fa79419d36466d725167178 Signed-off-by: Cezary Golder <cezary.golder@intel.com>
2018-11-14Update gpiodaemon with Entity-manager signalsGolder, Cezary1-5/+1
Gpiodaemon handling all gpio related signals (having "xyz.openbmc_project.Configuration.Gpio" interface) from Entity Manager to update own gpio configuration. Change-Id: I2e3bac50fea665de17023f6065b4d7b17299a1eb Signed-off-by: Golder, Cezary <cezary.golder@intel.com>
2018-10-26Create gpio dbus service basing on EntityManager.Golder, Cezary2-0/+121
Service name is "xyz.openbmc_project.Gpio" with below properties: .Direction .Enabled .Value Whenever "Enabled" is set to "false" the "Value" and "Direction" properties cannot be overridden. Tested By: Cezary Golder Change-Id: I9192676d00c56e3637ded9ca4029b1df50a96f26 Signed-off-by: Golder, Cezary <cezary.golder@intel.com>