Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp817324rdb; Wed, 6 Dec 2023 00:10:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IGq9nynutp8Bvsk0O7j3AvBSeZqTUxKMwtRroTBBEzJCgtUhNe4ScbrC0XxFdM7XWbeU8xo X-Received: by 2002:a17:90a:198e:b0:286:6cc0:b90c with SMTP id 14-20020a17090a198e00b002866cc0b90cmr228778pji.67.1701850212664; Wed, 06 Dec 2023 00:10:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701850212; cv=none; d=google.com; s=arc-20160816; b=aVlrokSQ2WRpk7NEx3JHl93m3KH3yJRxnZSP+K6FOcXSspvZwG8oYxisoThSE38pVe IlZDU3IEfPEcLNILVL6ap1HqTXhU6eU09cFlULW0u2qRKwmoaKrcvdCx1splG4lwj8HD EkecUkG3SxY9KCUHzK6hPJMB4zivKFIWkwzTSOmThhFuziFROcxUqYuo7x9UtiP1MCtj 7BZCOUg5J4G6cF/i+VwCltjhVOPATATY9BXs9CqU94NKVExdqc5vTmNBXiJiWaPVo9wW VjoCr7+U6Crn3lbKG3QOyXxJTt0iJEj/SL8uPbL70wUKO+Z/mEZbWfd+FJdu8L3Cdz7K 6f5A== 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=1pIpUFLzpCT8QDWNeKsRiOFIfK00T0l+KbsCecbFYJw=; fh=f/GFMFDCP1LtY5RyflnsOStyQqzzlZL8eT1hdCDMPzM=; b=w2xUFmlsXp0b+Ftbvog599duEX8gxG05QXvH7bp6QFqD57tZol68Zequ/3lDmiHL6T Nk8WlS2dPFQB6xR1jQZOaAwbhxR1jSynX/oM4ueA3WXRSgGmwG4RiiRli4GtPhm4G7lt uKgQBbdF3QZwU/+sUKu/jeNucOeUIPV+QiyKFh+7OFsZwK/4fttU68R0Qc1bFi7VaK+y q46DsyHuCPVgU0mTlTcK3YtZHf2xStwja23jlbvD7tAqQTZFsqePjvrMehdU/GaRFkJ+ RjYCg1mCIo60bQZYjwiUKGhNy8GeMjeMgTIKe+a8Lt6iYQhnplwMp/HXb1D3+ctl4ysa MBtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=AlH7iRxr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id ie2-20020a17090b400200b002886d6c7ea2si641580pjb.177.2023.12.06.00.10.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 00:10:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=AlH7iRxr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id C0FFE80505EA; Wed, 6 Dec 2023 00:10:07 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377101AbjLFIJw (ORCPT + 99 others); Wed, 6 Dec 2023 03:09:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377031AbjLFIJo (ORCPT ); Wed, 6 Dec 2023 03:09:44 -0500 Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA440D41 for ; Wed, 6 Dec 2023 00:09:50 -0800 (PST) Received: by mail-pg1-x530.google.com with SMTP id 41be03b00d2f7-5c66418decaso1760348a12.3 for ; Wed, 06 Dec 2023 00:09:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1701850190; x=1702454990; 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=1pIpUFLzpCT8QDWNeKsRiOFIfK00T0l+KbsCecbFYJw=; b=AlH7iRxrqh87YYDZtxg4cll3+Kf/V1zvRRRIStM3Ih/d9Va//p1QVVdjVTtuTD1h96 Wx6VYSqrPa1F7Bt+A6S/7kGffzO83ZQX6DAr5dMbjT5IjRQOc+jld8VMHcpj9/nt2am8 R0DpVdr2zMRfa8irprxHpoEaz9vHLVLw5gcZAailcNze1Nxze0nG2yUB4h53XDs8rBT0 Ycy8tEE8hjR58QxI5vXmMxDs/KQTSx7d3p4j3gObrX26EBcCpEH8Vy5KGPiFUXBuN4gf fRMpLrVB9kGMHTxjqnuYhsXDG6C9P0Zg4KSBtZG6rRVS17EJN1InrQcbbtFdOhqPy6AM D59A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701850190; x=1702454990; 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=1pIpUFLzpCT8QDWNeKsRiOFIfK00T0l+KbsCecbFYJw=; b=D2+nC2kcjiAqHbXun267KZExuwU1PY+GK8psW+EjLHK07FCAo9jQQnMgEOAnCOquvs Tw3TN/ZyVl8Tj25nsWowHmb8z5raRqE2OyBGapH7/7roHy5/lrC/b85B1FKwQ332pEsb 5HTNXlwgmcMEwXMNTOWSFu3P2yUKTP1PtJm3eRaEzLI1w0GsZmenWktEXTuQqDqo0+t2 8tjwC0HW82rEmd2BpgrMLi/S1gvnxzKwMFNb+g3HTcYw3ZiRaLFSl69yde3aMh6R9K1f pq/J4Yj6JMQQg/Wcn5NEyhxVfl7pKXiqW7Lfk3N+w1XtNLJ5+R8FD3YzMKynqCQl+xSA 015A== X-Gm-Message-State: AOJu0Ywmlr9zvPq6m80dIQfM9TXNHUkI/nb7lLYbPgDLFXc2qBCpvVDZ 4yxHEyYPzh1s7E/jr0YbChXg4g== X-Received: by 2002:a05:6a20:a296:b0:18b:556b:6d54 with SMTP id a22-20020a056a20a29600b0018b556b6d54mr173291pzl.55.1701850190073; Wed, 06 Dec 2023 00:09:50 -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.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 00:09:49 -0800 (PST) From: Drew Fustini Date: Wed, 06 Dec 2023 00:09:24 -0800 Subject: [PATCH v8 4/4] 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: <20231206-th1520_mmc_dts-v8-4-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 , Palmer Dabbelt , Albert Ou , Jisheng Zhang , Guo Ren , Fu Wei , Conor Dooley , Rob Herring , Krzysztof Kozlowski Cc: Jason Kridner , Robert Nelson , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Drew Fustini X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1701850181; l=1125; i=dfustini@baylibre.com; s=20230430; h=from:subject:message-id; bh=yYq9cxJ0lp7+Eh78pcwxzBZNnaFwpVwT9d+26rl94NA=; b=jb8cqdanu6l93Jt+/zm1d32I4d8zOII7x4Qcm78W4yozsuLULYbPulbeM3HeDuy8xujWKAlu1 +CIVjtZVPG4DWogtFtk7DWr68Pb8l0gdFp+jKqI0Ni+kiynhHX+9F9u 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 fry.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 (fry.vger.email [0.0.0.0]); Wed, 06 Dec 2023 00:10:08 -0800 (PST) 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 --- .../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..1365d3a512a3 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"; }; + +&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"; +}; -- 2.34.1