From patchwork Tue Mar 26 17:05:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evan Green X-Patchwork-Id: 10871681 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 3268B1390 for ; Tue, 26 Mar 2019 17:05:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1E93528173 for ; Tue, 26 Mar 2019 17:05:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 123A528E97; Tue, 26 Mar 2019 17:05:28 +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 B002B28173 for ; Tue, 26 Mar 2019 17:05:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729800AbfCZRF1 (ORCPT ); Tue, 26 Mar 2019 13:05:27 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:34471 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726261AbfCZRF0 (ORCPT ); Tue, 26 Mar 2019 13:05:26 -0400 Received: by mail-pg1-f193.google.com with SMTP id v12so8570184pgq.1 for ; Tue, 26 Mar 2019 10:05:26 -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:mime-version :content-transfer-encoding; bh=LsLe1HrF/ojJF1oDyTC8JucVDbgZ9e7bF+XA2994fJU=; b=HVSO81oHItsZPvcbJ67VR6yV45MRAsWA+J1tUiXOtE3h691f6HhWfZHExLmfLhwfYr ZjxhhXvXEGfn5We+2Ujif+pJU0WU35MFNxM371BD/6NXVKRdaQMDCCyEeBgB6Q+ccbL0 hqC4FnpcWX/ifac5uzbjfqc4vTjXytQRr/RvY= 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:mime-version :content-transfer-encoding; bh=LsLe1HrF/ojJF1oDyTC8JucVDbgZ9e7bF+XA2994fJU=; b=kJ4y36C+ReURTUwQ4mOml1ciGN5ClZmzkUl124q0lf92O/yJRK7hiKvgwg8NCIsT0U cH4DzylDI7dyr+D+fV1IPJ8Jgc2WJ90dEVVxNoRnLpI8XH4oZRZGuNi9zX9R/VX5obIo s8J17AFzswkIrlb1/mkJhrckprcMME/mFS3ffxeCPxf6zJEGPI1EFc25nx/uC8usoJyR keT+1XyY2qmYcfs8arDA/QnUUtZ7SwzSpbiVsIY4l3Njpf3cdFHq4gdfOmmpvhK//pxC nUggIrZUTbD41Au6eN7DF3qselR5c9JGeaUBNVlF9ImWD0v4fpcaHmMEdswy5ctlOxJV N9Kg== X-Gm-Message-State: APjAAAX7ri9+/9fZVGgSi48qLochkEdY0RqVKFtgTz9ok7zKt/jC1oPs XFwspwNk06+ZpkvEeRUqzIzy4w== X-Google-Smtp-Source: APXvYqwJ+aiJxRaHVGgXu51qkRdwnCCXFqPebaF1OBVulvgkjcwWYcEvaUacnP2JuOdtAOsBUmTRoA== X-Received: by 2002:a63:4346:: with SMTP id q67mr29516890pga.92.1553619926353; Tue, 26 Mar 2019 10:05:26 -0700 (PDT) Received: from evgreen2.mtv.corp.google.com ([2620:15c:202:201:ffda:7716:9afc:1301]) by smtp.gmail.com with ESMTPSA id u11sm22768433pfh.23.2019.03.26.10.05.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 26 Mar 2019 10:05:25 -0700 (PDT) From: Evan Green To: Marc Gonzalez , Andy Gross Cc: 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] arm64: dts: msm8998: Add UFS phy reset Date: Tue, 26 Mar 2019 10:05:18 -0700 Message-Id: <20190326170518.157317-1-evgreen@chromium.org> X-Mailer: git-send-email 2.20.1 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 With the new refactoring at [1], the UFS phy now controls its own destiny in toggling the phy reset bit within the UFS host controller. Add the DT pieces needed to 1) expose the reset controller from the HC, and 2) use it from the PHY. This series is based atop linux-next plus Marc's series at [2]. Signed-off-by: Evan Green [1] https://lore.kernel.org/lkml/20190321171800.104681-1-evgreen@chromium.org/ [2] https://lore.kernel.org/lkml/43768d77-80b7-9cdc-b6e0-08ec4a026c21@free.fr/ --- I haven't tested this. Marc, I'm hoping you'll test this out and hijack this patch if it needs any fixups. arch/arm64/boot/dts/qcom/msm8998.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8998.dtsi b/arch/arm64/boot/dts/qcom/msm8998.dtsi index 3d0aeb3211de..d59a2c5fe83a 100644 --- a/arch/arm64/boot/dts/qcom/msm8998.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8998.dtsi @@ -990,6 +990,7 @@ interrupts = ; phys = <&ufsphy_lanes>; phy-names = "ufsphy"; + #reset-cells = <1>; lanes-per-direction = <2>; power-domains = <&gcc UFS_GDSC>; @@ -1039,6 +1040,7 @@ <&gcc GCC_UFS_CLKREF_CLK>, <&gcc GCC_UFS_PHY_AUX_CLK>; + resets = <&ufshc 0>; ufsphy_lanes: lanes@1da7400 { reg = <0x01da7400 0x128>, <0x01da7600 0x1fc>,