Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4733986rwb; Tue, 8 Aug 2023 13:00:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH7BasNsru2qUgy1r608yzZV7AQ2FFrQ8ti6RtTGLX4dcUYj762DvUJaaUvA8bWBdYAb2DV X-Received: by 2002:a05:6a21:8181:b0:13f:83a2:df54 with SMTP id pd1-20020a056a21818100b0013f83a2df54mr569083pzb.34.1691524813905; Tue, 08 Aug 2023 13:00:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691524813; cv=none; d=google.com; s=arc-20160816; b=T7StMkPUhJ/EVTfc6kFn+OGvWGrLz7pVSOUzv0GkCZ5D9CpU7GHgr8neCFGnFFmEZx hDYII9kLIGhf7o+p7PZfjUoR97dX02aGsiGOKaWBbXS44r032z97GcYvZSEOaUTQMFKT gB7O+itYOQXuMhgcxMydNX/wQVr2PWykhZA0l111/8sG/mMBnfcpQINYYKyoh3K5MpIQ VWoSPQsijaneIrMlkYmN4831NJfS1/FEp6y82K7bvSA/OwxxsUPmhMmtt5FUgydPN2bI pIaNs32b3rrIuF+P4IvG2vQBT/Vt40Hzrl6ECjx5jv+KhuA0DhdbKFxPHa6uT3+OMWYA 28YQ== 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=bKnU9SGNhRXh7JQMi9LxA4Fhq6dBeuKxy6dhRmxZasE=; fh=cgRDnfCMoNdTIDiFStOT9i/bLSlRcm86cE88DP8PEdI=; b=XdhDPvEE+YwolQQ5kXUmkphEQAaJUEvUTpY3Owf9qvMh824eWrUGHFbf7LUer9nhyg 9WMZ5M9GX78EGRfH7jVJ+Xrv2R4GLynq9Fgi6Z7nAfjc+iqFVGW4boy2vBdD7vkK/TfD LGYMrvTl6blupivjmdb490aYot9CkvNtsIBtbJtPbxvRVrSz7D5kj0xIx95j6BZyNb3q Wl2ftEUofpEBsc5eoiiAVtnJLKSOSg7uYmJpBfJkKZn03R7j5Ms81HsP6GUSZoqH8JtB W2ZzKuRvLye2b6PuiP6CAH2DmdbSfXivHEW1gNLCICq8LhyyVAnt8j2jQpX1BvOTF3f6 TWog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20221208.gappssmtp.com header.s=20221208 header.b=NdgbgFeo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 8-20020a631548000000b0054fe07d2f49si7621603pgv.657.2023.08.08.12.59.59; Tue, 08 Aug 2023 13:00:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20221208.gappssmtp.com header.s=20221208 header.b=NdgbgFeo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235164AbjHHTP5 (ORCPT + 99 others); Tue, 8 Aug 2023 15:15:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235772AbjHHTPW (ORCPT ); Tue, 8 Aug 2023 15:15:22 -0400 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6E0E3C237 for ; Tue, 8 Aug 2023 09:38:12 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-99bf3f59905so857006666b.3 for ; Tue, 08 Aug 2023 09:38:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20221208.gappssmtp.com; s=20221208; t=1691512689; x=1692117489; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=bKnU9SGNhRXh7JQMi9LxA4Fhq6dBeuKxy6dhRmxZasE=; b=NdgbgFeopdFc9nyErGg9Tfd0ZjMqxt9PQjlMFDNqcn7e6e9meyZLkpuFjFmQUJB5AH 0eerYrqXvyOIcBmrxg3EUoUtOBRRtMmBBAG1Bv2PJDK2L9DiXS6P6tJGFk5Syqo29NsQ /V9TlsBKlZDHhX0HTyWhEaZC9LgeUhXKBD8SiCc53KtfSOlFCE6b04l2Zl8Ijlk86whI iT/NkUTm3bhG1TSJiV52Vtbxwn1jDPxVHz3aCd3qicRn+qRSG7nEQKmTTaN9jxL2rwur KQy7+Zw4OeGdmOc6O3tLl57Fjfv7LKaWZgluvYzjJ668CXoD+jngSBcoZD2H9YnKMaBX IDOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691512689; x=1692117489; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bKnU9SGNhRXh7JQMi9LxA4Fhq6dBeuKxy6dhRmxZasE=; b=lrbrT0yD3x9fulN7rYpmy8IjCqB4N0dNJCWXxgsocIshEEo3rKrocqrtewvsGmyRuk MCSmamqRlZdVP4MeWo/6mvaVT56UQ8qtyO9OQFQIZjbxFqSSNzNujUs4riGAMA7DE5F7 /+3RhBc2jUud7zZqBFPT12n7Kdz6G0P5ecT1Bv8hmFOiZ1j2ovhBsDG+2Fp4dEZnzIo/ lYN6zd+BfTDD1dwhMQgPuzcSOqfb7xTQNlEDv3uYdShsuDGX4Ex7NIG8XUfbopaR31v+ JYBYsv2fmkZ1b6OWR9JFOAYybBlbV1/aRC8NiEhvww+4loV1tvud5kRRJlRnkxE8L6w3 A8vA== X-Gm-Message-State: AOJu0YxYfSrzSL04VsDSF8H/jNdJqXlylPawRz8c+bsGLIrmlLI2nvXi Kf3mTYU+GyTHHXybeXQFSpgUHbg9gYjnPJlH+t5/OM5pVKhHML8fY82PQA== X-Received: by 2002:a2e:a0cc:0:b0:2b9:b066:66a4 with SMTP id f12-20020a2ea0cc000000b002b9b06666a4mr9299821ljm.4.1691497023708; Tue, 08 Aug 2023 05:17:03 -0700 (PDT) MIME-Version: 1.0 References: <20230807193507.6488-1-brgl@bgdev.pl> <20230807193507.6488-6-brgl@bgdev.pl> In-Reply-To: From: Bartosz Golaszewski Date: Tue, 8 Aug 2023 14:16:50 +0200 Message-ID: Subject: Re: [PATCH 5/9] arm64: dts: qcom: sa8775p-ride: move the reset-gpios property of the PHY To: Andrew Halaney Cc: Andrew Lunn , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alex Elder , Srini Kandagatla , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Bartosz Golaszewski Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00,DATE_IN_PAST_03_06, DKIM_SIGNED,DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=no 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 On Tue, Aug 8, 2023 at 12:27=E2=80=AFAM Andrew Halaney wrote: > > On Mon, Aug 07, 2023 at 11:51:40PM +0200, Andrew Lunn wrote: > > > > I have proposed a solution for this problem in 2020 but it never go= t > > > > upstream. Now we have a workaround in place which allows us to hard= -code > > > > the PHY id in the compatible property, thus skipping the ID scannin= g). > > > > > > nitpicky, but I think that already existed at that time :D > > > > Yes, it has been there are long long time. It is however only in the > > last 5 years of so has it been seen as a solution to the chicken egg > > problem. > > > > > > sgmii_phy: phy@8 { > > > > + compatible =3D "ethernet-phy-id0141.0dd4"; > > > > reg =3D <0x8>; > > > > device_type =3D "ethernet-phy"; > > > > + reset-gpios =3D <&pmm8654au_2_gpios 8 GPIO_ACTIVE= _LOW>; > > > > + reset-deassert-us =3D <70000>; > > > > > > Doesn't this need reset-assert-us? > > > > If i remember correctly, there is a default value if DT does not > > provide one. > > > > I've been trying to make sure I view devicetree properties as an OS > agnostic ABI lately, with that in mind... > > The dt-binding says this for ethernet-phy: > > reset-assert-us: > description: > Delay after the reset was asserted in microseconds. If this > property is missing the delay will be skipped. > > If the hardware needs a delay I think we should encode it based on that > description, else we risk it starting to look like a unit impulse! > Please note that the mdio-level delay properties are not the same as the ones on the PHY levels. reset-delay-us - this is the delay BEFORE *DEASSERTING* the reset line reset-post-delay-us - this is the delay AFTER *DEASSERTING* the reset line On PHY level we have: reset-assert-us - AFTER *ASSERTING* reset-deassert-us - AFTER *DEASSERTING* There never has been any reset-assert delay on that line before. It doesn't look like we need a delay BEFORE deasserting the line, do we? Bart