mirror of
https://github.com/torvalds/linux.git
synced 2024-12-30 14:52:05 +00:00
50f44e894a
Add compatible for media reset controller. Actually, there are two reset controllers in hi6220 SoC: The peripheral reset controller bits are part of sysctrl registers. The media reset controller bits are part of mediactrl registers. So for the compatible part, it should contain "syscon" for both peripheral and media reset controller. Signed-off-by: Xinliang Liu <xinliang.liu@linaro.org> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
37 lines
1.0 KiB
Plaintext
37 lines
1.0 KiB
Plaintext
Hisilicon System Reset Controller
|
|
======================================
|
|
|
|
Please also refer to reset.txt in this directory for common reset
|
|
controller binding usage.
|
|
|
|
The reset controller registers are part of the system-ctl block on
|
|
hi6220 SoC.
|
|
|
|
Required properties:
|
|
- compatible: should be one of the following:
|
|
- "hisilicon,hi6220-sysctrl", "syscon" : For peripheral reset controller.
|
|
- "hisilicon,hi6220-mediactrl", "syscon" : For media reset controller.
|
|
- reg: should be register base and length as documented in the
|
|
datasheet
|
|
- #reset-cells: 1, see below
|
|
|
|
Example:
|
|
sys_ctrl: sys_ctrl@f7030000 {
|
|
compatible = "hisilicon,hi6220-sysctrl", "syscon";
|
|
reg = <0x0 0xf7030000 0x0 0x2000>;
|
|
#clock-cells = <1>;
|
|
#reset-cells = <1>;
|
|
};
|
|
|
|
Specifying reset lines connected to IP modules
|
|
==============================================
|
|
example:
|
|
|
|
uart1: serial@..... {
|
|
...
|
|
resets = <&sys_ctrl PERIPH_RSTEN3_UART1>;
|
|
...
|
|
};
|
|
|
|
The index could be found in <dt-bindings/reset/hisi,hi6220-resets.h>.
|