reset: hisilicon: add reset-hi3660
authorZhangfei Gao <zhangfei.gao@linaro.org>
Tue, 6 Dec 2016 01:51:32 +0000 (09:51 +0800)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 9 Jan 2017 09:38:58 +0000 (10:38 +0100)
commit1527058736fad60e37ca6103f0de39ca045c5fc5
tree72e890a206492772289f1c40762f6d4925317627
parent836e235495838760f1b8458f462c76404fb7b140
reset: hisilicon: add reset-hi3660

Add hi3660 reset driver
Example of dts usage:
iomcu_rst: iomcu_rst_controller {
compatible = "hisilicon,hi3660-reset";
hisi,rst-syscon = <&iomcu>;
#reset-cells = <2>;
};

i2c0: i2c@..... {
                ...
resets = <&iomcu_rst 0x20 3>; /* offset: 0x20; bit: 3 */
                ...
        };

Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/reset/hisilicon/Kconfig
drivers/reset/hisilicon/Makefile
drivers/reset/hisilicon/reset-hi3660.c [new file with mode: 0644]