xref: /freebsd/sys/contrib/device-tree/Bindings/reset/sirf,rstc.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotCSR SiRFSoC 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: Should be "sirf,prima2-rstc" or "sirf,marco-rstc"
9*c66ec88fSEmmanuel Vadot- reg: should be register base and length as documented in the
10*c66ec88fSEmmanuel Vadot  datasheet
11*c66ec88fSEmmanuel Vadot- #reset-cells: 1, see below
12*c66ec88fSEmmanuel Vadot
13*c66ec88fSEmmanuel Vadotexample:
14*c66ec88fSEmmanuel Vadot
15*c66ec88fSEmmanuel Vadotrstc: reset-controller@88010000 {
16*c66ec88fSEmmanuel Vadot	compatible = "sirf,prima2-rstc";
17*c66ec88fSEmmanuel Vadot	reg = <0x88010000 0x1000>;
18*c66ec88fSEmmanuel Vadot	#reset-cells = <1>;
19*c66ec88fSEmmanuel Vadot};
20*c66ec88fSEmmanuel Vadot
21*c66ec88fSEmmanuel VadotSpecifying reset lines connected to IP modules
22*c66ec88fSEmmanuel Vadot==============================================
23*c66ec88fSEmmanuel Vadot
24*c66ec88fSEmmanuel VadotThe reset controller(rstc) manages various reset sources. This module provides
25*c66ec88fSEmmanuel Vadotreset signals for most blocks in system. Those device nodes should specify the
26*c66ec88fSEmmanuel Vadotreset line on the rstc in their resets property, containing a phandle to the
27*c66ec88fSEmmanuel Vadotrstc device node and a RESET_INDEX specifying which module to reset, as described
28*c66ec88fSEmmanuel Vadotin reset.txt.
29*c66ec88fSEmmanuel Vadot
30*c66ec88fSEmmanuel VadotFor SiRFSoC, RESET_INDEX is just reset_bit defined in SW_RST0 and SW_RST1 registers.
31*c66ec88fSEmmanuel VadotFor modules whose rest_bit is in SW_RST0, its RESET_INDEX is 0~31. For modules whose
32*c66ec88fSEmmanuel Vadotrest_bit is in SW_RST1, its RESET_INDEX is 32~63.
33*c66ec88fSEmmanuel Vadot
34*c66ec88fSEmmanuel Vadotexample:
35*c66ec88fSEmmanuel Vadot
36*c66ec88fSEmmanuel Vadotvpp@90020000 {
37*c66ec88fSEmmanuel Vadot	compatible = "sirf,prima2-vpp";
38*c66ec88fSEmmanuel Vadot	reg = <0x90020000 0x10000>;
39*c66ec88fSEmmanuel Vadot	interrupts = <31>;
40*c66ec88fSEmmanuel Vadot	clocks = <&clks 35>;
41*c66ec88fSEmmanuel Vadot	resets = <&rstc 6>;
42*c66ec88fSEmmanuel Vadot};
43