Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3372929pxk; Mon, 5 Oct 2020 08:08:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwG1UFckVx854li4dxrNBkoip2XVhQrBwDlqw81opEGzsOZvFWUiv7K7o6DbOGyTugnYAyM X-Received: by 2002:a50:d98d:: with SMTP id w13mr47791edj.37.1601910487769; Mon, 05 Oct 2020 08:08:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601910487; cv=none; d=google.com; s=arc-20160816; b=KEL7uj4EKh4PMcEfcWXrkF88G9xGKqeq1sgnVCBYRd1KvNdtx7IWfyB0biuVMwdzzk cKmYpwuwDsz5rJXl4tjOoLC5KjuakdyeaEkk/MHnNDmX296WWcH5HaC7fM5oJgQkIYH7 p9EnZxaVpD/zS095UOmmv12nQYaBJXraoeTfwBdJi63m1siRQWtSV1zKzRLdQAW9JxpZ XfOW5K0pHboGVwrelL8uOEGBVXEz6jfquf2Ogla357f70i+wTWMCyXCAZ4OgayNpleE3 /PpWLAr2lsk2+FhzWTRWyE1KUAUr6SY7UppkOn9Dn1Wd4qZvzPUGVWyAem5E1joN3/bY ewxw== 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=FEaaguoxx0tgPPKlx5prvmaZIBE9frxLnNIvkIs7Y5A=; b=qt1HXQULM2+MgiC58mid25wF8hQTYaElr8jzqYC0biZ4QNoy6MIVlt9gOwmYXhPSQy YgWSQmqhXClCELDW1xv2MWcvVVgYLWl+bQ0beyGYw6vqL5WPga2DWVGnYzVj7XbIADAq YUMlpxyk1FblZlMHO8RmhVAILCXCCf9BkRe5NcnTLbkix+f2rlxu4Z/K7M/qRj4kHuuS S9hUp6u/HDMswtKMASELH/gOSW+WOv+jD/7sonIJrSbYEa6t3nzt+KeHpwNqPuDKWZAm 1gJgEf7kfxpbn7hk1JFYxODDeu/PeoI+BPjgwf1FTm0ewTYrFO9ABTPtYZQ0vJrkb4UL jxdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AkqNCmTN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z15si8579819ejr.202.2020.10.05.08.07.45; Mon, 05 Oct 2020 08:08:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AkqNCmTN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726861AbgJEPDo (ORCPT + 99 others); Mon, 5 Oct 2020 11:03:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726680AbgJEPDj (ORCPT ); Mon, 5 Oct 2020 11:03:39 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA839C0613A9; Mon, 5 Oct 2020 08:03:38 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id f21so3718981wml.3; Mon, 05 Oct 2020 08:03:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=FEaaguoxx0tgPPKlx5prvmaZIBE9frxLnNIvkIs7Y5A=; b=AkqNCmTNQ7mRbJLXIg6kwnzyA8Z0z1LqgJ0S2BlWhwz4uAXhlC9qOFmPTpZkdOA+vI bniMPVZGjf723lDMCdaunYeqkWA6dI7ehG8XgFXPBSMb6vNe4ZhO1Wk/0K+V9sMJKDmt SmkltQNJoOM9SKZnWrraV8qz4uqSZRNvC3jE3ynxeksAY4TFDN3neNnUgEf5RrRCu3gS jer6P7IG3w35rSVzqZtmLOU3QXKmFk1OTr5/8d3GMuhxBAT9XAJ2Yi9plbjzF8RRt398 gNhbR1WLu5gt42JNUNOnv45EAwVFcS6sHN5URhES1EGdo4GW6QMDrxgFccYf1FMfTyu2 binA== 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:mime-version:content-transfer-encoding; bh=FEaaguoxx0tgPPKlx5prvmaZIBE9frxLnNIvkIs7Y5A=; b=KsNf7H6ttTslEwWFgB2Mvi7Lj03ywsEtTtKAHpsR73iXoiqJ5tU/0h8m4j2qfYCqjn Y6tSzfa5D65Au72YPI/nC3Gv6WWDM9RCGmDlzi9zO3KPqYcSkq6PBTX0J2CwI0oCaDFm m8rCntBRJBdwIPFeBmg7zXiovp0Y+LjouCXj7uXomOB83GNYvJjtoEBlA+nz4j5dLuk+ H4GCxJh6bmcbyQZ5OQzwFXJ4+3fTIYjc7My/jli0BCNRyTmQNdlVaSBHBNIRmmsKxjjO i75EP/HI3tg5pDakrZFSxLvomav2wJqDGwJMKvgtUJT9ppKrYJVAW0JnvA0Gd+xGWeqD z5Aw== X-Gm-Message-State: AOAM530riRgxtrcNgVL3oUo6AwqBF/100IJlTjdMu1JUh12SZuqWcz9Y rIWszmKQvE1hHIOkj3vFFvFsHrK8fFsx+w== X-Received: by 2002:a05:600c:c5:: with SMTP id u5mr62901wmm.14.1601910217450; Mon, 05 Oct 2020 08:03:37 -0700 (PDT) Received: from localhost.localdomain (abab191.neoplus.adsl.tpnet.pl. [83.6.165.191]) by smtp.googlemail.com with ESMTPSA id c132sm4662wmf.25.2020.10.05.08.03.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Oct 2020 08:03:37 -0700 (PDT) From: Konrad Dybcio To: konradybcio@gmail.com Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Andy Gross , Bjorn Andersson , Rob Herring , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 06/11] arm64: dts: qcom: msm8994: Add SDHCI2 node Date: Mon, 5 Oct 2020 17:03:06 +0200 Message-Id: <20201005150313.149754-7-konradybcio@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201005150313.149754-1-konradybcio@gmail.com> References: <20201005150313.149754-1-konradybcio@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add SDHCI2 to enable use of uSD cards on msm8994. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/msm8994.dtsi | 59 +++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8994.dtsi b/arch/arm64/boot/dts/qcom/msm8994.dtsi index 6707f898607f..65089d7670f6 100644 --- a/arch/arm64/boot/dts/qcom/msm8994.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8994.dtsi @@ -305,6 +305,29 @@ sdhc1: sdhci@f9824900 { status = "disabled"; }; + sdhc2: sdhci@f98a4900 { + compatible = "qcom,sdhci-msm-v4"; + reg = <0xf98a4900 0x11c>, <0xf98a4000 0x800>; + reg-names = "hc_mem", "core_mem"; + + interrupts = , + ; + interrupt-names = "hc_irq", "pwr_irq"; + + clocks = <&gcc GCC_SDCC2_APPS_CLK>, + <&gcc GCC_SDCC2_AHB_CLK>, + <&xo_board>; + clock-names = "core", "iface", "xo"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on>; + pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off>; + + cd-gpios = <&tlmm 100 0>; + bus-width = <4>; + status = "disabled"; + }; + blsp1_dma: dma@f9904000 { compatible = "qcom,bam-v1.7.0"; reg = <0xf9904000 0x19000>; @@ -683,6 +706,42 @@ sdc1_rclk_off: rclk-off { pins = "sdc1_rclk"; bias-pull-down; }; + + sdc2_clk_on: sdc2-clk-on { + pins = "sdc2_clk"; + bias-disable; + drive-strength = <10>; + }; + + sdc2_clk_off: sdc2-clk-off { + pins = "sdc2_clk"; + bias-disable; + drive-strength = <2>; + }; + + sdc2_cmd_on: sdc2-cmd-on { + pins = "sdc2_cmd"; + bias-pull-up; + drive-strength = <10>; + }; + + sdc2_cmd_off: sdc2-cmd-off { + pins = "sdc2_cmd"; + bias-pull-up; + drive-strength = <2>; + }; + + sdc2_data_on: sdc2-data-on { + pins = "sdc2_data"; + bias-pull-up; + drive-strength = <10>; + }; + + sdc2_data_off: sdc2-data-off { + pins = "sdc2_data"; + bias-pull-up; + drive-strength = <2>; + }; }; }; -- 2.28.0