From patchwork Wed Nov 28 22:34:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evan Green X-Patchwork-Id: 10703533 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1B3A116B1 for ; Wed, 28 Nov 2018 22:34:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E3A962BA5B for ; Wed, 28 Nov 2018 22:34:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D7EA82E01C; Wed, 28 Nov 2018 22:34:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 81AB82E018 for ; Wed, 28 Nov 2018 22:34:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727471AbeK2JiF (ORCPT ); Thu, 29 Nov 2018 04:38:05 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:35198 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727469AbeK2JiE (ORCPT ); Thu, 29 Nov 2018 04:38:04 -0500 Received: by mail-pg1-f194.google.com with SMTP id s198so10142275pgs.2 for ; Wed, 28 Nov 2018 14:34:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=KU7YR+dMFcDShtWfE5CNdmGOqYjteSkR+jWwR0YcA2U=; b=Gqu9i8cEZK6Zr5+TLSZlrj77KGqvVzsD3pFBHQZzvVlMvLQrh31rHiLajblRQlsNhn FevRX/sn9mjiYaypvFTvsOXslCeAZAsi6Tyb1YKlXhq8NMNdnLjEvz7nwxxmJV+5ajlY aX4PzcMu0auu/05ZMRQ3Qbmf9Ok5lOejkgnt4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=KU7YR+dMFcDShtWfE5CNdmGOqYjteSkR+jWwR0YcA2U=; b=GIZfp++yyDKxdfGRnVujF/h2jKQEhGvAwlH+uzjTBqmXVAfeb3bWVPjGKLXC5dQ30x vnSzBnWt4LGqudvhRuAkSM8YNZRlIVMI7C3bGZFRBNqp9ow+mPytEHso84M7eevn1GkQ HhOjIldQ4EjqDPuJ15/fAKLqn3EDcpVVDhjP2mCmInyAkTBUkfA3yTbZ/FaYrvF3azPC ecBxXneQ3RwGqZClvMXi4QpvdWcUQHtTsajxRAXEuPrkiL841QCbc0BxT5T+MuDHPMnM FR9JygfjK1YjbKItaNKmHN0kBYzY7Ncn7oEQ5/a4T86no+VouSV/CmyHS5y3ADY/Umkd Dcbw== X-Gm-Message-State: AGRZ1gIhtDtIiHU4H788abyhfYCHuvb+sEvFitB4kcvIHo7Z4ATRav78 5k1krVusjk0ZOys57+YpeHXr9w== X-Google-Smtp-Source: AJdET5ft3ebWxDj7BS6t0nJLhzG7j5XOmR7XOH94siS13cqp/2jUZoTQ1jNHsfoHrOAoD/a8O7eXmg== X-Received: by 2002:a62:d2c1:: with SMTP id c184mr39660614pfg.248.1543444493823; Wed, 28 Nov 2018 14:34:53 -0800 (PST) Received: from evgreen2.mtv.corp.google.com ([2620:15c:202:201:ffda:7716:9afc:1301]) by smtp.gmail.com with ESMTPSA id y26-v6sm12364813pfi.123.2018.11.28.14.34.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 28 Nov 2018 14:34:53 -0800 (PST) From: Evan Green To: Andy Gross , Rob Herring , Bjorn Andersson Cc: Douglas Anderson , Evan Green , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, David Brown , Mark Rutland , linux-soc@vger.kernel.org Subject: [PATCH v1 3/3] arm64: dts: qcom: sdm845: Add SD nodes for sdm845-mtp Date: Wed, 28 Nov 2018 14:34:28 -0800 Message-Id: <20181128223428.177313-4-evgreen@chromium.org> X-Mailer: git-send-email 2.18.1 In-Reply-To: <20181128223428.177313-1-evgreen@chromium.org> References: <20181128223428.177313-1-evgreen@chromium.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Enable support for the micro SD slot on the MTP. Signed-off-by: Evan Green --- arch/arm64/boot/dts/qcom/sdm845-mtp.dts | 53 +++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-mtp.dts b/arch/arm64/boot/dts/qcom/sdm845-mtp.dts index d667eee4e6d03..b85e9fed14845 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-mtp.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-mtp.dts @@ -7,6 +7,7 @@ /dts-v1/; +#include #include #include "sdm845.dtsi" @@ -348,6 +349,18 @@ clock-frequency = <400000>; }; +&sdhc_2 { + status = "okay"; + + pinctrl-names = "default"; + pinctrl-0 = <&sdc2_clk &sdc2_cmd &sdc2_data &sd_cd_odl>; + + vmmc-supply = <&vreg_l21a_2p95>; + vqmmc-supply = <&vddpx_2>; + + cd-gpios = <&tlmm 126 GPIO_ACTIVE_LOW>; +}; + &qupv3_id_1 { status = "okay"; }; @@ -444,3 +457,43 @@ bias-pull-up; }; }; + +&tlmm { + /* It seems that mmc_test reports errors if drive strength is not 16. */ + sdc2_clk: sdc2-clk { + pinconf { + pins = "sdc2_clk"; + bias-disable; + drive-strength = <16>; + }; + }; + + sdc2_cmd: sdc2-cmd { + pinconf { + pins = "sdc2_cmd"; + bias-pull-up; + drive-strength = <16>; + }; + }; + + sdc2_data: sdc2-data { + pinconf { + pins = "sdc2_data"; + bias-pull-up; + drive-strength = <16>; + }; + }; + + sd_cd_odl: sd-cd-odl { + pinmux { + pins = "gpio126"; + function = "gpio"; + }; + + pinconf { + pins = "gpio126"; + bias-pull-up; + drive-strength = <2>; + }; + }; +};