From patchwork Thu Jul 2 14:52:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Tomer X-Patchwork-Id: 11639255 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F35B0618 for ; Thu, 2 Jul 2020 15:06:30 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9F777206B7 for ; Thu, 2 Jul 2020 15:06:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="lg8Yi1PK"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="A36mJ9Ar"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="li/iRMGK" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9F777206B7 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:In-Reply-To:Message-Id:Date:Subject:To: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=QEUXfJd86/SHNMfu9yYmQRQvfyGILbam5ertmMUoqyY=; b=lg8Yi1PK3Jku/PGN4fNnqUV6jg 7rItWWWKZHoF+sigZd2qEneX4tDIIwa3B66RqskotxU72GcZ/eBrJL3EEtxS7TgUebRIAxZd4GnUR zRYX7Bq1PVq+JUGigM6ULesvwGDMQNyxnWchRFuXPoLDVchbaPJXygSTbubvGl6qdseGNw84SIZ57 XQkDc0sVyunkWGxaVvjQb23/strOlvx+43dqV3FFB98wzT0IkArac3e9KaJhAznaS7VaNzsp71giQ rWB3xQCi0CU9dYugwOwVTTXEexwT99pu/cvNw6WfSaIwt2pw3+aclR7pPd2fMGP0TjE0NObGT9XH+ LjP48DpQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jr0kz-0006cg-Ix; Thu, 02 Jul 2020 15:04:09 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jr0bN-0001Ne-JN; Thu, 02 Jul 2020 14:54:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description; bh=2wOYN/0g0f5pbtH8g7BnJjydy7AU6qktq0S+o7E8FNM=; b=A36mJ9ArOitZsLL8/qCieRkwzc nEZWHn/i5e+xN5RV8NFd5+YBoVjgD/3j09OFVshKAmk3nX+TPjQ40XcdNFe4OvqJRogvNVZCUN0w4 PNtDXL5ngVZP+n8A8+oiRo2JB8vBdXOwVPV/KPnqFSdMx/JNBwEojuZfW2Yz+o3p/ts9uc+TGW2lZ y3uowVsNUGIbCXPRnya2vypNXN0C9LO7OyJ9iFaC9xnvJpChAwhLU3hNnl0WPhaasUyTaQBIyZ6Us 9oZJx2AhmXY7lyMMM6f96zzMw6YCxCVCJnskZr9ZxwxNKd9fLx6l9jA0bsJGS5xnbNA/Q2CQA31tV eSv4wLJg==; Received: from mail-pj1-x1042.google.com ([2607:f8b0:4864:20::1042]) by casper.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jr0bG-0003eU-Iw; Thu, 02 Jul 2020 14:54:10 +0000 Received: by mail-pj1-x1042.google.com with SMTP id u8so12250733pje.4; Thu, 02 Jul 2020 07:54:06 -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; bh=2wOYN/0g0f5pbtH8g7BnJjydy7AU6qktq0S+o7E8FNM=; b=li/iRMGK1qmwA85z7TyIQB8rzEwcpW3lVJcAwYVcxGy4xXPWlYZow+e6hNmEH1nMaG caz3keLrkucWhYLsNYp8n+S3KIGktp5D2yilmH9iggZS3ktNjMmxscQm2cAETwAqCOr0 uReKfSFCTZi0153Rr03CYwo0/xl6fhWtbqOIT0TU/WN5/2G2ykhCgwkq7hUyr+mVg0FT eZ+kOMoKaIONivxGMmrqfeyTb3a7RzDLpsvzwDwCQBOSORNGB8LVNRCgIPTiMzxjRawu CBflcAO7xFc/qbxsjUo5cFleKTk0qHiAwL/gRMM72HUtgzH+QpjER/jtDXxPD0j3wgUX 3b9Q== 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=2wOYN/0g0f5pbtH8g7BnJjydy7AU6qktq0S+o7E8FNM=; b=VJuFfbliTFwX22Bm/HQlBZL06brWsDCHq9PAzVfMPXZyTlMifpMykyKTRT41UAAlgd qzzeXbLyTz6aDPTJhGnN1btpp1GT3eHjul5nulm3xXrH+h8HQNTer+TKzywxnzeOpxSB hh03HuBzMpZW/WEzadz1KasC2akOMp5rEsi19Lyvqs4tdO7wgFufAl005JBXI5kWqJYZ Z8vf1zBYhiAAOGNvfZEhZR3YvCOrsa1ssMrxE5UwTJsPQbbG6WY5JS0Gx4MDliOdVTUk nh5sYmfiEOgTdonllvEl/avKAQPJgqv97Rc1NCh/mIuq0BhYqaFq2zCWlAVRXXEpD7l5 mZIg== X-Gm-Message-State: AOAM5332Rho685Ncbmr+lDpWs/g40n/DoLOnlHXYCfbacVvdCVP/l1dy tEegWGzXkFY5hhvyMykn8do= X-Google-Smtp-Source: ABdhPJzteWrhGhXZLrpA2r7Wt2Dm1p8TiSi9Df05rcAtFbe3Dju+8vv5u638WNYUlvV80s05qtO+NA== X-Received: by 2002:a17:90b:4c91:: with SMTP id my17mr30750529pjb.81.1593701643332; Thu, 02 Jul 2020 07:54:03 -0700 (PDT) Received: from localhost.localdomain ([223.190.0.253]) by smtp.gmail.com with ESMTPSA id 204sm9487891pfc.18.2020.07.02.07.53.58 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Jul 2020 07:54:02 -0700 (PDT) From: Amit Singh Tomar To: andre.przywara@arm.com, afaerber@suse.de, manivannan.sadhasivam@linaro.org, robh+dt@kernel.org Subject: [PATCH v5 10/10] arm64: dts: actions: Add uSD support for Cubieboard7 Date: Thu, 2 Jul 2020 20:22:56 +0530 Message-Id: <1593701576-28580-11-git-send-email-amittomer25@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1593701576-28580-1-git-send-email-amittomer25@gmail.com> References: <1593701576-28580-1-git-send-email-amittomer25@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200702_155407_010421_9C698E2F X-CRM114-Status: GOOD ( 15.38 ) X-Spam-Score: -1.8 (-) X-Spam-Report: SpamAssassin version 3.4.4 on casper.infradead.org summary: Content analysis details: (-1.8 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:1042 listed in] [list.dnswl.org] 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit [amittomer25[at]gmail.com] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [amittomer25[at]gmail.com] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-actions@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, cristian.ciocaltea@gmail.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This commit adds uSD support for Cubieboard7 board based on Actions Semi S700 SoC. SD0 is connected to uSD slot. Since there is no PMIC support added yet, fixed regulator has been used as a regulator node. Signed-off-by: Amit Singh Tomar --- Changes since v4: * No change. Changes since v3: * No change. Changes since v2: * No change. Changes since v1: * No change. Changes since RFC: * No change. --- arch/arm64/boot/dts/actions/s700-cubieboard7.dts | 41 ++++++++++++++++++++++++ arch/arm64/boot/dts/actions/s700.dtsi | 1 + 2 files changed, 42 insertions(+) diff --git a/arch/arm64/boot/dts/actions/s700-cubieboard7.dts b/arch/arm64/boot/dts/actions/s700-cubieboard7.dts index 63e375cd9eb4..ec117eb12f3a 100644 --- a/arch/arm64/boot/dts/actions/s700-cubieboard7.dts +++ b/arch/arm64/boot/dts/actions/s700-cubieboard7.dts @@ -13,6 +13,7 @@ aliases { serial3 = &uart3; + mmc0 = &mmc0; }; chosen { @@ -28,6 +29,23 @@ device_type = "memory"; reg = <0x1 0xe0000000 0x0 0x0>; }; + + /* Fixed regulator used in the absence of PMIC */ + vcc_3v1: vcc-3v1 { + compatible = "regulator-fixed"; + regulator-name = "fixed-3.1V"; + regulator-min-microvolt = <3100000>; + regulator-max-microvolt = <3100000>; + }; + + /* Fixed regulator used in the absence of PMIC */ + sd_vcc: sd-vcc { + compatible = "regulator-fixed"; + regulator-name = "fixed-3.1V"; + regulator-min-microvolt = <3100000>; + regulator-max-microvolt = <3100000>; + regulator-always-on; + }; }; &i2c0 { @@ -81,6 +99,14 @@ bias-pull-up; }; }; + + mmc0_default: mmc0_default { + pinmux { + groups = "sd0_d0_mfp", "sd0_d1_mfp", "sd0_d2_d3_mfp", + "sd0_cmd_mfp", "sd0_clk_mfp"; + function = "sd0"; + }; + }; }; &timer { @@ -90,3 +116,18 @@ &uart3 { status = "okay"; }; + +/* uSD */ +&mmc0 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&mmc0_default>; + cd-gpios = <&pinctrl 120 GPIO_ACTIVE_LOW>; + no-sdio; + no-mmc; + no-1-8-v; + bus-width = <4>; + vmmc-supply = <&sd_vcc>; + vqmmc-supply = <&sd_vcc>; +}; + diff --git a/arch/arm64/boot/dts/actions/s700.dtsi b/arch/arm64/boot/dts/actions/s700.dtsi index 9ed88aafc2da..ba498cf9217d 100644 --- a/arch/arm64/boot/dts/actions/s700.dtsi +++ b/arch/arm64/boot/dts/actions/s700.dtsi @@ -4,6 +4,7 @@ */ #include +#include #include #include #include