xref: /freebsd/sys/contrib/device-tree/Bindings/reset/fsl,imx7-src.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotFreescale i.MX7 System Reset Controller
2*c66ec88fSEmmanuel Vadot======================================
3*c66ec88fSEmmanuel Vadot
4*c66ec88fSEmmanuel VadotPlease also refer to reset.txt in this directory for common reset
5*c66ec88fSEmmanuel Vadotcontroller binding usage.
6*c66ec88fSEmmanuel Vadot
7*c66ec88fSEmmanuel VadotRequired properties:
8*c66ec88fSEmmanuel Vadot- compatible:
9*c66ec88fSEmmanuel Vadot	- For i.MX7 SoCs should be "fsl,imx7d-src", "syscon"
10*c66ec88fSEmmanuel Vadot	- For i.MX8MQ SoCs should be "fsl,imx8mq-src", "syscon"
11*c66ec88fSEmmanuel Vadot	- For i.MX8MM SoCs should be "fsl,imx8mm-src", "fsl,imx8mq-src", "syscon"
12*c66ec88fSEmmanuel Vadot	- For i.MX8MN SoCs should be "fsl,imx8mn-src", "fsl,imx8mq-src", "syscon"
13*c66ec88fSEmmanuel Vadot	- For i.MX8MP SoCs should be "fsl,imx8mp-src", "syscon"
14*c66ec88fSEmmanuel Vadot- reg: should be register base and length as documented in the
15*c66ec88fSEmmanuel Vadot  datasheet
16*c66ec88fSEmmanuel Vadot- interrupts: Should contain SRC interrupt
17*c66ec88fSEmmanuel Vadot- #reset-cells: 1, see below
18*c66ec88fSEmmanuel Vadot
19*c66ec88fSEmmanuel Vadotexample:
20*c66ec88fSEmmanuel Vadot
21*c66ec88fSEmmanuel Vadotsrc: reset-controller@30390000 {
22*c66ec88fSEmmanuel Vadot     compatible = "fsl,imx7d-src", "syscon";
23*c66ec88fSEmmanuel Vadot     reg = <0x30390000 0x2000>;
24*c66ec88fSEmmanuel Vadot     interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
25*c66ec88fSEmmanuel Vadot     #reset-cells = <1>;
26*c66ec88fSEmmanuel Vadot};
27*c66ec88fSEmmanuel Vadot
28*c66ec88fSEmmanuel Vadot
29*c66ec88fSEmmanuel VadotSpecifying reset lines connected to IP modules
30*c66ec88fSEmmanuel Vadot==============================================
31*c66ec88fSEmmanuel Vadot
32*c66ec88fSEmmanuel VadotThe system reset controller can be used to reset various set of
33*c66ec88fSEmmanuel Vadotperipherals. Device nodes that need access to reset lines should
34*c66ec88fSEmmanuel Vadotspecify them as a reset phandle in their corresponding node as
35*c66ec88fSEmmanuel Vadotspecified in reset.txt.
36*c66ec88fSEmmanuel Vadot
37*c66ec88fSEmmanuel VadotExample:
38*c66ec88fSEmmanuel Vadot
39*c66ec88fSEmmanuel Vadot	pcie: pcie@33800000 {
40*c66ec88fSEmmanuel Vadot
41*c66ec88fSEmmanuel Vadot		...
42*c66ec88fSEmmanuel Vadot
43*c66ec88fSEmmanuel Vadot		resets = <&src IMX7_RESET_PCIEPHY>,
44*c66ec88fSEmmanuel Vadot			 <&src IMX7_RESET_PCIE_CTRL_APPS_EN>;
45*c66ec88fSEmmanuel Vadot		reset-names = "pciephy", "apps";
46*c66ec88fSEmmanuel Vadot
47*c66ec88fSEmmanuel Vadot		...
48*c66ec88fSEmmanuel Vadot        };
49*c66ec88fSEmmanuel Vadot
50*c66ec88fSEmmanuel Vadot
51*c66ec88fSEmmanuel VadotFor list of all valid reset indices see
52*c66ec88fSEmmanuel Vadot<dt-bindings/reset/imx7-reset.h> for i.MX7,
53*c66ec88fSEmmanuel Vadot<dt-bindings/reset/imx8mq-reset.h> for i.MX8MQ and
54*c66ec88fSEmmanuel Vadot<dt-bindings/reset/imx8mq-reset.h> for i.MX8MM and
55*c66ec88fSEmmanuel Vadot<dt-bindings/reset/imx8mq-reset.h> for i.MX8MN and
56*c66ec88fSEmmanuel Vadot<dt-bindings/reset/imx8mp-reset.h> for i.MX8MP
57