From patchwork Tue Nov 22 07:49:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 9440581 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id EBF5E60237 for ; Tue, 22 Nov 2016 07:53:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E0AB728478 for ; Tue, 22 Nov 2016 07:53:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D41A72847B; Tue, 22 Nov 2016 07:53:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 61A9B28478 for ; Tue, 22 Nov 2016 07:53:29 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1c95rw-0007ws-MB; Tue, 22 Nov 2016 07:51:56 +0000 Received: from mail-pg0-x22a.google.com ([2607:f8b0:400e:c05::22a]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c95rE-00070a-LN for linux-arm-kernel@lists.infradead.org; Tue, 22 Nov 2016 07:51:16 +0000 Received: by mail-pg0-x22a.google.com with SMTP id f188so4999825pgc.3 for ; Mon, 21 Nov 2016 23:50:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=2R/YVro3kFFyDLJ0y+45PdkNDr3qbSa+za6RcqNH6Qc=; b=TukS6r2RjhqaX5Ren9+wGgWr6kpnNpd02ZCB0eaAT2TekcW+sCbOu2m9tSfD/V6+mK SGAfMZ/8ytddCNXu+vctLtjMQ9SJvS2uR+wWCYTLITjrl5nLAbIYAGmrJ+liz/96D20V J/42VRj57UaYSnQqQOWU5AX/h2rbm0gdKVr48= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=2R/YVro3kFFyDLJ0y+45PdkNDr3qbSa+za6RcqNH6Qc=; b=TCRhzK7KtwKvGflAG0Wg38TOXtfsqcheH3zJbglqH+J4/tJ8LxYMSr8ToisF2iUbk2 Kv4EtQSLExVOxpwbcM4woqHvTcbmQOVI0vzRqlpyMqlE9aG+pidRUhxW8N6+vaDGcuWc ObkNTcfW/SutW0HhfrM4JrtxgS93MCyKhldO/rIvnMgCS+mFsvS6OWScAWTwUFh0J0Fx F/u4r22DYErrGtBRo9TnyX4OrfY80b82ZtEi5srC8GeHL+rQZXNAr9PK6TLf9DeNc+1f JUy0FY4jw4dTlZhXzlac6N9KBcR1/MFMGBqN3+gYnCfyhnGHoU420xtC7/ftTLlq0I33 GgHA== X-Gm-Message-State: AKaTC03HIeyIho6EX3mDv6Mjvadix3uzcW92YljgX5CVlL7Pj0l9GaVP30ZWyQ03raGzEfxq X-Received: by 10.98.28.79 with SMTP id c76mr23853887pfc.8.1479801051544; Mon, 21 Nov 2016 23:50:51 -0800 (PST) Received: from localhost.localdomain ([104.237.91.214]) by smtp.gmail.com with ESMTPSA id d1sm42635008pfb.76.2016.11.21.23.50.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 21 Nov 2016 23:50:51 -0800 (PST) From: Zhangfei Gao To: Philipp Zabel , Rob Herring , haojian.zhuang@linaro.org, xuwei5@hisilicon.com, Chen Feng , Xinliang Liu , Xia Qing , Jiancheng Xue Subject: [PATCH 4/6] dt-bindings: change hi6220-reset.txt according to reset-hi6220.c Date: Tue, 22 Nov 2016 15:49:19 +0800 Message-Id: <1479800961-6249-5-git-send-email-zhangfei.gao@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1479800961-6249-1-git-send-email-zhangfei.gao@linaro.org> References: <1479800961-6249-1-git-send-email-zhangfei.gao@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161121_235113_046851_D224D474 X-CRM114-Status: GOOD ( 10.86 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Zhangfei Gao MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Zhangfei Gao --- .../devicetree/bindings/reset/hisilicon,hi6220-reset.txt | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/reset/hisilicon,hi6220-reset.txt b/Documentation/devicetree/bindings/reset/hisilicon,hi6220-reset.txt index c25da39..6a864f3 100644 --- a/Documentation/devicetree/bindings/reset/hisilicon,hi6220-reset.txt +++ b/Documentation/devicetree/bindings/reset/hisilicon,hi6220-reset.txt @@ -9,10 +9,9 @@ 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 + - "hisilicon,hi6220-reset-sysctrl" : For peripheral reset controller. + - "hisilicon,hi6220-reset-mediactrl" : For media reset controller. +- hisi,rst-syscon: phandle of the reset's syscon. - #reset-cells: 1, see below Example: @@ -20,7 +19,12 @@ sys_ctrl: sys_ctrl@f7030000 { compatible = "hisilicon,hi6220-sysctrl", "syscon"; reg = <0x0 0xf7030000 0x0 0x2000>; #clock-cells = <1>; +}; + +sys_ctrl_rst: sys_rst_controller { + compatible = "hisilicon,hi6220-reset-sysctrl"; #reset-cells = <1>; + hisi,rst-syscon = <&sys_ctrl>; }; Specifying reset lines connected to IP modules @@ -29,7 +33,7 @@ example: uart1: serial@..... { ... - resets = <&sys_ctrl PERIPH_RSTEN3_UART1>; + resets = <&sys_ctrl_rst PERIPH_RSTEN3_UART1>; ... };