From patchwork Mon Aug 14 21:54:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 713498 Delivered-To: patch@linaro.org Received: by 2002:a5d:4012:0:b0:317:ecd7:513f with SMTP id n18csp1469655wrp; Mon, 14 Aug 2023 14:57:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHcBYiF7NU2MFVXAZyf6ngHxVBfmzcsAaX2FV24ugkr8Vw0/4YzKNmtb1bjKIF0Z5skb+Cc X-Received: by 2002:a05:6000:12c7:b0:317:51da:83b9 with SMTP id l7-20020a05600012c700b0031751da83b9mr7503418wrx.49.1692050256768; Mon, 14 Aug 2023 14:57:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692050256; cv=none; d=google.com; s=arc-20160816; b=KSIBIK16/mMLZpFosfOeCVvU987a3tiM0pEmcP1v59vMfZxsfJgDgkCE0IMfqM4Y+F m6qgAy3tFXP4ZTp/M0/jmrFMHlIveP7+7USMSKRoda6xoZMRH3hnCOctZ4OUBSa6P1aN gEh694wcNGbvagh9T8Vu8SQXhBqaDtbW+ttkRacpUyTCnQAHbeJgj8Ak0E6afXjWvSnl MiIr7fJS+pEQLrzsBkwcfcRRXwVQZRmquhqD6diiuczLOc+vo6i/6uI7+jZOy/BLDCzX g7fgSp3sz4/SUAj9KG4zPYh9f1hz1annV8RGPatKlX6gJobTB5LoR39Neci/gAp5Z+V8 I9xA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=NA8wXXMGZUgB5LvuvYMeBlIkfqo2g+gkxhB8hUfXhoE=; fh=vYQW2AAoPeUpo9lVvNGcKCVUxQw3t5EIXqQc50yqzn0=; b=FWYto6myM1lOJGEUNbT6XcqbCGbbpjo1wKFuHotuJN8125cohVvlcSmKuNmq8uUseo 3ep485+aRjFvm8/JKZpiK2f5IiNLxMZvvq8gHo1sWXFvWvPGh2E6IaZEHm2M5s8YfVpe XSutW/m4edpqFPH+g4NsV9QCN8NyohIceAFIkeEy8bl5RSr2rjS/Mnp/rgIMIKdP8xZ6 3xGLn+w7w++Z3yYiVKaNxkXyCbNcYQzpRGig9lsMNGFzG8qxmge0JTCLexuUmmJ8jDfq 4ybV8wLDajatkFZcjQQvJCgCYtQr0TE/9Ut6gu5D8/1zZQ57u5XIY2ZRguO4Rh0Boas0 ERbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UxeNCKJ+; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id n11-20020a5d6b8b000000b003141c3b0eaesi5394372wrx.230.2023.08.14.14.57.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Aug 2023 14:57:36 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UxeNCKJ+; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 13987869C7; Mon, 14 Aug 2023 23:56:18 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="UxeNCKJ+"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BCB49869CA; Mon, 14 Aug 2023 23:56:16 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 89DCC86987 for ; Mon, 14 Aug 2023 23:56:13 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bhupesh.sharma@linaro.org Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-1bbf8cb694aso41288085ad.3 for ; Mon, 14 Aug 2023 14:56:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692050171; x=1692654971; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=NA8wXXMGZUgB5LvuvYMeBlIkfqo2g+gkxhB8hUfXhoE=; b=UxeNCKJ+crlCgx3lvL+qi75QfAm7coeb6+AUA4mCRYcmrIb/r60+W3UxFsiv8dKn5E CfTMnq/CtszsKCbJ+f6Ttw0wBDTHnpHQOTyWY79qGU+NolwgKQWOw6EuZqGMBC4XqONN QNtoQ8K8s+RH/NeRMHVR7cVCxiYsOWvD+OiEYbl2/YQFPZragmtqkSb07IVEVDKwzshH t2gi0NHqHD5iI7oD3h24F7aAdUCW4yTYOLsP7Z6k67w1uw7TcehMU+qxWL5A5HgBZu1K TREKfpKTtqlHA3tcbl3ps41CGYSUNNt3WqBLFlZq938biqD0jmdUj45kajUJwhYps5XY 15sQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692050171; x=1692654971; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NA8wXXMGZUgB5LvuvYMeBlIkfqo2g+gkxhB8hUfXhoE=; b=ZUEM43O49sUaSH+I3v6Y8QYKJato/Q96JcOFltKezGfKpmDEscDZWcNaqPEFmfh5IO aULfDgWAB5LHRLGYhpC1tgoL1nBC9hQDUPjRvqPfOPzQunngHDgNDtA9XHM54BKdHRzB oAtF71vcXaOdO8FGC7V+cBiCsZbA8tIdvmpaCbEu2/D+RAhCHUxns1ob0rKHqDxFECe1 hGWA9rtQPIzGuf6sZ+FUsty+6lwPmjalKw30C2OyV1xAk0h0/kc2hqRW1870DfrCtulj L4YFjqFZXAXHglMzXaL9OQoMCXCGVdxiI1bceYWNvnORiI3lro4W9ecjSH4w6zh1zRPY K/KA== X-Gm-Message-State: AOJu0Yz7Rpw+mAKr/7kYMzsQ1TPPONEXQD67AbNVhhgzLGte/NJwk7IL gyT4DLobWKE1N7d5kPEKcM84E/0qFhSfZwIBglw= X-Received: by 2002:a17:902:8688:b0:1b8:954c:1f6 with SMTP id g8-20020a170902868800b001b8954c01f6mr9411233plo.36.1692050171605; Mon, 14 Aug 2023 14:56:11 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1f3b:3924:6581:8508:2ecb:b5dd]) by smtp.gmail.com with ESMTPSA id n4-20020a170903110400b001bba373919bsm9872075plh.261.2023.08.14.14.56.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Aug 2023 14:56:11 -0700 (PDT) From: Bhupesh Sharma To: u-boot@lists.denx.de Cc: sjg@chromium.org, trini@konsulko.com, bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, marek.vasut+renesas@mailbox.org, sumit.garg@linaro.org, rfried.dev@gmail.com, patrice.chotard@foss.st.com, jbx6244@gmail.com, kever.yang@rock-chips.com, eugen.hristev@collabora.com Subject: [PATCH 14/17] arm: dts: qcom: sdm845: Add UFS HC and PHY nodes Date: Tue, 15 Aug 2023 03:24:54 +0530 Message-Id: <20230814215457.4075025-15-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230814215457.4075025-1-bhupesh.sharma@linaro.org> References: <20230814215457.4075025-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Add UFS HC and PHY nodes in Qualcomm SDM845 dtsi. Signed-off-by: Bhupesh Sharma --- arch/arm/dts/sdm845.dtsi | 62 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/arch/arm/dts/sdm845.dtsi b/arch/arm/dts/sdm845.dtsi index 056a1674d5..9ef41e3c84 100644 --- a/arch/arm/dts/sdm845.dtsi +++ b/arch/arm/dts/sdm845.dtsi @@ -30,6 +30,68 @@ compatible = "qcom,gcc-reset-sdm845"; reg = <0x00100000 0x1f0000>; #reset-cells = <1>; + + ufs_mem_hc: ufshc@1d84000 { + compatible = "qcom,sdm845-ufshc", "qcom,ufshc", + "jedec,ufs-2.0"; + reg = <0x01d84000 0x2500>; + phys = <&ufs_mem_phy_lanes>; + phy-names = "ufsphy"; + lanes-per-direction = <2>; + #reset-cells = <1>; + resets = <&reset GCC_UFS_PHY_BCR>; + reset-names = "rst"; + + power-domains = <&gcc UFS_PHY_GDSC>; + + clock-names = + "core_clk", + "bus_aggr_clk", + "iface_clk", + "core_clk_unipro", + "tx_lane0_sync_clk", + "rx_lane0_sync_clk", + "rx_lane1_sync_clk", + "ice_core_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>, + <&gcc GCC_UFS_PHY_TX_SYMBOL_0_CLK>, + <&gcc GCC_UFS_PHY_RX_SYMBOL_0_CLK>, + <&gcc GCC_UFS_PHY_RX_SYMBOL_1_CLK>, + <&gcc GCC_UFS_PHY_ICE_CORE_CLK>; + freq-table-hz = + <50000000 200000000>, + <0 0>, + <0 0>, + <37500000 150000000>, + <0 0>, + <0 0>, + <0 0>, + <0 300000000>; + }; + + ufs_mem_phy: phy@1d87000 { + compatible = "qcom,sdm845-qmp-ufs-phy"; + reg = <0x01d87000 0x18c>; + #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>; + + ufs_mem_phy_lanes: phy@1d87400 { + reg = <0x01d87400 0x108>, + <0x01d87600 0x1e0>, + <0x01d87c00 0x1dc>, + <0x01d87800 0x108>, + <0x01d87a00 0x1e0>; + #phy-cells = <0>; + }; }; gpio_north: gpio_north@3900000 {