From patchwork Mon May 15 09:53:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 682569 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 39052C7EE24 for ; Mon, 15 May 2023 09:54:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240095AbjEOJyK (ORCPT ); Mon, 15 May 2023 05:54:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240396AbjEOJxu (ORCPT ); Mon, 15 May 2023 05:53:50 -0400 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1ABEC2689 for ; Mon, 15 May 2023 02:53:20 -0700 (PDT) Received: by mail-wr1-x42d.google.com with SMTP id ffacd0b85a97d-3090408e09bso1784540f8f.2 for ; Mon, 15 May 2023 02:53:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20221208.gappssmtp.com; s=20221208; t=1684144398; x=1686736398; 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=nF3XkLBwI40S/PU9ejyV181Dxd0FTXS0tCrPDFNZWw8=; b=2koQ2vUev6nnT9WLRCMxh+WRwGFkhcxicv8aXQ5frMIF690ia81CU1JgsTQBSiuQGi XYeL3yHaAMgmAz2zijsWoNog6LG3sM7zzhodD+NjfxoA+8R52uURmeb5D9plHHJwJj4D 33+nTMEPapr8zJ3bgr4P0GyE3grxnR94oz1THlRvpzZ+tpN+mE85j5flqv+QO0HmPLG0 qL5TS4oBzYYD5/GQvFcoNbyM0Zbf5BpkzaDF0gCqfh8sh2DkWteikYCAMKo0Bq712t/S rjrMq6v88TZPrT7/oNifiKiynyEE2maaKer2iL3vHptU3U2IRL1wDDJFDUbEHL+oMULc /sAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684144398; x=1686736398; 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=nF3XkLBwI40S/PU9ejyV181Dxd0FTXS0tCrPDFNZWw8=; b=Bezy7tsnTk6NOQaGuD1PDgFFs3isP3EFG5cFcfeHD9+e2RJGnGdNxMIh75vjaU3Ixk a/OdDOLtvLc7boJg3gJNX6/5U71tIiPGOY+p37krbOx9xka1sejdYXilyZ1k3IqX6dO8 5a+De20R05YC88/jtkUGF/jP24/lIrQnRYPk/m/kzLI1CSu2pv9NRXC1cz4N8cc817iO 2gCKK7lTx+BdbO/N+xD3x5c+xq5B997pQpHg1aFuO6apDabzYDvUf/lCHPm3cW0FJkNI T3AkAr0qs068hzq7aobNMw7Iloh1qZ1UUqJZQKkieAjVD5TQrNnL5UZnQlwkRWmriaHm zzhA== X-Gm-Message-State: AC+VfDyLetR+yWchs63Be3y/c8Il8xzBh7WP4CP5WeKZF7WO76l+t3Xb c1Wgs9D036MC814tAllEj18CrQ== X-Google-Smtp-Source: ACHHUZ6/EFQHWjmlZKJCfseGGjnzM5u+JTURpLnr9cYBu2urf4sHoKHI0ilYDnqqWOum8LdrphrCmw== X-Received: by 2002:a5d:6ac5:0:b0:306:3429:1833 with SMTP id u5-20020a5d6ac5000000b0030634291833mr24319445wrw.46.1684144398617; Mon, 15 May 2023 02:53:18 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:1388:9f6:c7d9:3b77]) by smtp.gmail.com with ESMTPSA id q12-20020a05600000cc00b0030795b2be15sm24228443wrx.103.2023.05.15.02.53.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 May 2023 02:53:18 -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 v4 3/3] arm64: dts: qcom: sa8775p-ride: enable UFS Date: Mon, 15 May 2023 11:53:08 +0200 Message-Id: <20230515095308.183424-4-brgl@bgdev.pl> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230515095308.183424-1-brgl@bgdev.pl> References: <20230515095308.183424-1-brgl@bgdev.pl> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Bartosz Golaszewski Enable the UFS and its PHY on sa8775p-ride. Signed-off-by: Bartosz Golaszewski Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sa8775p-ride.dts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts index f238a02a5448..2bb001a3ea55 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts +++ b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts @@ -5,6 +5,7 @@ /dts-v1/; +#include #include #include "sa8775p.dtsi" @@ -20,6 +21,7 @@ aliases { serial2 = &uart17; i2c18 = &i2c18; spi16 = &spi16; + ufshc1 = &ufs_mem_hc; }; chosen { @@ -426,6 +428,23 @@ &uart17 { status = "okay"; }; +&ufs_mem_hc { + reset-gpios = <&tlmm 149 GPIO_ACTIVE_LOW>; + vcc-supply = <&vreg_l8a>; + vcc-max-microamp = <1100000>; + vccq-supply = <&vreg_l4c>; + vccq-max-microamp = <1200000>; + + status = "okay"; +}; + +&ufs_mem_phy { + vdda-phy-supply = <&vreg_l4a>; + vdda-pll-supply = <&vreg_l1c>; + + status = "okay"; +}; + &xo_board_clk { clock-frequency = <38400000>; };