Message ID | 20231114-th1520-mmc-v6-6-3273c661a571@baylibre.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6358:a59:b0:164:83eb:24d7 with SMTP id 25csp2204739rwb; Tue, 14 Nov 2023 13:08:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IH04eNKboa0oPN5j1Q1WTUBNL4sJCKRyVkFGfEaINqvvyMftyzFr3P7GCE31vNfksBfgQVO X-Received: by 2002:a17:902:f688:b0:1c5:d8a3:8789 with SMTP id l8-20020a170902f68800b001c5d8a38789mr3958822plg.4.1699996112633; Tue, 14 Nov 2023 13:08:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699996112; cv=none; d=google.com; s=arc-20160816; b=tqjI43pUW674Bb3uJmSolx326kMTsvU0sFvPXgTEalSTWBCPuC4EmkQOGrZAF/WQI9 t+ZNWblVZ5XscKw+QVfFHsDQb49fD+r2UV5LBfdglWkmfKKUWEe+49I2ASoVr+HABnJ8 gVGTQ8UhWbY14iH9l6jX2gWeD2IFjTGyEkwSrLO5+H2qTDmFFeUwqBu3amujsDTW+t0j 7iLT06xdbgdy03jpQXopV0O1gfZFZtsOWjNlEr1meuJApQSPTL6AZNFDBSlhTZApmk04 nmm0Q1gf+3LvT/rM9kvlsA8djID9Ow0rJhLixE8h++7ryYZSGoLjujM85SVtsy5IFKem gSKg== 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=uSa6NAVY2VMgd1nmwOwphCO64qKVXCiZUmGbVj1XUeM=; fh=me++FBgRmiJKsUIJuboqcm7vPctAvwMCvJeBsSS20lM=; b=gPfwCKc1urdLAwTDQvV1q7zecvpyuXlSvnPRsEnuVhM1FXF7eAupt1HFO1UUmzIswG oGw9cOOMEcToMFXbmO2x8PAPFKIQ44/JiOoHKABdh79/tTP3YWnpGxZsl5WIBeu5tNbU QvMkuTaweB4Yxw00zdSQpDrZvs12I9xbi/WFba2Pg4hxuxTl/JltKRQZPKgjknsu5DYZ qTxAn3490LWBMBm8/qj/LyVcZhbPfXxL4y0//D+nQ+3NPOkDcVkHUniUzDuy/9wiXoj/ yYQLPAePMkiAJ9WOvrU773bzaceJ5K+2zWYusYMqXspHTdrSWiyi9ZeqQedN/E4B1+sh xwlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=jGBEHMjc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id c3-20020a170902d48300b001ca85fddf9esi8756709plg.483.2023.11.14.13.08.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Nov 2023 13:08:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=jGBEHMjc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id D52318116E6B; Tue, 14 Nov 2023 13:08:30 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233992AbjKNVIX (ORCPT <rfc822;lhua1029@gmail.com> + 29 others); Tue, 14 Nov 2023 16:08:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233302AbjKNVIQ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 14 Nov 2023 16:08:16 -0500 Received: from mail-qt1-x833.google.com (mail-qt1-x833.google.com [IPv6:2607:f8b0:4864:20::833]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC05AC4 for <linux-kernel@vger.kernel.org>; Tue, 14 Nov 2023 13:08:13 -0800 (PST) Received: by mail-qt1-x833.google.com with SMTP id d75a77b69052e-41cd97d7272so36683991cf.0 for <linux-kernel@vger.kernel.org>; Tue, 14 Nov 2023 13:08:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1699996093; x=1700600893; 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=uSa6NAVY2VMgd1nmwOwphCO64qKVXCiZUmGbVj1XUeM=; b=jGBEHMjcngPDalZgEFu5dhH6ywSlM3QaUFXKpAzLha69wAP07JF+Pl7BBsdKs67cm6 5H+FN4ZrMMglDLU2wNZzJh/sTa6MRh6p338yl2naww/RhrMuP6s6l97qGT6omah7u+iY qD4UMRPP87UR/S9kO47MqAuBOehFqqVROKuuRQMBGghzDKE3YflSwXaycJwEeBwcOKMh l4tSmc1o0oPg3UT1t93x0rtI1vRlq0Dc64TPo14l0i57xgqH1dvP+Ie+RkInGbXloq9t BLjPqaeehEyhiofL2jvR8lIsSL9upw3+jd8pUQLrZ68NJ1SAzN2lFvkaV1cD3twI1+CX 0f9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699996093; x=1700600893; 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=uSa6NAVY2VMgd1nmwOwphCO64qKVXCiZUmGbVj1XUeM=; b=vyVcaVXPQflFY3i5BWuGL8xnaId9RBhWuUW7aJItNOPu0D0mHhyGHW3MN9o0tjSgMa heH1R2yQdkonxaJmrYEIX3foq6xIybZ+0uvFJ5sUjYyOFlPSLSnczO59rPM63l3jExtT UquaRWQZ9NWMOSdxjZWlKjOjvIE3kpMu6lJ87CNTjLmAFz4KkjPrjYpApDwmADwrHWw1 YLpWpVMVPgxdvpRi7BO87L9DC5NbvVPRZmG4O7QwQxo1x5mjoLPHAlqKg2YUmmXX34Z9 q06aFtMkdWoQf1FlC1petPozh8i2/IWUA+R35PpaMSm7g1cZm9zmxtBE3BdA7udUByDY UuRg== X-Gm-Message-State: AOJu0YyTC2ghVmNFS3iuCGuEaA2i1aeP/3F+p7Nv5O9svojvhhkDfmwD C2YY3G/uerX+IbF0Dorr5jYzSg== X-Received: by 2002:a05:622a:1485:b0:41e:2314:8dde with SMTP id t5-20020a05622a148500b0041e23148ddemr4036430qtx.38.1699996092945; Tue, 14 Nov 2023 13:08:12 -0800 (PST) Received: from [127.0.1.1] ([12.186.190.1]) by smtp.gmail.com with ESMTPSA id x16-20020ac85390000000b004198d026be6sm3027549qtp.35.2023.11.14.13.08.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Nov 2023 13:08:12 -0800 (PST) From: Drew Fustini <dfustini@baylibre.com> Date: Tue, 14 Nov 2023 16:08:00 -0500 Subject: [PATCH v6 6/7] 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: <20231114-th1520-mmc-v6-6-3273c661a571@baylibre.com> References: <20231114-th1520-mmc-v6-0-3273c661a571@baylibre.com> In-Reply-To: <20231114-th1520-mmc-v6-0-3273c661a571@baylibre.com> To: Ulf Hansson <ulf.hansson@linaro.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Jisheng Zhang <jszhang@kernel.org>, Adrian Hunter <adrian.hunter@intel.com>, Paul Walmsley <paul.walmsley@sifive.com>, Palmer Dabbelt <palmer@dabbelt.com>, Albert Ou <aou@eecs.berkeley.edu>, Guo Ren <guoren@kernel.org>, Fu Wei <wefu@redhat.com>, Conor Dooley <conor@kernel.org> Cc: linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Drew Fustini <dfustini@baylibre.com> X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1699996086; l=1108; i=dfustini@baylibre.com; s=20230430; h=from:subject:message-id; bh=4bgo3aK3cuR26cRWBbMVA6MrvhUqOJ8As8gzvmDCzhs=; b=fgvbHypWZrq1O1XBKI1HYkf6KoCvbawChRB0RaWEQlNIV1gRXQoqyG2UpVayFVmHe82+m+chX ekzmV1ENmFyAAA/bGCw4bizdqv2LXaX1OLbo+dKRHX56MNf5j6v5YTY X-Developer-Key: i=dfustini@baylibre.com; a=ed25519; pk=p3GKE9XFmjhwAayAHG4U108yag7V8xQVd4zJLdW0g7g= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Tue, 14 Nov 2023 13:08:30 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782575123989616024 X-GMAIL-MSGID: 1782575123989616024 |
Series |
RISC-V: Add MMC support for TH1520 boards
|
|
Commit Message
Drew Fustini
Nov. 14, 2023, 9:08 p.m. UTC
Add mmc0 properties for the eMMC device and add mmc1 properties for
the microSD slot. Set the frequency for the sdhci 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 Tue, Nov 14, 2023 at 04:08:00PM -0500, Drew Fustini wrote: > +&mmc0 { > + bus-width = <8>; > + max-frequency = <198000000>; > +&mmc1 { > + max-frequency = <198000000>; > + bus-width = <4>; If there's another iteration of this patchset, can you use a consistent ordering for your properties please? Cheers, Conor.
On Tue, Nov 14, 2023 at 09:24:40PM +0000, Conor Dooley wrote: > On Tue, Nov 14, 2023 at 04:08:00PM -0500, Drew Fustini wrote: > > > +&mmc0 { > > + bus-width = <8>; > > + max-frequency = <198000000>; > > > +&mmc1 { > > + max-frequency = <198000000>; > > + bus-width = <4>; > > If there's another iteration of this patchset, can you use a consistent > ordering for your properties please? Bah, I don't know how I missed that. Thanks for spotting that. I'll fix it if there is another rev. I still need to see if Jisheng's is okay with the most recent changes in the driver patch. Drew
diff --git a/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts b/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts index 70e8042c8304..f91d94f95510 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"; }; +&mmc0 { + bus-width = <8>; + max-frequency = <198000000>; + mmc-hs400-1_8v; + non-removable; + no-sdio; + no-sd; + status = "okay"; +}; + +&mmc1 { + max-frequency = <198000000>; + bus-width = <4>; + status = "okay"; +}; + &uart0 { status = "okay"; };