Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp390324ybg; Tue, 9 Jun 2020 03:21:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbsmbEYpdhWdxCD3X+pCIF0C6jU+1VG6i/K0rnd4gIJHxP6CtTngZtAmuW4t/S2zN4vWNW X-Received: by 2002:aa7:c558:: with SMTP id s24mr24947470edr.237.1591698078252; Tue, 09 Jun 2020 03:21:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591698078; cv=none; d=google.com; s=arc-20160816; b=fyBJ8C/mLJ3Xdh47Ls50QTmoxAwlgVS880OX92NYYIc0inWtWVkQBZMt2EeFbJR6xb r4MDEdAbqMhTczMvfIf0Huj/iGUZbVPE4h8Nhw2puZ1vAFcaWjMuvoqAvrCHjLVRpCC1 Sgq1KVTpgqCOHi3ZLD+9ABwmXzDSDfBWEvRxHJ/wV4ekiqu/rma+z/JEJfERYv1HjDxO pS8fTsGQY87/Sa72GNXaTqs1NoQZUbv89Jgphbft6OXps/m3aCvgL/ESo5LejlljDu5x OcHSuvfCvCyGckDLlum+bY+MO7kOtc7dekZNlVNcyrzpRwnOArkTZXfw5ubK0sN/XsmJ EnEg== 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=/0d16ZSjZXDVB9XnoF7g8/C8LhZpWELESeA2tbYD7eQ=; b=KYCRzsUsvcuQ12gWmHKAkShoDBwDmEYtzJPEPrHth4ZLGw7/HB0AaRK0m1/EJdd4mW 85hJfCs9Bv/iIIffdopzO5G3oFJcmFHSi0FfhnEUzLVr2XxXNKVqc2kxxhPlavJafUnk IJY9DBXTD9cclgRyHX8dOCu5RbMFWkbweizy6DgWMwNDT6w+GuKFbQlWhelpbxyyET+d V9Wr3sp3gVFSh3Pm0pjf8dfp4GH3LdTA9Bq9msCT4LUhQstIHTBvrZC7+mcWuQsH10xy obkHBlg8svv4e4F3QIbrraoRurGX3dOh5VgXSlmRxRMzvahKByKtF63PDHhSv+ijFPPB RcMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="AG/UsiXY"; 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 s16si10648980edu.512.2020.06.09.03.20.55; Tue, 09 Jun 2020 03:21:18 -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="AG/UsiXY"; 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 S1728760AbgFIKSp (ORCPT + 99 others); Tue, 9 Jun 2020 06:18:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728730AbgFIKSZ (ORCPT ); Tue, 9 Jun 2020 06:18:25 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D96D8C03E97C; Tue, 9 Jun 2020 03:18:23 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id h185so9880826pfg.2; Tue, 09 Jun 2020 03:18:23 -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=/0d16ZSjZXDVB9XnoF7g8/C8LhZpWELESeA2tbYD7eQ=; b=AG/UsiXYoOJYlHtPerABlcHwszE5UoF6nbuNIqAJuXbLtI546Ko7bh9KoLmTyGYjSr tUWIgn1RMafwryN11ejY/TV7c8AX2NUCKaxRRjc57gcUjWf9bBi1WmE0vurTemfnsPas RZcBLC8PDd+sYXmjfuJ/0l/X4tsmNI/3f1U6jst0F/rUg+1dYxaHwem9J1Ik8tTi7CI6 fKMrt5lmS7hEVGIdEBwT4i27WGg5sBKfey9EeYkOy4HsMjolaZ+eKmtFFMkYy4E9Ffoc DThy8oQFum0fYYwxYy4WIaqdo20RLLLE2hl3OUyhFYWlL81LTO0YfRq0+v0bvylmIaSi DrVA== 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=/0d16ZSjZXDVB9XnoF7g8/C8LhZpWELESeA2tbYD7eQ=; b=WHB3rl8eYUED5Zf5fSJf8kpOcuTA1sjTYtg7R1asY3Coq92QEPzSDRdWfpHvw5NvZJ huxGdAFSVh2H3Zde3/xkY0NHDwg8YTHrxDfWQ8bLzKUSbKknddSzl+yrb+g0kzKAX4yt gK41xMNmAlSR3XwRIrKT9pSS2pwd+bE1705m39Z4590aLYYc+MPUM+8V8pGbKNN8HFuG zeoJmf3aRA7LcM7pxKMmw0dDBNc1Qc59FPodkHFOmZVNvBvXku07P7JMBb1FkksAnTiV WivFVGY3N0XNgzXI++9Ra4QJS9hX71PWcrOeNCeoJLV0vIKQ3/ywVPANspAfYmLzIQJO buww== X-Gm-Message-State: AOAM531vtROp1hPmE3aF83ZTXyifAe8PLr+iLY42BDB6UMjjzpyi4xXt ztgFpGiGPMtPSEf+eEUW6BQ= X-Received: by 2002:a63:af02:: with SMTP id w2mr23067058pge.116.1591697903285; Tue, 09 Jun 2020 03:18:23 -0700 (PDT) Received: from localhost.localdomain ([223.190.87.90]) by smtp.gmail.com with ESMTPSA id d189sm9637253pfc.51.2020.06.09.03.18.19 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Jun 2020 03:18:22 -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 v4 10/10] arm64: dts: actions: Add uSD support for Cubieboard7 Date: Tue, 9 Jun 2020 15:47:10 +0530 Message-Id: <1591697830-16311-11-git-send-email-amittomer25@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1591697830-16311-1-git-send-email-amittomer25@gmail.com> References: <1591697830-16311-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 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 -- 2.7.4