Message ID | 20231101-th1520-mmc-v4-7-86e0216b5994@baylibre.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:8f47:0:b0:403:3b70:6f57 with SMTP id j7csp90623vqu; Wed, 1 Nov 2023 19:50:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEVYlLq8SUZ3hcGewluPjDH/25mNb3OMhByaL4imAL6Dl7vERQt8fvFgjYQi1M0IAbJO9c8 X-Received: by 2002:a17:902:e881:b0:1cc:5549:aab8 with SMTP id w1-20020a170902e88100b001cc5549aab8mr12927181plg.5.1698893442006; Wed, 01 Nov 2023 19:50:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698893441; cv=none; d=google.com; s=arc-20160816; b=NBnNfOerhV9zTpnY2CWFkXxvW+IOgk5W8Of2C6hPyy0/e3iwDnwJp2YtkDyHTR3FZ7 6SQLilx0udusk/VkPfS7Ta9J77JotO5SyonMV24n/DVBfQxS3s9afCygIH/A7IIyUoyH vU+PMi7p4EeXWPb261aTiQv+Cxj6IXxazz6Ak8Kbo7We++INU16ZmzT0W9eM78HzcBcO E+z4l05NiJlNdYNqPOgQeYHLbFLGTG3naZmagK4Inbk1yMv5mOHjKvns97OhWiNE8F4V OG4cshxRmpx0uDO+gU0yF3/Vbi1blv9qyPS5I1rpJNLBMzj+r8P8On0ENqE+fiW+/FrN w4dw== 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=DnDZGk512Fn6FcfRLVRqtgZTjSOOBJwTCzWACAW0uhY=; fh=vHR8U309XOCZR8G4JUyhb/0ihb0aVduZkDFEUxYc3iE=; b=VFbqd0caXUFIYC/yj7sO/i3KiDFxdAEI8zlm9Z1g9kkaW8yvgBD4jYNYM0RknKIMw1 cvtYQJH7QZ2L6wPOd3tFSwuU+NnVG8kGiNLvtMH4koj1MH+/kpjgi6GXda/5/3oEuczH FQMD6FJBnJpM2sSjF8Z6mcvDUBoe9vN4dGfQEXclld2wIQNO5C65YhqUZpYIptsWrGOn nUQxGeE4hCKlOn1sVbXjcLhR3sTFZD1RQkHOayXMf2hKCjq5WO636ABjI3R+KFr2Qks6 5SaTSbSWstzPhrAXf8SM0CRJ+Vke8E2JRWqZ4XSVTWbdAAuGqX203o6TLkm0Sm8WiLdp GCWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=MVBwdtE2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id x6-20020a170902ec8600b001cc76bea519si3179432plg.87.2023.11.01.19.50.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 19:50:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=MVBwdtE2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id F3432801CCAF; Wed, 1 Nov 2023 19:50:38 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344988AbjKBCto (ORCPT <rfc822;heyuhang3455@gmail.com> + 35 others); Wed, 1 Nov 2023 22:49:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235504AbjKBCtm (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 1 Nov 2023 22:49:42 -0400 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC0601A7 for <linux-kernel@vger.kernel.org>; Wed, 1 Nov 2023 19:49:26 -0700 (PDT) Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-1cc30bf9e22so4006845ad.1 for <linux-kernel@vger.kernel.org>; Wed, 01 Nov 2023 19:49:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1698893366; x=1699498166; 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=DnDZGk512Fn6FcfRLVRqtgZTjSOOBJwTCzWACAW0uhY=; b=MVBwdtE22oU/EkqEguSUqZF1KYRN5UxJbzTyRNn8fzuqZvj+MYqAosKsycO5wulOZE h6I8tExe+jaCjNOZykpoHsX6A4CteP5l8eZyCthHlHUeBocT0MJPW6VwE3GjJ2JWU314 aJEwTwonMNzMRoFKmCMSNxn6x1tLVETIpgS4Ck9JghDn7rsdt/uHK1rP4by8mnyav8jy 56VQTADy3D7E93zEaI1E4CuNzXerwVA/xBX7YMLzac6uj4lZupT1vDwH4L2PwsHsHbzX fxzt4+zSlKVsxrIhDOD+yWNUXSr918GfEhBf1IVmOF6JAcmODjag40FlmpuMOvvVoSXZ 3HyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698893366; x=1699498166; 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=DnDZGk512Fn6FcfRLVRqtgZTjSOOBJwTCzWACAW0uhY=; b=NBqtu4yJPPsnzo4Ew1FR/Vtl3sR/hSY9SuuJyX5VhbmdkDbHGlaaEJK6pLRCxd0Osf QoEYkB5ZD5AkkUndQqQuky3RwPuYvia9TD7lPo92W+dRUA5MiwWfurzmI4aTRDABLHLF AaM/TlgIVGOwY3WpZfW2vf5Zomi8b7a9kpjUB6rtRIufgo2nM3zDtL7j27g/MhTukiBt yjn6jd+lPNLHLfhJ/e7Nnuukx4bPbH/VAVfMNRyx/vQTn7SGsBYrggCz55fm+E4Ec1OG PQoRhA214vyzP+2SC7jyjJEdO8db4InRp07kcBK9mUkL8PBlAbYYRSEgV+RIBrI81O3l gNsQ== X-Gm-Message-State: AOJu0YxmtByMxIEZNlBY9ibpEF6mvedMcU9dnkbhPh7Uy6sFsOYhCaTe VY35wbDcOab5y2/YVnFV168Gdw== X-Received: by 2002:a17:902:dac9:b0:1cc:5ce4:f64b with SMTP id q9-20020a170902dac900b001cc5ce4f64bmr11068897plx.8.1698893366171; Wed, 01 Nov 2023 19:49:26 -0700 (PDT) Received: from [127.0.1.1] ([2601:1c2:1800:f680:7e4c:4d4e:6943:bc0f]) by smtp.gmail.com with ESMTPSA id n4-20020a170902e54400b001b850c9d7b3sm1925787plf.249.2023.11.01.19.49.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 19:49:25 -0700 (PDT) From: Drew Fustini <dfustini@baylibre.com> Date: Wed, 01 Nov 2023 19:48:58 -0700 Subject: [PATCH v4 7/7] riscv: dts: thead: Enable LicheePi 4A eMMC and microSD MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20231101-th1520-mmc-v4-7-86e0216b5994@baylibre.com> References: <20231101-th1520-mmc-v4-0-86e0216b5994@baylibre.com> In-Reply-To: <20231101-th1520-mmc-v4-0-86e0216b5994@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>, Guo Ren <guoren@kernel.org>, Fu Wei <wefu@redhat.com>, Paul Walmsley <paul.walmsley@sifive.com>, Palmer Dabbelt <palmer@dabbelt.com>, Albert Ou <aou@eecs.berkeley.edu>, Conor Dooley <conor@kernel.org> Cc: Robert Nelson <robertcnelson@beagleboard.org>, Jason Kridner <jkridner@beagleboard.org>, Xi Ruoyao <xry111@xry111.site>, Han Gao <gaohan@iscas.ac.cn>, Icenowy Zheng <uwu@icenowy.me>, 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=1698893345; l=1102; i=dfustini@baylibre.com; s=20230430; h=from:subject:message-id; bh=vZkA/Rp2zWEJvsAGA/badfpHmHgx6/3DqqLzYe2IxQc=; b=8GSfHaYjbAvdqR5aNak0qxCYTox6ynEJYklYiqEqs75Ahp961sktUsZMwhbfP69H8eDCKd2iX Qb0BX3cam5JBwzRquUhN8ceX4V+t4liKW0/NNfG/NOH4PRVtvHtorW+ 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Wed, 01 Nov 2023 19:50:39 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781418889885920063 X-GMAIL-MSGID: 1781418889885920063 |
Series |
RISC-V: Add MMC support for TH1520 boards
|
|
Commit Message
Drew Fustini
Nov. 2, 2023, 2:48 a.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>
---
.../boot/dts/thead/th1520-lichee-module-4a.dtsi | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/arch/riscv/boot/dts/thead/th1520-lichee-module-4a.dtsi b/arch/riscv/boot/dts/thead/th1520-lichee-module-4a.dtsi index a802ab110429..94f1741435a5 100644 --- a/arch/riscv/boot/dts/thead/th1520-lichee-module-4a.dtsi +++ b/arch/riscv/boot/dts/thead/th1520-lichee-module-4a.dtsi @@ -29,6 +29,10 @@ &apb_clk { clock-frequency = <62500000>; }; +&sdhci_clk { + clock-frequency = <198000000>; +}; + &uart_sclk { clock-frequency = <100000000>; }; @@ -36,3 +40,19 @@ &uart_sclk { &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"; +};