From patchwork Wed Jul 19 19:28:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 705400 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 35A14C001DF for ; Wed, 19 Jul 2023 19:28:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230100AbjGST2T (ORCPT ); Wed, 19 Jul 2023 15:28:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229655AbjGST2R (ORCPT ); Wed, 19 Jul 2023 15:28:17 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 933511FD2 for ; Wed, 19 Jul 2023 12:28:16 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-992e22c09edso8635366b.2 for ; Wed, 19 Jul 2023 12:28:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689794895; x=1692386895; 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=oXORDHgGhZ0UNUEfOGNvNVT4D4Hu/uTaxuOqQHkAbdc=; b=mtBQ06YHDjGD1HTOpO6/bWft1bPcY5CjVFMBEn0GXmOxdMlSMgt0pCHQEBkqKwBIa9 giDYD8tEbuR21B8jMesh+mEOXXKEsXy+o9tWMsXPDnSCqlbcma5+EeKJqw7FWFzmLOjL 2xykcP1olnehWFO7aJ93vJk3s4KwoZGz/EvpogRxMxVPBQq1weXLr+G/aJXAxczIBKC0 gFUIxTmzkkSvwoV+RzYkM+yA9UODtgT/k2gC5Z80mklzds7rRdC/lgo34g9bFmsIt1Km VAkQ199XT20mfDJjwvuOGME+gqSl6M/5vVoUnGajs5r8WhT7fr1Gqt/lxK/qEZkKboqY DKWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689794895; x=1692386895; 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=oXORDHgGhZ0UNUEfOGNvNVT4D4Hu/uTaxuOqQHkAbdc=; b=bNnu3zkvhgmYBn9FA+l3BxbeUtlt+6pHrJzZzUk2sv9oMmsq3/YCX59rk3nWPu4e2g iihsq9d9n6bUTLJms84qaajqi6p7qNJspmrqVdqaY4GIxC7QwLsmpbsUm/O2LAMciFI8 KWgR09drmB8wgaRQEUbqnZjqsV1J8wjSkpM/yiI62hLRRF+WotLLOVYiTLATNRgKrl9N SfjD/iVQGLy+hLy2Nc2y/13jQVvod4CxAQwVlwdblyU0EJ7uni/l7Warzh0JreMD/4hx llU92IPX5JTy0viy4hfEfLHAgvaUNjQ8N7fDS/CI+G/T0KzVk8Ac46riMfjCLokEJFkp JLlA== X-Gm-Message-State: ABy/qLaLTbnNaMPyVMnNAiPMK4I6sp2FFFkoBtbjaOwdb1jED4MAuAuP FOIfwgG9FX3Thc4G0GQdwImlLw== X-Google-Smtp-Source: APBJJlEgGgmpGVrHEX9XLHujnSQpbhecvErcWD7txG7y/st29hNQEf7W5HzDhgqBZGQC7X+XqemC0w== X-Received: by 2002:a17:906:f9c2:b0:989:34a0:45b0 with SMTP id lj2-20020a170906f9c200b0098934a045b0mr2878863ejb.49.1689794894977; Wed, 19 Jul 2023 12:28:14 -0700 (PDT) Received: from krzk-bin.. ([178.197.223.104]) by smtp.gmail.com with ESMTPSA id n26-20020a170906119a00b00991e2b5a27dsm2720966eja.37.2023.07.19.12.28.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jul 2023 12:28:14 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v2 2/3] arm64: dts: qcom: sm8350-hdk: add uSD card Date: Wed, 19 Jul 2023 21:28:08 +0200 Message-Id: <20230719192809.434709-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230719192809.434709-1-krzysztof.kozlowski@linaro.org> References: <20230719192809.434709-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add uSD card to HDK8350. Reviewed-by: Konrad Dybcio Signed-off-by: Krzysztof Kozlowski --- Changes in v2: 1. Add Rb --- arch/arm64/boot/dts/qcom/sm8350-hdk.dts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8350-hdk.dts b/arch/arm64/boot/dts/qcom/sm8350-hdk.dts index 94e923962700..79d832058cfe 100644 --- a/arch/arm64/boot/dts/qcom/sm8350-hdk.dts +++ b/arch/arm64/boot/dts/qcom/sm8350-hdk.dts @@ -468,6 +468,18 @@ &qupv3_id_2 { status = "okay"; }; +&sdhc_2 { + cd-gpios = <&tlmm 92 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc2_default_state &sdc2_card_det_n>; + pinctrl-1 = <&sdc2_sleep_state &sdc2_card_det_n>; + vmmc-supply = <&vreg_l9c_2p96>; + vqmmc-supply = <&vreg_l6c_1p8>; + no-sdio; + no-mmc; + status = "okay"; +}; + &slpi { status = "okay"; firmware-name = "qcom/sm8350/slpi.mbn"; @@ -726,6 +738,13 @@ wake-pins { bias-pull-up; }; }; + + sdc2_card_det_n: sd-card-det-n-state { + pins = "gpio92"; + function = "gpio"; + drive-strength = <2>; + bias-pull-up; + }; }; &uart2 {