From patchwork Wed Feb 13 23:25:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evan Green X-Patchwork-Id: 10811309 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2668C14E1 for ; Wed, 13 Feb 2019 23:27:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 160412D698 for ; Wed, 13 Feb 2019 23:27:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0933B2DD81; Wed, 13 Feb 2019 23:27:03 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B8CCD2DCF4 for ; Wed, 13 Feb 2019 23:26:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390589AbfBMX02 (ORCPT ); Wed, 13 Feb 2019 18:26:28 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:44287 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390681AbfBMX02 (ORCPT ); Wed, 13 Feb 2019 18:26:28 -0500 Received: by mail-pl1-f194.google.com with SMTP id p4so1973002plq.11 for ; Wed, 13 Feb 2019 15:26:27 -0800 (PST) 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=z1ZzbSMaLkcrujFXMVmUGhZGSWFapd4E02x4M5Q5CXM=; b=LiZLNlqJcuFSlZ2KM8smAvyO33KbhXwgO53Y9ocn/IQrEHfKsl7H9jVO59Go8ACKKn RpH8rSh5pH8WE51+kT0jMjdtLI5kDRJZbrV/IHtguKCKxJF5bKxzC2WgOQqZvN3B2krZ s7UgOYhDmzLkbunRDxqNkUwLLMI9yMVPVNcmA= 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=z1ZzbSMaLkcrujFXMVmUGhZGSWFapd4E02x4M5Q5CXM=; b=RbeiJvEQegFk7+gqasXH5zv8n+v9d3wX8RYmO8CM/CNgVatucnxke4av5XlxRHHJFn 1HnaJXdsBt6e4qn8JUsbfC/GMrA8MjvStyDPrUDJYzD5Ljvuf4exSqwfoxkx/lmmEgU0 1BVLDO/RFzxrjBmokbA05lEMKYdbvtc/EvzSQS3gkUuMTn+89EMXSKklp6hvKvD43Fd2 dU0SjUZdgwKBGzRdJ6I+yI6KCWAQ2pe+vj058dynY3mCHtSv9c2Sy7KXSduUxNI9CSEh g4G8+ZSvTlZS4LIlu+YA4yL2Hq+kNQj+X5LS/dB/6KxXigbriyo6jPMl2H53GDQA9/HP 8AHw== X-Gm-Message-State: AHQUAua3xSsSDvYca3ofKUFck7QyUR6Lpcw5iW4SKzAjQL092C/QK+xk 14crinErDe54R3JCjb6k97JyMA== X-Google-Smtp-Source: AHgI3IbPGCJAsPZdqVVOt69EZjNuubGM3/7szxlvMu9oyudavwb1c/rPG4J9DaLt8bcNX6apXbIqoA== X-Received: by 2002:a17:902:8d8d:: with SMTP id v13mr740991plo.121.1550100387494; Wed, 13 Feb 2019 15:26:27 -0800 (PST) Received: from evgreen2.mtv.corp.google.com ([2620:15c:202:201:ffda:7716:9afc:1301]) by smtp.gmail.com with ESMTPSA id d129sm560660pfc.31.2019.02.13.15.26.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 13 Feb 2019 15:26:26 -0800 (PST) From: Evan Green To: Andy Gross , Kishon Vijay Abraham I Cc: Stephen Boyd , Marc Gonzalez , Can Guo , Vivek Gautam , Douglas Anderson , Asutosh Das , Evan Green , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , David Brown , Mark Rutland Subject: [PATCH v4 5/8] arm64: dts: msm8996: Add UFS PHY reset controller Date: Wed, 13 Feb 2019 15:25:23 -0800 Message-Id: <20190213232526.26995-6-evgreen@chromium.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190213232526.26995-1-evgreen@chromium.org> References: <20190213232526.26995-1-evgreen@chromium.org> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add the reset controller for the UFS controller, and wire it up so that the UFS PHY can initialize itself without relying on implicit sequencing between the two drivers. Signed-off-by: Evan Green Reviewed-by: Stephen Boyd --- Changes in v4: None Changes in v3: None Changes in v2: None arch/arm64/boot/dts/qcom/msm8996.dtsi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi index 99b7495455a6..179f1988d45c 100644 --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi @@ -663,10 +663,11 @@ clock-names = "ref_clk_src", "ref_clk"; clocks = <&rpmcc RPM_SMD_LN_BB_CLK>, <&gcc GCC_UFS_CLKREF_CLK>; + resets = <&ufshc 0>; status = "disabled"; }; - ufshc@624000 { + ufshc: ufshc@624000 { compatible = "qcom,ufshc"; reg = <0x624000 0x2500>; interrupts = ; @@ -722,6 +723,7 @@ <0 0>; lanes-per-direction = <1>; + #reset-cells = <1>; status = "disabled"; ufs_variant {