From patchwork Thu Nov 8 18:39:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 150577 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1184748ljp; Thu, 8 Nov 2018 10:41:31 -0800 (PST) X-Google-Smtp-Source: AJdET5exDsie59dpdILXYuP6w1z1F8Tse1PQwDO6TTNDzLf8rN131n+n52OLwoyEidLUYTDDWOeB X-Received: by 2002:a62:1c1:: with SMTP id 184-v6mr5684669pfb.242.1541702491124; Thu, 08 Nov 2018 10:41:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541702491; cv=none; d=google.com; s=arc-20160816; b=pM9NMVZ5QguF12sf/mmUs2leX3NZ9lklDat/nHqvsHmyJOOW3ZQH0gE5WT60eqRAnr uGT7uGHwPFVTZK103k6GnH2yI1B2sFU28niM71vhug+xVVX3zm7cDRDrSicxloZza7Da PjDogf/ItjuI8SHCNxFzM445gl1332HXpjN0j5OEThYnlr0p50i01+XgY/ztoyvrYoQq M/EYAYqAj+Uy81EPgwbARhiQSCmdYMejwyXwsZqNZyozdzWj8Pffa+NJMCokHVSOlWI5 2HBKpf8G4g2lrKrksnst4QGmPqlnObsn9EseQ3dU52hh9w1i3Xw763uMxdXWRFn8zqll adkg== 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=TITlOXNI/8Odlq2ClZ2wtafpCYGkgECSv3VeeyCTjt0=; b=kGN4Ptl9WYxo3QBzYf9qOfRi3M+2BWJ67Fks+HugHns6I+c7NL2JyeppZQNkjN0Wfq X9wvKyWls7jSnFaSmUbWL7tPR+E6qYJWT4qc6k9G+wTtN1PQwYZMIq80OtILgQK7M7cG nEtgRf+Kp6ts+dr5FXidDaJ0JURXLcSXa4JE1B3PdOJzbHGP9x+zWs9soBqSAVBZrnUv asS9K779rUVHLmnOktzv6y4WLDv8x9GNkQg2OTyXNQj9Luxrlg11k6FsRzB8s6Q6BUPF DSG7X+snEX4jFw8uYMc2ZmkMx8NejKI3lPOd4I6GRw06UMF/AyJXZl2Lr60f+SnOsNgb 2TZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FymuxlX5; 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 i5si4939245pgn.243.2018.11.08.10.41.30; Thu, 08 Nov 2018 10:41:31 -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=FymuxlX5; 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 S1727956AbeKIESQ (ORCPT + 32 others); Thu, 8 Nov 2018 23:18:16 -0500 Received: from mail.kernel.org ([198.145.29.99]:60332 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726860AbeKIESP (ORCPT ); Thu, 8 Nov 2018 23:18:15 -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 439BF20684; Thu, 8 Nov 2018 18:41:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541702487; bh=v5ZNgSy885kUU9ageark3ckSiCBgD/0K9WjoJe1IjOo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FymuxlX5WeRjPUicWg9r5cANLof7k/g1KZbxvMOjh+YIb21CTMT3hDKVrZ11O2VBp hMEdnWIkWUzx3GKKS2V669raozsRFIlYlKcq3Yh86Mcuhdxoie2PwyQ1wYwGZUT9wv cbhGH2NoicCVjfhVlkbTjR41oSAJ6ddXoc9vwv7k= 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 v4 08/18] arm64: dts: qcom: qcs404: Add sdcc1 node Date: Fri, 9 Nov 2018 00:09:59 +0530 Message-Id: <20181108184009.18430-9-vkoul@kernel.org> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20181108184009.18430-1-vkoul@kernel.org> References: <20181108184009.18430-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.dtsi | 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.dtsi b/arch/arm64/boot/dts/qcom/qcs404-evb.dtsi index fc83e935aaa1..4d2ada8dec5d 100644 --- a/arch/arm64/boot/dts/qcom/qcs404-evb.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs404-evb.dtsi @@ -109,3 +109,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 3b6e659e3d1f..e83b7c233099 100644 --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi @@ -181,6 +181,23 @@ reg = <0x01905000 0x20000>; }; + sdcc1: sdcc@7804000 { + compatible = "qcom,sdhci-msm-v5"; + reg = <0x07804000 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"; + }; + blsp1_uart2: serial@78b1000 { compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm"; reg = <0x078b1000 0x200>;