From patchwork Thu Mar 21 17:17:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evan Green X-Patchwork-Id: 1060305 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="UndNXci+"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 44QD6F0xYtz9s6w for ; Fri, 22 Mar 2019 04:19:01 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728766AbfCURSW (ORCPT ); Thu, 21 Mar 2019 13:18:22 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:42710 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728602AbfCURSV (ORCPT ); Thu, 21 Mar 2019 13:18:21 -0400 Received: by mail-pf1-f194.google.com with SMTP id r15so4705514pfn.9 for ; Thu, 21 Mar 2019 10:18:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/Bo6Ts3kPT4RmjlVO3KjUyTjhP8WkrwI/aNrar/qliw=; b=UndNXci+1z/Eg7Aq+ZV0SQHvpe+4Jhdi7/ROwPgizumfm4yMF33jHRwWBZmema9QlX 9sr0tOcPYnJWR42rGspd2OFFHvryg7x2ifOIRvecOH/B53DqA1nTQNfUEhdzSqpStSXB gGe9QJR3GOl3I/1ee8z/v72+lCdq/Af1L3oQQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/Bo6Ts3kPT4RmjlVO3KjUyTjhP8WkrwI/aNrar/qliw=; b=Hk1P4E8eaXvnvKFkAATsDItOiTyB95wBg7Q+xYWRgdtFcnAhf4TGRZhT01PSnj21lY B2H2kLokgyq/7evA4tg9fORWAnqj3TD+k45/7I57Fd2Yr0tjzOiHVUi4ukPgxIu7L1e4 0TAm6HI7WS+2dt2xlQf6oT9Wbh5Ecd8FR6W0WkIMcJaRpaeh8KBFEGjnWoY+MGE+CxOS GcS6JLnaD9eit9R3P/PkOIUoc0Hiz2vYh/yqr5UedSFDY1R9zfWS3kfeAVm1Z1YU+ulc SBrcTPsbQisZHCF9MQsb6fuw8/3ey+xPrVwK7/E0fWuFOfH0e4bKrXnlS2wYOniOEbDz 4OvQ== X-Gm-Message-State: APjAAAVT2MM3QFxlKvrFMkDfB2MYQ1p/5tMlGHL8Lct4YJDhfzVS9DMo n4ZDkwyKmP5PsSnnbNvfEh+Nsw== X-Google-Smtp-Source: APXvYqxXR8o25+joEz8dWnEvGQtXoSvqHBfBQrELC7mD18i66AQbkc7ukB5DWxdVHkw2m6ZrP3zj7A== X-Received: by 2002:a17:902:d894:: with SMTP id b20mr4696828plz.318.1553188699978; Thu, 21 Mar 2019 10:18:19 -0700 (PDT) Received: from evgreen2.mtv.corp.google.com ([2620:15c:202:201:ffda:7716:9afc:1301]) by smtp.gmail.com with ESMTPSA id z6sm20953866pgo.31.2019.03.21.10.18.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 21 Mar 2019 10:18:19 -0700 (PDT) From: Evan Green To: Kishon Vijay Abraham I Cc: Stephen Boyd , Marc Gonzalez , Can Guo , Vivek Gautam , Douglas Anderson , Asutosh Das , Evan Green , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , Mark Rutland Subject: [PATCH v5 3/8] dt-bindings: phy: qcom-ufs: Add resets property Date: Thu, 21 Mar 2019 10:17:55 -0700 Message-Id: <20190321171800.104681-4-evgreen@chromium.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190321171800.104681-1-evgreen@chromium.org> References: <20190321171800.104681-1-evgreen@chromium.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add a resets property to the PHY that represents the PHY reset register in the UFS controller itself. This better describes the complete specification of the PHY, and allows the PHY to perform its initialization in a single function, rather than relying on back-channel sequencing of initialization through the PHY framework. Signed-off-by: Evan Green Reviewed-by: Rob Herring Reviewed-by: Stephen Boyd --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: - Added resets to example (Stephen). Documentation/devicetree/bindings/ufs/ufs-qcom.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/ufs/ufs-qcom.txt b/Documentation/devicetree/bindings/ufs/ufs-qcom.txt index 21d9a93db2e9..fd59f93e9556 100644 --- a/Documentation/devicetree/bindings/ufs/ufs-qcom.txt +++ b/Documentation/devicetree/bindings/ufs/ufs-qcom.txt @@ -29,6 +29,7 @@ Optional properties: - vdda-pll-max-microamp : specifies max. load that can be drawn from pll supply - vddp-ref-clk-supply : phandle to UFS device ref_clk pad power supply - vddp-ref-clk-max-microamp : specifies max. load that can be drawn from this supply +- resets : specifies the PHY reset in the UFS controller Example: @@ -51,9 +52,11 @@ Example: <&clock_gcc clk_ufs_phy_ldo>, <&clock_gcc clk_gcc_ufs_tx_cfg_clk>, <&clock_gcc clk_gcc_ufs_rx_cfg_clk>; + resets = <&ufshc 0>; }; - ufshc@fc598000 { + ufshc: ufshc@fc598000 { + #reset-cells = <1>; ... phys = <&ufsphy1>; phy-names = "ufsphy";