From patchwork Thu Jun 25 23:34:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Ciocaltea X-Patchwork-Id: 11627173 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 C0BA81392 for ; Fri, 26 Jun 2020 11:04:11 +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 9707320781 for ; Fri, 26 Jun 2020 11:04:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ydXzin2E"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="l/N1volu" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9707320781 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:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version: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=sBhwwdk2Z+r6fR7oreAlBMnTdRDsIE1IicuS7lVlOZM=; b=ydXzin2EGY97upkaWTGfev68n CKbF5c5vfGkzyuByNFcLnIYnUtuI7n0SocYpJ1TywOqBPjIiI27+/TVPMKM7UM5HJs15boSLEQzo3 CENZgK6YJkhAMZ3VTF0asbJLVLh0I8HGV0fwnSQzVKMfdLv0tzEdRUm0dsaq2s9Md1EMfScWAUkuP c99HyL+xe78tVhvD/7A389Z1SQXnXppUakeQNe55wa6rp59EPcjircXAlilDG2AeWLvSd41m3kwqt XXPJMRfdYaK7lOAj6FmfgAY0to3xT61pNxx+SOD/Ed/5b1zx+zi3ubnjXP3gxh1kS8josS2rlrtz+ Eng3W+Cuw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jom7h-0001EV-Ks; Fri, 26 Jun 2020 11:02:21 +0000 Received: from mail-lj1-x244.google.com ([2a00:1450:4864:20::244]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jom7e-0001Du-Jy; Fri, 26 Jun 2020 11:02:19 +0000 Received: by mail-lj1-x244.google.com with SMTP id n23so9876466ljh.7; Fri, 26 Jun 2020 04:02:18 -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 :mime-version:content-transfer-encoding; bh=fWdpO4GnBs7BEt8G3PHlb+jDJVr2O1LVzT1H9YOtCB0=; b=l/N1voluvfY5KulvQYX4NBS5Fnr1UcFA79PNCheJwzmUcMrzwT26S1XhVzKXRUi3EC EHKNzGeVAjmY2YVIZkHrOmk+nJNLKWfor/ZHgNIR946wbXmmx2fJqry8UpVhO9qPTb3h qRcDdYLrm6vJQDprbd7wwWa7pIGTju7JSxcYykjMPGA+eDN9PJI5wa2DvgaiGzlIB89e a7icQ64ksBpUPoZd4WzT5rS7zcaFu6O97cEafVU/2sR1/PPzuvKnBNGfLUgdennMAI30 NbnE809GtF8GD4qtnPyDBfFr60ky0Q+Q5fQrE8OrK8H2e5G782iIzfrpV35/zz6QI761 Nsjw== 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:mime-version:content-transfer-encoding; bh=fWdpO4GnBs7BEt8G3PHlb+jDJVr2O1LVzT1H9YOtCB0=; b=BYkjHFtz+UX5K2QN3PAgnlsHbHC1KGDBKrwjClxIw9pox0m2deIZouI2muPyFm6uwQ HSVqHLc2i9wY6+L2IvFrKn5x818Yjkocokc0raldIhjQztZT+z9BZACaCRaWGQWc/KYs XtScM1ozt2c3aQyo+hlLQCkEzAc+gjwcw8zyd4WzFJ/3MZG7Hsf+tGjBZKq3TyWk+fxL 8IajiM7pw99zfRbpF+MOx02zuxjhh6Gnl2iLb2QcmcRmABpLCwtzv0Wt3Z1rG+9FGLA1 kdo256AU9GsCHdiEysvwfMPxHFVkYqokA4wnjmw4CBTcYzZ4ChVWKftPHj+9K/4CWD/b 02ag== X-Gm-Message-State: AOAM532IHIPsPtP7I+tCxnEtfLxdVna6K1NS7kShemC1fYOhyLnpVyI7 LCIeZWwV0gvb52oy8ZKVcSdmi5/1EMQ= X-Google-Smtp-Source: ABdhPJwjKmxIjrokXff6nUkVfnswmEOAIDkK+2CuPK482Wjo/DRn6nylKDQMf++BY0EuGJ68xEeGpg== X-Received: by 2002:a17:906:c259:: with SMTP id bl25mr163087ejb.303.1593128075498; Thu, 25 Jun 2020 16:34:35 -0700 (PDT) Received: from localhost.localdomain ([188.24.137.55]) by smtp.gmail.com with ESMTPSA id u2sm13699184edq.29.2020.06.25.16.34.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jun 2020 16:34:35 -0700 (PDT) From: Cristian Ciocaltea To: Rob Herring , =?utf-8?q?Andreas_F=C3=A4rber?= , Manivannan Sadhasivam Subject: [PATCH 09/10] arm: dts: owl-s500-roseapplepi: Add uSD support Date: Fri, 26 Jun 2020 02:34:21 +0300 Message-Id: <521e5024f355c006d7abc8fe30d5cae63a9601f1.1593124368.git.cristian.ciocaltea@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: References: MIME-Version: 1.0 X-Spam-Note: CRM114 invocation failed X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:244 listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [cristian.ciocaltea[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 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 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Add uSD support for RoseapplePi SBC using a fixed regulator as a temporary solution until PMIC support becomes available. Signed-off-by: Cristian Ciocaltea --- arch/arm/boot/dts/owl-s500-roseapplepi.dts | 50 ++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/arch/arm/boot/dts/owl-s500-roseapplepi.dts b/arch/arm/boot/dts/owl-s500-roseapplepi.dts index 800edf5d2d12..0a916b6c83a8 100644 --- a/arch/arm/boot/dts/owl-s500-roseapplepi.dts +++ b/arch/arm/boot/dts/owl-s500-roseapplepi.dts @@ -14,6 +14,7 @@ / { model = "Roseapple Pi"; aliases { + mmc0 = &mmc0; serial2 = &uart2; }; @@ -25,6 +26,55 @@ memory@0 { device_type = "memory"; reg = <0x0 0x80000000>; /* 2GB */ }; + + /* 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; + }; +}; + +&pinctrl { + mmc0_default: mmc0_default { + pinmux { + groups = "sd0_d0_mfp", "sd0_d1_mfp", "sd0_d2_d3_mfp", + "sd0_cmd_mfp", "sd0_clk_mfp"; + function = "sd0"; + }; + + drv_pinconf { + groups = "sd0_d0_d3_drv", "sd0_cmd_drv", "sd0_clk_drv"; + drive-strength = <8>; + }; + + bias0_pinconf { + pins = "sd0_d0", "sd0_d1", "sd0_d2", + "sd0_d3", "sd0_cmd"; + bias-pull-up; + }; + + bias1_pinconf { + pins = "sd0_clk"; + bias-pull-down; + }; + }; +}; + +/* uSD */ +&mmc0 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&mmc0_default>; + no-sdio; + no-mmc; + no-1-8-v; + cd-gpios = <&pinctrl 117 GPIO_ACTIVE_LOW>; + bus-width = <4>; + vmmc-supply = <&sd_vcc>; + vqmmc-supply = <&sd_vcc>; }; &twd_timer {