Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1487212rda; Mon, 23 Oct 2023 14:16:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGYmHEfV5trHhV1ard1waEvQGyneVapfCu9YHNLhto2tYkYEEn54yx2ATheG9XneGep8Zje X-Received: by 2002:a05:6a00:218f:b0:6be:2ace:deb8 with SMTP id h15-20020a056a00218f00b006be2acedeb8mr8619850pfi.20.1698095795808; Mon, 23 Oct 2023 14:16:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698095795; cv=none; d=google.com; s=arc-20160816; b=uD6c2anIk+cw4dR5Bf2IgsWN5QzrWuKmO/sYBeBclqJBz77PyhGuTn38pcTMwemM9H 8ba06dW6iYaVzh/MS4QT4kELGBw3nAtqahCuyqox/+1ztNtqmTzo2aSKQHAV1OsaY9PR WmilCN63RBVHiSTZnwTqckHV9o6766R9Z/WH+PPGz1O9Q9vqQtVqgJeIbxSVOShY0XWM JfQ/MxlgIh1XodaFyCyCIPcZg1EhTLMNKUoxagEQ3XQ+ShGNbWhIlzQ8ItR9vPg5ysPa 6iiAVaBnZBvNCj0bNUT3s1bbnLXbCzUtZmVTsNY6rclEtuu9F9izs4/yOaF6ODJ/r2iG /3Sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zvhazaZM9RfI4iJsfgktcPhLE+7qHteXIMbKad1YWwM=; fh=WVfVfclqzYqmhOK09fYS1Z5rE9Qc9N4PuDjkfb6zy/s=; b=Jf8TbVlRKdJ3ahyPGLb4NlcDDF7aCTDPvCIjgXle51LL+ngWbJYLJiEEPpDa1BOzeP WEDSVpL6N7SMq9kAtP7xRVzy1iVVtgPG/ZS/YwXiztK6Pxjvfz96Lep30RVwhhERv+Te +YBwPSZR46WODJyEQDydpAeIse+KpDcde6h6DTjN0Qkj2+9lAFJiHd7yvyUVQXWHxKsh U2w03dvWJpPiaZum64SJC5JueqQlu15HuJ/5cyiCTBSjfFaZQJUrcQQ8g8xCDAm1q9iv XrOGpbmDh+CJI1fZFiw+7LC1aqLLICm0/6rvvp76RI15+IGRQK57Odyrer6J8MTKQM5u Ohog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=Hadr64Nj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id d20-20020a056a00199400b006bdfb718e04si7201987pfl.338.2023.10.23.14.16.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 14:16:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=Hadr64Nj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id 786F4805EB26; Mon, 23 Oct 2023 14:16:31 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229657AbjJWVQW (ORCPT + 99 others); Mon, 23 Oct 2023 17:16:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229786AbjJWVQV (ORCPT ); Mon, 23 Oct 2023 17:16:21 -0400 Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3442F198E for ; Mon, 23 Oct 2023 14:16:18 -0700 (PDT) Received: by mail-pf1-x42e.google.com with SMTP id d2e1a72fcca58-694ed847889so3108173b3a.2 for ; Mon, 23 Oct 2023 14:16:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1698095777; x=1698700577; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=zvhazaZM9RfI4iJsfgktcPhLE+7qHteXIMbKad1YWwM=; b=Hadr64NjKF49gGJbppffIuqkb8sCVABGLrfesp/6s16qECmQrvim4ZwJGzYzoswSGg k39QwS6dqO5TdLhQDBwg93bZ3sJzXLDV7uloKtPxh3ozMx6KodM74EzQyFm5+ZyOkxNB Bgl0N8QZWkd7zN1bkqy4R9SXhc0RIzECCTYMhxn7d+PgN3Qc5ZZF30VUZHrX5dOulKEi yCAIuUHgif1RFrFuFByTc9I/9+f4LXCXehnk4DCl0zcO8ttSGRDRyFQrS8Zd2AGxGVLs 5Nvn/2UM5Ssm1YmDMoqyi4hA6F3oqDdbHx/arZvlpEA2rQS2Wiv+IguDCx1e5RVjqr9L +Y8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698095777; x=1698700577; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=zvhazaZM9RfI4iJsfgktcPhLE+7qHteXIMbKad1YWwM=; b=Fp+WlQPKZgo2Er2zLnwN5uhabO5XUW5o+rPE/2D1dSFSKinzFL3/gN+tsWzegKduTw M5IXZc1uRMEn2SUn5PSpSZTU/LCsnjDLbT8NIJ+r6iF1mQsd7G0TnMQVuHbG/u4OXNbr 5Q3++Kh//ldWVzzWsox0DLx2WzPlMkGsah8+imSyKhgc6sssvbWiIFvH4/yWfHNrsh24 C02eTETUiFpXUuHM8hCmA69e6HZYCxhmeQ89HfJD5e2Rdm+Am2YkQso50ONlJebrvCXE P96TWIyZJ5FMW88/qsJDdAJUgSNqxP1kQxwxe+q5DwDSXu0bvq+LEpOlC9TrSX5a2iJr J/fA== X-Gm-Message-State: AOJu0YxnMfpVs55sc3u9U3TtP9X4GJYYrC4jdG9a+i33S7VL/RBcuZS7 rPuo7TjE0P38FqH7nUKCoPa0Rg== X-Received: by 2002:a05:6a00:a0b:b0:6bd:9281:9453 with SMTP id p11-20020a056a000a0b00b006bd92819453mr9522592pfh.9.1698095777579; Mon, 23 Oct 2023 14:16:17 -0700 (PDT) Received: from x1 ([2601:1c2:1800:f680:b9a0:8714:407c:4146]) by smtp.gmail.com with ESMTPSA id f18-20020aa79692000000b00690c52267easm6535133pfk.40.2023.10.23.14.16.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 14:16:17 -0700 (PDT) Date: Mon, 23 Oct 2023 14:16:14 -0700 From: Drew Fustini 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 Subject: Re: [PATCH v3 0/7] RISC-V: Add MMC support for TH1520 boards Message-ID: References: <20231023-th1520-mmc-v3-0-23850668d208@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231023-th1520-mmc-v3-0-23850668d208@baylibre.com> 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 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]); Mon, 23 Oct 2023 14:16:32 -0700 (PDT) On Mon, Oct 23, 2023 at 01:33:02PM -0700, Drew Fustini wrote: > This series adds support for the MMC controller in the T-Head TH1520 > SoC, and it enables the eMMC and microSD slot on both the BeagleV > Ahead and the Sipeed LicheePi 4A. > > I tested on top of v6.6-rc6 with riscv defconfig. I was able to boot > both the Ahead [1] and LPi4a [2] from eMMC. The following prerequisites > are required: > > [PATCH v2] riscv: dts: thead: set dma-noncoherent to soc bus [3] > > I pushed a branch [4] with this patch series and the above patch for > those that find a git branch easier to test. > > Note: I have only tested eMMC and microSD. I have not yet configured > or tested the mmc controller used for SDIO WiFi yet. > > References: > [1] https://gist.github.com/pdp7/7850027e8d256b6fd9cd53080240f0f6 > [2] https://gist.github.com/pdp7/fae4637378426723508b679420a0a5a1 > [3] https://lore.kernel.org/linux-riscv/20230912072232.2455-1-jszhang@kernel.org/ > [4] https://github.com/pdp7/linux/tree/b4/th1520-mmc > > Changes in PATCH v3: > - always call th1520_sdhci_set_phy() in th1520_set_uhs_signaling() > and not only when timing is MMC_TIMING_MMC_HS400. This allows the > microSD slot to work as th1520_phy_3_3v_init() is called from > th1520_sdhci_set_phy(). > - add mmc1 node for mmc controller connected to the microSD slot > - add enable mmc1 and add properties for microSD on the Ahead and LPi4A My apologies for sending this v3 series prematurely. I wanted to send out the fix above that enabled microSD to work but I failed to address the feedback from Adrian and Jisheng on v2 [1] and I also failed to applied the tags from v2. I will address those in a v4 but I'll wait a few days in case there is any feedback on the th1520_set_uhs_signaling() change above. Thank you, Drew [1] https://lore.kernel.org/r/20231017-th1520-mmc-v2-0-4678c8cc4048@baylibre.com