Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5473637rwl; Tue, 11 Apr 2023 06:06:34 -0700 (PDT) X-Google-Smtp-Source: AKy350a3wieyRt/M7QhSfBgEaAIRZmpyx+Jk7L/VdzxQnCFBHvvRMpFtxtOaBoN1SVQDcIfpLco7 X-Received: by 2002:a17:907:8a85:b0:94a:474a:4dd5 with SMTP id sf5-20020a1709078a8500b0094a474a4dd5mr9317563ejc.9.1681218394153; Tue, 11 Apr 2023 06:06:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681218394; cv=none; d=google.com; s=arc-20160816; b=z+3/JUwwQjp9K5ZYrxFYNIa2S04SkRWlfcdu4fhEj9yiUy7AOmqfGfIrQ8odkUBka+ 0qNzx2lqfsYu1uDkI7ugeQNWgmdvSxzS75do06IAUNTQNhQC0O1rwEWO6H35dq7Q0y8r 69siMHj8phav9xIxHCJnXNOtAvRnz6KZaIb3AkNqmcHPQYmZyG14XlWSkgRwnt0Im7Vs Ck9v+QiHkVNs/SXhBidD5Yexqhj0t7EXQiqxCCzpG3HlksNF5niRk774neRATjQL52i2 sS4Oq+9jyPNkt9DFQUZVZH5MR+FX8L1YJFzxqiGFWFTbjwCZepNCOBxw5TIooe3MYx/X qxTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=oLCBk+PsIVXWwQR+9sa67ykV6lK08ZiECvLUtYgfM0o=; b=VXZn39532mcqQsGJ9JQp/u/rNJquu7/WhBtnkhkCRPsaV663no9+Wafr9t7H4+T1OA nrUlUi/HdQ5P1HWIimQ9Vax4qn4qAurRD+mIf8rZkhW6aMKBV3A6U7Ef/3++rdtu+vq2 qE5BgbQ8+ykHWIJBGibX2TKBZiIbP7/movboRaUai+Rx4aIwv5xdZbsAFdlgw8Hwxr0n tmu+EEFvas6Q7hFL2e9CeROu590ak+/19yXONkoef0+w+fAF6rYSkwjk8eGX7Ojd0kyl sGGguIRzFskY6HH3NdJNzZ/8UWencOsYc+rcanwNAb1xmNd8/o5XEQ7QAr/HihFf+sB6 o4ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=d6EZ8uwh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hr33-20020a1709073fa100b0094bcc95e212si3608819ejc.128.2023.04.11.06.05.57; Tue, 11 Apr 2023 06:06:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=d6EZ8uwh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230410AbjDKNFP (ORCPT + 99 others); Tue, 11 Apr 2023 09:05:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230446AbjDKNFG (ORCPT ); Tue, 11 Apr 2023 09:05:06 -0400 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 689F2C3 for ; Tue, 11 Apr 2023 06:04:55 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id l10-20020a05600c1d0a00b003f04bd3691eso15215318wms.5 for ; Tue, 11 Apr 2023 06:04:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1681218294; 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=oLCBk+PsIVXWwQR+9sa67ykV6lK08ZiECvLUtYgfM0o=; b=d6EZ8uwhcw6fanAnJ8/rtneUADfpHNDKiWcwOhf8m2Il2fZZlbK4V1Uldwc+Vak5en cXrwVZB96A4CKSA2H2SGWWXpn6D6BvDn88b9peIQhoAiz7cXsvxN32+1CGnURrMC20yD /Ldd3PY+53yjetEed1zF+tyFW0KQ3thuUILbaUjbRkJhlzsQamXlxCOuC49ModHgXUs4 ueKgRk3QPaQSVVT8V/m/AZsGdwsO0og514hIwdoSKTcAJ0cvHjnP6RG63F/QfoRqUylh Cf5UKoY06YmlTfZ8WKlL3iaZ4aWeeycALQp40SG5LGc1lX4W85wtdmti+RVUJRarjq9d WH3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681218294; 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=oLCBk+PsIVXWwQR+9sa67ykV6lK08ZiECvLUtYgfM0o=; b=tS4TNKlzV/vVT7+6bqm+yMIqymjA8oU3JFgNfA2L1mVBPJHXCyZ1j4is0xLaliR/hW UqBXohruCLwIcWwUT41+rM0E7v5qUCi9OWSL41UtohsX9VaxPeTfYTusMJisRuf5DdB0 lG7D7pbaDDKYwe7p7Sx5rDGYjynEU1A3RVLE2BNIO4Mb8ERdDz/PKBFKqaPiTbhs4/bv WU+M3dOjTWOA0Zf8K2QGNrnzt8v5Hfo6QO5f+BvgVUjz/Co87AJqroW3ZpYxgN3H40GG VmtQ+Vlqw4WbUG50IP8nYNHT1AfB6f1IMTRsHbVf+N4EmYQNlndY3f7Q7b5SB2NSlAKJ 3QKQ== X-Gm-Message-State: AAQBX9eTw2CKUUtglgoYQTJ1eldpKshHVotT3uC4RxoaNh6dTd3DTuOK 1zqDj9g9tCzBZCqxJ9+Z+1Q2jw== X-Received: by 2002:a05:600c:2247:b0:3eb:2b88:a69a with SMTP id a7-20020a05600c224700b003eb2b88a69amr6678335wmm.14.1681218293854; Tue, 11 Apr 2023 06:04:53 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:a099:fc1d:c99a:bfc3]) by smtp.gmail.com with ESMTPSA id t6-20020a7bc3c6000000b003f04646838esm16921301wmj.39.2023.04.11.06.04.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Apr 2023 06:04:53 -0700 (PDT) From: Bartosz Golaszewski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Manivannan Sadhasivam , Alim Akhtar , Avri Altman , Bart Van Assche Cc: linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v3 4/5] arm64: dts: qcom: sa8775p: add UFS nodes Date: Tue, 11 Apr 2023 15:04:45 +0200 Message-Id: <20230411130446.401440-5-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230411130446.401440-1-brgl@bgdev.pl> References: <20230411130446.401440-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bartosz Golaszewski Add nodes for the UFS and its PHY on sa8775p platforms. Signed-off-by: Bartosz Golaszewski Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sa8775p.dtsi | 58 +++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qcom/sa8775p.dtsi index 2343df7e0ea4..5de0fbbe9752 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p.dtsi +++ b/arch/arm64/boot/dts/qcom/sa8775p.dtsi @@ -585,6 +585,64 @@ &clk_virt SLAVE_QUP_CORE_1 QCOM_ICC_TAG_ALWAYS>, }; }; + ufs_mem_hc: ufs@1d84000 { + compatible = "qcom,sa8775p-ufshc", "qcom,ufshc", "jedec,ufs-2.0"; + reg = <0x0 0x01d84000 0x0 0x3000>; + interrupts = ; + phys = <&ufs_mem_phy>; + phy-names = "ufsphy"; + lanes-per-direction = <2>; + #reset-cells = <1>; + resets = <&gcc GCC_UFS_PHY_BCR>; + reset-names = "rst"; + power-domains = <&gcc UFS_PHY_GDSC>; + required-opps = <&rpmhpd_opp_nom>; + iommus = <&apps_smmu 0x100 0x0>; + 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>; + 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"; + freq-table-hz = <75000000 300000000>, + <0 0>, + <0 0>, + <75000000 300000000>, + <0 0>, + <0 0>, + <0 0>, + <0 0>; + status = "disabled"; + }; + + ufs_mem_phy: phy@1d87000 { + compatible = "qcom,sa8775p-qmp-ufs-phy"; + reg = <0x0 0x01d87000 0x0 0xe10>; + /* + * Yes, GCC_EDP_REF_CLKREF_EN is correct in qref. It + * enables the CXO clock to eDP *and* UFS PHY. + */ + clocks = <&rpmhcc RPMH_CXO_CLK>, + <&gcc GCC_UFS_PHY_PHY_AUX_CLK>, + <&gcc GCC_EDP_REF_CLKREF_EN>; + clock-names = "ref", "ref_aux", "qref"; + power-domains = <&gcc UFS_PHY_GDSC>; + resets = <&ufs_mem_hc 0>; + reset-names = "ufsphy"; + #phy-cells = <0>; + status = "disabled"; + }; + tcsr_mutex: hwlock@1f40000 { compatible = "qcom,tcsr-mutex"; reg = <0x0 0x01f40000 0x0 0x20000>; -- 2.37.2