Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5478715rwl; Tue, 11 Apr 2023 06:09:38 -0700 (PDT) X-Google-Smtp-Source: AKy350ZAHcU925rMJ/x2CNj2T4sLi1F4W6MMp4xoojEPBgK9Uo+LmNFVBK+v8VYjzfU9PKzLZQfT X-Received: by 2002:aa7:dad9:0:b0:504:b71e:c35e with SMTP id x25-20020aa7dad9000000b00504b71ec35emr2742848eds.36.1681218578089; Tue, 11 Apr 2023 06:09:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681218578; cv=none; d=google.com; s=arc-20160816; b=Ed7j+5D22YCJ7KbqlwJ75La0SNHAE/Xwcz0AeLOXpCejjm5WYcLqKxOM1vibpfKa+x cyXfm1qTadJYYYrY7Ty5uRJhiDiKm5rXE4cYRnFax8yiQ5kQnPo5itTvTUkbBgM0cF+y TtdvGRHJFFGW6B0rQLDmMefJJOOz/jWHNu0nwVYi0C31xM5YnJ70oVbiByhStyAMlVPt /ccUzGk0JyUZ526nVNCwoRyuj4yRqoHaKMv3u9qswawyBuRudp3JEUqmMQfzwJ20/1OF njjrDc/RTSMwZKKVNyqyXvTuliCtl0kSgBGwBby3ej8Co5Aqp8zE1YqI57VgLxkTrs04 362Q== 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=jC6gWh/93zTyDqTCTM2LE5tDkTpbOI5ydojvv7gVZxA=; b=R1X4jWgpPLeS462+i5Ttk0bhe2rUR4g1b2AxHJrK/H2CyzRMCt5BCmLLqI6RZSlR0k AxZzZk+UFsOY7AmXT5a+DjaaOYLNyxjZnk+Tc+vdhlj+UtFzK5V9WwYGOs7y2G86gdvs iXOiCTyBTE7b8t2Na4LE+Y7rpGVoT8/9gQ2FyFAQEZDkmwuv6axbJF0ubsDrPjPX486m mLKmy1ZLjofcDv2m84JztGJR5vZVw/P8rwHyR5Rl1KYmcGQAfB7Vk7Fw9bx9smjTbE1n 7Tc2rERUYj950undFmcPCNhODtIuLSwXHhYtXZBAlALGj4rCNh+W7cIHFebI/qdCAcM+ +19g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=FFCPUtV2; 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 f3-20020a056402068300b00504b3e0d1d0si281036edy.231.2023.04.11.06.09.12; Tue, 11 Apr 2023 06:09:38 -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=FFCPUtV2; 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 S230318AbjDKNFb (ORCPT + 99 others); Tue, 11 Apr 2023 09:05:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230461AbjDKNFH (ORCPT ); Tue, 11 Apr 2023 09:05:07 -0400 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A80546A4 for ; Tue, 11 Apr 2023 06:04:56 -0700 (PDT) Received: by mail-wm1-x32c.google.com with SMTP id i8-20020a05600c354800b003ee93d2c914so5724672wmq.2 for ; Tue, 11 Apr 2023 06:04:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1681218295; 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=jC6gWh/93zTyDqTCTM2LE5tDkTpbOI5ydojvv7gVZxA=; b=FFCPUtV2Lhbi5fQvjeIDIR8Qg/uJ/rl9m+UeCwBQTVM4lkw1j9B+ZpUeZ6gDN9B0uS 5KYFuGOrfu30VupuAu3H3BT4zFFj2fo4YnCOMS94hGmzRtWbUaevbONsQYJhFZ2K4P9X L/nKMZc4qzDqDbJSKMCbVwiT74/tyLf1IDhYwNoVGTBX3FfTleMUmDJ+X3a0/Ds+fXw8 6hXszRubOP119xDL6FbpP8/1iwy5ixar/TfWolzTcqPXDIGuUrUteyXffTqCwC/E32e0 flTv2fTqn2e4oht+v5shjskCYLvSETVjg+KpbnXDFJtk3DRy0oV4jCvdM/AIo9b0kCt8 xDiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681218295; 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=jC6gWh/93zTyDqTCTM2LE5tDkTpbOI5ydojvv7gVZxA=; b=qiwJYfuB5pPFPdT+VwIzLbznt4AQNZnIwxAKkia1kBkUUNXN3R/PEjxmbyMcdLNml3 3dO/e+xt09ak5ZVgjFVWU3U7zNpOntPtZYL3dlOfDhL/ov6jiF78byup9zHVfDCtoY5t q3Hys9tK9OuUSYsprER6who8bB26HcG8uuBlzBjtQFpr70ccf16W+NqQcaQL0LtRsRY0 N4mSIXTVRRvTEthsGTAM0O8jaP7nb++AQfJR83qsIAzkEw1p9iyK7JOfHyE1+WMrC7oh FhfiwH3l/btNji5GRAIXbxnF4laPKrbKABgHCBelleIOBnMBTFltTvuh9St/gc2Bv5MJ bmCg== X-Gm-Message-State: AAQBX9eE7NlR93odUXa5TShzI7IA7Bnryzf0ln3bouQ5JNJKEmvVntaS TgM08Vy4KDmZh4Aev1zUH250MQ== X-Received: by 2002:a7b:c419:0:b0:3eb:2e32:72c3 with SMTP id k25-20020a7bc419000000b003eb2e3272c3mr10768600wmi.22.1681218294957; Tue, 11 Apr 2023 06:04:54 -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.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Apr 2023 06:04:54 -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 5/5] arm64: dts: qcom: sa8775p-ride: enable UFS Date: Tue, 11 Apr 2023 15:04:46 +0200 Message-Id: <20230411130446.401440-6-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 Enable the UFS and its PHY on sa8775p-ride. Signed-off-by: Bartosz Golaszewski --- 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>; }; -- 2.37.2