18c2ecf20Sopenharmony_ciHisilicon System Reset Controller 28c2ecf20Sopenharmony_ci====================================== 38c2ecf20Sopenharmony_ci 48c2ecf20Sopenharmony_ciPlease also refer to reset.txt in this directory for common reset 58c2ecf20Sopenharmony_cicontroller binding usage. 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ciThe reset controller registers are part of the system-ctl block on 88c2ecf20Sopenharmony_cihi3660 and hi3670 SoCs. 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ciRequired properties: 118c2ecf20Sopenharmony_ci- compatible: should be one of the following: 128c2ecf20Sopenharmony_ci "hisilicon,hi3660-reset" for HI3660 138c2ecf20Sopenharmony_ci "hisilicon,hi3670-reset", "hisilicon,hi3660-reset" for HI3670 148c2ecf20Sopenharmony_ci- hisi,rst-syscon: phandle of the reset's syscon. 158c2ecf20Sopenharmony_ci- #reset-cells : Specifies the number of cells needed to encode a 168c2ecf20Sopenharmony_ci reset source. The type shall be a <u32> and the value shall be 2. 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci Cell #1 : offset of the reset assert control 198c2ecf20Sopenharmony_ci register from the syscon register base 208c2ecf20Sopenharmony_ci offset + 4: deassert control register 218c2ecf20Sopenharmony_ci offset + 8: status control register 228c2ecf20Sopenharmony_ci Cell #2 : bit position of the reset in the reset control register 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ciExample: 258c2ecf20Sopenharmony_ci iomcu: iomcu@ffd7e000 { 268c2ecf20Sopenharmony_ci compatible = "hisilicon,hi3660-iomcu", "syscon"; 278c2ecf20Sopenharmony_ci reg = <0x0 0xffd7e000 0x0 0x1000>; 288c2ecf20Sopenharmony_ci }; 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ci iomcu_rst: iomcu_rst_controller { 318c2ecf20Sopenharmony_ci compatible = "hisilicon,hi3660-reset"; 328c2ecf20Sopenharmony_ci hisi,rst-syscon = <&iomcu>; 338c2ecf20Sopenharmony_ci #reset-cells = <2>; 348c2ecf20Sopenharmony_ci }; 358c2ecf20Sopenharmony_ci 368c2ecf20Sopenharmony_ciSpecifying reset lines connected to IP modules 378c2ecf20Sopenharmony_ci============================================== 388c2ecf20Sopenharmony_ciexample: 398c2ecf20Sopenharmony_ci 408c2ecf20Sopenharmony_ci i2c0: i2c@..... { 418c2ecf20Sopenharmony_ci ... 428c2ecf20Sopenharmony_ci resets = <&iomcu_rst 0x20 3>; /* offset: 0x20; bit: 3 */ 438c2ecf20Sopenharmony_ci ... 448c2ecf20Sopenharmony_ci }; 45