1# Copyright (c) 2020, Nordic Semiconductor ASA 2# SPDX-License-Identifier: Apache-2.0 3 4# Properties for nodes with controllable power supplies. 5 6properties: 7 supply-gpios: 8 type: phandle-array 9 description: | 10 GPIO specifier that controls power to the device. 11 12 This property should be provided when the device has a dedicated 13 switch that controls power to the device. The supply state is 14 entirely the responsibility of the device driver. 15 16 Contrast with vin-supply. 17 18 vin-supply: 19 type: phandle 20 description: | 21 Reference to the regulator that controls power to the device. 22 The referenced devicetree node must have a regulator compatible. 23 24 This property should be provided when device power is supplied 25 by a shared regulator. The supply state is dependent on the 26 request status of all devices fed by the regulator. 27 28 Contrast with supply-gpios. If both properties are provided 29 then the regulator must be requested before the supply GPIOS is 30 set to an active state, and the supply GPIOS must be set to an 31 inactive state before releasing the regulator. 32