From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm2-f12.google.com (mail-wm2-f12.google.com [74.125.225.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8C975539791 for ; Tue, 29 Sep 2026 17:15:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.225.140 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790702137; cv=none; b=YxIooWqWQLR7pXjb1/lmeoYBwvpYfNGi8E4gkv1mMnQaDT3PcyhDAPuEqECZyac14wr7uwH5DrCJH+oZrUQVwfgQJ9xTq6uaqsCzjshZT7oh9bYkGeGByLdQ8DDBIPVgaxqzad0pVRXe0xEbQNOlUmHl/EGWg21Wc15gx1cVUaY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790702137; c=relaxed/simple; bh=zIe0KG3lCKETMKNwyZ7USTtDkAG4C6Fy+0s+JFPdz80=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=jnHVu6nj3KYeobDSO5FuHO7kSd4ObwAQP5nhBB6HegWSPmH/YdD4+ZYy2axBWq8UhQUWM3yf/imN9pHLWJqbVJ7G8BguDDaQYRmzDrCUVEsU/bDbRkQL3mQl77A1xREh2lIGZTMkPmbaoBmgSE9zx62Pn0yfX4u7f4Sy+RzbHes= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre.com header.i=@baylibre.com header.b=hOg4pK1G; arc=none smtp.client-ip=74.125.225.140 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre.com header.i=@baylibre.com header.b="hOg4pK1G" Received: by mail-wm2-f12.google.com with SMTP id 5b1f17b1804b1-49ccf3ca626so27762625e9.0 for ; Tue, 29 Sep 2026 10:15:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1790702134; x=1791306934; darn=lists.linux.dev; h=content-type:mime-version:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to :content-type; bh=gliMXdJJkSbMhSXEgRAl5Ekvovgp6Cfw/QE4Z+KNG5E=; b=hOg4pK1GWyMMiJimAJBZcFDUq6tp15JyawSkE5mms+wfpA7GoCPrwfiu45pptvvvL0 cmtNA2QQo2hQlrc8iGtBYinTYxOKu8Mg9qquF7ZBXlbyLrD24FdZr9mb9dEZGOMMEhAJ zOJFsFgrir4QdmkHbH74rI8HdQ6S+cFVSY89PWXVmvxvLR/JbliJ7j6d6gvEj/TxySxf CaYN6csbqLIAK7G3QCFJTcPJDOdel0mSSe/wkACF1p/2YJ+QO01vxqd8+ZcAAKceJhTg mxJ4v3VOH6naQEb2XqzxCgKH4bdZ12qu/g7FoKPNYW7skYePOj4mREvMhBzpcPyucW8Z RnjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790702134; x=1791306934; h=content-type:mime-version:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to:content-type; bh=gliMXdJJkSbMhSXEgRAl5Ekvovgp6Cfw/QE4Z+KNG5E=; b=2gy0EUPpqA2cuR8fu3E1KSypGSDPvjDjVrvKNiybQlK8u3YpyN1MfL9dXNvzt0DvPF UcexWrlmTzGLrnKofCiJPD0w99ESf3cXOpBKegq6MzpBFS3zPGEIkl7NWXJiOYq+IMjI BVUngzYQytZedJ82ZVwgbVceP29Jyor+3kcVA9Ye4aaX3t9KedoysgiNjvj80zFUp2w5 ScCknwhyoS3tfY1fdd6mZP+lIcbfJang9RgcZUJx49INJEhzSMoqPGY7thnZjrQeNdJf 8IRORDUgaCj2eTFo7Zct2R2gsgb0N1F2irLMk0j2akkxnz3ukhxo97MSqGbRpas0in6V TQQQ== X-Forwarded-Encrypted: i=1; AKwUvBxby77rX/3hOrNN/TS1sZ/+HMVgAfab+Ru+17clY7Ow/wn4Or/B4vy5Uomg7Ushcm3WPHb7KTvIrXF8Hg==@lists.linux.dev X-Gm-Message-State: AFuF++liyIr0twXfo9w0lGlQl/tZkcsXyWLX4xSeLbc1s5rNwjlfx84/ /GI0TqpChGQ6h1M4OwQCR6oLlj0XSWEAaMLwWOsGp7NaWWlKVPFlVttZazLxzvQZlY8= X-Gm-Gg: AYBFou198x7qGwejrRXBI0BswLdEXLOR07Y7SbdSn1rkqpR7jIkRbNSEOfsYG7O9o3G yd6eO/VCI+x+vRxV/KgWYJATgw1bntrva3LyzJ6WI+gRo1DOeM8gAP7NLPsJ6Z6Y/8k3TveNlG4 rAM5NaeN38JoiESKbku7FgHblCKMV3njZxYsMAlpnBRFKJf9nqOSRb7obWbNmhQ9YByG+UfDr+V Xmq7ui4GxF4ezSX9SbRYAH1d6xclU6CD+Fjy7+WwDRFFtW5XI0lOoNHmPyxUJz7l6FVr1anYlie cQTccmKDBhZx1CDxJGFRWEjPUxOFeRgv224He0Ih6lZGcb/naiNX7qhuPXNT6DzsPGVAFx9jsGJ rxcO85ax8SR8Nd1QsfSfi78QOf1d3Ernd8kdfc+pmNazVHrB0DR9YjSccbrKpURceDmuz/RnwpJ 5EbA6PVRwxyuKvnPvOuJbrJP01r8iUfw1TDTSuCvadNbxqDGaJcxtMNyym7xhDzmZMTSqYjPgdB 9tAR1fjmEVutf7Oqg== X-Received: by 2002:a05:600c:530f:b0:49f:ffdc:939d with SMTP id 5b1f17b1804b1-49fffdc9a4amr125086635e9.9.1790702133757; Tue, 29 Sep 2026 10:15:33 -0700 (PDT) Received: from localhost (82-67-6-57.subs.proxad.net. [82.67.6.57]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a00cfae123sm101113665e9.13.2026.09.29.10.15.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2026 10:15:33 -0700 (PDT) From: Jerome Brunet To: Andrew Lunn Cc: Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Richard Cochran , Maxime Ripard , Maxime Coquelin , Alexandre Torgue , Philipp Zabel , Maxime Chevallier , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, Andre Przywara Subject: Re: [PATCH net-next v3 0/5] net: stmmac: Add support for Allwinner A733 GMAC210 In-Reply-To: <93870bce-b18e-4eed-a9ca-1d01313c61a7@lunn.ch> References: <20260923-allwinner-a733-gmac-support-v3-0-15735155a789@baylibre.com> <9cc61625-47c9-4bdf-97f0-0528f661a399@lunn.ch> <1j7bkb9h5k.fsf@starbuckisacylon.baylibre.com> <5fae3b42-552a-458a-9710-927360e58c37@lunn.ch> <1jv77u8yak.fsf@starbuckisacylon.baylibre.com> <491f043e-6dc6-4936-a490-31a3362c5b6e@lunn.ch> <1jse2x91oh.fsf@starbuckisacylon.baylibre.com> <1jecec3xnd.fsf@starbuckisacylon.baylibre.com> <93870bce-b18e-4eed-a9ca-1d01313c61a7@lunn.ch> Date: Tue, 29 Sep 2026 19:15:32 +0200 Message-ID: <1ja4p03rnv.fsf@starbuckisacylon.baylibre.com> Precedence: bulk X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On mar. 29 sept. 2026 at 18:10, Andrew Lunn wrote: >> Thanks for the heads up. So if I'm reading the doc correctly the PHY >> adds 2ns >> * on RX if there a 4.7k pull-up on RXD0 >> * on TX if there a 4.7k pull-up on RXD1 >> >> The schematics for the board are available here [1] >> >> * 4.7k pull-up on RXD0: so we should have 2ns Rx from the PHY >> * 4.7k pull-down on RXD1: no idea what this does. Presumably no delay ? >> >> I've cross-checked the HW, the resistors are actually fitted as the >> schematic says they are. >> >> With the HW setup, the MAC setup that works for me remains >> >> tx-internal-delay-ps = <1620>; >> rx-internal-delay-ps = <1800>; > > These values suggests there are delays on both Rx an Tx. I did not mean to suggest :) To be clear, we have no control over the PHY delay. The strapping/doc says the PHY provide 2ns on Rx, none on Tx (presumably) But I must add 1.62ns on Tx and 1.8ns on Rx through the MAC for the link to work properly (the values above). I don't have an explanation for this. I assume the PHY actually adds no delay, maybe the strapping implementation is broken. Maybe the PCB the already adds a little delay which is why the MAC just need to add a little less than 2ns. > >> >> I know it is not aligned with what it expected but still. > > I'm flexible, if in the end this is what is required, that is fine. It > will need a comment explaining why it is needed, why the guidelines > are not being followed. > > Where i have real problems is with developers who don't respect what > the guidelines say, even when their hardware could do what is > asked. They just do the minimum to make it work, and call it done. > > The comment is then important, because i don't want developers using > this as an excuse not to do the correct thing. Sure, no problem. I'll add a comment in DT when I'll submit it, explaining what we have found regarding the PHY strapping and effects. > > Andrew -- Jerome