Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1483001rda; Mon, 23 Oct 2023 14:08:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHqwN5ciowtyAeOuolInsS/3ct8FXo90QMgFeeAsuit12TKrX3F7S3QlN383p5kV1k5ax0k X-Received: by 2002:a05:6a00:1702:b0:6be:7ee:9914 with SMTP id h2-20020a056a00170200b006be07ee9914mr8332510pfc.11.1698095297584; Mon, 23 Oct 2023 14:08:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698095297; cv=none; d=google.com; s=arc-20160816; b=e+LCecAgwXwlG20BdNZtywXD3ouOHu5PkwkSpsHfhHhYGosLzGsAnwxegAI+03hn3r Z4mCrmOYyS4JbjfwlZUaqVN1MbaxhxPdqAtuN1OVtmDIP2iQKWkywnvzZAkY6CGVvRtW ll6nHKsivWWVwQickayHqY6HuQhhxNO9KH3nvCfwqd8lKGl9yQB31W7J4TkX1ABbYq5x hUwDe9YrG1KcDcKssxZ+gfwC8kVSfkVUtWFPr2MYQOvapwH9P74V0pBHHJc84O8T8hdr dPNi1F+7niMj50DlNJNknmvsjgEzYj4PsIt1Aqb1owraaRNDxRnnPzXLTg31IkeXI6KD W3Tg== 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=bRsbR8cyJBJLQiljQwh8xETHPQGsjMsxLgd7DL4I86c=; fh=vHR8U309XOCZR8G4JUyhb/0ihb0aVduZkDFEUxYc3iE=; b=wM3vU4QHvnUi2qdS8HJCCqO8lWRh8ZUgkHJyGpDsdUyJ4+KMe97T14OjBIV8eMBQaA ibvLTCuTEBFHF6eQI0tptA6M6efFxqT7AyF16elun9SI3x3JVlfXGiv3u1hiB0ZzQwZ8 /cxxs9INvZ5XcKMU1nwl99e5KbofKAvLLtGfyrcfypcp7f6fPBJOqedWc4DSJjF09Vpi UTWTt4sA3Rq1LGLMY1x0LhWisSnDD/0AL/HzNBIyUo8hfsH1Opfn0fpN4lxALCX8/UJF 50y4T41BV3Ql3nDEWmbN9GaWQ9a5kGxhwyVEccwQb7wkOOYgfIcYurLr3QnF4IAGpNbm 0uvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b="iYbHwpW/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id y12-20020a056a00190c00b006b7560385efsi7264320pfi.203.2023.10.23.14.08.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 14:08:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b="iYbHwpW/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id 480918060839; Mon, 23 Oct 2023 14:08:15 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229498AbjJWVHz (ORCPT + 99 others); Mon, 23 Oct 2023 17:07:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231522AbjJWVHd (ORCPT ); Mon, 23 Oct 2023 17:07:33 -0400 Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4F6C10DD for ; Mon, 23 Oct 2023 14:07:18 -0700 (PDT) Received: by mail-pf1-x432.google.com with SMTP id d2e1a72fcca58-6b36e1fcea0so2895243b3a.1 for ; Mon, 23 Oct 2023 14:07:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1698095238; x=1698700038; 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=bRsbR8cyJBJLQiljQwh8xETHPQGsjMsxLgd7DL4I86c=; b=iYbHwpW/IAvXQxL2U9dARVIxbVE/wnIpay9aFisX4+IxW7yRcX2GsTrJrqfR4EfYBe aKhIjSc45VEs/BGX/Q/iVQ9zh/8E+RDnpbMeWCo55/v/+RIJEj06Uqhqb8jjqPniFU4Q qHgFbEMQAzYcQjSr0MKz202Pl/0CDzZNpVZB1Oo3dTjVYKqp0Gg5qn9+M+PR+zfTVa/7 hIftK0/7Yg2cLCbFU8G51usknEQch9fhpdNQu3xYjubQkS28wSjYq73KE+EsdwouSPiK BGyU12LhWrQWUk/JWGfX8hb+IGPKJJ5b29VQD7p8B0+FWhupVhIjQ3FLajOixSKE+9Do j7Pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698095238; x=1698700038; 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=bRsbR8cyJBJLQiljQwh8xETHPQGsjMsxLgd7DL4I86c=; b=rhqdNsyHNITSsLk7pwiPbXZx4fg9TQTVGyJb+6jyHxIPWabc8BBLUBphq9b2jIhq7d 6GUIUpmVmWtGlCjeJVQto07736D/t1hJvbaLc6OCRs62o7b1+ZGIoJbolkKinHOmCxeP ClwymrXi5hIfUs3QD4EQZGgYEfUE+Ybq0dXDAXEvZfzYvI9kGUe97CYQbQlU9IFGEszD dIn4STZmpGYbs9g9eBS7fxXj3cMFmyTO4fRvDPVF/ChjW+cc3tWxMuT9MCmh2Wbo/+Uc npXBjeyxOHLCCloTuimE4giHqjU7PLS7IPPjBJZJDvJQLhs56SDgl3AN3CuAOgXgjK7l KxSw== X-Gm-Message-State: AOJu0YzSN7AWvQK1gQGjBsezGcY9thgRA2mueybyfxWH1y2nSElAtS7J S7iUZ41eJpm3r80X8s+wpQgj4Q== X-Received: by 2002:a05:6a21:7747:b0:17b:1071:36cc with SMTP id bc7-20020a056a21774700b0017b107136ccmr674297pzc.53.1698095238361; Mon, 23 Oct 2023 14:07:18 -0700 (PDT) Received: from [127.0.1.1] ([2601:1c2:1800:f680:b9a0:8714:407c:4146]) by smtp.gmail.com with ESMTPSA id k28-20020aa79d1c000000b006bde2480806sm6573066pfp.47.2023.10.23.14.07.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 14:07:18 -0700 (PDT) From: Drew Fustini Date: Mon, 23 Oct 2023 14:07:07 -0700 Subject: [PATCH v3 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: <20231023-th1520-mmc-v3-6-abc5e7491166@baylibre.com> References: <20231023-th1520-mmc-v3-0-abc5e7491166@baylibre.com> In-Reply-To: <20231023-th1520-mmc-v3-0-abc5e7491166@baylibre.com> To: Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jisheng Zhang , Adrian Hunter , Guo Ren , Fu Wei , Paul Walmsley , Palmer Dabbelt , Albert Ou , Conor Dooley Cc: Robert Nelson , Jason Kridner , Xi Ruoyao , Han Gao , Icenowy Zheng , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Drew Fustini X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1698095224; l=1065; i=dfustini@baylibre.com; s=20230430; h=from:subject:message-id; bh=ivnAVa4ydzuGy1tIrb6+8N9xlA3xHNWc5N0iKEqGJGs=; b=fSe4EYk9ihygXLrUGGGojwk2oDvxB27qsTIAtBQVzytAxI/BhiUgb2rFV4KVB0yQxgBPjOgnG waAl7MfGzViCUge3ZosjMnnvAfeTZKgm5HLiqY35OghByzWM/d0dUys 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 autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Mon, 23 Oct 2023 14:08:15 -0700 (PDT) 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 --- 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..c4e748827889 100644 --- a/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts +++ b/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts @@ -52,6 +52,10 @@ &uart_sclk { clock-frequency = <100000000>; }; +&sdhci_clk { + clock-frequency = <198000000>; +}; + &dmac0 { status = "okay"; }; @@ -59,3 +63,19 @@ &dmac0 { &uart0 { 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"; +}; -- 2.34.1