From patchwork Tue Oct 22 10:46:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 13845517 Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (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 3A58619C54C for ; Tue, 22 Oct 2024 10:46:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729593989; cv=none; b=DnV5cYAWav4uwSG8Re39m1n3wQSunkt/WgkYhwdmZhIpMA26V7pfydrfn0NW+zxlOfHc2nPchCo5E3DeZp6IpogRdbdO85tiSI16mE47/MNjBt1Rthn4W/7u+FANI+hb2x1EF3nQN0tEMbzjxqJmUgticigSy0uaTB5pCoZb2w8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729593989; c=relaxed/simple; bh=HnTSSieNZnln6w8Vcr1MEzPJufKQo6Dj8CE0MlH5veg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=C9wrzC/0lgWj8eSsF6LFFhknQ62ZqX/6QxyVwFrUXh1EDAn+v763OJmUHImMHA5+e6jlzFoxZmfzymKFPYPlSuwbwei3wn+tLG+zXD6YwXMeC2c8UJm1RCaTSr6P9XGvpbLhTn4s5mHfqkX8x5R+kvTOMnj/rkh3k1MGNKbIvfI= 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=O9uiQniK; arc=none smtp.client-ip=209.85.128.54 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="O9uiQniK" Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-43161c0068bso40506435e9.1 for ; Tue, 22 Oct 2024 03:46:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1729593986; x=1730198786; 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=zW3qGb3ZL5G/B18IQmAOlU1aRnTk8u0KXdkSlfqu380=; b=O9uiQniKRrf/qkNkbF5hQJvIih9cywmdrqV0iiRLDqOJHLUZ+Ix5WA8Rww8FqWFrFO RCm8jctiRH0NG6irlsjJEdiDW6I8iuqJXG26d9dqb+jNMKiMdNXOmI9Gdk723/P34QBL 2VtVcvYbNJ1x3RZxGmO4VEBr+2qt8eAqdz8r9eNicl3vGmND5hltelcRuFqZJzEyJZIq lxUpC8ehkUPQsCxOoT5wGUkmxYsBsC1XDGSNmocYZDODs+7bbpGXwb2tuYbUMkbvKlR1 ftHY+lI4vTqKfvHVLRgfeadtxYUhrylVM1HjxS3Xv1l3XTCUYtQvhYiVBUluza199n2I OR3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729593986; x=1730198786; 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=zW3qGb3ZL5G/B18IQmAOlU1aRnTk8u0KXdkSlfqu380=; b=rdZVUGecC3CZxSHVbJ1ECKmNb8+PwlNXDO3hvfQ9zup031BrlemCebyBEcv8ufWdAD ZeDyPtsE95j6IDiZJZX3C+2qMtUO4TVAvnjr6ry0+LnWDLKtDOutERpnwWsI+N/PQ8Hu LbljXy8/hfyOrbXo3GM7PfpUlRTfkX+luAIST75kr8VlQ+HmCzGY0psCdp6ZKHx1riKt Pf3qb3gez6FZq/BitTK63ojAHEGgSVvl+tu4dKIyM4uX/D/nVgRkHNMR+uV1jNPZqGxr twaeR8nbALmXyp9+s6ZrlXZdN3a+gjCKX4cdFayzkEv1fvVe2Q7+S6R/55cehrpFUZDF GKrg== X-Forwarded-Encrypted: i=1; AJvYcCUQfRXNg4cR4/Xl8LjFw4QInAnDAwP0OA1uelO9Zvlak97ip/ijjxCSjaRTHKylLvX+LyCLG6cbnpQ=@vger.kernel.org X-Gm-Message-State: AOJu0YyxNNhMb3G9lXdJFvJ72GxmvojGPZjvkI/SS0CJ5w3HWcZT5gEy TQVScdK/5cVdEI0POJeG3ePqaUiQCdH3NTmg27fZoSA1fQxMAAKuj2eDNclZr4M= X-Google-Smtp-Source: AGHT+IHWyz5wiWkL1gLHnapTjbhzPMcFdILnDlv1ASWwLLUS2W9b26cj/y0Xv+s9Xpgn84JXtBikKQ== X-Received: by 2002:adf:fb45:0:b0:37d:4ebe:1646 with SMTP id ffacd0b85a97d-37eab728744mr9793149f8f.48.1729593986521; Tue, 22 Oct 2024 03:46:26 -0700 (PDT) Received: from [127.0.1.1] ([82.76.168.176]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37ee0a37e1asm6351943f8f.20.2024.10.22.03.46.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Oct 2024 03:46:26 -0700 (PDT) From: Abel Vesa Date: Tue, 22 Oct 2024 13:46:10 +0300 Subject: [PATCH v3 3/3] 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: <20241022-x1e80100-qcp-sdhc-v3-3-46c401e32cbf@linaro.org> References: <20241022-x1e80100-qcp-sdhc-v3-0-46c401e32cbf@linaro.org> In-Reply-To: <20241022-x1e80100-qcp-sdhc-v3-0-46c401e32cbf@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 X-Mailer: b4 0.15-dev-dedf8 X-Developer-Signature: v=1; a=openpgp-sha256; l=1388; i=abel.vesa@linaro.org; h=from:subject:message-id; bh=HnTSSieNZnln6w8Vcr1MEzPJufKQo6Dj8CE0MlH5veg=; b=owEBbQKS/ZANAwAKARtfRMkAlRVWAcsmYgBnF4J8X5kOFGgSwfgft9bWqpCsIXyCcZsi6r37H SlJO9TKFdeJAjMEAAEKAB0WIQRO8+4RTnqPKsqn0bgbX0TJAJUVVgUCZxeCfAAKCRAbX0TJAJUV Vt5+D/9jaiprJ3yJnoVGdRv2WEQiVxq1yOKMPMLfFMqJCmePNrorpIcfP36j8Z4TAKYkEEzjpji fSOXWFXSP3D2/6jx7o0QEA52I2hVATds4vgIsP1vtbiQi1AWS66AYusmLfdBVqPgGVhvU98DATo +ebifQ3Jnrin9h4boqjgMPpXLDmfon1kq7lYwGH0RxAkpnuuMfWnXJ5dfzJVRp+WssZQ7CUWEqF vfnqcc/eCVOukavPcQTkMZs7EwcIQrYJuIwlTkJWqhMT0tAFVxGYlu/4vIyQN+G3/YK977BPh7V Z3ZNwUAUlWmAV4T1fM9zxE213Q4GEffE57Q4BA8nbEiR3wqTBkYhtySYuV0Utt/C5WeeQ/gi6Yv WwmIxGS+/wakOcCKK2s88dZ52HBBWjEPGu/IRy9DwASp7RgheMhOAEKPRS4Jun8sI9IuHJ6ktP1 H6cDqNlTUbtotZzsHh2n9Sn4BzP715zijwP7p58KTAZ7w+lEfhEv5RRgUp3x8JBaQT2R6r9Gh03 /lqBX0l5L6r6tx1vD3ocYd7GjW9XNfVLSRjQtvW19PJqNV5c0Bttw/5wt/lOwj+qwcO6y8OZYpr zI4na/roGV9/WpjxnxCn4QcvoKPIJ+T3vj9Unsj08e9p9m9oH06UMDUl15WAtlj48r/fvI/4yxy mo6xw2QPHaje77A== 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. Signed-off-by: Abel Vesa Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/x1e80100-qcp.dts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts b/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts index 1c3a6a7b3ed628e9e05002cf4b4505d9f4fb1a63..a82fabaaac9010ce3b8d6718b3425e84d8864171 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts +++ b/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts @@ -729,6 +729,19 @@ &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_eusb2_repeater { vdd18-supply = <&vreg_l3d_1p8>; vdd3-supply = <&vreg_l2b_3p0>; @@ -870,6 +883,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";