Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1483301rda; Mon, 23 Oct 2023 14:08:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEEHzVz/8ll+m1e4Cx0j0FwA3iYOwnufdrgWxzxBFBueNovNxUCrZoOE4g6kjPfSUL1v3vC X-Received: by 2002:a17:902:ce8d:b0:1ca:c490:8539 with SMTP id f13-20020a170902ce8d00b001cac4908539mr10095184plg.18.1698095336314; Mon, 23 Oct 2023 14:08:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698095336; cv=none; d=google.com; s=arc-20160816; b=OrEAiy0q5aWUV9cLwXYEeAnIZ16HjgO/LRChn91t2jAuAyCHAl+4yooJ3THjIFR+xu ix8iugcobeP9muJsUPO3tfNL/hLKMhExxBQfTg2kGAhZJvFQlA/lmtrMm9mnYLayv4Wi 1AQu+eECaSDP1hbgSwZQiSRsaxa2Lx4NtOulbyYQDn2Uyq9Ub2wxaMTX29ue5MjBAKA/ zYLbuh9iCNBE054Gx4OabSboD9E8melxxkq3GoyFuxuLlYE5sg8K26j8oOsl44/4Mn5p +zQ1Vl9NL5bn4OMhVp9M+7d4Zg0KomP/Y/GmIVwjUA1YZqlRzLbL1SNcdk8w2Ib/PZBS sf4Q== 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=tUpi1J3fN4JqSrco7+UT3n2aUrGMXkR0t1IYBLnWJagHPikjgsOtmw2DSNLobHmvKx nnGE65b9F2NmhAt3VKBlaxZlUIQFSeN8oMRMbD26zQjj5WmRzMeIMkKfVeM5bb3HRfVB sx+Vyssu0fU/BK3CuXkBnmFQ32w/882+0ZpjEZint69CjkqYumCl0Ks+GTMgS4hr6z3D 3Wj8viB4N8z6f4FhKJE/gAAOjr783DLQHXVw/Mh8pkOoBTGDBGR31wiI/iSKSIOeojrp ElMJBGEUt7rGRcXE3Rw0skgi6sFFv0zy3ValVB2Ij9bh9v+JDKrvtIDYsNVKGbp6HHZI FvEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=3OSmfjho; 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 p8-20020a170902bd0800b001c33d339754si7036019pls.136.2023.10.23.14.08.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 14:08:56 -0700 (PDT) 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=3OSmfjho; 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 3403380557F8; Mon, 23 Oct 2023 14:08:52 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231682AbjJWVHw (ORCPT + 99 others); Mon, 23 Oct 2023 17:07:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231459AbjJWVHe (ORCPT ); Mon, 23 Oct 2023 17:07:34 -0400 Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 356BE10F1 for ; Mon, 23 Oct 2023 14:07:21 -0700 (PDT) Received: by mail-pf1-x435.google.com with SMTP id d2e1a72fcca58-6b36e1fcea0so2895277b3a.1 for ; Mon, 23 Oct 2023 14:07:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1698095240; x=1698700040; 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=3OSmfjhoDv6l5PJ9uzJle5MNSJ9q++gY6CMzb1Pc5bcb0E7FUY3gtn6VfcCycQ8ilO Jj4h/uWUdHJLQOab7nnJppZQMkpjx9mYtMjgM0hwaVMv+N/SUdm45jDtz2I0tLLBbR6U 62G964kdgHHDpUAmWr29ctgjn6PoPW9MOHLjtMPnFbLVn1Z0C12wFhsD8endEDQulg/J uiSS9TfJ51+Gv0QF/dSyqVtHThjSPmEX0S62dBUTko1WD/UA4UtBiHwPGLnumYlKmO6j C1o2+rMSpVEmnI/wpu8RrmkvGhL60SjWesOWFPyU5xddnq3peu1WYGU0hO714Ao7MT3Z t6eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698095240; x=1698700040; 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=W5Ohxr/Dw/QdC053ckUglfhCGTOMA5QM7ILyS/tMQ53PrjesXWHB3rTIu3ZTDl2NHh HBr+AzdHcHk13G0foQVKn0mauYG+LOMqipBgHHTc/+iXRfOiIDO8IsBgIPK0nQPc/3Dp +PTrXlAjAHBZoLFmXGonZpdqO4tVt7RtuxwoorC+HlNs1xUVJcswWpfzwAmIpXboHYII emoFg8BlAOn9CCtEyD/PBY7ucIT33uiHQiv7clk3Cloh6VgD75B1sTplEvmEHah1eD8K 0Lox+3SooZ8LL5OSkgFKJaBgMTfk6i3wbZpZfeRolMUPHdYpCcGBbb7GTCHaKNC7Iq6t uujg== X-Gm-Message-State: AOJu0YxuFSYYuQ6xPxzkntDLbEWu51GMGu+XHfNvO0DVNt2/M0pKTjGi bekrTkeo1BhJ947GicXPCGffeQ== X-Received: by 2002:a05:6a00:1896:b0:6be:2bfa:6290 with SMTP id x22-20020a056a00189600b006be2bfa6290mr9584374pfh.8.1698095240362; Mon, 23 Oct 2023 14:07:20 -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.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 14:07:20 -0700 (PDT) From: Drew Fustini Date: Mon, 23 Oct 2023 14:07:08 -0700 Subject: [PATCH v3 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: <20231023-th1520-mmc-v3-7-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=1102; i=dfustini@baylibre.com; s=20230430; h=from:subject:message-id; bh=vZkA/Rp2zWEJvsAGA/badfpHmHgx6/3DqqLzYe2IxQc=; b=ax5AGQOb4EokTCr2I432j5nbW8QaPOXuJavEGggSs1ADU93cWqll3c1fgKxLtJr4V7cVFFlVf 3vhc56vd56WA2rIDPUGnxPWzgbBzvgjFKNJQh0b6hnAKjzBdq1stbeQ 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 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]); Mon, 23 Oct 2023 14:08:52 -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 --- .../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"; +}; -- 2.34.1