From patchwork Mon Nov 5 15:45:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 150201 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2759086ljp; Mon, 5 Nov 2018 07:46:38 -0800 (PST) X-Google-Smtp-Source: AJdET5fI1/3QNUC0KfRFYfLmDNjbx5/oD8lV5NHMo9nLD87lrwhm0rKvKrj6RPzGLKXtzUqSwIYe X-Received: by 2002:a17:902:9a44:: with SMTP id x4-v6mr22246644plv.121.1541432798292; Mon, 05 Nov 2018 07:46:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541432798; cv=none; d=google.com; s=arc-20160816; b=nLZC1BhI0LMwUOYSEGEX/f2vX4hgt/dTdmd3eVrIXQNJnECNGcbazZ7FPOtI5rwmCh OXq+/6GFVc1zlx+0M6g6BWRyC978QnY6qtg6pDz6cZxMyRGYAHKjuZb+zJsNXhIBeANB GeavhWBOw7N1w4pdblSDxBAhrweqCLz+KB+QmkOB86Y2IqdthjKsUOOgCFBrMVbI9mfK TlHau+g5vGv+B6LX7j1qfpyUHWRB+uUkoWkk2d7KDmfxSt7Q3W6sf3/bwPGQSFxWnVKv SDXrVc//LGD9okRal77RJRQ2xMdlFP7d9wQtN+sThaNQsXAwDFPhdbG1OJw1Z99bUGdq y/5Q== 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:dkim-signature; bh=U2FlEFF8VW04bVjhFaUbHCA36Kr6Ru86FVWhUeLHSkk=; b=weL0t6HY4BCNZc0XdAqqTxv1Xv7JevbFdYKQKIy4AfzshjSB3jDzs9AbLSIpTF0jzy CVRsisWm5FsKg+B1mwTkpRUQTPn5bQ0Ya/tFeAN02hCesPazXG5m1UOJGSGSY4Wub7u/ dLl3NUntqxRR9OeBkkecyHuj/LDj0vNvxvnizKKmXFHxyz6IwI+e9JEtRnDtXeZ/9KDV 2/L3imBrHuNnIZCPe7xPGrxrsC65MY5G++Hz98Vem2/GAMOD7hYz4VzluXtyThqyl2R8 1CAjXwyNw3Q8SKSMpnvZ9bYTywVgnta9mKqSdV6Zfo5oC7DfJEDZZkpAUvQNNM7KTTN4 5A9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1mb9NO5u; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h69si28728452pge.121.2018.11.05.07.46.37; Mon, 05 Nov 2018 07:46:38 -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=@kernel.org header.s=default header.b=1mb9NO5u; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387569AbeKFBGx (ORCPT + 32 others); Mon, 5 Nov 2018 20:06:53 -0500 Received: from mail.kernel.org ([198.145.29.99]:52328 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729657AbeKFBGw (ORCPT ); Mon, 5 Nov 2018 20:06:52 -0500 Received: from localhost.localdomain (unknown [171.76.98.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A5EAE2085A; Mon, 5 Nov 2018 15:46:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541432794; bh=8SiXhOuUCCHtMMZNzTQ7UsJ+h2tIr03yKgdFXDsNzH0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1mb9NO5ueFwX2VC6zcSQBab4+8s1q2l4rUkQj4cKLBPSRjSfsLedfdsV6JiYuv0jH kOgslKjLCsB/JQKeZ/fugbZbJgPKBKk+oV5pimZ4NMgy33GMlwhCthgr/2dGctHI06 q1ahB2iMYFkATvT6V9M22a+5F+S9RhPmkF7mPcAQ= From: Vinod Koul To: Andy Gross , David Brown Cc: Rob Herring , Mark Rutland , linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bjorn Andersson , Vinod Koul Subject: [PATCH v2 07/17] arm64: dts: qcom: qcs404: Add sdcc1 node Date: Mon, 5 Nov 2018 21:15:19 +0530 Message-Id: <20181105154529.7614-8-vkoul@kernel.org> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20181105154529.7614-1-vkoul@kernel.org> References: <20181105154529.7614-1-vkoul@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bjorn Andersson Add the sdcc1 node and enable it for the QCS404-EVB. Signed-off-by: Bjorn Andersson Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/qcs404-evb.dts | 64 +++++++++++++++++++++++++++++++++ arch/arm64/boot/dts/qcom/qcs404.dtsi | 17 +++++++++ 2 files changed, 81 insertions(+) -- 2.14.4 diff --git a/arch/arm64/boot/dts/qcom/qcs404-evb.dts b/arch/arm64/boot/dts/qcom/qcs404-evb.dts index 5bae7163a093..b79969153fba 100644 --- a/arch/arm64/boot/dts/qcom/qcs404-evb.dts +++ b/arch/arm64/boot/dts/qcom/qcs404-evb.dts @@ -116,3 +116,67 @@ }; }; }; + +&sdcc1 { + status = "ok"; + + mmc-ddr-1_8v; + bus-width = <8>; + non-removable; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc1_on>; + pinctrl-1 = <&sdc1_off>; +}; + +&tlmm { + sdc1_on: sdc1-on { + clk { + pins = "sdc1_clk"; + bias-disable; + drive-strength = <16>; + }; + + cmd { + pins = "sdc1_cmd"; + bias-pull-up; + drive-strength = <10>; + }; + + data { + pins = "sdc1_data"; + bias-pull-up; + dreive-strength = <10>; + }; + + rclk { + pins = "sdc1_rclk"; + bias-pull-down; + }; + }; + + sdc1_off: sdc1-off { + clk { + pins = "sdc1_clk"; + bias-disable; + drive-strength = <2>; + }; + + cmd { + pins = "sdc1_cmd"; + bias-pull-up; + drive-strength = <2>; + }; + + data { + pins = "sdc1_data"; + bias-pull-up; + dreive-strength = <2>; + }; + + rclk { + pins = "sdc1_rclk"; + bias-pull-down; + }; + }; +}; diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi index 58afdd83e7a9..970ca9a62530 100644 --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi @@ -270,6 +270,23 @@ interrupt-controller; #interrupt-cells = <2>; }; + + sdcc1: sdcc@7804000 { + compatible = "qcom,sdhci-msm-v5"; + reg = <0x7804000 0x1000>, <0x7805000 0x1000>; + reg-names = "hc_mem", "cmdq_mem"; + + interrupts = , + ; + interrupt-names = "hc_irq", "pwr_irq"; + + clocks = <&gcc GCC_SDCC1_APPS_CLK>, + <&gcc GCC_SDCC1_AHB_CLK>, + <&xo_board>; + clock-names = "core", "iface", "xo"; + + status = "disabled"; + }; }; smp2p-adsp {