Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp857559pxb; Thu, 19 Nov 2020 15:59:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJzuoJ0EWxEEq9VcxHV1rBcQuNu1UZH4UXcSKTvx/0SjgO4ACMBpLmkCiN3ww4dsgKhkL7xS X-Received: by 2002:aa7:ce82:: with SMTP id y2mr33630113edv.6.1605830385861; Thu, 19 Nov 2020 15:59:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605830385; cv=none; d=google.com; s=arc-20160816; b=ItJpHAWoMTBVvGDSXitFgNkDBXwvsi/CDArlSEuqKew6gFoyRjfoAz2Pdm97H/qoCY ORBEBRy1GQNkUkjDd+aPJ9zLmsPc9xoRI7Cqe0sz/mbUYc8ELf/g7Xx/z+LVSssknbTM GV6guhj00WLmpDfXk31rSuo/tdQ3l64irwaMFn0PttavJ16zAxT+mE3dp+4sr723L5ZV jTDUdSAf1pBVe6nBHqOs5sJO4bmKmzRECKsrEjTGkj15QVWFU8JSeMIO3hSVRTbpFJew 6nTY1BBdB9J0fmLO+ujbJRBmqcHFuqxPH7U20sJVKXdYNydSuuK4/y2maPim8vIqmai+ Js2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=qO93vAGuITSebLhoJ1hpwjQmgCXudOAkh2U6z4dlaEM=; b=N0G62i8edG2GEx6CBG5qx2YldWslviUNxlV51057QmNvB2yNk398fzHwrMTiecDfkH 91YLZuvxdzvrXW8eSVDmCvfw/hBrpX5wt62pEvwVjnaJiuK/Hr2S/TYUH6vNJeyHnW0G dJvm5uLroPW9iN1lD6blMt74hjBouVrR90a9GdaZcuMR4L4o75sSddf4OujL0dBVWD3M nkJf8xhqQmmMd36u7rp9NBIngR/KJHfCzpbDTpPeIiFctKNvkjJSGJ4d39Rg7/e5RlEf hFKdTQ3aWxtYrTiDHDYGJ637f8Va0C6VDpRrSmx+C/+O1QHacb589nMALnh8bFLfw5vz aYCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ok31bZxZ; 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 h7si795693edn.270.2020.11.19.15.59.22; Thu, 19 Nov 2020 15:59:45 -0800 (PST) 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=Ok31bZxZ; 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 S1727356AbgKSX4k (ORCPT + 99 others); Thu, 19 Nov 2020 18:56:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727347AbgKSX4i (ORCPT ); Thu, 19 Nov 2020 18:56:38 -0500 Received: from mail-ej1-x642.google.com (mail-ej1-x642.google.com [IPv6:2a00:1450:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 972D0C0613CF; Thu, 19 Nov 2020 15:56:38 -0800 (PST) Received: by mail-ej1-x642.google.com with SMTP id i19so10384472ejx.9; Thu, 19 Nov 2020 15:56:38 -0800 (PST) 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=qO93vAGuITSebLhoJ1hpwjQmgCXudOAkh2U6z4dlaEM=; b=Ok31bZxZGVHmgQxPtvqLKDgAbESWqR6TkAcjj0CCABPgalzGMuYw1a9AS7ax+5kmak mwY4ri8PmJr7A6gqDrxBJpSdG3uR2YIUq0b4rlXC/6W1LRog803Wi4LlNAsZmxT4zrwd idJyS8jWov8wJat0Vd4rX0qd0Eq4ffm3I9SUvThFFdwMhSf6Cm84o5LU+qW2V7EDZn/+ FGJEBZHCJsU5X6Mcm4kJTUy1cXGaHHmiaQr2wgHToEjB8FTcQ+WD3ptGiddO7XbBXvj5 wYtpfyAmyfLVfjhvF44uKY4a6oaCPEQG74R6Dmmf1eRQMy7jjnQNHQNajc5u6Gz3n8PJ TvtQ== 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=qO93vAGuITSebLhoJ1hpwjQmgCXudOAkh2U6z4dlaEM=; b=N66H3yh+4a5NBDF/7zp66O20qgyyrS1ipd/QECECn7CPLHE/nfC3ZyYd15ooPWO9ad 4wUXFygDpw4J8aM17IQITILv/e+WpA1sCHiSpDV0n3za2stiMSgDSxn7t1V4q8miyGDY E23QOUrKPt4C0j1cZoFs3ZvU2s1iE/n7JZVeY9U+maXFYwAd8iyxJ7YXJBwcoiwBEvbg E/mJXl6+S24QbVT/+N3bKNYlN8h/T7E3sQl2Zjr0eeIhNlJP20gVBPUKIxFn05qThjcM li7X9K8te+vl8A98F5AFcvujLyEn/rVtj1oHhMjo7FmWUubmpAqtJB5yZMOmPAnrfCzp maZg== X-Gm-Message-State: AOAM530Kjs5wCHSTUaaLsbs3c65LRKm8lU5J0cPdlpIz9E9A0fN4Q13q 2W/sP1gw7uCNjN+O5DDcF8bjJF1CfV98NA== X-Received: by 2002:a17:906:f1d8:: with SMTP id gx24mr29842741ejb.73.1605830197323; Thu, 19 Nov 2020 15:56:37 -0800 (PST) Received: from localhost.localdomain ([188.24.159.61]) by smtp.gmail.com with ESMTPSA id i3sm452987ejh.80.2020.11.19.15.56.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Nov 2020 15:56:36 -0800 (PST) From: Cristian Ciocaltea To: Rob Herring , =?UTF-8?q?Andreas=20F=C3=A4rber?= , Manivannan Sadhasivam Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-actions@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 16/18] arm: dts: owl-s500-roseapplepi: Add uSD support Date: Fri, 20 Nov 2020 01:56:10 +0200 Message-Id: X-Mailer: git-send-email 2.29.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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..fe9ae3619422 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_pins: mmc0-pins { + 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_pins>; + 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 { -- 2.29.2