1*c66ec88fSEmmanuel Vadot* Generic system power control capability 2*c66ec88fSEmmanuel Vadot 3*c66ec88fSEmmanuel VadotPower-management integrated circuits or miscellaneous hardware components are 4*c66ec88fSEmmanuel Vadotsometimes able to control the system power. The device driver associated with these 5*c66ec88fSEmmanuel Vadotcomponents might need to define this capability, which tells the kernel that 6*c66ec88fSEmmanuel Vadotit can be used to switch off the system. The corresponding device must have the 7*c66ec88fSEmmanuel Vadotstandard property "system-power-controller" in its device node. This property 8*c66ec88fSEmmanuel Vadotmarks the device as able to control the system power. In order to test if this 9*c66ec88fSEmmanuel Vadotproperty is found programmatically, use the helper function 10*c66ec88fSEmmanuel Vadot"of_device_is_system_power_controller" from of.h . 11*c66ec88fSEmmanuel Vadot 12*c66ec88fSEmmanuel VadotExample: 13*c66ec88fSEmmanuel Vadot 14*c66ec88fSEmmanuel Vadotact8846: act8846@5 { 15*c66ec88fSEmmanuel Vadot compatible = "active-semi,act8846"; 16*c66ec88fSEmmanuel Vadot system-power-controller; 17*c66ec88fSEmmanuel Vadot} 18