xref: /freebsd/sys/contrib/device-tree/Bindings/reset/st,sti-picophyreset.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotSTMicroelectronics STi family Sysconfig Picophy SoftReset Controller
2*c66ec88fSEmmanuel Vadot=============================================================================
3*c66ec88fSEmmanuel Vadot
4*c66ec88fSEmmanuel VadotThis binding describes a reset controller device that is used to enable and
5*c66ec88fSEmmanuel Vadotdisable on-chip PicoPHY USB2 phy(s) using "softreset" control bits found in
6*c66ec88fSEmmanuel Vadotthe STi family SoC system configuration registers.
7*c66ec88fSEmmanuel Vadot
8*c66ec88fSEmmanuel VadotThe actual action taken when softreset is asserted is hardware dependent.
9*c66ec88fSEmmanuel VadotHowever, when asserted it may not be possible to access the hardware's
10*c66ec88fSEmmanuel Vadotregisters and after an assert/deassert sequence the hardware's previous state
11*c66ec88fSEmmanuel Vadotmay no longer be valid.
12*c66ec88fSEmmanuel Vadot
13*c66ec88fSEmmanuel VadotPlease refer to Documentation/devicetree/bindings/reset/reset.txt
14*c66ec88fSEmmanuel Vadotfor common reset controller binding usage.
15*c66ec88fSEmmanuel Vadot
16*c66ec88fSEmmanuel VadotRequired properties:
17*c66ec88fSEmmanuel Vadot- compatible: Should be "st,stih407-picophyreset"
18*c66ec88fSEmmanuel Vadot- #reset-cells: 1, see below
19*c66ec88fSEmmanuel Vadot
20*c66ec88fSEmmanuel VadotExample:
21*c66ec88fSEmmanuel Vadot
22*c66ec88fSEmmanuel Vadot	picophyreset: picophyreset-controller {
23*c66ec88fSEmmanuel Vadot		compatible = "st,stih407-picophyreset";
24*c66ec88fSEmmanuel Vadot		#reset-cells = <1>;
25*c66ec88fSEmmanuel Vadot	};
26*c66ec88fSEmmanuel Vadot
27*c66ec88fSEmmanuel VadotSpecifying picophyreset control of devices
28*c66ec88fSEmmanuel Vadot=======================================
29*c66ec88fSEmmanuel Vadot
30*c66ec88fSEmmanuel VadotDevice nodes should specify the reset channel required in their "resets"
31*c66ec88fSEmmanuel Vadotproperty, containing a phandle to the picophyreset device node and an
32*c66ec88fSEmmanuel Vadotindex specifying which channel to use, as described in
33*c66ec88fSEmmanuel VadotDocumentation/devicetree/bindings/reset/reset.txt.
34*c66ec88fSEmmanuel Vadot
35*c66ec88fSEmmanuel VadotExample:
36*c66ec88fSEmmanuel Vadot
37*c66ec88fSEmmanuel Vadot	usb2_picophy0: usbpicophy@0 {
38*c66ec88fSEmmanuel Vadot		resets = <&picophyreset STIH407_PICOPHY0_RESET>;
39*c66ec88fSEmmanuel Vadot	};
40*c66ec88fSEmmanuel Vadot
41*c66ec88fSEmmanuel VadotMacro definitions for the supported reset channels can be found in:
42*c66ec88fSEmmanuel Vadotinclude/dt-bindings/reset/stih407-resets.h
43