From patchwork Fri Apr 26 13:38:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 13644817 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8A23FC4345F for ; Fri, 26 Apr 2024 13:39:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=YusQIbPCeyT5UIGlLLDsHDA/VcBUO2okq//c/CwxKAA=; b=cH16PkO+yRmbin QSRX1cNvlF9QKeUHWiEq6fcD0hCPANouajfeCC5IloE1wc8w1cu2HFZfGFutA5pDyJ/59p0GBOHXI DzYNmdRg26O4vY5xsADCsO9/ITFHDGXM3p4Liu5Pry4BcFv4t3nfA5GuEUGR5YV6JCLtVvpn1ULY4 q5jPJ/e7IBEYBb0j4owjZyETnQjNEydOk5gtmy8toOa6OE0+xXOkZZbsr+4h/7lYZHfLxhR3xfX9i lS6eNivaiDJOChpKbWIhzKNi1ZpHBazUrIhbKpUIRw4nx9tMp57/TvtdAMeD9ZxR1k2L3U6pvtssB 4H1uaT3v4+eKPumWtTww==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s0Lmq-0000000CfMW-1Lcx; Fri, 26 Apr 2024 13:38:48 +0000 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s0Lmf-0000000CfHc-3AcH for linux-arm-kernel@lists.infradead.org; Fri, 26 Apr 2024 13:38:39 +0000 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-41ba1ba5591so3016365e9.1 for ; Fri, 26 Apr 2024 06:38:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714138715; x=1714743515; darn=lists.infradead.org; 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=AX1t+YE1cBl5MQLmH5bPrWGcz0Ebchp9QnAASzx5oG4=; b=cS4sJZ2xaFb5L1iNpW40YnKg1WLBCjj2PZqe6s+ZzR6LVCxJgJa1vJ3dQpfyMXoBea SZsnY//quxdHE6KyMEF8FmMLKTxOAHRQ6kqlA68MYhqrBm958K3gAtX+5Ow4ciMd2+wx KPHa1OtZK7SkaL4FGI1HKfGJx4FpaSAg/Jq2BIQZ+LgP/KUbRxVJYwAr6n3R0WdPGUxt 0GNdURjqzK+NWqLAdGB9ciQMoqTNl0q+IBnCOYWZ3LeI48eOBUkClISw5PwLFaES/Dho J9EoV/b03d3UZuEwprSHF60GdBFuz+DB0Rb1Ofk/ikQhld3ncg3tfaHSq7LXZSkZGg4q rmDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714138715; x=1714743515; 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=AX1t+YE1cBl5MQLmH5bPrWGcz0Ebchp9QnAASzx5oG4=; b=UZEb4IMdOfwaPs5sbDFQo4pcWZtAh+WMExHb9kxv+0a2oiyim9IclrMELsP8aRII9r LHQ9lv0GPOHVJCf0lzkFX1bHRlf/ji/mk+fHdkmbO+Dxm4WjsnfZG+IcEriasxGbpw+m xRBfAADGauIt+7a9ceKZkoeRtuf9dNaN+1+pnQY30NMM5LU1vMWkKUvPQVQFkqTQAEdQ CgF/f/v9j/NztDuxdOyGaG+8jelcsLnfyzqSmd50CIT1QO0qSfl9rzCxvjxRt2sBIh/9 TF4dZg9AmLYFmc4xiqRztkI2DDpGJWkrPSGgWqARMKe2rWGovtHE8NZmD7AGTAT95Hds 2NcA== X-Forwarded-Encrypted: i=1; AJvYcCWmvwX1BSIhhJm8EESlbwAuLHhjEnRE4oVM7iCiGu4K4/jnkcmyyaBimCPhOcvAODvaCqhg81tXojR4wPakUyOmQSkFU9hjD+2bSrJN425PNrFanG4= X-Gm-Message-State: AOJu0Yy7CrCt7Kzz15xNCG1/nGgAVwhiR2AD5NLtAwzwM8eTuOEjrZqE rfgBaPHLta9+IspEzM2emLH1IJNwAVuTLOhOCljuuc8J3sq/yNKNStIRMKbmsnHU4iwiYrvDeN9 irsg= X-Google-Smtp-Source: AGHT+IFTTh4iakkkfqbFYU7oLhsNchB50w3aO7hEduSjteZTlE4Y7Y4KaHOlWbEsAZDxFgk08i6IsQ== X-Received: by 2002:adf:fcd2:0:b0:343:7fa6:4393 with SMTP id f18-20020adffcd2000000b003437fa64393mr1870301wrs.38.1714138715070; Fri, 26 Apr 2024 06:38:35 -0700 (PDT) Received: from gpeter-l.lan ([2a0d:3344:2e8:8510:63cc:9bae:f542:50e4]) by smtp.gmail.com with ESMTPSA id p3-20020a5d6383000000b00341b451a31asm22327689wru.36.2024.04.26.06.38.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 06:38:34 -0700 (PDT) From: Peter Griffin To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, alim.akhtar@samsung.com Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, tudor.ambarus@linaro.org, andre.draszik@linaro.org, saravanak@google.com, willmcvicker@google.com, kernel-team@android.com, Peter Griffin Subject: [PATCH v3 4/4] arm64: dts: exynos: gs101: enable ufs, phy on oriole & define ufs regulator Date: Fri, 26 Apr 2024 14:38:24 +0100 Message-ID: <20240426133824.2283144-5-peter.griffin@linaro.org> X-Mailer: git-send-email 2.44.0.769.g3c40516874-goog In-Reply-To: <20240426133824.2283144-1-peter.griffin@linaro.org> References: <20240426133824.2283144-1-peter.griffin@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240426_063837_820746_1B48782E X-CRM114-Status: GOOD ( 11.05 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Enable ufs & ufs phy nodes for Oriole. Also define the ufs regulator node. ufs regulator is a stub until full s2mpg11 slave pmic support is added. The gpio defined is for the BOOTLD0 (gs101) signal connected to UFS_EN(s2mpg11) gpio enabled voltage rail for UFS. Signed-off-by: Peter Griffin --- .../boot/dts/exynos/google/gs101-oriole.dts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts b/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts index 6be15e990b65..fb32f6ce2a4d 100644 --- a/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts +++ b/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts @@ -53,6 +53,15 @@ button-power { wakeup-source; }; }; + + /* TODO: Remove this once S2MPG11 slave PMIC is implemented */ + ufs_0_fixed_vcc_reg: regulator-0 { + compatible = "regulator-fixed"; + regulator-name = "ufs-vcc"; + gpio = <&gpp0 1 GPIO_ACTIVE_HIGH>; + regulator-boot-on; + enable-active-high; + }; }; &ext_24_5m { @@ -106,6 +115,15 @@ &serial_0 { status = "okay"; }; +&ufs_0 { + status = "okay"; + vcc-supply = <&ufs_0_fixed_vcc_reg>; +}; + +&ufs_0_phy { + status = "okay"; +}; + &usi_uart { samsung,clkreq-on; /* needed for UART mode */ status = "okay";