^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) * Generic system power control capability
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) Power-management integrated circuits or miscellaneous hardware components are
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) sometimes able to control the system power. The device driver associated with these
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) components might need to define this capability, which tells the kernel that
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) it can be used to switch off the system. The corresponding device must have the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) standard property "system-power-controller" in its device node. This property
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) marks the device as able to control the system power. In order to test if this
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) property is found programmatically, use the helper function
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) "of_device_is_system_power_controller" from of.h .
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) Example:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) act8846: act8846@5 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) compatible = "active-semi,act8846";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) system-power-controller;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) }