Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1503460rdb; Thu, 7 Dec 2023 00:23:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IE8qa2ciYCBiHQU0kJaGDwI5SnTN98fq0iNGPPE7ao++TuwxY5ksybO87fDULxIoWOitUpS X-Received: by 2002:a05:6a20:7d9f:b0:14c:c393:6af with SMTP id v31-20020a056a207d9f00b0014cc39306afmr1938049pzj.0.1701937433454; Thu, 07 Dec 2023 00:23:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701937433; cv=none; d=google.com; s=arc-20160816; b=hDRCp7xro8fgR+CN+E73j9kE8dh0Xq5GgELH2SVVlSz+skkIY1gE8/qsGRXE4l2XUH OmudvNkDUiu7ElRbiRq5fJmrqgXVl3PyraPTc/wI/KyOr36J/cJ+Wk7CQDSJvqhWCR53 Xhm/RpeY4jgOIogbgHesDrx8RSg4vK5K61W5g239LzkUMRhGaY1XsQdCC2c0Jth8TQIU UZxoF7XI1Ml0UwyrC/H5Zo1+ldJJwMF+pyj33wXpBYEDz9WFndnbiwT+aywMd3iBpnHm nAIQSrbGUeHUybxHumsr0fATPnRyEZYpME+79I1KXU+UIjkTUs3R04NrkfAY/4CykV59 ywmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=4YV4Dg3Cau2Olw12nd5O4JkYU0l7dgNZmpJlm0TaGwM=; fh=r4rx/y3k5j1Bdmyvyq9ayFrZC+r+PoJqtKBJnwK7dBA=; b=F+3Seg1gIOvnCCAln9dYWtfiVi2za5qBiOXIQGfgGtOLQ7QKxHeJTPiC1wUXHANsWa yqkAJ7sV+zE4JEBwg86/8y9W3F4atUWpniX+N0ThNcDdROLe5s24c64xSS2YEQwj5xry cpvRmY3nfkw0MSrxA46t15HM0t/9ni+VxnlYfPi7w/QgCtcWXW4yQP93Z3j7asssNoty WrNd461vklqqeRTdjYl2W/CsBpMYPJ2Y7Zr7ikwSrqbU9ijpAP9tR4RI9QVnKGG4B9dY iDvtUuqI1AUALNeWrA1t7Owhe4qNCp0A6dfpfSfZMKV08ZCVo+tsi1UbMl//refqC4j8 sB5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tyuz9Frz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id nv8-20020a17090b1b4800b00286ba33ec9esi734830pjb.160.2023.12.07.00.23.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 00:23:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tyuz9Frz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id B2F2080EE79F; Thu, 7 Dec 2023 00:23:50 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378112AbjLGIXf (ORCPT + 99 others); Thu, 7 Dec 2023 03:23:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230055AbjLGIXU (ORCPT ); Thu, 7 Dec 2023 03:23:20 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 292F510EC for ; Thu, 7 Dec 2023 00:23:24 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9EA88C433C7; Thu, 7 Dec 2023 08:23:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701937403; bh=yk6swEfuyRxghN0BW1FvsI13oCfcyxJGSxYDBp8aTtY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=tyuz9FrzPf/fDcUa6SuBRAN8fJSbKpzRSIOJLn+4UP3+0E9bTArAZfATV8NbM+mxC dohXtJu2DvNbOrKmaOUUzPvAGk0GYdYvSOmTHH6n3dkgQ/lI+2OVhO9QIwTBp1vsUx zvKRhzKhUpBdieUNlU/jN+OGPfZC8pot9sXkJarO6S3SqX3Ey2uW9pVb9RBrsIn/Zs AUkBnDErFb7DIpvNRvMm94UI6rnPSz1Pnr8GbO9vdXPstayATdEciaMoy1bqIcVJ/M ZwwoD9WUvfLFfC48qxmkijrZXAqVui1BH5zRQVVPe80bPbYIYekocIIspBrXS/uHk7 lZ62rlOPt6XMQ== Received: by mail-ej1-f47.google.com with SMTP id a640c23a62f3a-a1f0616a15bso21411966b.2; Thu, 07 Dec 2023 00:23:23 -0800 (PST) X-Gm-Message-State: AOJu0Yye7lgrcquOUDCPV+X74ovk1qhv1qtY7s/Ge8yJsZ+snLou11Qm vkYYKM+LFbvv9FyczQsp5CLWVnHXlKwzWxQxQlI= X-Received: by 2002:a17:906:1017:b0:a1e:42e1:293d with SMTP id 23-20020a170906101700b00a1e42e1293dmr818321ejm.94.1701937402114; Thu, 07 Dec 2023 00:23:22 -0800 (PST) MIME-Version: 1.0 References: <20231206-th1520_mmc_dts-v8-0-69220e373e8f@baylibre.com> <20231206-th1520_mmc_dts-v8-2-69220e373e8f@baylibre.com> In-Reply-To: <20231206-th1520_mmc_dts-v8-2-69220e373e8f@baylibre.com> From: Guo Ren Date: Thu, 7 Dec 2023 16:23:10 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v8 2/4] riscv: dts: thead: Add TH1520 mmc controllers and sdhci clock To: Drew Fustini Cc: Paul Walmsley , Palmer Dabbelt , Albert Ou , Jisheng Zhang , Fu Wei , Conor Dooley , Rob Herring , Krzysztof Kozlowski , Jason Kridner , Robert Nelson , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 groat.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 (groat.vger.email [0.0.0.0]); Thu, 07 Dec 2023 00:23:50 -0800 (PST) On Wed, Dec 6, 2023 at 4:09=E2=80=AFPM Drew Fustini = wrote: > > 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= /docs > Signed-off-by: Drew Fustini > --- > 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/= thead/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>; > }; > > + 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"; > }; > > + 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>; > > -- > 2.34.1 > Reviewed-by: Guo Ren --=20 Best Regards Guo Ren