Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2995574rdb; Fri, 22 Sep 2023 14:46:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHKPxQfQePXxB5GO4/V1cdcJcyGYYHd64v4PIPsC2bClrmzd+fy2JtbkP/sjZ9ChpPp9km7 X-Received: by 2002:a05:6a20:431a:b0:159:c918:1016 with SMTP id h26-20020a056a20431a00b00159c9181016mr923247pzk.49.1695419207672; Fri, 22 Sep 2023 14:46:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695419207; cv=none; d=google.com; s=arc-20160816; b=PawhWufWnd/MmIEdUgaLQfin6n+SdCOSBJNgllcP33AXa2OpzVxS4FUZOjMgO529us U9aSzSAZ9CqP/a2J2qVRoG33lyMahJyCNC2ueKdSz0g/aHcYSDJ7OZevQYWdfsUkIyGk vKV4oHQfm7QkCA30DTL3EBwZ1OFA7yip0SpYnmZUCGA/dh85EXM9BAcqmt9hSiXSZ/Fm x0fjzkpoMEaJAm2n/HUImGnmdr0siXbaEUG53det0mZ+wx8BHKb4zhKsKMUMc7C0IsNF 9J87N7D7f5aNR2LLlngkcBAqLgn5fycxGUhxh3eiievoIFJRTuGFI6RlUDz/2t0a0C0f dMlw== 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=28ycCMVqr+jLHcID+cLGjL2F35QcRv/+OsF8PSg4e9w=; fh=KVGv8SVTnm8ZlpcDf0z8UBUt+vAi9StlS07yRQ7PCGU=; b=fDWue2WgpwtMWQxLRZf6RQmIQFz9b1W9QvKUdO26QnJLJqC0QMaaQFUtgH4veWdJPh TWdQFutrV4dqhMSel2fvk9pnWDi3ZUJW2zkziUlGguUnhJCKW4O6BpI2xVnd/KKzYOWZ h5sHzZ9Eq3Vb36CGB4w1bqu4IBd3Ox159VVTMl5U6tBS3w9QXR3YVsHISx/jeLnBuSrB G2480qEpNUAWH8eDzoNpgXf8H7jirQJHQgEM9d8O9u4dgWcENA8gPeaus+VytF8cUIMr vsnLjOh0uqhG09Wdxtvnujqs5JYEZf/+0xK8lyiBBreNzM4MJvt8jpCd89+Dv/QrE2aN oRJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=ButDVAR9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id w3-20020a170902e88300b001bdf69e297bsi4920830plg.588.2023.09.22.14.46.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 14:46:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=ButDVAR9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 526C7835D82B; Fri, 22 Sep 2023 08:18:21 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232536AbjIVPSX (ORCPT + 99 others); Fri, 22 Sep 2023 11:18:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229986AbjIVPSW (ORCPT ); Fri, 22 Sep 2023 11:18:22 -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 788C0122 for ; Fri, 22 Sep 2023 08:18:14 -0700 (PDT) Received: by mail-pf1-x435.google.com with SMTP id d2e1a72fcca58-692a9bc32bcso698973b3a.2 for ; Fri, 22 Sep 2023 08:18:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1695395894; x=1696000694; 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=28ycCMVqr+jLHcID+cLGjL2F35QcRv/+OsF8PSg4e9w=; b=ButDVAR9tTC7uXAuV5J2qo4ZQbvJl8oZRiJIqRfLL8Wrj/4DPr8pUXQGcqaNe3cLhK POhz0NNfhCmdVR7Cfq0k/a78GWVXkYaa0M4xf5WA5ae8UGtas3u4jFvwDbqo4CnBv6Ee b+XEZRXiOCQzeijJhPI31QvcFxi9NHI4MtazLywyBkW1C9+5H+9ZQEWn+YX4GXHUq9Pa +zyI7PcWx2QK8klHQWL3P8JatyYCjho8j5Zyi8JpgoQg1tZcH9FKtctvNLFukeGDMur4 qNwsqaqmsFImdFQeZ5bswJq0wBvMm51FG0yqKeyfm7SC1TGM7Im97qDY8e0UPehHBJ1f cNBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695395894; x=1696000694; 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=28ycCMVqr+jLHcID+cLGjL2F35QcRv/+OsF8PSg4e9w=; b=TZgcADYnSFtFQN09fY/6Sk6fW6K0UbfdcOj/iF0oKYXJrL25n/v7jnIun0Dv4Vh5xU BdMGeEDGbcUOf7bKFHviHkBIi81eI6Qtynsd+FPZetuxhUSNaBXziptYnOCLJKZfVqIl wpQdthsYPrBoU8btYRvjU1JLDldMbMad9q/7JMzVO8bRVoQaTRFXF/rvkSEoiiE7JKcU eDtRxbJ6zSY5haVTX7nujE0wrw4T+nhcT5NSkUZ4uObRFxqZry0GqVvWTwzQVM7lt+l+ 8SCkIPaClokQ003ZBEiXWmnSuJMUWOREHvkVvG+VY/IaVaOaskMMkZ4+rXP+K/g4Ngph rdpg== X-Gm-Message-State: AOJu0YxjapPZZ6zbm7IdW+Ofl92nw3mMQNxO771ZJJp4qEO9TtdDP48Z wVKYNvpluOCc1Pym5Gjup1qpvA== X-Received: by 2002:a05:6a21:4881:b0:14c:9a61:a310 with SMTP id av1-20020a056a21488100b0014c9a61a310mr7787505pzc.24.1695395893958; Fri, 22 Sep 2023 08:18:13 -0700 (PDT) Received: from x1 ([2601:1c2:1800:f680:c44:77f:ca7d:adec]) by smtp.gmail.com with ESMTPSA id 6-20020a170902e9c600b001c1f4edfb87sm3614450plk.92.2023.09.22.08.18.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 08:18:13 -0700 (PDT) Date: Fri, 22 Sep 2023 08:18:11 -0700 From: Drew Fustini To: Conor Dooley Cc: Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jisheng Zhang , Adrian Hunter , Guo Ren , Fu Wei , Paul Walmsley , Palmer Dabbelt , Albert Ou , 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 1/6] dt-bindings: mmc: sdhci-of-dwcmhsc: Add T-Head TH1520 support Message-ID: References: <20230921-th1520-mmc-v1-0-49f76c274fb3@baylibre.com> <20230921-th1520-mmc-v1-1-49f76c274fb3@baylibre.com> <20230922-parish-ice-a22e93dc3027@spud> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230922-parish-ice-a22e93dc3027@spud> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Fri, 22 Sep 2023 08:18:21 -0700 (PDT) On Fri, Sep 22, 2023 at 10:57:36AM +0100, Conor Dooley wrote: > Hey Drew, > > On Thu, Sep 21, 2023 at 06:49:48PM -0700, Drew Fustini wrote: > > Add compatible value for the T-Head TH1520 dwcmshc controller and add > > thead,phy-pull-up property. > > > > Signed-off-by: Drew Fustini > > --- > > Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml | 4 ++++ > > 1 file changed, 4 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml b/Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml > > index a43eb837f8da..46b768d46712 100644 > > --- a/Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml > > +++ b/Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml > > @@ -19,6 +19,7 @@ properties: > > - rockchip,rk3568-dwcmshc > > - rockchip,rk3588-dwcmshc > > - snps,dwcmshc-sdhci > > + - thead,th1520-dwcmshc > > > > reg: > > maxItems: 1 > > @@ -60,6 +61,9 @@ properties: > > description: Specify the number of delay for tx sampling. > > $ref: /schemas/types.yaml#/definitions/uint8 > > > > + thead,phy-pull-up: > > + description: Enable weak pull-up on PHY pads > > + type: boolean > > Why is the weak pull-up required? How would the dts author know if they > need to use this property? This is a good question, and I don't have a good reason beyond it is what the vendor SDK was doing. There are only two boards right now using the TH1520 that I know of. Both the LPi4a [1] and the Ahead [2] have the pull-up property set on all the mmc controller nodes their downstream device trees. Rob suggested on #devicetree that it would be simpler to just enable it in the driver and disable support when needed. I like this idea as it will simplify this binding patch and the code in the driver patch. Thanks, Drew [1] https://git.beagleboard.org/beaglev-ahead/BeagleBoard-DeviceTrees/-/blob/v5.10.x-ti-unified/src/riscv/light-beagle-ref.dts [2] https://github.com/revyos/thead-kernel/blob/lpi4a/arch/riscv/boot/dts/thead/light-lpi4a-ref.dts