Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3079319ybl; Fri, 20 Dec 2019 03:35:54 -0800 (PST) X-Google-Smtp-Source: APXvYqzT+OQUb7J9+O4zFBHeF7pUwo52jJtSbv7yelair3KV5RVNnfb0gaDqufzMpyK+zGVS8bzB X-Received: by 2002:a05:6830:1d91:: with SMTP id y17mr13788041oti.276.1576841754597; Fri, 20 Dec 2019 03:35:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576841754; cv=none; d=google.com; s=arc-20160816; b=yYU89TCGds/m9fl8SvLSXZ3JRR/omLxKe3rt+GJjCTdYWSZGipOaN6LRb1akKGcEmW XH9/1RzzcGlsDqYDZyaUfGZUsQXDConVNDMDMHifIa1xWMBpBq9EK6q3GFvH/SeADGT3 iC2ymBOhFsVgNoXw7+BuhP6/s/GK+4/8T8eRJQEwGbIvfyqdpzyb2w6dy3O4oNJ5n3nF XmG4yfDu21TW7i9OqE8TZKXNywK7SsbQrHo7EgGFlHAdevHAPEqzsy63KrRBm8lzxZmj uHyawufG1Xa9CKcgo4mG+baocs29NRK857i/1IfDak6uup5tu/I0G//VJJun9Ktu5QMw weQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=ebkAQxjiSXSHSZJ50xrvpwnSGWgbaQckYjuIVK7i+/s=; b=FifxcMESBmRd6F2okY030LpTpraBzcITLEyjWgAmld5nVMINAtYv3TxwUqXdU0niaK jOXydRNpmrd5HX13Q3zpjBSEPDeYegX1/D0W/2oZzdAE1z4oSvBLDRhAfl957ypWP1Bb szQwEzHXsgfGbngbhcjo5NXMfcCrPvYLgTJfrLkS8QMKT8Z/T4VTbtxeYDn0nJ+5SBHo NFcz7mgAZUtEIGKMO1fxiBChWHx3I6fINjxGyPc42rvrRahah2AvFcaMjQSzjHrSya3i PJbY9qwKfkBTJ0d6hzWF3SNkG+ruwnyJm8j6lR+tis402Ms8l2tSUm9Fll0CtcDfXLFL nHpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=q9tqyp34; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f187si4667268oia.218.2019.12.20.03.35.43; Fri, 20 Dec 2019 03:35:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=q9tqyp34; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727378AbfLTLeC (ORCPT + 99 others); Fri, 20 Dec 2019 06:34:02 -0500 Received: from conuserg-08.nifty.com ([210.131.2.75]:36599 "EHLO conuserg-08.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727258AbfLTLd5 (ORCPT ); Fri, 20 Dec 2019 06:33:57 -0500 Received: from localhost.localdomain (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-08.nifty.com with ESMTP id xBKBW2Ww010984; Fri, 20 Dec 2019 20:32:06 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com xBKBW2Ww010984 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1576841527; bh=ebkAQxjiSXSHSZJ50xrvpwnSGWgbaQckYjuIVK7i+/s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=q9tqyp34bhuaZ8GMgUE6ux1iJpphWD4rLGw+wcOCE6Rmvg9RsG2iADpLVJq23mfEH EKszhamf4xolnnBF9Tk0a1T51iAqU7ozV67syYV0bhjRgOZwTMjiD0uz+7A+MPhhsd KrNKu4L6JeP8gJk9W68BijvkwYfn1N2tSDJ6Ul2f/pwakP53oMZNTbpVpNwOqV6p/6 y7dDFdFHv6qW4DFaiwqtHxF1OQI+s13YiYpijQCjUGiIpkuxxZJBdcYiUOL9n5csuR v//dM1ziup0I4YKIn1nhiMEdKFJWrNuyJeEgzyplbWpUZgmdZ2cLmL3Vzuf8uALnPo oFqGr1ohj2VOw== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-mtd@lists.infradead.org Cc: Dinh Nguyen , Marek Vasut , Ley Foon Tan , Miquel Raynal , Masahiro Yamada , Mark Rutland , Richard Weinberger , Rob Herring , Vignesh Raghavendra , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 3/5] dt-bindings: mtd: denali_dt: document reset property Date: Fri, 20 Dec 2019 20:31:53 +0900 Message-Id: <20191220113155.28177-4-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191220113155.28177-1-yamada.masahiro@socionext.com> References: <20191220113155.28177-1-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org According to the Denali NAND Flash Memory Controller User's Guide, this IP has two reset signals. rst_n: reset most of FFs in the controller core reg_rst_n: reset all FFs in the register interface, and in the initialization sequencer This commit specifies these reset signals. It is possible to control them separately from the IP point of view although they might be often tied up together in actual SoC integration. At least for the upstream platforms, Altera/Intel SOCFPGA and Socionext UniPhier, the reset controller seems to provide only 1-bit control for the NAND controller. If it is the case, the resets property should reference to the same phandles for "nand" and "reg" resets, like this: resets = <&nand_rst>, <&nand_rst>; reset-names = "nand", "reg"; Signed-off-by: Masahiro Yamada Acked-by: Rob Herring --- Changes in v3: None Changes in v2: - Split into two patches Documentation/devicetree/bindings/mtd/denali-nand.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/mtd/denali-nand.txt b/Documentation/devicetree/bindings/mtd/denali-nand.txt index b32aed1db46d..98916a84bbf6 100644 --- a/Documentation/devicetree/bindings/mtd/denali-nand.txt +++ b/Documentation/devicetree/bindings/mtd/denali-nand.txt @@ -14,6 +14,11 @@ Required properties: interface clock, and the ECC circuit clock. - clock-names: should contain "nand", "nand_x", "ecc" +Optional properties: + - resets: may contain phandles to the controller core reset, the register + reset + - reset-names: may contain "nand", "reg" + Sub-nodes: Sub-nodes represent available NAND chips. @@ -46,6 +51,8 @@ nand: nand@ff900000 { reg-names = "nand_data", "denali_reg"; clocks = <&nand_clk>, <&nand_x_clk>, <&nand_ecc_clk>; clock-names = "nand", "nand_x", "ecc"; + resets = <&nand_rst>, <&nand_reg_rst>; + reset-names = "nand", "reg"; interrupts = <0 144 4>; nand@0 { -- 2.17.1