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: 83351 Delivered-To: patch@linaro.org Received: by 10.182.1.168 with SMTP id 8csp1999669obn; Mon, 21 Nov 2016 23:51:17 -0800 (PST) X-Received: by 10.98.208.70 with SMTP id p67mr24347249pfg.15.1479801077091; Mon, 21 Nov 2016 23:51:17 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f17si27108517pgg.308.2016.11.21.23.51.16; Mon, 21 Nov 2016 23:51:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755097AbcKVHvP (ORCPT + 7 others); Tue, 22 Nov 2016 02:51:15 -0500 Received: from mail-pg0-f54.google.com ([74.125.83.54]:36841 "EHLO mail-pg0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753872AbcKVHvP (ORCPT ); Tue, 22 Nov 2016 02:51:15 -0500 Received: by mail-pg0-f54.google.com with SMTP id f188so4999826pgc.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=GvxCx4jK1+q10vgy4Wnm3z8Mg4fJlGeeVwDVUwweR22hO380HZuGQ+XdoFYBabcVls ppLegmA+zr1bW5PMo3CEMlWZ0T4O6ItNiYQ8hUbJdFUzLNB8hTW/Fq2JO0Wy38npmDN3 j/Yp/FPyn/X6dA2j86HkdV70RUFwTbI4nAHtYU7GnZpiVDT00TTUXlVQgfK/qPn5eVWw BiGzcnA1E26H34foIBrYhvyGEB9+/qXgi4plk6VOMZkXdMK7jf+VJbtuSELlElSwdZIa Xs9Lf885GIlquUzzWpSrVc3T4r3LIq5J3vlq1TGRME8gVtFyymi1TJsEcB8eYZw6BcSy MQ7g== X-Gm-Message-State: AKaTC00VzTgumosyTc03gooavYV6QWsKL9hcPwBGYekFc0ptIuNvW3cfZ5wxll1Z2gqAnp+O 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 Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Zhangfei Gao 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> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Signed-off-by: Zhangfei Gao --- .../devicetree/bindings/reset/hisilicon,hi6220-reset.txt | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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>; ... };