Received: by 10.223.185.116 with SMTP id b49csp3557346wrg; Mon, 19 Feb 2018 01:59:09 -0800 (PST) X-Google-Smtp-Source: AH8x224UDChKQ8M14QsnQ09T9DLb/giOWJ7qq8qxXWTZQxMCwq5zDB6PGGok0TLpG4R0LkdpGVbl X-Received: by 2002:a17:902:7445:: with SMTP id e5-v6mr13649776plt.204.1519034348911; Mon, 19 Feb 2018 01:59:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519034348; cv=none; d=google.com; s=arc-20160816; b=FNDY9UMw0iRIbkvommfiQGp/UzuT8w1oQ2eApVGdVcNZFSgGc05lQcWTUS5j8PUM87 MT0DD17MmMV0DPckaRzeQB4dy0TguYVfCeTffWOEVzpNWzFL/fsgyKYFRsDxuJrAPemb ElXDEsh/n+yVCpQ5+Jd/YQX34vgSai+ZSKRYyuDnfW0ih9vJEotzrByJY8PjXjZTtKRQ AYxiErsuTr2jaIS5gGVkJRbYUIr+5z3pZ6W9yBzJVaQvLkwS0yyt49pwblMzHRRopC9Y SyciAo+6YKhk6ilBJ8mCrPtgXr3+aOY4RFBMVrPPHoaJj2HwCc6s70xTIuI7JeitaVs5 7MbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=2GVoN2gd2gA5uL2KD2oZS+kMwx1QRKZPrWCrR54M06s=; b=CfgQj8lAls50zFxC53sgjoU12kO+JuGgTxnhnJWBPHXq77DIDzhs3BAvyAiTX8AAKZ KHQZK6qZMWdzyBtAYgSM4PoVRdHDu/7G9opJNNpqIXiqQE0QfMFA5Zq62XS/fJUnAVy4 u2DEgGwOXt8M9q+iGc5PLKTgVjgmQ2b4xKcrug9GYQc2jnlx7wYk12zxRU9skd+nNVWF fjIq3xTPZMxJnj3TPeuewvpbBxaSqHCnQ0bDwZlhMqR+XgOVM3zpqgEPeEh3dPKZUOGB 9yBai5g0mCwle+PhvdbKgq05Go8A5qvA4tCBv40m+mtaoKyLGF+hgm1H9hWfcWI8SwjQ xjbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=hryQPZoh; 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 d186si5071922pgc.600.2018.02.19.01.58.54; Mon, 19 Feb 2018 01:59:08 -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=fail header.i=@gmail.com header.s=20161025 header.b=hryQPZoh; 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 S1752539AbeBSJ5e (ORCPT + 99 others); Mon, 19 Feb 2018 04:57:34 -0500 Received: from mail-qk0-f194.google.com ([209.85.220.194]:47021 "EHLO mail-qk0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752129AbeBSJ5c (ORCPT ); Mon, 19 Feb 2018 04:57:32 -0500 Received: by mail-qk0-f194.google.com with SMTP id t13so8145596qkj.13; Mon, 19 Feb 2018 01:57:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=2GVoN2gd2gA5uL2KD2oZS+kMwx1QRKZPrWCrR54M06s=; b=hryQPZohnUr97YcUCuE4HVBGe1oVhNKyubhvJanp+G8EnQe5AkBZrUz+ajgX56iWXr XyCWsXRmF2+YmETLy8zvoXUPQCqgb8YI1/RhXxXlZhXer77i7cqLQpDta2DEEG/aXHES gBu4Wlyy1ct4rdHHE+VR4nPCiWEcr02OCw5bMqdHLbaPViG1sq4ubijJYYGjWBodlz6J CUv3b0gN0OFTuhrWf2kIgEyn7TwrZ3anViEYPbfoyN9HtAMAdV8NfhhyXKvD8NgvCVIv MXML7AlRGHmfYSuAEKUsFZfNpJApEhhofb8NCCZk4n6lmxh0fqTaHrH0oaiesb1TaRx5 aIHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=2GVoN2gd2gA5uL2KD2oZS+kMwx1QRKZPrWCrR54M06s=; b=KqPcefnLL233F5utblJSEZKcr2EMOQHGlTG0YzIcRWzdyO+wOIy8SGWdZoCqs4G6av 6y2UIXu1VV2ohd2drriGmUx5YK0OtQJe6ZQC2Pd+4dduQ6AJRUyx0ghK0o3w4jEY+wn9 mO3z9EcKHCvim/txdcBVOTDK7F5DW2SDFvQ5v6KGEmuWEc2sb9LIiy2NHX4/n7FPXhbg VGKXbrflHUVa6GmqmyufoNwMjanOnanebDvYD7xFHu5406dNlYmYh2BoC3Vhu4cBLa3d IjU+NFM3dy4JdUoxDTIasxkLTgiWARFCPc8PigBqsoOo8YIPxpFqj9JH5Hwj8j+7J6g3 c7jA== X-Gm-Message-State: APf1xPB369xJsoN1JW9w1rmGlb645bceucrfhofHEACES1Yrjh8M0dro 0S0BSdyHCkmSQkRO6annE1Ty6wfhrw8KukfO+cc= X-Received: by 10.55.42.93 with SMTP id q90mr23327130qkh.291.1519034251209; Mon, 19 Feb 2018 01:57:31 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.198.17 with HTTP; Mon, 19 Feb 2018 01:57:30 -0800 (PST) In-Reply-To: <20180213101412.5717-3-liwei213@huawei.com> References: <20180213101412.5717-1-liwei213@huawei.com> <20180213101412.5717-3-liwei213@huawei.com> From: Arnd Bergmann Date: Mon, 19 Feb 2018 10:57:30 +0100 X-Google-Sender-Auth: RNNxwvkRaL32D878LitCzPWH5eU Message-ID: Subject: Re: [PATCH v8 2/5] dt-bindings: scsi: ufs: add document for hisi-ufs To: Li Wei Cc: Rob Herring , Mark Rutland , Wei Xu , Catalin Marinas , Will Deacon , Vinayak Holikatti , "James E.J. Bottomley" , "Martin K. Petersen" , Kevin Hilman , Gregory CLEMENT , Thomas Petazzoni , Masahiro Yamada , Riku Voipio , Thierry Reding , Krzysztof Kozlowski , Eric Anholt , DTML , Linux Kernel Mailing List , Linux ARM , linux-scsi , zangleigang@hisilicon.com, gengjianfeng@hisilicon.com, Guodong Xu , Zhangfei Gao , "Fengbaopeng (kevin, Kirin Solution Dept)" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 13, 2018 at 11:14 AM, Li Wei wrote: > add ufs node document for Hisilicon. > > Signed-off-by: Li Wei > --- > Documentation/devicetree/bindings/ufs/ufs-hisi.txt | 37 ++++++++++++++++++++++ > 1 file changed, 37 insertions(+) > create mode 100644 Documentation/devicetree/bindings/ufs/ufs-hisi.txt I'm pretty sure we've discussed it before, but can you make this so that the generic properties are part of the ufshcd binding, and you refer to it from here, only describing in what ways the hisi ufs binding differs from the standard? > diff --git a/Documentation/devicetree/bindings/ufs/ufs-hisi.txt b/Documentation/devicetree/bindings/ufs/ufs-hisi.txt > new file mode 100644 > index 000000000000..0d21b57496cf > --- /dev/null > +++ b/Documentation/devicetree/bindings/ufs/ufs-hisi.txt > @@ -0,0 +1,37 @@ > +* Hisilicon Universal Flash Storage (UFS) Host Controller > + > +UFS nodes are defined to describe on-chip UFS hardware macro. > +Each UFS Host Controller should have its own node. > + > +Required properties: > +- compatible : compatible list, contains one of the following - > + "hisilicon,hi3660-ufs", "jedec,ufs-1.1" for hisi ufs > + host controller present on Hi36xx chipset. > +- reg : should contain UFS register address space & UFS SYS CTRL register address, > +- interrupt-parent : interrupt device > +- interrupts : interrupt number > +- clocks : List of phandle and clock specifier pairs > +- clock-names : List of clock input name strings sorted in the same > + order as the clocks property. "ref_clk", "phy_clk" is optional The clock names sound generic enough, should we have both in the generic binding? > +- resets : reset node register, one reset the clk and the other reset the controller > +- reset-names : describe reset node register This looks incomplete. What is the name of the reset line supposed to be? I'd also suggest you document it in the ufshcd binding instead. Arnd