Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8509619imu; Thu, 15 Nov 2018 12:46:34 -0800 (PST) X-Google-Smtp-Source: AJdET5crMdOWP3v4fA/HiumwZNq3iSSDnipbe37ysDh6afMdkfUvoC/rgMkaXeNvsnRpoTJ1NEcT X-Received: by 2002:a63:36c4:: with SMTP id d187mr7079964pga.404.1542314794716; Thu, 15 Nov 2018 12:46:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542314794; cv=none; d=google.com; s=arc-20160816; b=ocN/ZBHVibzbnhRJkk6vGUewYbCDOTiD/CilCJhxyMtiRoDOSzAmY8R2u828Wdvo0W i6N0GaQzjER9+Jh5cMidX51+OeDW4/k4wIMPqu7H1MQI/9jtqgmyEjFbxFPAapINilBm yKmk+Krl8eOxtoWvyfU9mzZC4s8UigDVJBFqGowa8xNmQ7TVugnBdsuaDet1QzOa5p93 6sc52nFYmEvO79MGHjQLrym1xO11sER8Ne8wXfR1cNC+BDAEs5zezhExtopaADLv4mwY W5BpBPYTYnboxI3a79zmjie9qhGOkEdCoFnFiwzCgSTk8Je7jlH7z16agDECJ1v551PD TgRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dmarc-filter:dkim-signature:dkim-signature; bh=IhBP0A5dWLrgE8/hdRhjP8YaSX90o1LnGkZyh8sJZmE=; b=vhQyKeZxiCeeVMX3lYFjn3RvOBGubPWzzMEEIi8ss4oKibmiiYBNTaSUOG5MH7dLFS zo8iY3F6K0AgeWqbHMdiUnL2wJWRkOynT3m/W3I2XkxFRe0RZiNTiAb4Fu/OE+mwR9lm CEOcQL8HJg3N88LUWrFEFLzRgi62PWoVuGlagtzKEhU9ZEYEBN+UkK3smeumMLYR/6Ib wDMxnkmuwZlzsLTtkcV7BaiFvGroTEp6n3vlfwJuql5uZYMpyFQfRI56AqDasOIl4rME 6G6gkDJwGEQSZMWcY+6Vobee6OSBjWuSqcV/tPxfHx1tOwmzo6rzt2EnffQclyc1IRS0 1Asw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b="AMn6aV/V"; dkim=pass header.i=@codeaurora.org header.s=default header.b=RPNABCuC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r17si16971147pgh.299.2018.11.15.12.46.20; Thu, 15 Nov 2018 12:46:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b="AMn6aV/V"; dkim=pass header.i=@codeaurora.org header.s=default header.b=RPNABCuC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389136AbeKPGyt (ORCPT + 99 others); Fri, 16 Nov 2018 01:54:49 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:39682 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389074AbeKPGys (ORCPT ); Fri, 16 Nov 2018 01:54:48 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 651146076A; Thu, 15 Nov 2018 20:45:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1542314724; bh=FTR/bSqHFdxP4ksbU8HfZv3KLwL+Lhc/KM3Gdlq0lWM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AMn6aV/V291Lb782yYEvVQaylJbPx1NrgwiYeFo3hXlttEK8c2eTA7+6Al9piiW0k BzfUtqwo49pFmQN4UHAedJSkZslG4I1Ng66hn2PUNvNs4y9p/dTaGZ8G7OPH6jQVIr ymnbUYBfF9Dd9pO/O38TiB52BkLnm4oYCeGpa5FI= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.0 Received: from jhugo-perf-lnx.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: jhugo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 7D02760710; Thu, 15 Nov 2018 20:45:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1542314723; bh=FTR/bSqHFdxP4ksbU8HfZv3KLwL+Lhc/KM3Gdlq0lWM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RPNABCuC/o3M6Vi48fabmZ4Dz4J0+mTqzWJOwHuD61Rou3/oNGMiNd0qO1xv4lL95 qrcE+05GSgekHo6t1CtAKFKvsmybwekzSBD7GGBCAtPWlJkfMyi3i1Xeo84QW2/bzn /mzHUuGh1M3lQb3iUWtqnEaRyVPOGa9A3JuahLco= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 7D02760710 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=jhugo@codeaurora.org From: Jeffrey Hugo To: andy.gross@linaro.org, david.brown@linaro.org Cc: bjorn.andersson@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Jeffrey Hugo Subject: [PATCH v2 3/3] arm64: dts: qcom: msm8998-mtp: Add external SD Date: Thu, 15 Nov 2018 13:44:55 -0700 Message-Id: <1542314695-24071-4-git-send-email-jhugo@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1542314695-24071-1-git-send-email-jhugo@codeaurora.org> References: <1542314695-24071-1-git-send-email-jhugo@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The externally accessible SD card slot on the MTP is driven by SDCC2. Wire it up for use. Signed-off-by: Jeffrey Hugo --- arch/arm64/boot/dts/qcom/msm8998-mtp.dtsi | 65 +++++++++++++++++++++++++++++++ arch/arm64/boot/dts/qcom/msm8998.dtsi | 1 + 2 files changed, 66 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8998-mtp.dtsi b/arch/arm64/boot/dts/qcom/msm8998-mtp.dtsi index b4276da..cf74883 100644 --- a/arch/arm64/boot/dts/qcom/msm8998-mtp.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8998-mtp.dtsi @@ -241,3 +241,68 @@ }; }; }; + +&tlmm { + sdc2_clk_on: sdc2-clk-on { + pins = "sdc2_clk"; + bias-disable; /* NO pull */ + drive-strength = <16>; /* 16 MA */ + }; + + sdc2_clk_off: sdc2-clk-off { + pins = "sdc2_clk"; + bias-disable; /* NO pull */ + drive-strength = <2>; /* 2 MA */ + }; + + sdc2_cmd_on: sdc2-cmd-on { + pins = "sdc2_cmd"; + bias-pull-up; /* pull up */ + drive-strength = <10>; /* 10 MA */ + }; + + sdc2_cmd_off: sdc2-cmd-off { + pins = "sdc2_cmd"; + bias-pull-up; /* pull up */ + drive-strength = <2>; /* 2 MA */ + }; + + sdc2_data_on: sdc2-data-on { + pins = "sdc2_data"; + bias-pull-up; /* pull up */ + drive-strength = <10>; /* 10 MA */ + }; + + sdc2_data_off: sdc2-data-off { + pins = "sdc2_data"; + bias-pull-up; /* pull up */ + drive-strength = <2>; /* 2 MA */ + }; + + sdc2_cd_on: sdc2-cd-on { + function = "gpio"; + pins = "gpio95"; + bias-pull-up; /* pull up */ + drive-strength = <2>; /* 2 MA */ + }; + + sdc2_cd_off: sdc2-cd-off { + function = "gpio"; + pins = "gpio95"; + bias-pull-up; /* pull up */ + drive-strength = <2>; /* 2 MA */ + }; +}; + +&sdhc2 { + status = "okay"; + cd-gpios = <&tlmm 95 GPIO_ACTIVE_LOW>; + + vmmc-supply = <&vreg_l21a_2p95>; + vqmmc-supply = <&vreg_l13a_2p95>; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>; + pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>; +}; + diff --git a/arch/arm64/boot/dts/qcom/msm8998.dtsi b/arch/arm64/boot/dts/qcom/msm8998.dtsi index 09deee0..82f6472 100644 --- a/arch/arm64/boot/dts/qcom/msm8998.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8998.dtsi @@ -3,6 +3,7 @@ #include #include +#include / { interrupt-parent = <&intc>; -- Qualcomm Datacenter Technologies as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.