Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp1023524pxb; Fri, 15 Apr 2022 18:42:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjKUfG1IGZBsO/hQeh5l1LVwhO5bk0MRZehXKjtu21F/PZLw6YMcU6ftY/ztUpjngri1Bp X-Received: by 2002:a17:90b:1b47:b0:1d0:fdb2:6fb with SMTP id nv7-20020a17090b1b4700b001d0fdb206fbmr1670069pjb.186.1650073326605; Fri, 15 Apr 2022 18:42:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650073326; cv=none; d=google.com; s=arc-20160816; b=OTrlChseAlPegfLuKPQ7HSnTtWHmBSTK8uj4UpX6XBVe68uAXUrCxxZo9NMKvxEMpu A6twGyC6rDzBXf+5ytM8SvJVoPNc8YTvcS89bhoUbbsrG24iIWqXQUfXLGMS0IU7g37A /J2yLArqbkArOboi1hbL8jMOTsmJ6DWDF52jJfr/jODyup1xLJaix4ouNrMqL3QDs6CA jMiNdj6RT+nZS3WFL9tZK4pyNODFDm1176pWWUgkE8nW4QaDTiOFP4xaqKTD3Ud6UkYk rllLzBaM9ConYpRe3SxaJ/1diVjGzYiMjw/rxEcW760xqdBmUd6Q5vzApsjM9qtsl70v qzAw== 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=p5umN/eT2yUlngm37Zc5I2AOTVEAYdcyPGsqi0WLgoI=; b=UwWREPPZR0xaBjWZUD7Yhdk2pyfC2bHAaVOWVbIMgmJzkUx4enccIv+0Qn92VLI5YK kAaAhPDOy7x7DNILHTpDmdiawVCJwyfRQ3l4JOvA4aBhlqUeDFc0HMW/sIYLiCHgzMvV 4j1HHZ91S2FJraTwQnwC5qQWCdPqZE2yrdcJ9VDYaVHzkRsEJmx3CLrc86W7YCRHwESl AIXfubsDiFWSNRBjW4W0EerAGYyuAz95yBcQsix4mskBTA4BusSy+0hxTAj9m0kqxKmP VtNK+59qwcvO+Tb9ctq/KY4b9nU38ZOxLlQFwgWm5zj8RL9XFgS5T8/JSCm+/GIetTCy DOSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rq+D7Fgk; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id 197-20020a6215ce000000b004fa3a8dfffcsi2595327pfv.179.2022.04.15.18.42.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 18:42:06 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rq+D7Fgk; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 48652D4476; Fri, 15 Apr 2022 18:07:00 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346903AbiDNVea (ORCPT + 99 others); Thu, 14 Apr 2022 17:34:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346901AbiDNVe0 (ORCPT ); Thu, 14 Apr 2022 17:34:26 -0400 Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 610FA2E68A for ; Thu, 14 Apr 2022 14:31:59 -0700 (PDT) Received: by mail-pg1-x530.google.com with SMTP id 125so5858410pgc.11 for ; Thu, 14 Apr 2022 14:31:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=p5umN/eT2yUlngm37Zc5I2AOTVEAYdcyPGsqi0WLgoI=; b=rq+D7FgkQSefBxCU9ED8GK3ke8819zxBSsQDmlKMR6RzAanoJ+pIUhWFqGsCQRhn5a T1b7M5p10Q77JtdA+STmiITCnnYLP6ygw3UTMjerkhQXYddkvRMnkJeGapa7QFumdrGh uDZTSRHXa8+a8A5EkfScSm663N4mBd8FOwtVbbFIvJF+ZPytgmvX3awgIv4nS2WWQVen pZvOtGqUVgroB423PTIhk9DOg8BEofQy3l+7udrziRMjslAvX81WFVWviAu9V3nroG8a o5S3EjLJkXdKv9ZU3s6c/By0RoiEBt/i7gIOBzjTaLxqwLHB7WaWP7E13jAH90UG1KeV 2kHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=p5umN/eT2yUlngm37Zc5I2AOTVEAYdcyPGsqi0WLgoI=; b=S62YvmXFn3mFidm+guWkFK2kRGCGQd7T7RcWEBh5uw3DNf4JPUpg+JUMA4MOOHpXpN VtfohTT8sP1PbttCWewDs2SLiGlMYRYFf9xDBdcj4CkkxkZjQJswhSwXGOeQ2IZprVGv /SKclS0fPYNSHe/jYO8Ej7/uAuCSm/zvQmAORXESU8YV1Xb4aM8IVhmM+RL1+grCuHks IqUVK5z2MzL7QiwMmUkZwZJ1TfWWCVVL9/vzQNBRp4ETreBYgUpgkfTmZQ8TbnXTWwON WR1g+6YtD/mB9uwthfw3L9SEyNoGhWrmjha+62G5E5sYAeg9U4MmQs25+KXmkmsnU4G9 X1rg== X-Gm-Message-State: AOAM533U/vOFpJ9Vxe8Cqr5QX3CCVxWOAFmSNru6mI7uSROa1z2Z1CEd kPURGkL6L1Xjxz2s9y/EOfne3Q== X-Received: by 2002:a63:4721:0:b0:382:70fa:479d with SMTP id u33-20020a634721000000b0038270fa479dmr3916862pga.259.1649971918877; Thu, 14 Apr 2022 14:31:58 -0700 (PDT) Received: from localhost.localdomain ([223.233.64.97]) by smtp.gmail.com with ESMTPSA id 5-20020a631045000000b0039d942d18f0sm2673706pgq.48.2022.04.14.14.31.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Apr 2022 14:31:58 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org Cc: bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, agross@kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, bjorn.andersson@linaro.org, Rob Herring Subject: [PATCH v2 2/2] arm64: dts: qcom: sa8155p-adp: Add support for uSD card Date: Fri, 15 Apr 2022 03:01:39 +0530 Message-Id: <20220414213139.476240-3-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220414213139.476240-1-bhupesh.sharma@linaro.org> References: <20220414213139.476240-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Add support for uSD card on SA8155p-ADP board using the SDHC2 interface. Cc: Bjorn Andersson Cc: Rob Herring Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/sa8155p-adp.dts | 68 ++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8155p-adp.dts b/arch/arm64/boot/dts/qcom/sa8155p-adp.dts index 8756c2b25c7e..b561a8139cb9 100644 --- a/arch/arm64/boot/dts/qcom/sa8155p-adp.dts +++ b/arch/arm64/boot/dts/qcom/sa8155p-adp.dts @@ -317,6 +317,20 @@ &remoteproc_cdsp { firmware-name = "qcom/sa8155p/cdsp.mdt"; }; +&sdhc_2 { + status = "okay"; + + cd-gpios = <&tlmm 4 GPIO_ACTIVE_LOW>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc2_on>; + pinctrl-1 = <&sdc2_off>; + vqmmc-supply = <&vreg_l13c_2p96>; /* IO line power */ + vmmc-supply = <&vreg_l17a_2p96>; /* Card power line */ + bus-width = <4>; + no-sdio; + no-emmc; +}; + &uart2 { status = "okay"; }; @@ -390,6 +404,60 @@ &usb_2_qmpphy { &tlmm { gpio-reserved-ranges = <0 4>; + sdc2_on: sdc2_on { + clk { + pins = "sdc2_clk"; + bias-disable; /* No pull */ + drive-strength = <16>; /* 16 MA */ + }; + + cmd { + pins = "sdc2_cmd"; + bias-pull-up; /* pull up */ + drive-strength = <16>; /* 16 MA */ + }; + + data { + pins = "sdc2_data"; + bias-pull-up; /* pull up */ + drive-strength = <16>; /* 16 MA */ + }; + + sd-cd { + pins = "gpio96"; + function = "gpio"; + bias-pull-up; /* pull up */ + drive-strength = <2>; /* 2 MA */ + }; + }; + + sdc2_off: sdc2_off { + clk { + pins = "sdc2_clk"; + bias-disable; /* No pull */ + drive-strength = <2>; /* 2 MA */ + }; + + cmd { + pins = "sdc2_cmd"; + bias-pull-up; /* pull up */ + drive-strength = <2>; /* 2 MA */ + }; + + data { + pins = "sdc2_data"; + bias-pull-up; /* pull up */ + drive-strength = <2>; /* 2 MA */ + }; + + sd-cd { + pins = "gpio96"; + function = "gpio"; + bias-pull-up; /* pull up */ + drive-strength = <2>; /* 2 MA */ + }; + }; + usb2phy_ac_en1_default: usb2phy_ac_en1_default { mux { pins = "gpio113"; -- 2.35.1