Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1466845ybg; Tue, 2 Jun 2020 10:41:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxaz6mHvYg+U1w4AwucPadF0U794WrUZGfTRgqUK+rU8JvK+7nwg/zmV0YpT0nHMnz3C01x X-Received: by 2002:a05:6402:1285:: with SMTP id w5mr15029628edv.73.1591119707899; Tue, 02 Jun 2020 10:41:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591119707; cv=none; d=google.com; s=arc-20160816; b=CjajsRJj4jeUx7pk/S9dHeC3Tz19BHLWAyfDdxYtCVYTcJ/HdRUqX5Y5/EaErKbKRA FpC+achzS5grUShay9cTNrIXdTfGGsSRTU8HGpG1h14kAAy+FSrgoRKIkxit1B7SttEX p42VEJEXtlTMchjHUw25cHXnNjQSWD2g4kqdThLkdlM4N6KS3AU7NWowFBCh3UsQQCXM 9VCsOhDDta3sl+wKUfOYefVyHEGZg9kzCh4P1hO2KMuFEg2SscSHT/qxwvSLikdv3CVO scFvE9kJ6cKVx+i6Cu0lEZXRB/s+mHEX98BjvqUhLW139Jz6G27zRdhrecBO26OwZrA+ AowQ== 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=HAbgr6zzu7r3PzTp5xRYYLgURACWC5IB5Lo9NqHN5fo=; b=BTrcxQ3PdfsuAT2h1RGOYgBdXE1xcCmEpHPWmRSqvjVaX7Sw9dhlahQmq9c7oGR7XV z+s6/5xsz2c5iCnur/HVzGheWAjqwuN73uSAcM+yNL+BQ+w0spexnFb4fHoEibuS+yBV WoEVrN+UiF+a8dARFHm0o6de0YT8TSN5dAZOqxo5rtuFiHloI1hKT5ba845tDl9xn7AA xTwsyuatPpq1ffkezrkB8B3V9gl9fvuXnxN2JZG19PGhVnMfGqMaDjjk0wNejYg3+w1R o33HMh2IpmWIG9+L0+eIeE2S1BnF+Vd2cqRnjiuJk3Kti5MyfFzzH69RMkoLa9UD8pKE lmCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=u9u62OK0; 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 f8si2043085edk.160.2020.06.02.10.41.25; Tue, 02 Jun 2020 10:41:47 -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=u9u62OK0; 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 S1728326AbgFBRij (ORCPT + 99 others); Tue, 2 Jun 2020 13:38:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726019AbgFBRij (ORCPT ); Tue, 2 Jun 2020 13:38:39 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1987C05BD1E; Tue, 2 Jun 2020 10:38:38 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id 64so5367261pfg.8; Tue, 02 Jun 2020 10:38: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; bh=HAbgr6zzu7r3PzTp5xRYYLgURACWC5IB5Lo9NqHN5fo=; b=u9u62OK0Uz5k1NzgozSXxo36T3wV9tU3tuP7QiUTICd5Z10I5tWt/FC90JijoDefoB hv2LAGTV3gI99dRYnbE/XPwDsJnXFEG+gx2NdICxSiBzqA+oaklooUtdmwuP+J9kpbFf oK+arfayMtiRluo0rXam4pMeEa8F3yKXQAoDGLYbyDWBkkLRnQRRyOTAjv1l9alSPrm8 lzguxtttntllPT5yCJ7gcV7nzz8G19UOeseFAlA3TzpNfcIAov+O23C2W2EqtUkTfmsS o3ZYmU700zdrxhni6MLHxrAea767urY6Ti3b9v+aUjL1IT1XPa3QU+IYYKzyrsFMp+Z4 0Xlg== 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=HAbgr6zzu7r3PzTp5xRYYLgURACWC5IB5Lo9NqHN5fo=; b=D0vgDrVbw6TZFExSsR/J08Vz5bVHIRULo3pXuRIkBkJVqQex9fGrga8fUImaYFgogt 5ovH6ukDtVnCAXcmV1UfF+vrl0Iydb/MDOkXnIRcmhUn6HnvonqvutnrFOizQ1BBqwsK D9a/OAPuE/9Nc6HENHcv/7Z1RPA9yjc68hf24OixF788Y/5KGOppncvZCUhhxBNy+tPq HQguBWGD4ojbqVZDojKuPuCqBPct/VGo3Ihwur6iTSEER6KILlVtn/Mz9s8Qm/kfCUm5 A6ve6xc0ovQlIIlzxXBuBWEoALamoy2cD2XOjXwpJo5KwR+hCN4/emeJfO0Wq+CFYSgf mGLA== X-Gm-Message-State: AOAM530YIOZPV6e9EA1LoIp9w2J4ow7aKwzG0jzUkyYitSmDAa7TIM+C oKXwk1hke93NQ9DW5GQ09r4= X-Received: by 2002:a63:658:: with SMTP id 85mr24337043pgg.181.1591119518467; Tue, 02 Jun 2020 10:38:38 -0700 (PDT) Received: from localhost.localdomain ([223.235.152.125]) by smtp.gmail.com with ESMTPSA id i22sm2864382pfo.92.2020.06.02.10.38.34 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Jun 2020 10:38:37 -0700 (PDT) From: Amit Singh Tomar To: andre.przywara@arm.com, afaerber@suse.de, manivannan.sadhasivam@linaro.org, robh+dt@kernel.org Cc: cristian.ciocaltea@gmail.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-actions@lists.infradead.org, devicetree@vger.kernel.org Subject: [PATCH v3 10/10] arm64: dts: actions: Add uSD support for Cubieboard7 Date: Tue, 2 Jun 2020 23:03:12 +0530 Message-Id: <1591119192-18538-11-git-send-email-amittomer25@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1591119192-18538-1-git-send-email-amittomer25@gmail.com> References: <1591119192-18538-1-git-send-email-amittomer25@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 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 b1a34f95d44c..2bb29bc683ef 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 -- 2.7.4