Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp2138439rdb; Sun, 21 Jan 2024 09:01:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IHbeD7nN5MkVQZvzSH81jbggPXTfxxRnc3ue2lIxSNKm5VHWDAWvd0rjKmYxDDaz5V+Po9h X-Received: by 2002:a05:600c:384d:b0:40e:8f38:3cf9 with SMTP id s13-20020a05600c384d00b0040e8f383cf9mr1708375wmr.121.1705856516824; Sun, 21 Jan 2024 09:01:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705856516; cv=pass; d=google.com; s=arc-20160816; b=LDi13luAci/cOqtRmD9yeVko3B2EuMr/pUEK6ldVrNPIpGzpcSaPjHhkTmWgzqg2WT 3tfeZGaH90kNWc0njQjRNA4J7dgQf2facOihq2ObpFNYZsqp7ZoDjomI+iGZnapeAHB7 haarX/+FApfgGiDQzrEv8KlgZAdqbESl6lsFpu/Wu9RD8DsAf7vZfXADCqgV7LFMeawC Z03MQfa08LY5wOnG25LbCHZL4PhWfc22FeN4sI1u3n94jnFVPfdE3Uz+vOgXMry7Ak4N hxBpZEV5aPJ2hLGGzb6c8ZOvAjqzCOyiAH2Oj2yXMSl9bp62uRvsqLlokdK3bo3vEapK 9Zhg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=FWXdYhdeM492EXe3mdG5BAPOk6bpMY/Q05UvJ8a8hgU=; fh=W+l8IZU29AUtQnDCJufgmNc7Ie/VVy9XM8wZ1iexd40=; b=Fp6jUmD3kcT5Uf/wLq7zguCdTO4z2xS+ZzonsxgyiBQvMXZjL1DjL8hqJxUKGLp0u0 6iARMOAtr829iJ7xigkCq6RON0IyjmGdT3XJerRT1PPS9s4udqOUav6YgJnaRfoSrbSr KRUyANd2AAK2cgi55yF+rZf1+Z64z9va/EXkBV/PWaDndks7hssv9CzFvQXwDBTRIOnJ cQ72N/lRRE3PcVSsVZmnZ2gtyw9UCCO5LtOEW2V8Vkd0cyhxuDjOt+IokhTKX5KC8GLX je2W0iPB2cSt07H9kZg83+xa/NS6uAuJ8ZronA3ZsIkWKrU/OihnS31ld/HWwOYntyKm OtQQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=dEjBdGnW; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-crypto+bounces-1517-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-crypto+bounces-1517-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id m12-20020a170906258c00b00a28ba5dd13asi9365439ejb.1055.2024.01.21.09.01.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Jan 2024 09:01:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto+bounces-1517-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=dEjBdGnW; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-crypto+bounces-1517-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-crypto+bounces-1517-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 556D81F210C3 for ; Sun, 21 Jan 2024 17:01:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8F93239AE3; Sun, 21 Jan 2024 16:59:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="dEjBdGnW" X-Original-To: linux-crypto@vger.kernel.org Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B597738FAD; Sun, 21 Jan 2024 16:59:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705856366; cv=none; b=QXvtVmpLbb6uGfJyIodyXXHWx9iN6a+Ew+uWemGPpSxpHipz25kE29QSxpzh2cY+05w2TYkDXdFc+Pe5Xvviz/rT4sn5L1hTsmVQxgSaQleEO2V+5Ae4MNfyg7isiHOD5ZNfrNGubQ6oHwJWX5gZ5uNJA1IpG67GTJJEfuvUcHQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705856366; c=relaxed/simple; bh=xv5DuB+dFYXgw1+FADV5/OpZCBDgeiH0Y6c1qxss8As=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=twMzgdTdbKvJXKfQQvSuSUR5xzrpgAiEkLY3WxESY81lLNnfiSIXJ1+XPTfLTlt3eYd41wZ1HrdEQuH6lwRmU3/jtlllvHlZc1ZIAXW2DBRZl3KtkJbI8cD9cbE3aYu3WU8yeUGP2rLFECw5c/+EV6iORWPy4vZCJC0zEQHXKlM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=dEjBdGnW; arc=none smtp.client-ip=209.85.128.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-40e913e3f03so31168145e9.3; Sun, 21 Jan 2024 08:59:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705856363; x=1706461163; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=FWXdYhdeM492EXe3mdG5BAPOk6bpMY/Q05UvJ8a8hgU=; b=dEjBdGnWlXt6CQ/1vGLCIg3zHkk4Zw0nmIut05DUSC7G0EQo5+GMPV4MgABpDO5VTM tj4tRfFVpYk1ewyvpsG+Ey/lWEEcpNZl0Y0+2xvypBZXkSfoVt2kLP9x5DeY2BjjU0TI h4JnYiCGn3xW7TNKTQ5IYLUf6EvBVkImqnmBMZSL9vk009wDkKe5p6+Lvvh3NXuzNiSQ 4j3HiMErxMePlF9nlp34xmCpJDjlr7datPzkDK51tZsa6WfxboaBadbInMRd4n9r30bZ PJnkMZQNite8Fhi7tAipAVgzVNUPESuTDgudUvFEIC4aTdnhDrFk7co1wCnW5TjD7imj N6Zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705856363; x=1706461163; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FWXdYhdeM492EXe3mdG5BAPOk6bpMY/Q05UvJ8a8hgU=; b=lZ2QwZlt91/Npy2KpN8a1KeTn2/Xyh+SJshIIdsMZwWYUvcsep3DSBNc5LJLpEKHsC eMaKFtjqP1RpkqMVhi7de10Vc95Ip/odyY2JtkP1dobFfqG8jA5XgULPl25/b0nwHOCh 361mwQSXQZjeV2yzFk21LMjW7VzE6ozluh3lT7HEx16Zx6+O+vlhseao6Gas+wUtdacy vNd6P7hHJQT1mDhqN3UKK1sgl3Sb2O3sYogFSpYOznPv+xWhcdEcldN24dNUVItmfmTp afBswgv5O6Q6d07MSWnStwbEoEB8ZiIvk3EG81izMqVmg/Bjn3x90pHN9WhJww9JBpGm qsRQ== X-Gm-Message-State: AOJu0Yyp7W0AvxoC3aiyuwCL8ANKRmZxHGeD2jJPcEvQ4i2SBzHmAT1O 7jaf8oM/4oHkLXs69Z8geXLKCvH0JUsNraIQChbsfoxDOsaQs/jb X-Received: by 2002:a1c:7502:0:b0:40e:640c:3b67 with SMTP id o2-20020a1c7502000000b0040e640c3b67mr1741516wmc.138.1705856362906; Sun, 21 Jan 2024 08:59:22 -0800 (PST) Received: from david-ryuzu.localdomain ([178.26.111.181]) by smtp.googlemail.com with ESMTPSA id q5-20020adff505000000b00339214d70b5sm6541115wro.85.2024.01.21.08.59.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Jan 2024 08:59:22 -0800 (PST) From: David Wronek Date: Sun, 21 Jan 2024 17:57:47 +0100 Subject: [PATCH v4 7/8] arm64: dts: qcom: sm7125-xiaomi-common: Add UFS nodes Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240121-sm7125-upstream-v4-7-f7d1212c8ebb@gmail.com> References: <20240121-sm7125-upstream-v4-0-f7d1212c8ebb@gmail.com> In-Reply-To: <20240121-sm7125-upstream-v4-0-f7d1212c8ebb@gmail.com> To: Bjorn Andersson , Konrad Dybcio , Herbert Xu , "David S. Miller" , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Manivannan Sadhasivam , Alim Akhtar , Avri Altman , Bart Van Assche , Andy Gross , Vinod Koul , Kishon Vijay Abraham I , cros-qcom-dts-watchers@chromium.org Cc: linux-arm-msm@vger.kernel.org, linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, linux-phy@lists.infradead.org, ~postmarketos/upstreaming@lists.sr.ht, David Wronek X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1705856354; l=2422; i=davidwronek@gmail.com; s=20240121; h=from:subject:message-id; bh=xv5DuB+dFYXgw1+FADV5/OpZCBDgeiH0Y6c1qxss8As=; b=8R85c/gQGHlKCMx88LuJo6ZhaKx+azi6UuwSBfVZlz1HDcR8Na+GCx16PdZigtCCgmXDrL7Bu b0COK7AHLphB+mtTm3TrrzJXUdEab6W/DbNmz3BO4KjsfPq4+YvyIpl X-Developer-Key: i=davidwronek@gmail.com; a=ed25519; pk=PJIYyFK3VrK6x+9W6ih8IGSJ5dxRXHiYay+gG1qQzqs= Enable the UFS found on the SM7125 Xiaomi smartphones. Reviewed-by: Konrad Dybcio Signed-off-by: David Wronek --- arch/arm64/boot/dts/qcom/sm7125-xiaomi-common.dtsi | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm7125-xiaomi-common.dtsi b/arch/arm64/boot/dts/qcom/sm7125-xiaomi-common.dtsi index e55cd83c19b8..0dfd1e3730e9 100644 --- a/arch/arm64/boot/dts/qcom/sm7125-xiaomi-common.dtsi +++ b/arch/arm64/boot/dts/qcom/sm7125-xiaomi-common.dtsi @@ -152,6 +152,9 @@ vreg_l4a_0p88: ldo4 { regulator-min-microvolt = <824000>; regulator-max-microvolt = <928000>; regulator-initial-mode = ; + regulator-allow-set-load; + regulator-allowed-modes = ; }; vreg_l5a_2p7: ldo5 { @@ -188,6 +191,9 @@ vreg_l12a_1p8: ldo12 { regulator-min-microvolt = <1696000>; regulator-max-microvolt = <1952000>; regulator-initial-mode = ; + regulator-allow-set-load; + regulator-allowed-modes = ; }; vreg_l13a_1p8: ldo13 { @@ -230,6 +236,9 @@ vreg_l19a_3p0: ldo19 { regulator-min-microvolt = <2696000>; regulator-max-microvolt = <3304000>; regulator-initial-mode = ; + regulator-allow-set-load; + regulator-allowed-modes = ; }; }; @@ -258,6 +267,9 @@ vreg_l3c_1p23: ldo3 { regulator-min-microvolt = <1144000>; regulator-max-microvolt = <1304000>; regulator-initial-mode = ; + regulator-allow-set-load; + regulator-allowed-modes = ; }; vreg_l4c_1p8: ldo4 { @@ -398,6 +410,22 @@ sd-cd-pins { }; }; +&ufs_mem_hc { + vcc-supply = <&vreg_l19a_3p0>; + vcc-max-microamp = <600000>; + vccq2-supply = <&vreg_l12a_1p8>; + vccq2-max-microamp = <600000>; + status = "okay"; +}; + +&ufs_mem_phy { + vdda-phy-supply = <&vreg_l4a_0p88>; + vdda-pll-supply = <&vreg_l3c_1p23>; + vdda-phy-max-microamp = <62900>; + vdda-pll-max-microamp = <18300>; + status = "okay"; +}; + &usb_1 { qcom,select-utmi-as-pipe-clk; status = "okay"; -- 2.43.0