From patchwork Thu Dec 26 11:47:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 13921279 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 21F5C1D5154 for ; Thu, 26 Dec 2024 11:47:54 +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=1735213677; cv=none; b=ZFFGpGZUZj/qge61zucM13KOpe+ISjwvOIs2svx4DnQpm0pNWBbfO+SS0bEsbKrqD9lGVg79VOZwsHyZu9Om3cTV893I+F6/UGi+9PDhmY78XYHg+Ka8Kpa31yiDYDS1XRVoLd4xz3Nb24WdSnD4tRHSuvzyyU58nZ+eRqa2O8w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735213677; c=relaxed/simple; bh=CAjROTLPEGKqOUJiValyvQKFVtW8tA+pYfuVoJsLlBk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Pm/xLpIGX5dAvVzY+e6UVzSGUrVUOFLB+v0styr/70lD2a6l9yIA8FFD5oguefVjdyd3ofYcne173QqWz/hO9yr/v6Hhn4o0hBvq6LroigDa/antGb7x026oZbmDz+QelBQA1tqZUvZAzAGZtUUzouCb+3oU1cwXDaIrUYy9tR8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=SL0UfZu8; arc=none smtp.client-ip=209.85.128.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="SL0UfZu8" Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-43621d27adeso43666735e9.2 for ; Thu, 26 Dec 2024 03:47:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1735213673; x=1735818473; 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=vhIajUh08/SyVTloy171bjJilnBfmUdkV27TB/pSkWk=; b=SL0UfZu8/jmdaepmHp4M91cJp4ADhGVFQpFfgLXykqTGmzgAxZy00WmD6YxiLuEfkm iRLz7fc5vHNq40Nx1X7IgFhLTvK+fgXCwWfprpU5KdmubjDdZePjjjKSO75fEBLK7Z/U TBS4I/SByCvpKqhCTYTHRwoenZ5X4UZaYSeUiNoEls8jhiQ8Au86ZxBn0jRx73PVE7wA DtDNWyqI+w5wOLKHf1vCLPfX4xRPVmoaYbFpJ6MIiKhVyGmK12r5LiGslip/zEJ/4r06 SAlO6yXWSLmjaDgBB3vVH7iqShBTq95w0EqqfThjXOVX7wvwX8ea8Lh76jVTSo0ODdzI YzEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735213673; x=1735818473; 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=vhIajUh08/SyVTloy171bjJilnBfmUdkV27TB/pSkWk=; b=YT9kaQWJdtbEPYsEaJ2I1LLNEm0Xf7TlwExO/7qMxI1T4WpaaGuhLMY4uJHrs8zYT+ VO6cpmOlnY9pe3KYMbFHmP+twNRmGI7OguMJmB7yqQIrCKVfnDxfmyvJ0GNU1hMZ0RNb lVhqZPYNnmjlumGLl5jYvtFpBShDxbN57tY4UbnaLdlSe3gPTovwONh8ye3rsIfxTYvy xrGhg5jl+lD/5xumVKJ6VeSE/kTO1ZF4a9cfhSap+MRivf9pvLwbVX3EiyyZd+0MZrag Oyp49RvMVxTCvD958l2xr81GpROKezqlfwvLYN1WrQDeLZzL6gwwPtyAfEVUXfzdiJk6 ntBw== X-Forwarded-Encrypted: i=1; AJvYcCWl2O8a0FE/ZynrGGiek3qJgJ3Nczt2S9sxKQxWroHW9RALcDZaNz90q5PLtn6eDE5t2gfNHtS8FCc=@vger.kernel.org X-Gm-Message-State: AOJu0YxpaX2uXT+ZrBiutmyMxsY0jve0qGW0+tt4oLyJw87kW8JngnPd 7+t+ZgbDUyEwu2WaJ2vzfnQ/52enzrsZVh0mRx9K93RuI48/uSs9OJf4GraxQqw= X-Gm-Gg: ASbGncuWJa4/58BPgaK07ERIN9R9gvtUV0e8BBA135kKDDMKn9dInEtTX2WmRYGcB7v IbPsAQPU/1elPd1VEy++ycOM95DgfYy6ZcS6nGgT7PFZFYaEwU9ZEHUPEfNEbjxli3uJ3j8OIDs DWKpIWdKXfWiGXCS8umXLtcS0c6/7woqCAx1GXZZX0S4H4ART6pWf8kyfh1Xvs9ePoQ6dhlBNh4 /RGozkH0dFoMlrouvZfIDQrLHkVrLg8IUuDFEQ9sstoGYg85qFArrhw X-Google-Smtp-Source: AGHT+IHuSiJa5HnlBCTbFlR0CZcuRapAkC+pk7vhPwwaOUjIIyAqKfTMwsgcM4pRjXV067dUB+tfrg== X-Received: by 2002:a05:600c:150c:b0:431:5aea:95f with SMTP id 5b1f17b1804b1-4366a0cf7e7mr197459225e9.16.1735213673521; Thu, 26 Dec 2024 03:47:53 -0800 (PST) Received: from [127.0.1.1] ([82.76.168.176]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4364a379d69sm256925895e9.0.2024.12.26.03.47.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Dec 2024 03:47:52 -0800 (PST) From: Abel Vesa Date: Thu, 26 Dec 2024 13:47:39 +0200 Subject: [PATCH v5 2/2] arm64: dts: qcom: x1e80100-qcp: Enable SD card support Precedence: bulk X-Mailing-List: linux-mmc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241226-x1e80100-qcp-sdhc-v5-2-0b28f2e13c85@linaro.org> References: <20241226-x1e80100-qcp-sdhc-v5-0-0b28f2e13c85@linaro.org> In-Reply-To: <20241226-x1e80100-qcp-sdhc-v5-0-0b28f2e13c85@linaro.org> To: Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio Cc: Johan Hovold , Dmitry Baryshkov , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Abel Vesa , Konrad Dybcio X-Mailer: b4 0.15-dev-dedf8 X-Developer-Signature: v=1; a=openpgp-sha256; l=1396; i=abel.vesa@linaro.org; h=from:subject:message-id; bh=CAjROTLPEGKqOUJiValyvQKFVtW8tA+pYfuVoJsLlBk=; b=owEBbQKS/ZANAwAKARtfRMkAlRVWAcsmYgBnbUJkVxg42rCutykaFR6u7UTNJObtHyCj7LpYg GUnQ6LzZBmJAjMEAAEKAB0WIQRO8+4RTnqPKsqn0bgbX0TJAJUVVgUCZ21CZAAKCRAbX0TJAJUV VjLCD/94dNi+h1GZSo9Yt6dg8LrLEm9/5WbOjifQ/Tpxczr2sR0WE4WliPUCEqtrT0Ck0QSnN8U y9m6DyvC1GCgR+BCh1mtBdwcz7v+hvEP0HvtXVK7Y18VtZBS3B1w04sp1ma5FY2yhw3N9T922lo 1f9eT+E8zHGYzHuEusvZi/JsfUgUt8qlFGD3wDm9Lm7q+uLV49/vwrXUxk9MQqkZXzc9aEdwced IbpLGQ67iFLKrvnb1FBjnequYxA37fyUJXr20kY24G/h3xCD12TqFxil7opla1eq1nUXsxGLzBA u8QOs5g0o+tmw4BhlO+3T5/FM6CfY/T1ZqmaNR3fz9JLoPTl8haX7s5rNLP1362glzcf8Ckwgek 86oVEbUqaxWZqmSA2UR3bkCBmbqk41BgCtsp3OPD8CXKuK2BGWK/uy5mhiX1vbPpyKebsXdrSTM RtGlpBsuD8y52VHbbegzZ1NfcxzUiRhUHzRx2jMsJ9oTMU91klalM8ZXSyUXLj5rQQBqyjY1gn/ 3G5fD4FIjwUGEwJp/6gX5bLYTkLQPuY6nmc8y6+7RDo9tD+5DdByJEKVHZlmD80y8/WTorC+J+f o9C3DbHhj5gPXWRMd/0bt8U1jPT4ld4y1V095Vvph52FFwQo5k+mNHupZYltY5kRAqg1Uq0zvUX pFu4Tbg325l/xCA== X-Developer-Key: i=abel.vesa@linaro.org; a=openpgp; fpr=6AFF162D57F4223A8770EF5AF7BF214136F41FAE One of the SD card slots found on the X Elite QCP board is controlled by the SDC2. Enable it and describe the board specific resources. Reviewed-by: Konrad Dybcio Signed-off-by: Abel Vesa --- arch/arm64/boot/dts/qcom/x1e80100-qcp.dts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts b/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts index ffd28fd8059895ec345f4ee8fe6a2c37e7989747..92dc409f6d5963790f48a76cc421e7ef4c6d6ea3 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts +++ b/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts @@ -731,6 +731,20 @@ &remoteproc_cdsp { status = "okay"; }; +&sdhc_2 { + cd-gpios = <&tlmm 71 GPIO_ACTIVE_LOW>; + pinctrl-0 = <&sdc2_default &sdc2_card_det_n>; + pinctrl-1 = <&sdc2_sleep &sdc2_card_det_n>; + pinctrl-names = "default", "sleep"; + vmmc-supply = <&vreg_l9b_2p9>; + vqmmc-supply = <&vreg_l6b_1p8>; + bus-width = <4>; + no-sdio; + no-mmc; + + status = "okay"; +}; + &smb2360_0 { status = "okay"; }; @@ -880,6 +894,13 @@ wake-n-pins { }; }; + sdc2_card_det_n: sdc2-card-det-state { + pins = "gpio71"; + function = "gpio"; + drive-strength = <2>; + bias-pull-up; + }; + wcd_default: wcd-reset-n-active-state { pins = "gpio191"; function = "gpio";