From patchwork Tue Dec 29 21:17:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Ciocaltea X-Patchwork-Id: 11992641 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7A37BC433DB for ; Tue, 29 Dec 2020 21:21:21 +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 3AB2421D1B for ; Tue, 29 Dec 2020 21:21:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3AB2421D1B 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+linux-arm-kernel=archiver.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=iOh08SCPVpPjjB6U6FiGYxKpNg1C/rp7t6h5vVDDMWc=; b=pVsbxLfhuulwsvQkVVtHWD5Aa /Fu5VozfQYFDIsSPj+6NGx7L57mJbsbcicTT7grfyouWLmGyA1TaSBvDtitOUG6NYom9VGSZSbQ60 BphSjMNWlHEwaVmoBlyYG19N4Hhj+XoFewszWigLgix1mk7E8RfrMqOdrrp+mxb9sZ6hE+gl81mGJ S5ONpQTi6poO5uUwqy1SVAGNln/TWaTTpQXz09KExLPM8egO2l005iOr92GV0ZB/NKbQlTcM+KBIA EL8j1iS9nDl9cpjwR5Q04xsNyrzPLhIUFqmcS4+OrLMgQrcPZf71hBiSexoRRvgOxBmAec0ETECoT 3NGF2wIrg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kuMOn-0000kK-5J; Tue, 29 Dec 2020 21:19:21 +0000 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kuMNI-0000Bk-Os; Tue, 29 Dec 2020 21:17:49 +0000 Received: by mail-ed1-x534.google.com with SMTP id r5so13698623eda.12; Tue, 29 Dec 2020 13:17:48 -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=CykdsuJQmQKkcyjb49a1JcXvtyqlA5qLyewWUhGJatc=; b=Ohl4jfx2A5dpZwbMxVpRgu8m7894QhOi/n6CTAgjMm6OTHnOgXWJUkkiJuytlEAGyH Dgd/k1N/j3eKtB0tTFNZTXE+LF5KheppyzS+EjImz2YQpBNCGxxdT3Mn+Ucp0FmGOXPX 9oNE4hp5d9rXkbevcaUClW93uVwcgSrOdoZxuAfwRVoybVpIdZM8VXvWQzcnEngWDmYV RtWdvHBfDt6T4MeOwm5jW2r5Wrnd/073S8Cbu20v7VcHI6qj371M09QsAxBDyGDR0pnC CLDNJDnuoHUAFbAC3eAL3JnvKvLQmKmbcenjXdslGA+UX6yazCo+lTnM83b45MTR/js/ 02ng== 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=CykdsuJQmQKkcyjb49a1JcXvtyqlA5qLyewWUhGJatc=; b=Fjo9Sd5u/4eT5a4ZiQmjDS8KBSWHxIAMLpM6+L0Kfh7ffOCOacXGMwyswJ/MITED27 /wS73zkbLx5/ya9El07mySnA40ojiZ7bYfzyHZ+B4GGpGwswgA8VlGtIJP7R1idIWiEj EZ4OqOf+A2JccP0sGxvxfH8GT+Uli3c5j+Hk65Ud7QJ8d1iLzY1pDToQQ81hABzftELx GJ/mDmR74k2+dWAe6Lug8H+A2tdqUwQrEVxoKRXGP4br6frRbnBBOBQQVhg+BVHtWvwE TtOW0t1h9ONnCktyONVpRONUSI26qr85Yfq0lyuvE3DsWdBarcQk3iTs3f0IgU4rlEmc /3Og== X-Gm-Message-State: AOAM531BZ+5sab0gk690Wh7VZyG/PUwZWKNHmrVjGhpDMn7pQBnamwrK SQMZLShCFeDKBgLMf6PToT0= X-Google-Smtp-Source: ABdhPJyOP1XT6qZjOJMPpM7fvNEOZHLtUYO59wQfCu/v917GtH9SA9vStTFc+4L6epFMk4FSjA0zQQ== X-Received: by 2002:aa7:c886:: with SMTP id p6mr48059849eds.207.1609276667450; Tue, 29 Dec 2020 13:17:47 -0800 (PST) Received: from localhost.localdomain ([188.24.159.61]) by smtp.gmail.com with ESMTPSA id u9sm37354553edd.54.2020.12.29.13.17.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Dec 2020 13:17:46 -0800 (PST) From: Cristian Ciocaltea To: Rob Herring , =?utf-8?q?Andreas_F=C3=A4rber?= , Manivannan Sadhasivam Subject: [PATCH v3 11/13] arm: dts: owl-s500-roseapplepi: Add uSD support Date: Tue, 29 Dec 2020 23:17:26 +0200 Message-Id: <47ee9695e89198ec2fbc4ab6188f1d0ad0424b2f.1609263738.git.cristian.ciocaltea@gmail.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201229_161748_863259_2B552EDA X-CRM114-Status: GOOD ( 13.53 ) 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+linux-arm-kernel=archiver.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 Reviewed-by: Manivannan Sadhasivam --- Changes in v3: - None 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 {