Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp3724701ybk; Tue, 19 May 2020 11:26:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwFmch9Y878PiU4VJ/eS9F7mcfX34ZwfWAAxT+5jXp7b9128ZSqQIGCi1yMwE8JEEwZd5E X-Received: by 2002:a17:906:379b:: with SMTP id n27mr491873ejc.388.1589912773615; Tue, 19 May 2020 11:26:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589912773; cv=none; d=google.com; s=arc-20160816; b=gu4Qgfhud5PzHWsBoE2xr6X5mcnDyVwhXVzXfHhOumKQo9xn0iGYx2adIXk3FTU9Bh NmqTEVUfI080udmMA+vwcgUW5fBJ0KGynSpLi4IJBUoxap8sidUt6ftgx9+eCw6W/aZO Xo6GP9wEnUO53xL9eb215HsMEldIMhtZ6sgOERWcc+6Zm7N74298hCqc+AUXTZvFCdaX ZRBsEayRWE1Bf9Yf6Po9YGmkL5MbZdElotfPMrENMpuv3hVkDYTl4dnNm19E9KZfP0wA DhasyFuAUHoaYbaABftgU6Mtd8I3ngmhya38oIj5xFiN4hn9FJpujMj6v+B8Xby/8pVr xu2Q== 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=a2sCpqRPJKFXTOs8Et/zawWwVxFdgwLHPGf2S2DawfM=; b=xBdNtSOglSbUs6f2KDWNzRcNCQtgceCOYP9v98j7ewzOvJoKmWSd3F6AHTrWAxYNmW +dtp1BH9+nLv2hMiOjesvi4pTy3tV+AHkTTritoznV8S/PGgazYYWjVYJLO5GilmdBP3 07zGbf709m6Scf059lGeHjviNRvVlvxs9Ab+3w29k+gkWbFdqO4DupCdGv0CClHPu07S /C7G8LS+GU70iUugRY8rnbtIUFltxqtYCcqZYMCoFk3SrLK5GgBUIuJBVdyPRNhz7EIz Acl1EDIciScUY+R93diex3VlXbBVD3pelJxhffu8IQgGeJ2TfMS6r9u6t5CzPHdEjLCL zG1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZE0elzVT; 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 x15si124635ede.370.2020.05.19.11.25.50; Tue, 19 May 2020 11:26:13 -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=ZE0elzVT; 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 S1728144AbgESSYR (ORCPT + 99 others); Tue, 19 May 2020 14:24:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726161AbgESSYQ (ORCPT ); Tue, 19 May 2020 14:24:16 -0400 Received: from mail-pj1-x1043.google.com (mail-pj1-x1043.google.com [IPv6:2607:f8b0:4864:20::1043]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E759DC08C5C0; Tue, 19 May 2020 11:24:15 -0700 (PDT) Received: by mail-pj1-x1043.google.com with SMTP id ci23so45677pjb.5; Tue, 19 May 2020 11:24:15 -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=a2sCpqRPJKFXTOs8Et/zawWwVxFdgwLHPGf2S2DawfM=; b=ZE0elzVTcE6MBXWntbFKeB7UHR2K/ret1k59birCBC5fFiGZRD9PyR4eGSQKYe+WM0 I5XOjGwHJDBhgPlzw5WBxk8Jh27W5apmYYKbioAFzH5IZBxead09h1cv2/M8JmaKMkAT 2mKrHODj7LJN8Yi21l62NVQp/9gJOvIBPj3EsmMwA+e9xHhTovXgzRoNDP+gYfwxSHsY wGRHq/2CqVrjC9OamIC0lSHX17Uy1zblfKdvAIeINnIjpx47LUec+uE8DRTEHW6QkTvV wDuAmEG2Oo0soBWa7TtDSXGiK80B+UGy8nhOgkNPtKO14HRs4E+yserLKSlg4M6I9SuO XUqg== 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=a2sCpqRPJKFXTOs8Et/zawWwVxFdgwLHPGf2S2DawfM=; b=kEaZrm0zTxz+eITRseV18CaDtPgV0kEhtQ03OxXTAHIK3zTK+iWp1mXQko0pArLW6D h0bvD5gx22JiqKRi65m+WAz+yf9VdflY63J6fRZhpEkX0WT0r2fSPpcXx8qxZR+ku2S6 LAOHu4QWBanE8ET4iXqTudNTULuAvb56CjBtBygU2IomYuMiAzR6CjIsqmEwk49UC/uk UOuGJtD+dehqotOIs8s0bwMBp6BzLNZigXHiSg8ovAoWAjhQCW5MnqTT+zX40ICkm94Y qrq8Fb4QJ+n2tDace2rYoH2Pw26Urw+r+on4lPjcaGgyFUYn9FMmnyWOwhu1cdA4/KRS Tjaw== X-Gm-Message-State: AOAM5334KVvkR4L7tg/W95T16qSPBijcIy8a5HLwjErMPP2lMlFT3R2d z3SAmKJLClP14lHP+Y2SAjM= X-Received: by 2002:a17:902:549:: with SMTP id 67mr717666plf.115.1589912655377; Tue, 19 May 2020 11:24:15 -0700 (PDT) Received: from localhost.localdomain ([223.235.145.232]) by smtp.gmail.com with ESMTPSA id p2sm148399pgh.25.2020.05.19.11.24.07 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 May 2020 11:24:14 -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 v2 10/10] arm64: dts: actions: Add uSD support for Cubieboard7 Date: Tue, 19 May 2020 23:49:28 +0530 Message-Id: <1589912368-480-11-git-send-email-amittomer25@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1589912368-480-1-git-send-email-amittomer25@gmail.com> References: <1589912368-480-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 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 0d3ff315b00e..18700aeb8d2b 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 -- 2.7.4