Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2257121pxp; Mon, 21 Mar 2022 15:08:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxu19KXFEJ9D4x7xchi6EISzIoXDDB97zs0Zq0gFD3+yLCrZ+17YOmEHJugYM4S2h575rG3 X-Received: by 2002:a17:90b:4b4b:b0:1be:fd9a:c279 with SMTP id mi11-20020a17090b4b4b00b001befd9ac279mr1317322pjb.83.1647900514878; Mon, 21 Mar 2022 15:08:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647900514; cv=none; d=google.com; s=arc-20160816; b=O8rX1JM9jtXXRzA214K4pTv0QkzOYcuWNsyWrnPUm+/AT8Od6lz4xy8s0GNgogQBCi 2ooKjSekntXmOkqG8b0g0B33z7ohNp+qfzDoFVM+v65R5NGI9TSet0NYJ7PNQDTTko1T Inj3QgfrshUax2NlSTT5LFVywNFyBr1KnwVtG8XZEP9f2olpOeSTmW9ojKr64JeoER29 OffFjur3oYNQqDTVfFB6fAAnxtffLYeeDsvIVVTfY4cDV7EHblyjlDFObLjSgZwz0BK8 4nHrAdlyLQpUzaVjj6MQDij8xto0CYQMlyMtQsm1+ZLMcFTdlnStwORtk6GCDNmyjTRF DXiA== 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=aM6GQeVZtCegHilLMs+aD7A4drFAdvrQdeDC75uWokk=; b=1LIedvthQQpZAfRFY9OW+BIgybIMttn5q1FakUmI0/RMskKnPMXqCLJ0kfhkywMoBF gdWBTs7bAU39chQxTrxCS37hWUkkv1zU9T1gqfqqspxx9hnYXc0m3E8chUIfkFVDX1oz T0v38mZdechJmOrgg7Q6u8LjP52ZzpD7r9ar2ChD80mwQgFG5wxMXYACGn4q/FbzjUy9 M+d20WM0Vj+guHwYhiAtM/MvgIEzORD8QQZVOILuBIdCpgpOSP6LGhlSZOfLSAIU/EoG Rp7OX5+rBejMkqxjL6A9FF6fUZfwbfizxkWl7Uw2RgjeKfcR8Ke2WsROqVR0V9ZnBDqR fWQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=0ZmJa6mE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id h7-20020a632107000000b003816043f077si13959379pgh.620.2022.03.21.15.08.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 15:08:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=0ZmJa6mE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 22F7335C706; Mon, 21 Mar 2022 14:29:04 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231416AbiCUNfl (ORCPT + 99 others); Mon, 21 Mar 2022 09:35:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347929AbiCUNf0 (ORCPT ); Mon, 21 Mar 2022 09:35:26 -0400 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8F1B3CA49 for ; Mon, 21 Mar 2022 06:33:55 -0700 (PDT) Received: by mail-ed1-x536.google.com with SMTP id u26so2279311eda.12 for ; Mon, 21 Mar 2022 06:33:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=aM6GQeVZtCegHilLMs+aD7A4drFAdvrQdeDC75uWokk=; b=0ZmJa6mEHVzoEvukgeG4nEGyuYrvNOV6BVoc0wD/1/Ux1o12tc/3YNQvOS4/iqjC4m GIFrwlLgMqP2tMUXoOlcRU60T1e5cQM/56JodEjpAdsgh7bI95LBnCAuale6tVLavsQQ H6YxEyLf3ZAz1jRLELbLsh6snRv0r/osgE3nNZ8lsw6tg3ZsgJikmuz1LcEhSMhovPia IYRTtLWa0Vok4cjLZvKEIggAjxNmyYiJ+fgWM0hAlxwHGyRahM/6oWSx144DCShIsw7h 6HJWMJYp5CjDOrg4DrwtBlmFHafmu96DRTE0/3fCg1hJonH20hIDw+EpDetqIlCRvC6C z8DA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=aM6GQeVZtCegHilLMs+aD7A4drFAdvrQdeDC75uWokk=; b=SuEtgJtEiBNFV74v0DLZyGET1/+mqMhSDsgwxSOghzqWvQ9K1PuStXfZE1gDRgac86 oJKFgqD90BRSr3ZR9km+R4sAOVrtGgKN1BACzyYe3dXnC+EfgT5eiEy8LuyRSZb/2Jsg 4SZC5cOKDMdw2xADnUKijhan0XWAYoAfU2UYYhF1tAkC/+jG9b9WGSNnbFgq6M065HIv o4FZYkG8Bz9I9zSQoqq69IpoYA6fXVVA0iMDI5AIoDSj0NwIT+2MRBJM6C8gcKzvjVwH SXZZ+fydakq1DxKqzFnUZlcW1lw2JZFylRGQQEx2VtqTN6CCCZNiMfBj+l3hlnfBsTRv /43g== X-Gm-Message-State: AOAM5337Xjmc3ZSI5as8b7Siz5Tqi9ce9qRghKtcuWptaSR+er68/LO0 BvVlFB3fHP0O91H79arjLWvM1A== X-Received: by 2002:a05:6402:3591:b0:419:26ea:1e22 with SMTP id y17-20020a056402359100b0041926ea1e22mr10468061edc.27.1647869634278; Mon, 21 Mar 2022 06:33:54 -0700 (PDT) Received: from otso.arnhem.chello.nl (a246182.upc-a.chello.nl. [62.163.246.182]) by smtp.gmail.com with ESMTPSA id r22-20020a17090638d600b006d584aaa9c9sm6862154ejd.133.2022.03.21.06.33.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 06:33:53 -0700 (PDT) From: Luca Weiss To: linux-arm-msm@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Luca Weiss , Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 5/6] arm64: dts: qcom: sm6350: Add UFS nodes Date: Mon, 21 Mar 2022 14:33:17 +0100 Message-Id: <20220321133318.99406-6-luca.weiss@fairphone.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220321133318.99406-1-luca.weiss@fairphone.com> References: <20220321133318.99406-1-luca.weiss@fairphone.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Add the necessary nodes for UFS and its PHY. Signed-off-by: Luca Weiss --- Changes in v2: - rename node to ufs@ -> this makes this patch now (soft-)depend on https://lore.kernel.org/linux-arm-msm/20220320110616.18355-1-krzk@kernel.org/ arch/arm64/boot/dts/qcom/sm6350.dtsi | 77 ++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6350.dtsi b/arch/arm64/boot/dts/qcom/sm6350.dtsi index d7c9edff19f7..75e4b2b4d3af 100644 --- a/arch/arm64/boot/dts/qcom/sm6350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6350.dtsi @@ -541,6 +541,83 @@ uart2: serial@98c000 { }; }; + ufs_mem_hc: ufs@1d84000 { + compatible = "qcom,sm6350-ufshc", "qcom,ufshc", + "jedec,ufs-2.0"; + reg = <0 0x01d84000 0 0x3000>, + <0 0x01d90000 0 0x8000>; + reg-names = "std", "ice"; + interrupts = ; + phys = <&ufs_mem_phy_lanes>; + 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>; + + iommus = <&apps_smmu 0x80 0x0>; + + 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", + "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>, + <&rpmhcc RPMH_QLINK_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>, + <75000000 300000000>, + <0 0>, + <0 0>, + <0 0>, + <0 0>; + + status = "disabled"; + }; + + ufs_mem_phy: phy@1d87000 { + compatible = "qcom,sm6350-qmp-ufs-phy"; + reg = <0 0x01d87000 0 0x18c>; + #address-cells = <2>; + #size-cells = <2>; + ranges; + + clock-names = "ref", + "ref_aux"; + clocks = <&gcc GCC_UFS_MEM_CLKREF_CLK>, + <&gcc GCC_UFS_PHY_PHY_AUX_CLK>; + + resets = <&ufs_mem_hc 0>; + reset-names = "ufsphy"; + + status = "disabled"; + + ufs_mem_phy_lanes: phy@1d87400 { + reg = <0 0x01d87400 0 0x128>, + <0 0x01d87600 0 0x1fc>, + <0 0x01d87c00 0 0x1dc>, + <0 0x01d87800 0 0x128>, + <0 0x01d87a00 0 0x1fc>; + #phy-cells = <0>; + }; + }; + tcsr_mutex: hwlock@1f40000 { compatible = "qcom,tcsr-mutex"; reg = <0x0 0x01f40000 0x0 0x40000>; -- 2.35.1