Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1799545imm; Thu, 18 Oct 2018 04:34:08 -0700 (PDT) X-Google-Smtp-Source: ACcGV62uy7cGU2bmAFzdlHYCyaywAf06QakkNMypgw8/MmpDUKgmc5b5DDHJynGF5J1JjjCyKu5Q X-Received: by 2002:a17:902:24b:: with SMTP id 69-v6mr30438318plc.280.1539862448722; Thu, 18 Oct 2018 04:34:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539862448; cv=none; d=google.com; s=arc-20160816; b=e+lJH3Jddi9mxI6mr41K9Pmd6HHC1dlnMYc7sltP4Ca3pxXWTvlEAmC6yQ8up+uE7b nUhaYqF0NwIN3YLRa1VfP6byupSn3GyfzFQqf5rqmXfwpHmPRWcPLnqG4im6TuEC/pCl P9mXfeqCDdf+dYj1koDeACnBzNwzF1cbV10jpiJzkvHFAB0oxZvDdeIm0uin/czwplzL 0wiGYgEkBICfAcy26twDQphFzlAiodK5FbERMxgDzrzT/RULVylSWNrI4xHm8Cib7B0t Ku/D5VIP2Bet9rRDLGgaMrDKv5+V9v043ZHYt3F3G43+FMXbe7Hh+WVR5J2LPg+D1nZU 5OtA== 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 :in-reply-to:references:mime-version:dmarc-filter:dkim-signature :dkim-signature; bh=KNqSZTJQxvodTiq9/GtX9rY/2Fc58wwU3+26il85fO0=; b=hXKUKYqvIbAVzg92D4F1fyvOwH3OQ1/Gxi2Z4+mO/ACjh+r6DjoIveZ+B/SOoBN1Zu IuMQ7ahh1DYFO2DHFCXv3FNAbJzol8winsPfxdDGbV60YbpLoG8/1xXAqgdpYSyip9RV szA6oyjhZS6VyYu8hbyhavLt0HOz/5EstItJliE2LbpeLeLWmFLI+H9hvxSV9zX/b9CA aYhU62YY5Et+zD/vtgYoUX3Im/Kc42b+zlcGQssgaubEBI0vhLYNLT1km9OW2JYVYzPM YNJsMK/SqiszI0nGE2j3EPA249Sq+QbtTuBplhwh14EaL6O13ZTKC11jLYMxh9W4NFKp rSBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=jKeyJZma; dkim=pass header.i=@codeaurora.org header.s=default header.b=jKeyJZma; 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 f14-v6si4545967pgj.314.2018.10.18.04.33.52; Thu, 18 Oct 2018 04:34:08 -0700 (PDT) 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=@codeaurora.org header.s=default header.b=jKeyJZma; dkim=pass header.i=@codeaurora.org header.s=default header.b=jKeyJZma; 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 S1728009AbeJRTd6 (ORCPT + 99 others); Thu, 18 Oct 2018 15:33:58 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:51618 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727434AbeJRTd6 (ORCPT ); Thu, 18 Oct 2018 15:33:58 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id BB6D360B73; Thu, 18 Oct 2018 11:33:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1539862400; bh=0L6EddOgErezuqYWi4CHAbqZF7HbZ4bqbEi5ow9Nehw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=jKeyJZmaAhTmfjCdOp6AJQp1PtipjY/Ltu+oT5jYvkGOWYjlMcmoXuqUh8Em8bV1c erQ0vrc5KzX97YCJJy90tONF1glrA8+bbMpuQEUDuIBtnjtcB+RGkcm9x1PsUA5CDT I4GIs3dpP1GplgqUpPzJ7UhmV7y+wVcF9gqwzRYE= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.0 Received: from mail-qk1-f172.google.com (mail-qk1-f172.google.com [209.85.222.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: vivek.gautam@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 026F5606DC; Thu, 18 Oct 2018 11:33:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1539862400; bh=0L6EddOgErezuqYWi4CHAbqZF7HbZ4bqbEi5ow9Nehw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=jKeyJZmaAhTmfjCdOp6AJQp1PtipjY/Ltu+oT5jYvkGOWYjlMcmoXuqUh8Em8bV1c erQ0vrc5KzX97YCJJy90tONF1glrA8+bbMpuQEUDuIBtnjtcB+RGkcm9x1PsUA5CDT I4GIs3dpP1GplgqUpPzJ7UhmV7y+wVcF9gqwzRYE= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 026F5606DC Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=vivek.gautam@codeaurora.org Received: by mail-qk1-f172.google.com with SMTP id q5-v6so18496575qki.6; Thu, 18 Oct 2018 04:33:19 -0700 (PDT) X-Gm-Message-State: ABuFfoiZfBaCy+jEGLeWkWz0a8AJJtPtREPpCfKxSzkjhivrSFOBSZul IVO7+4JjV+xZEeVRi7/uE7vj6Qo8S06X8IHA9B8= X-Received: by 2002:a37:5003:: with SMTP id e3-v6mr2184308qkb.102.1539862399238; Thu, 18 Oct 2018 04:33:19 -0700 (PDT) MIME-Version: 1.0 References: <20181017172312.194281-1-evgreen@chromium.org> <20181017172312.194281-2-evgreen@chromium.org> In-Reply-To: <20181017172312.194281-2-evgreen@chromium.org> From: Vivek Gautam Date: Thu, 18 Oct 2018 17:03:06 +0530 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/2] arm64: dts: qcom: sdm845: add UFS controller To: evgreen@chromium.org Cc: Andy Gross , David Brown , "robh+dt" , Mark Rutland , linux-arm-msm , "open list:ARM/QUALCOMM SUPPORT" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list , swboyd@chromium.org, Doug Anderson 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 Hi Evan, On Wed, Oct 17, 2018 at 10:55 PM Evan Green wrote: > > This change adds the UFS controller and PHY to SDM845. > > Signed-off-by: Evan Green > Signed-off-by: Douglas Anderson > --- > arch/arm64/boot/dts/qcom/sdm845.dtsi | 66 ++++++++++++++++++++++++++++++++++++ > 1 file changed, 66 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi > index b72bdb0a31a5..20b2c258816a 100644 > --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi > +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi > @@ -808,6 +808,72 @@ > }; > }; > > + ufshc1: ufshc@1d84000 { > + compatible = "qcom,sdm845-ufshc", "qcom,ufshc", > + "jedec,ufs-2.0"; > + reg = <0x1d84000 0x2500>; > + interrupts = ; > + phys = <&ufsphy1_lanes>; > + phy-names = "ufsphy"; > + lanes-per-direction = <2>; > + power-domains = <&gcc UFS_PHY_GDSC>; > + > + clock-names = > + "core_clk", > + "bus_aggr_clk", > + "iface_clk", > + "core_clk_unipro", > + "ref_clk", > + "tx_lane0_sync_clk", > + "rx_lane0_sync_clk", > + "rx_lane1_sync_clk"; > + clocks = > + <&gcc GCC_UFS_PHY_AXI_CLK>, > + <&gcc GCC_AGGRE_UFS_PHY_AXI_CLK>, > + <&gcc GCC_UFS_PHY_AHB_CLK>, > + <&gcc GCC_UFS_PHY_UNIPRO_CORE_CLK>, > + <&rpmhcc RPMH_CXO_CLK>, > + <&gcc GCC_UFS_PHY_TX_SYMBOL_0_CLK>, > + <&gcc GCC_UFS_PHY_RX_SYMBOL_0_CLK>, > + <&gcc GCC_UFS_PHY_RX_SYMBOL_1_CLK>; > + freq-table-hz = > + <50000000 200000000>, > + <0 0>, > + <0 0>, > + <37500000 150000000>, > + <0 0>, > + <0 0>, > + <0 0>, > + <0 0>; > + > + resets = <&gcc GCC_UFS_PHY_BCR>; > + reset-names = "rst"; > + > + status = "disabled"; > + }; > + > + ufsphy1: ufsphy@1d87000 { nit: s/ufsphy@1d87000/phy@1d87000 > + compatible = "qcom,sdm845-qmp-ufs-phy"; > + reg = <0x1d87000 0x18c>; > + #clock-cells = <1>; why do we need this clock-cells? ufsphy i think is not providing any clocks. Is it? Rest looks good. Best regards Vivek > + #address-cells = <1>; > + #size-cells = <1>; > + ranges; > + clock-names = "ref", > + "ref_aux"; > + clocks = <&gcc GCC_UFS_MEM_CLKREF_CLK>, > + <&gcc GCC_UFS_PHY_PHY_AUX_CLK>; > + > + status = "disabled"; > + > + ufsphy1_lanes: lanes@1d87400 { > + reg = <0x1d87400 0x108>, > + <0x1d87600 0x1e0>, > + <0x1d87c00 0x1dc>; > + #phy-cells = <0>; > + }; > + }; > + > tcsr_mutex_regs: syscon@1f40000 { > compatible = "syscon"; > reg = <0x1f40000 0x40000>; > -- > 2.16.4 > -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation