18c2ecf20Sopenharmony_ciSTMicroelectronics STi family Sysconfig Peripheral Powerdown Reset Controller 28c2ecf20Sopenharmony_ci============================================================================= 38c2ecf20Sopenharmony_ci 48c2ecf20Sopenharmony_ciThis binding describes a reset controller device that is used to enable and 58c2ecf20Sopenharmony_cidisable on-chip peripheral controllers such as USB and SATA, using 68c2ecf20Sopenharmony_ci"powerdown" control bits found in the STi family SoC system configuration 78c2ecf20Sopenharmony_ciregisters. These have been grouped together into a single reset controller 88c2ecf20Sopenharmony_cidevice for convenience. 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ciThe actual action taken when powerdown is asserted is hardware dependent. 118c2ecf20Sopenharmony_ciHowever, when asserted it may not be possible to access the hardware's 128c2ecf20Sopenharmony_ciregisters and after an assert/deassert sequence the hardware's previous state 138c2ecf20Sopenharmony_cimay no longer be valid. 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ciPlease refer to reset.txt in this directory for common reset 168c2ecf20Sopenharmony_cicontroller binding usage. 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ciRequired properties: 198c2ecf20Sopenharmony_ci- compatible: Should be "st,stih407-powerdown" 208c2ecf20Sopenharmony_ci- #reset-cells: 1, see below 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ciexample: 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ci powerdown: powerdown-controller { 258c2ecf20Sopenharmony_ci compatible = "st,stih407-powerdown"; 268c2ecf20Sopenharmony_ci #reset-cells = <1>; 278c2ecf20Sopenharmony_ci }; 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ciSpecifying powerdown control of devices 318c2ecf20Sopenharmony_ci======================================= 328c2ecf20Sopenharmony_ci 338c2ecf20Sopenharmony_ciDevice nodes should specify the reset channel required in their "resets" 348c2ecf20Sopenharmony_ciproperty, containing a phandle to the powerdown device node and an 358c2ecf20Sopenharmony_ciindex specifying which channel to use, as described in reset.txt 368c2ecf20Sopenharmony_ci 378c2ecf20Sopenharmony_ciexample: 388c2ecf20Sopenharmony_ci 398c2ecf20Sopenharmony_ci st_dwc3: dwc3@8f94000 { 408c2ecf20Sopenharmony_ci resets = <&powerdown STIH407_USB3_POWERDOWN>, 418c2ecf20Sopenharmony_ci }; 428c2ecf20Sopenharmony_ci 438c2ecf20Sopenharmony_ciMacro definitions for the supported reset channels can be found in: 448c2ecf20Sopenharmony_ci 458c2ecf20Sopenharmony_ciinclude/dt-bindings/reset/stih407-resets.h 46