From nobody Tue Dec 16 09:03:03 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 04D76C10F04 for ; Wed, 6 Dec 2023 08:09:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376962AbjLFIJl (ORCPT ); Wed, 6 Dec 2023 03:09:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376876AbjLFIJj (ORCPT ); Wed, 6 Dec 2023 03:09:39 -0500 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC9BF1A4 for ; Wed, 6 Dec 2023 00:09:45 -0800 (PST) Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-1d053c45897so46860085ad.2 for ; Wed, 06 Dec 2023 00:09:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1701850185; x=1702454985; 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=zUhuNFsiAvrHYnZLi2Em140Y4QPJessaIPRDZmEdsMw=; b=Io9eTDwxeQPqsLt96Rz6xCqdjG870CiP4zW502sefFMqFwzjoFSGXrGFUiV3w8jzoC bPiNPWwJGuJPV5rwblnY/6CiQour5bQGbZrXJ8eOFbRJucpb26xyUfpGqaPITFQ4OAh6 i1BrpgP55mDz8OpsOlXyM+fKe4BXzukRC18FKWPPuRFsMyqcCMG67FWAi+CE8nY9xosg oAe49GChMVc9tt5H6xyjBgaMu4KSM1s7xmLtZRhTtK4s+QB8v0Bhdu/9gWvbNq7wMuWm 7VEVenFSKDLZn2snvgdTmYA9co2UUXpP+tfINSm8oDJV0lErH/L5bcg2HIMZ9ha66VAs 6eww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701850185; x=1702454985; 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=zUhuNFsiAvrHYnZLi2Em140Y4QPJessaIPRDZmEdsMw=; b=gUPBK+2OvgVXXPnzIYNXz5x2QtnfMKLm9O0UVGEzHc8fKdrioLlGxFElNNpTxkLBke I68Kd5z9Z1yaVOVW+Mb3+z4Bo6bHTscNOVgPGm1vNxHonnW3REGT8WcSCafvxaktMjSZ 6JbE/3Mu7QLvxemT3NfmBOI7RvgeUjDpXn2mjKKGVo4ytYSW1R9RX3oRfUyObgLN5XNk 5Z6M74kHO6jwRbJQrWM3Caxwvp6b3Szdk6AW7bFe6TfV2cLOXfYdIfUIdUveSK/EP3aq JOYPrWIgFzgNAyg+ZduwUxVwNcwCHmypZSthzo8CTqksYPvtPnkkvbasaJy4LvKnL+DC cJtQ== X-Gm-Message-State: AOJu0YzBg1V938ukSZDRtGbr9K6g2nNIlP/qYd3iip3ctxm7ib7jW6Fd i9H9t59SORs5FXIv+l8H4TDayg== X-Google-Smtp-Source: AGHT+IH3gRYGjosEd0BiJj75NNhlV088XtZ8mMy8bZQeahdEBG8P85BdfI6y2nZrTFPSVoonaAxNwA== X-Received: by 2002:a17:902:b08e:b0:1d0:cd9e:424b with SMTP id p14-20020a170902b08e00b001d0cd9e424bmr475933plr.43.1701850185075; Wed, 06 Dec 2023 00:09:45 -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.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 00:09:44 -0800 (PST) From: Drew Fustini Date: Wed, 06 Dec 2023 00:09:21 -0800 Subject: [PATCH v8 1/4] riscv: defconfig: Enable mmc and dma drivers for T-Head TH1520 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20231206-th1520_mmc_dts-v8-1-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=951; i=dfustini@baylibre.com; s=20230430; h=from:subject:message-id; bh=4RIHUzQaxou3jWGQo/iOBjqUj+fsmX35ctdJCieIZQA=; b=MY1Zn/vpteELgknAAqVIXREnspLxXc/K9fvkAmxIH0O5NBcwu6+SJNZDx/iNZIPHhcMKHzFZn HlK6cjYNyhFADzUsGzTvSSr8g8A+4qXhyxs+w65zE8Zyoc9DoL/xiiI X-Developer-Key: i=dfustini@baylibre.com; a=ed25519; pk=p3GKE9XFmjhwAayAHG4U108yag7V8xQVd4zJLdW0g7g= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Enable the mmc controller driver and dma controller driver needed for T-Head TH1520 based boards, like the LicheePi 4A and BeagleV-Ahead, to boot from eMMC storage. Reviewed-by: Guo Ren Signed-off-by: Drew Fustini Reviewed-by: Emil Renner Berthing Reviewed-by: Jisheng Zhang --- arch/riscv/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/riscv/configs/defconfig b/arch/riscv/configs/defconfig index 905881282a7c..e635dc9d1997 100644 --- a/arch/riscv/configs/defconfig +++ b/arch/riscv/configs/defconfig @@ -214,6 +214,7 @@ CONFIG_MMC=3Dy CONFIG_MMC_SDHCI=3Dy CONFIG_MMC_SDHCI_PLTFM=3Dy CONFIG_MMC_SDHCI_CADENCE=3Dy +CONFIG_MMC_SDHCI_OF_DWCMSHC=3Dy CONFIG_MMC_SPI=3Dy CONFIG_MMC_DW=3Dy CONFIG_MMC_DW_STARFIVE=3Dy @@ -223,6 +224,7 @@ CONFIG_RTC_CLASS=3Dy CONFIG_RTC_DRV_SUN6I=3Dy CONFIG_DMADEVICES=3Dy CONFIG_DMA_SUN6I=3Dm +CONFIG_DW_AXI_DMAC=3Dy CONFIG_RZ_DMAC=3Dy CONFIG_VIRTIO_PCI=3Dy CONFIG_VIRTIO_BALLOON=3Dy --=20 2.34.1 From nobody Tue Dec 16 09:03:03 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 155FDC4167B for ; Wed, 6 Dec 2023 08:09:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377063AbjLFIJr (ORCPT ); Wed, 6 Dec 2023 03:09:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376928AbjLFIJk (ORCPT ); Wed, 6 Dec 2023 03:09:40 -0500 Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3898E1BD for ; Wed, 6 Dec 2023 00:09:47 -0800 (PST) Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-1d048d38881so31431045ad.2 for ; Wed, 06 Dec 2023 00:09:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1701850186; x=1702454986; 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=B7G3OQPwJDFWry8x0QoTwA6RQDLqZhXzSJItslkCCzc=; b=rHlqdmRcSVxfVggjeL6peeF5BQ42oaci5R5+lmlfBZt2HYmrjfX47v0oOVs4lKtsRj 6HVEnN/sfmkrNo6D3Xq6gjj9uZfWjTqd89T5dqmPJtKN5tYuai3De6eUl53kYXNB07Sp UYo3fLuOZqSyqGZNBTJ6whZsnyzGXLevy0hwINRffyvsdoNjc87H3TglPQSBOBn+kzRb j2c4D0MAGCqLo9szd4e0OODhSn3h6FBln9F7doqzJ2U9vlcxqvxhU0FNhCT9ZcVkTE5L h53+HKTbGo1e1HCb+50T2o/ZR57dRVfs3U0TlY1F4Siaf+h/BEvWLRv5RBt/qhU7+KMa IrGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701850186; x=1702454986; 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=B7G3OQPwJDFWry8x0QoTwA6RQDLqZhXzSJItslkCCzc=; b=CoQ6cRyteTVhfWRxpPDw4lnrS/bxC1n979l7+m+gjebdJddd44luZxC21zpiDAEI5r Oo94aHs+yuqRqJF612SRV/hl5xt368rVQrZqNXTIt2Xvt+4xS4aFyfTPUUzgXT4zzFuC 0xDiFDnDE/0NbImebLsX7uzi/4Wq88acSIIiP7dgYE+t3ikKMgyCcxMElKq3E7POHxja u57jgUs0BlJ5OKxwieJ3d4Srj5gaKJUkrR25bSpUwbPmMUxlR/abqjx+oAiE/x9Gk88w 0lxujjtTLnhJcrgoXMPNqOdb6RTIaqGDm59Zj03oh7yGL/6RjaKX3beGvbWJFVSQfnNe 8+LA== X-Gm-Message-State: AOJu0YxJ0n/hmIHF4xYLOEaYXt37yZO4mtTDgRWLmlMf9K9Z2YDGMKtq ivk0RLIzmVnva76zDrgXmLDyKw== X-Google-Smtp-Source: AGHT+IGNzyBdiIZfQ4DF4XuOmGyKRZni2mP3PRV/P2h5TceAkWm7j9RgEST9AXGECkznBpWFXNgC3g== X-Received: by 2002:a17:902:d4ca:b0:1d0:92a0:492a with SMTP id o10-20020a170902d4ca00b001d092a0492amr315004plg.85.1701850186736; Wed, 06 Dec 2023 00:09:46 -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.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 00:09:46 -0800 (PST) From: Drew Fustini Date: Wed, 06 Dec 2023 00:09:22 -0800 Subject: [PATCH v8 2/4] riscv: dts: thead: Add TH1520 mmc controllers and sdhci clock MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20231206-th1520_mmc_dts-v8-2-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=2206; i=dfustini@baylibre.com; s=20230430; h=from:subject:message-id; bh=WX/M7HdAU0IZKfaH27b7K6yGIPbBsFWLjtWUShpbf98=; b=mJSGrl+9jRd9jMRsr/5TkqPWw2MdzW4BN4WPzOcL1xcccZm3RhHte5T6gK5aHQvgLcgqwjv/d YG1vZhx3H+lAtaW1goqwPpaUUEAu6PXgQ4dQSHJZEGqF4PbwttfdQS7 X-Developer-Key: i=dfustini@baylibre.com; a=ed25519; pk=p3GKE9XFmjhwAayAHG4U108yag7V8xQVd4zJLdW0g7g= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add node for the fixed reference clock used for emmc and sdio nodes. Add emmc node for the 1st dwcmshc instance which is typically connected to an eMMC device. Add sdio0 node for the 2nd dwcmshc instance which is typically connected to microSD slot. Add sdio1 node for the 3rd dwcmshc instance which is typically connected to an SDIO WiFi module. The node names are based on Table 1-2 C910/C906 memory map in the TH1520 System User Manual. Link: https://git.beagleboard.org/beaglev-ahead/beaglev-ahead/-/tree/main/d= ocs Signed-off-by: Drew Fustini Reviewed-by: Emil Renner Berthing Reviewed-by: Guo Ren Reviewed-by: Jisheng Zhang --- arch/riscv/boot/dts/thead/th1520.dtsi | 34 +++++++++++++++++++++++++++++++= +++ 1 file changed, 34 insertions(+) diff --git a/arch/riscv/boot/dts/thead/th1520.dtsi b/arch/riscv/boot/dts/th= ead/th1520.dtsi index ba4d2c673ac8..8b915e206f3a 100644 --- a/arch/riscv/boot/dts/thead/th1520.dtsi +++ b/arch/riscv/boot/dts/thead/th1520.dtsi @@ -146,6 +146,13 @@ uart_sclk: uart-sclk-clock { #clock-cells =3D <0>; }; =20 + sdhci_clk: sdhci-clock { + compatible =3D "fixed-clock"; + clock-frequency =3D <198000000>; + clock-output-names =3D "sdhci_clk"; + #clock-cells =3D <0>; + }; + soc { compatible =3D "simple-bus"; interrupt-parent =3D <&plic>; @@ -304,6 +311,33 @@ dmac0: dma-controller@ffefc00000 { status =3D "disabled"; }; =20 + emmc: mmc@ffe7080000 { + compatible =3D "thead,th1520-dwcmshc"; + reg =3D <0xff 0xe7080000 0x0 0x10000>; + interrupts =3D <62 IRQ_TYPE_LEVEL_HIGH>; + clocks =3D <&sdhci_clk>; + clock-names =3D "core"; + status =3D "disabled"; + }; + + sdio0: mmc@ffe7090000 { + compatible =3D "thead,th1520-dwcmshc"; + reg =3D <0xff 0xe7090000 0x0 0x10000>; + interrupts =3D <64 IRQ_TYPE_LEVEL_HIGH>; + clocks =3D <&sdhci_clk>; + clock-names =3D "core"; + status =3D "disabled"; + }; + + sdio1: mmc@ffe70a0000 { + compatible =3D "thead,th1520-dwcmshc"; + reg =3D <0xff 0xe70a0000 0x0 0x10000>; + interrupts =3D <71 IRQ_TYPE_LEVEL_HIGH>; + clocks =3D <&sdhci_clk>; + clock-names =3D "core"; + status =3D "disabled"; + }; + timer0: timer@ffefc32000 { compatible =3D "snps,dw-apb-timer"; reg =3D <0xff 0xefc32000 0x0 0x14>; --=20 2.34.1 From nobody Tue Dec 16 09:03:03 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4575CC4167B for ; Wed, 6 Dec 2023 08:09:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377093AbjLFIJu (ORCPT ); Wed, 6 Dec 2023 03:09:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376985AbjLFIJm (ORCPT ); Wed, 6 Dec 2023 03:09:42 -0500 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D35AD40 for ; Wed, 6 Dec 2023 00:09:49 -0800 (PST) Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-1d04dba2781so33662685ad.3 for ; Wed, 06 Dec 2023 00:09:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1701850188; x=1702454988; 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=LbmBzwUY0t2HlseySntw7VHVz6E41O0M8Fv31kHjYNc=; b=AmJuUcLkWISoPb9Ub3rTvwrFo06LqJv/fiaG0r5RccEDamWmsaE8rbJMdoqrbvFFNN JqdQADf3Us66K72O8ExEGxW/LO8OjFnAFXFFbOfdCATvgUMEJ2TrQK25UPP8XFfjvOVQ 4I3k3pq6zByftdrUDAkm4RtzZaA1IaPWxkBDS9IlxtF2x7K5hR24F4xmmupD75bReMe1 /T+YYlknsmyedERNkpn0LKnDxdf7VTZtNTjaG3H0ZE5ONnyzsBZXzUjphmSuRofmr/JV QAZm0jaMlvc0RcWXlc8CkXBwnlOKoFj1e/ktSC9350i4m4XcgmCp37L9Uh7GSz8EIvXw tW2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701850188; x=1702454988; 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=LbmBzwUY0t2HlseySntw7VHVz6E41O0M8Fv31kHjYNc=; b=O1mRa1yrBylmFuUi7GWwTwmFupZh2kkcH+08PRvS/GEorOtbpUa3EhGm4AJqDSwaDy a0rXQOIpS+x8TdgVrpA8p2qecILrHSZqot/epbeb3RlppvVPCdeAxVQIU4mCxoSmbeop PLEp0UgBH6jvVgeiA+GUtklxGBbfvf74pGPYYyOZn+W4udIxgBLlIhrShQwKZy8b2sgn bL4ZkMI1pBwMe0L2YH4PajQ7FSjoBVzr8krNvQ26KLiW5IlQhz37WNJuWq8EdWOMn6Vu 5A0ZDeNtA/n+IYMdOuEzuKbLNJvKL/QtqZrj6k/l2QZkHOZfQt93vLk9b1l6gbn3fxcm +YCg== X-Gm-Message-State: AOJu0YzpRFCyhXkM2sYxYuedjINeRUybWXhRCLOq2ujvdx7mfl5aHa7Q Xc1qZoCXxWEMwHHM2hPjTcoTuw== X-Google-Smtp-Source: AGHT+IG+IVNu440mrvRBStKIEhon2ZDqZu9o/4ngZUUVarpEskLvBTGXAYNAbp4uL1sBhOVHpCI+pQ== X-Received: by 2002:a17:903:555:b0:1d0:6ffe:1e85 with SMTP id jo21-20020a170903055500b001d06ffe1e85mr298277plb.104.1701850188352; Wed, 06 Dec 2023 00:09:48 -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.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 00:09:48 -0800 (PST) From: Drew Fustini Date: Wed, 06 Dec 2023 00:09:23 -0800 Subject: [PATCH v8 3/4] riscv: dts: thead: Enable BeagleV Ahead eMMC and microSD MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20231206-th1520_mmc_dts-v8-3-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=1131; i=dfustini@baylibre.com; s=20230430; h=from:subject:message-id; bh=hHAbb4qtRlHdob9grY86/6CrB93uiLQSe6D5Pf4bJ6w=; b=a3RjXkzF5S6RuHE5jVRda77tdw9TE8uVsvTL+GIZkd2GPapFmSTRl6NNWqrVwaVtoNrubatFW CldudAcR7JPAYR6Lyqy0D8NDNk3WsZOzEwuNW+fxyDBbe6NCHsQ8Z6Q X-Developer-Key: i=dfustini@baylibre.com; a=ed25519; pk=p3GKE9XFmjhwAayAHG4U108yag7V8xQVd4zJLdW0g7g= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Reviewed-by: Guo Ren Reviewed-by: Jisheng Zhang --- 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/risc= v/boot/dts/thead/th1520-beaglev-ahead.dts index 70e8042c8304..d9b4de9e4757 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 =3D <62500000>; }; =20 +&sdhci_clk { + clock-frequency =3D <198000000>; +}; + &uart_sclk { clock-frequency =3D <100000000>; }; @@ -56,6 +60,22 @@ &dmac0 { status =3D "okay"; }; =20 +&emmc { + bus-width =3D <8>; + max-frequency =3D <198000000>; + mmc-hs400-1_8v; + non-removable; + no-sdio; + no-sd; + status =3D "okay"; +}; + +&sdio0 { + bus-width =3D <4>; + max-frequency =3D <198000000>; + status =3D "okay"; +}; + &uart0 { status =3D "okay"; }; --=20 2.34.1 From nobody Tue Dec 16 09:03:03 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E2EEEC10F04 for ; Wed, 6 Dec 2023 08:10:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377109AbjLFIJx (ORCPT ); Wed, 6 Dec 2023 03:09:53 -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-Google-Smtp-Source: AGHT+IEldF6NX4UdDsjXNYhsE6P1JkJbILpm78gIrKcVPLzHcmb7S4JEk4u7SzdUVicpnDM1Ua9f6g== 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: quoted-printable 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= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Reviewed-by: Guo Ren Reviewed-by: Jisheng Zhang --- .../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 =3D <62500000>; }; =20 +&sdhci_clk { + clock-frequency =3D <198000000>; +}; + &uart_sclk { clock-frequency =3D <100000000>; }; @@ -36,3 +40,19 @@ &uart_sclk { &dmac0 { status =3D "okay"; }; + +&emmc { + bus-width =3D <8>; + max-frequency =3D <198000000>; + mmc-hs400-1_8v; + non-removable; + no-sdio; + no-sd; + status =3D "okay"; +}; + +&sdio0 { + bus-width =3D <4>; + max-frequency =3D <198000000>; + status =3D "okay"; +}; --=20 2.34.1