From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) (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 7C8EA41CB2E for ; Sat, 10 Oct 2026 10:59:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791629958; cv=none; b=Jze7wYrxZo3cAsR4ANCsMy69K8wnGPnuuKTo1r8QyHmzS+EmltOQuugZcX9OEqZrmmWpCPeDWmyMONWEW99qFy/I0X1CGieZiXuA4MY7VOz2aHqjf8ZVmtN/A4u5rgwvos4LauUQh2hhGOsyFj1+Oh1T3w2jlp6tV8mvNaG91F0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791629958; c=relaxed/simple; bh=8rU4lcGem9r8npg9voyJwgRjQfcdPrmgPfj8qzzKnnc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=SR8g61D5QPFvhACKlT83KA7JsfcKe6APYfEbYtnCOk0lgLthX+iXxts9Ft1g7NSlqDcdadEJuUIqDshE7NoY0HIXv5laCsjCOCa7MJR5+Ma1LnFuvSruCxYrUjfgTkCGAkes7gepHGfznaVaTYoMU88ipcTEQhsi/DcFDl4X94U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.com; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.221.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-48b001cd92bso319252f8f.2 for ; Sat, 10 Oct 2026 03:59:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791629952; x=1792234752; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=pdKVlCj4REX0NWkQYtOCVGuCUyIjtnl9DbGH17gD2u8=; b=y2N46p+0+UviI6IKkbO17BLWLhufFeyMdMq7RUU+39zobBlvhNUjZTXWzVV6m7B9it Q2ZtcG2w39CBIj5VyMuqkqajJ7m7dIZ7hWJzgOihv8hfWKg1XQCqk+fMGhf7axT9SUw9 +IvOrx9SCUj7aylF5T5loAuUXw44rD1er8cmCuWtC84ubh163va0Qodq7/GhGFMUBZCG 31dlFtCO3HwwYZ9bvJJG8YxUvowZwOCPMB4qJcmSwJoCoHL0XBTQbxr5ijSBZhs8Dr/H 9Pl5952Wd9/3ndNvX6E6o7uQ2FZptanx+3lA8tRj1wgG2EZ1z04NKcTZOaMM7aDDQPLQ v39w== X-Forwarded-Encrypted: i=1; AKwUvBxvd8rwwQB0EgxupSLPoWfRSG1l8OWJ6iss0+ZupFb2Y/RnEjaKlVdMpIhK2ZSwrqFhIQcm1gl2X36q@vger.kernel.org X-Gm-Message-State: AFq9FYIyQMTF/rAqxa7twVenWBRpZiZcPWVuIGw28qAquJvljdLgXy1Y ICxMM8P6BzSutSRZ/x/ye4R51traGjIjnaqDn+no/scsSTxS0W8M0nhz X-Gm-Gg: AYBFou1lzvjuopE7H6MkeiFFxV67y25cD6Zrh4ZS6iO6YEq5c6DbxRv8YdfwaoudcyO qpy6t7zb2a0AxgOiOKDWIhMQeToOE9oTUvZO3eYmC6TqGenb6YM5zVmzGwY4OhjGg4zY0xdrviQ dx4a4mDC68p5ZTHMnJTbY74/MCnCFICGI4FiXEK99QfpUmLDKzFJ+V6H+SNqNR6/N/cb33nMcqW Yku4PUMEyXJen++P6b5XZoG0hWMwIf4qyLZkXmrJgzCyOUOOfrnNdwAoEPv24nxEh6OUPBHriqQ hvNKV4i+wIksIBOUr2Vi7Fab6xpSROiN2VW9DXO74YS4zOyIWtDlkhybShJz63Cfv9cLiaDtVa5 1uY4ZbzNwNoHrlqH9KQy4T4gTol9oFZEpNWzBjqax6LZczHxN7bJk4i6bARNf5XmHTtuQkIgRRT WxEKvsN3m6EiMuNgXPPFfWf+irn6sNn7k0ZKG/W5bxjWBkr+kqenr8RCtbwqbAmMWwMB6spwnYZ MtfWqWW1WqO8TiaSmoy3lxYMnUfoHF/SXc= X-Received: by 2002:a05:6000:2dc5:b0:48b:2a1:dfe3 with SMTP id ffacd0b85a97d-48dbace3b32mr6883381f8f.41.1791629952539; Sat, 10 Oct 2026 03:59:12 -0700 (PDT) Received: from threads.localdomain ([84.70.176.222]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48db9ae17e9sm8709526f8f.57.2026.10.10.03.59.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Oct 2026 03:59:12 -0700 (PDT) From: Lucas Tanure To: xianwei.zhao@amlogic.com, Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Maxime Chevallier , Maxime Coquelin , Alexandre Torgue Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 8/8] dt-bindings: net: ethernet-controller: tabulate who adds the RGMII delays Date: Sat, 10 Oct 2026 11:59:00 +0100 Message-ID: <20261010105900.247342-9-tanure@linux.com> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261010105900.247342-1-tanure@linux.com> References: <20261010105900.247342-1-tanure@linux.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The informative section explains in prose how phy-mode, the delay properties in the MAC node and the mode handed to the PHY fit together, and says itself that developers often get this wrong. A reader has to work through several paragraphs before answering the one question they usually have: for this phy-mode and these properties, which part adds which delay. Add a table that answers it at a glance, with one row for every combination the properties allow. Assisted-by: LLM Signed-off-by: Lucas Tanure --- .../bindings/net/ethernet-controller.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Documentation/devicetree/bindings/net/ethernet-controller.yaml b/Documentation/devicetree/bindings/net/ethernet-controller.yaml index 1bafd687dcb1..bba27a9feb61 100644 --- a/Documentation/devicetree/bindings/net/ethernet-controller.yaml +++ b/Documentation/devicetree/bindings/net/ethernet-controller.yaml @@ -339,6 +339,24 @@ additionalProperties: true # has added. Failure to remove the delay will result in a # non-functioning link. # +# Put together, with the two properties in the MAC node, this is who +# adds each delay: +# +# phy-mode tx-internal-delay-ps rx-internal-delay-ps TX delay RX delay +# rgmii - - PCB trace PCB trace +# rgmii-id - - PHY PHY +# rgmii-id present - MAC PHY +# rgmii-id - present PHY MAC +# rgmii-id present present MAC MAC +# rgmii-txid - - PHY PCB trace +# rgmii-txid present - MAC PCB trace +# rgmii-rxid - - PCB trace PHY +# rgmii-rxid - present PCB trace MAC +# +# A property for a clock the PCB already delays is not in this table. +# It is either the fine tuning described next, or a mistake the MAC +# should report as a fatal error. +# # Sometimes there is a need to fine tune the delays. Often the MAC or # PHY can perform this fine tuning. In the MAC node, the Device Tree # properties 'rx-internal-delay-ps' and 'tx-internal-delay-ps' should -- 2.56.0