Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2593093rdb; Mon, 4 Dec 2023 01:48:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IFlzJ3bsCnG+NDs8nV0kOkAhCySU6Yg5MRtp2IBk7ez+yS9DQ+ghgO3fLfiRJl1wRbM5odA X-Received: by 2002:a05:6a20:9e4d:b0:14c:c511:387d with SMTP id mt13-20020a056a209e4d00b0014cc511387dmr1382509pzb.9.1701683306660; Mon, 04 Dec 2023 01:48:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701683306; cv=none; d=google.com; s=arc-20160816; b=SwJjncGca3u7ZVK2yPGPKxa+E6yAmb4UETXjSDAUf0/f38SS8//CIOq0KVhtTUOOjl k9BoXlBLOW3Acg7NaHv+55lebdhCzZV6hvcA1bt1hBhFE94LNZFc8aHDqrdKRwSltpqD tq8Lvpt3lF2AYmEu5PmyJl6OoL0INjqPkyQ1IPcJWYl42XZTFRjIaWt6BbDYmek4sue9 UjYQWymxSXYTGNxnoem0qYPDHRxQ126gxW1ZhojiVG3v6Oy3DdiWxKzi3101fLmVaPQp WNJqepUZ7IxD7n68I+5aeXNd6tHoj2nn0VmNbdO/N8TshJGrH/45mZpscP6rqlxYMDTY UprQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:mime-version :references:in-reply-to:from:dkim-signature; bh=ocWHzI4I/IJpjMhErnBIZA0ZO+r+qla4DpGX2b6C1P0=; fh=oR0dMlcqiZQI88ODqJ7+k8J362R1TTHkNYOhrt0US68=; b=XoZuCl5RqI3Sh3IK9qnxhfpzixUiMgdk/Aagj0XB7tY+betii9/hKDxQ1bep6HQE4C aOzmBTN0z6ablnhtmb59gbMOzVbG1jh6oNHcGpMhpQPnJcG4lnO+Qbxn54fIjOfumgeq x7NMypylPsTCoTosMoAYd1WpJ01AakTlR0sH8u9qAXkifYfqdYhb75XXCv9pv+BgjW/O JMWEWUrUhizXl9Q98S6rXsQiom6y2vrhhWgp0zsyORqrHYNMnlpYN3yd2LsK3rcg+VXO rLQ1kQmTFvtStd8X5SHJDu+KBtjIL5nCiI6tUSo/cwWH5mEkCddX7vCM6wPPeeeLue65 yjzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=NmdrRMqz; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id q96-20020a17090a17e900b00286716a76fasi3493143pja.25.2023.12.04.01.48.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 01:48:26 -0800 (PST) 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=@canonical.com header.s=20210705 header.b=NmdrRMqz; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 28045808FBE3; Mon, 4 Dec 2023 01:48:24 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230293AbjLDJrz (ORCPT + 99 others); Mon, 4 Dec 2023 04:47:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232748AbjLDJrp (ORCPT ); Mon, 4 Dec 2023 04:47:45 -0500 Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4D37125 for ; Mon, 4 Dec 2023 01:47:51 -0800 (PST) Received: from mail-ot1-f69.google.com (mail-ot1-f69.google.com [209.85.210.69]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 9B85F3FB62 for ; Mon, 4 Dec 2023 09:47:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1701683267; bh=ocWHzI4I/IJpjMhErnBIZA0ZO+r+qla4DpGX2b6C1P0=; h=From:In-Reply-To:References:Mime-Version:Date:Message-ID:Subject: To:Cc:Content-Type; b=NmdrRMqz6Dn8pVCxdLH0b38V1DL0b54B2JMSS/NCd7mJDPKWRg4MPVWLNFlC2pQ4o 6TbXJTyt+RQuBq+MfuUnR9+2ddn/0yXKRlZNyDhMy167W16hTaExy7ufwdus3NZ1qS qguGFa9MRVcJfQ6Upz0VoEyV9dlnJXGlNxCcVkxnXFVJ4WSVrUYVSYw58P1Huy30Sn nqam6XoCwPjmcLlgczDJOpUG2BZaj3cgixf78zHxY3QlgLMzMjEUT3hWba5tfQ2cuQ 7ZWek5il3sTfdjzp2TBbtIrpXqzdj9IfdPUoxJkagc61qa2mhAFLQCJT7803/ONhqw RTvhs9YALp1uA== Received: by mail-ot1-f69.google.com with SMTP id 46e09a7af769-6d9a5700c38so657940a34.2 for ; Mon, 04 Dec 2023 01:47:47 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701683266; x=1702288066; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ocWHzI4I/IJpjMhErnBIZA0ZO+r+qla4DpGX2b6C1P0=; b=Ydb0/A1NfpegEHz/n6VLngQA/A1VtUA/8UIEP0E2GfPdDOCMyHbYTHTThdO6F/AJE9 SrVDGfJcwn8eW2wKwT7kByGd6VlybMO2mfd2wVD8u9xePv2j3uWGNvX+Z4pgslr7aruj LqROlppK3Afo8T5ZPnhKKKkKFZ4hv8aTuWzxd0KtjaLEjlCNj8EULiXKeKY3NrJE5Ds5 qcMbYUGG+zLGAZy/yBfnDieJhKG0gYakkEeJ12YpnQFetFLCJ8Le/Ef/u9em1KA7+IAS 30/rYmt4JkILZ7uwdviOd3mRKxsiZoQdMP0GlH8uQVbOlt4oYjCsppUBMhmEw6ZbCpdU jXYA== X-Gm-Message-State: AOJu0Yyrh1QFpngsQQE2Aep4lVX1RLaexzgCByWOjtM2/ih/oV+cv4CW PLczTD0YnaRQDc8Wf1V1qLHaCE0NbG0wU9ZB5++yiS8DGQ7wBH58QWiAatSvQbdOHIn7o/L7Uho 8hBFa9mEi6su0xyaPG/04YCoqzSSo89h7TKHuRlzVrmlVP9Qj9pxIa5uCnw== X-Received: by 2002:a9d:7f0e:0:b0:6d8:74e2:6372 with SMTP id j14-20020a9d7f0e000000b006d874e26372mr3825841otq.76.1701683266646; Mon, 04 Dec 2023 01:47:46 -0800 (PST) X-Received: by 2002:a9d:7f0e:0:b0:6d8:74e2:6372 with SMTP id j14-20020a9d7f0e000000b006d874e26372mr3825830otq.76.1701683266357; Mon, 04 Dec 2023 01:47:46 -0800 (PST) Received: from 348282803490 named unknown by gmailapi.google.com with HTTPREST; Mon, 4 Dec 2023 01:47:45 -0800 From: Emil Renner Berthing In-Reply-To: <20231129-th1520_mmc_dts-v7-2-c77fc19caa6f@baylibre.com> References: <20231129-th1520_mmc_dts-v7-0-c77fc19caa6f@baylibre.com> <20231129-th1520_mmc_dts-v7-2-c77fc19caa6f@baylibre.com> Mime-Version: 1.0 Date: Mon, 4 Dec 2023 01:47:45 -0800 Message-ID: Subject: Re: [PATCH v7 2/4] riscv: dts: thead: Add TH1520 mmc controllers and sdhci clock To: Drew Fustini , 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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: 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]); Mon, 04 Dec 2023 01:48:24 -0800 (PST) Drew Fustini wrote: > Add node for the SDHCI fixed clock. Add mmc0 node for the first mmc > controller instance which is typically connected to the eMMC device. > Add mmc1 node for the second mmc controller instance which is typically > connected to microSD slot. > > Signed-off-by: Drew Fustini > --- > arch/riscv/boot/dts/thead/th1520.dtsi | 25 +++++++++++++++++++++++++ > 1 file changed, 25 insertions(+) > > diff --git a/arch/riscv/boot/dts/thead/th1520.dtsi b/arch/riscv/boot/dts/thead/th1520.dtsi > index ba4d2c673ac8..af4fdcd82e0b 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 = <0>; > }; > > + sdhci_clk: sdhci-clock { > + compatible = "fixed-clock"; > + clock-frequency = <198000000>; > + clock-output-names = "sdhci_clk"; > + #clock-cells = <0>; > + }; > + > soc { > compatible = "simple-bus"; > interrupt-parent = <&plic>; > @@ -304,6 +311,24 @@ dmac0: dma-controller@ffefc00000 { > status = "disabled"; > }; > > + mmc0: mmc@ffe7080000 { > + compatible = "thead,th1520-dwcmshc"; > + reg = <0xff 0xe7080000 0x0 0x10000>; > + interrupts = <62 IRQ_TYPE_LEVEL_HIGH>; > + clocks = <&sdhci_clk>; > + clock-names = "core"; > + status = "disabled"; > + }; > + > + mmc1: mmc@ffe7090000 { > + compatible = "thead,th1520-dwcmshc"; > + reg = <0xff 0xe7090000 0x0 0x10000>; > + interrupts = <64 IRQ_TYPE_LEVEL_HIGH>; > + clocks = <&sdhci_clk>; > + clock-names = "core"; > + status = "disabled"; > + }; > + Hi Drew, This doesn't seem to match the documentation shared here: https://lore.kernel.org/linux-riscv/5f437109d2be2b8843f549a661054a2e3ec0d66e.camel@xry111.site/ From the TH1520 System User Manual.pdf in there, I'd expect something like emmc: mmc@ffe7080000 { compatible = "thead,th1520-dwcmshc"; reg = <0xff 0xe7080000 0x0 0x10000>; ... }; sdio0: mmc@ffe7090000 { compatible = "thead,th1520-dwcmshc"; reg = <0xff 0xe7090000 0x0 0x10000>; ... }; sdio1: mmc@ffe70a0000 { compatible = "thead,th1520-dwcmshc"; reg = <0xff 0xe70a0000 0x0 0x10000>; ... }; /Emil