Message ID | 20231206-th1520_mmc_dts-v8-3-69220e373e8f@baylibre.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp3954602vqy; Wed, 6 Dec 2023 00:10:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IGhtnUqT8jOiDH05VRAv146kt7FmgKhOk7bCuVfFuFtOD1BTYtv/TuB7OtE//JoybxsjudF X-Received: by 2002:a05:6870:969f:b0:1fa:e115:ef6c with SMTP id o31-20020a056870969f00b001fae115ef6cmr613335oaq.38.1701850207918; Wed, 06 Dec 2023 00:10:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701850207; cv=none; d=google.com; s=arc-20160816; b=vXyLQ3J9VAxcKt//eiRijjp0Msde8PxwmnyvQEl5sevNigoq1K2mKkoJVfSFWgpHdy fWvZUx6rU3qXjE+CX/4Xf+WuSSuVLqJJbFb9/rdeAFtjreEW/6RRwYf/4U5jPSLxSNm6 /8mfW+aHE2lWNBbpnGQ8a6jFmAU3zSe1BuB0lBaXyl3aw/FX9XP/xJe7iOLXeXZ99GhJ sVMiWqOuSTDMcWVEDG6vw9uw7dE/zZeclLAuo+Ho5KfQlKA7CLGSynts+PRQM+WcgkWJ ISJCpR1eATWXhFNbkklBcmmgrJ9AvPdi0cyhyJx2LY+MNrY2jp6cUmv9azZVMof/94Ad Kb8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=LbmBzwUY0t2HlseySntw7VHVz6E41O0M8Fv31kHjYNc=; fh=f/GFMFDCP1LtY5RyflnsOStyQqzzlZL8eT1hdCDMPzM=; b=O0fYHCSye7hKtmyEmWrExAjd+DL234z/muV0WACBxslDfGOo4gB9bK1V9iKXg4BFX8 gHybdw5IJy8TEHEaZv5Y7mTAh60r7RF30prVp9OnJKWqRgnNuskntvN8LMLd3FCCJQIX mjNBKWQMF2+VmdqXbGT4XgvT4cz9oqoLIyLHfWDTlFwHswtr2eXLkfiNv0iySKopEaw1 r5kVcepnNATwWPcND/iOMtTWdQCVw/iW1GxmdGRaxaMBEUHEK/vdmXwSTrMv8cZP+Gw3 6UwxqOpNkWA/2B7nP0bhM1xkxfw8eDJsgQa7DXuL7zMlzfW8sb28oVbBbSHGX+7eB6o8 KkZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=AmJuUcLk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id a15-20020a65604f000000b005bd03d2fda6si11232811pgp.350.2023.12.06.00.10.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 00:10:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=AmJuUcLk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 42C4C802370B; Wed, 6 Dec 2023 00:10:05 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377082AbjLFIJt (ORCPT <rfc822;pusanteemu@gmail.com> + 99 others); Wed, 6 Dec 2023 03:09:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376985AbjLFIJm (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 6 Dec 2023 03:09:42 -0500 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D35AD40 for <linux-kernel@vger.kernel.org>; Wed, 6 Dec 2023 00:09:49 -0800 (PST) Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-1d04dba2781so33662685ad.3 for <linux-kernel@vger.kernel.org>; Wed, 06 Dec 2023 00:09:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1701850188; x=1702454988; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=LbmBzwUY0t2HlseySntw7VHVz6E41O0M8Fv31kHjYNc=; b=AmJuUcLkWISoPb9Ub3rTvwrFo06LqJv/fiaG0r5RccEDamWmsaE8rbJMdoqrbvFFNN JqdQADf3Us66K72O8ExEGxW/LO8OjFnAFXFFbOfdCATvgUMEJ2TrQK25UPP8XFfjvOVQ 4I3k3pq6zByftdrUDAkm4RtzZaA1IaPWxkBDS9IlxtF2x7K5hR24F4xmmupD75bReMe1 /T+YYlknsmyedERNkpn0LKnDxdf7VTZtNTjaG3H0ZE5ONnyzsBZXzUjphmSuRofmr/JV QAZm0jaMlvc0RcWXlc8CkXBwnlOKoFj1e/ktSC9350i4m4XcgmCp37L9Uh7GSz8EIvXw tW2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701850188; x=1702454988; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LbmBzwUY0t2HlseySntw7VHVz6E41O0M8Fv31kHjYNc=; b=O1mRa1yrBylmFuUi7GWwTwmFupZh2kkcH+08PRvS/GEorOtbpUa3EhGm4AJqDSwaDy a0rXQOIpS+x8TdgVrpA8p2qecILrHSZqot/epbeb3RlppvVPCdeAxVQIU4mCxoSmbeop PLEp0UgBH6jvVgeiA+GUtklxGBbfvf74pGPYYyOZn+W4udIxgBLlIhrShQwKZy8b2sgn bL4ZkMI1pBwMe0L2YH4PajQ7FSjoBVzr8krNvQ26KLiW5IlQhz37WNJuWq8EdWOMn6Vu 5A0ZDeNtA/n+IYMdOuEzuKbLNJvKL/QtqZrj6k/l2QZkHOZfQt93vLk9b1l6gbn3fxcm +YCg== X-Gm-Message-State: AOJu0YzpRFCyhXkM2sYxYuedjINeRUybWXhRCLOq2ujvdx7mfl5aHa7Q Xc1qZoCXxWEMwHHM2hPjTcoTuw== X-Received: by 2002:a17:903:555:b0:1d0:6ffe:1e85 with SMTP id jo21-20020a170903055500b001d06ffe1e85mr298277plb.104.1701850188352; Wed, 06 Dec 2023 00:09:48 -0800 (PST) Received: from [127.0.1.1] ([2601:1c2:1800:f680:92e9:8fb4:700:680]) by smtp.gmail.com with ESMTPSA id bd11-20020a170902830b00b001d0d312bc2asm1208668plb.193.2023.12.06.00.09.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 00:09:48 -0800 (PST) From: Drew Fustini <dfustini@baylibre.com> Date: Wed, 06 Dec 2023 00:09:23 -0800 Subject: [PATCH v8 3/4] riscv: dts: thead: Enable BeagleV Ahead eMMC and microSD MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20231206-th1520_mmc_dts-v8-3-69220e373e8f@baylibre.com> References: <20231206-th1520_mmc_dts-v8-0-69220e373e8f@baylibre.com> In-Reply-To: <20231206-th1520_mmc_dts-v8-0-69220e373e8f@baylibre.com> To: Paul Walmsley <paul.walmsley@sifive.com>, Palmer Dabbelt <palmer@dabbelt.com>, Albert Ou <aou@eecs.berkeley.edu>, Jisheng Zhang <jszhang@kernel.org>, Guo Ren <guoren@kernel.org>, Fu Wei <wefu@redhat.com>, Conor Dooley <conor@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org> Cc: Jason Kridner <jkridner@beagleboard.org>, Robert Nelson <robertcnelson@beagleboard.org>, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Drew Fustini <dfustini@baylibre.com> X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1701850181; l=1131; i=dfustini@baylibre.com; s=20230430; h=from:subject:message-id; bh=hHAbb4qtRlHdob9grY86/6CrB93uiLQSe6D5Pf4bJ6w=; b=a3RjXkzF5S6RuHE5jVRda77tdw9TE8uVsvTL+GIZkd2GPapFmSTRl6NNWqrVwaVtoNrubatFW CldudAcR7JPAYR6Lyqy0D8NDNk3WsZOzEwuNW+fxyDBbe6NCHsQ8Z6Q X-Developer-Key: i=dfustini@baylibre.com; a=ed25519; pk=p3GKE9XFmjhwAayAHG4U108yag7V8xQVd4zJLdW0g7g= X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 06 Dec 2023 00:10:05 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784519283766597805 X-GMAIL-MSGID: 1784519283766597805 |
Series |
RISC-V: Add MMC support for TH1520 boards
|
|
Commit Message
Drew Fustini
Dec. 6, 2023, 8:09 a.m. UTC
Add emmc node properties for the eMMC device and add sdio0 node
properties for the microSD slot. Set the frequency for the sdhci
reference clock.
Signed-off-by: Drew Fustini <dfustini@baylibre.com>
---
arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
Comments
On Wed, Dec 6, 2023 at 4:09 PM Drew Fustini <dfustini@baylibre.com> wrote: > > Add emmc node properties for the eMMC device and add sdio0 node > properties for the microSD slot. Set the frequency for the sdhci > reference clock. > > Signed-off-by: Drew Fustini <dfustini@baylibre.com> > --- > arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts | 20 ++++++++++++++++++++ > 1 file changed, 20 insertions(+) > > diff --git a/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts b/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts > index 70e8042c8304..d9b4de9e4757 100644 > --- a/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts > +++ b/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts > @@ -48,6 +48,10 @@ &apb_clk { > clock-frequency = <62500000>; > }; > > +&sdhci_clk { > + clock-frequency = <198000000>; > +}; > + > &uart_sclk { > clock-frequency = <100000000>; > }; > @@ -56,6 +60,22 @@ &dmac0 { > status = "okay"; > }; > > +&emmc { > + bus-width = <8>; > + max-frequency = <198000000>; > + mmc-hs400-1_8v; > + non-removable; > + no-sdio; > + no-sd; > + status = "okay"; > +}; > + > +&sdio0 { > + bus-width = <4>; > + max-frequency = <198000000>; > + status = "okay"; > +}; > + > &uart0 { > status = "okay"; > }; > > -- > 2.34.1 > Maybe, we could share some parts with th1520-lichee-module-4a.dtsi. Others, LGTM.| Reviewed-by: Guo Ren <guoren@kernel.org>
diff --git a/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts b/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts index 70e8042c8304..d9b4de9e4757 100644 --- a/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts +++ b/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts @@ -48,6 +48,10 @@ &apb_clk { clock-frequency = <62500000>; }; +&sdhci_clk { + clock-frequency = <198000000>; +}; + &uart_sclk { clock-frequency = <100000000>; }; @@ -56,6 +60,22 @@ &dmac0 { status = "okay"; }; +&emmc { + bus-width = <8>; + max-frequency = <198000000>; + mmc-hs400-1_8v; + non-removable; + no-sdio; + no-sd; + status = "okay"; +}; + +&sdio0 { + bus-width = <4>; + max-frequency = <198000000>; + status = "okay"; +}; + &uart0 { status = "okay"; };