Merge remote-tracking branches 'spi/topic/spidev', 'spi/topic/spidev-test', 'spi...
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / reset / hisilicon,hi3660-reset.txt
1 Hisilicon System Reset Controller
2 ======================================
3
4 Please also refer to reset.txt in this directory for common reset
5 controller binding usage.
6
7 The reset controller registers are part of the system-ctl block on
8 hi3660 SoC.
9
10 Required properties:
11 - compatible: should be
12                  "hisilicon,hi3660-reset"
13 - hisi,rst-syscon: phandle of the reset's syscon.
14 - #reset-cells : Specifies the number of cells needed to encode a
15   reset source.  The type shall be a <u32> and the value shall be 2.
16
17          Cell #1 : offset of the reset assert control
18                    register from the syscon register base
19                    offset + 4: deassert control register
20                    offset + 8: status control register
21          Cell #2 : bit position of the reset in the reset control register
22
23 Example:
24         iomcu: iomcu@ffd7e000 {
25                 compatible = "hisilicon,hi3660-iomcu", "syscon";
26                 reg = <0x0 0xffd7e000 0x0 0x1000>;
27         };
28
29         iomcu_rst: iomcu_rst_controller {
30                 compatible = "hisilicon,hi3660-reset";
31                 hisi,rst-syscon = <&iomcu>;
32                 #reset-cells = <2>;
33         };
34
35 Specifying reset lines connected to IP modules
36 ==============================================
37 example:
38
39         i2c0: i2c@..... {
40                 ...
41                 resets = <&iomcu_rst 0x20 3>; /* offset: 0x20; bit: 3 */
42                 ...
43         };