From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (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 D6B10308F00 for ; Fri, 12 Dec 2025 08:47:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765529229; cv=none; b=hZFphiFFhAIFr/rQ3AmtM8veitjRB/BSLCVMUVdEFk5NJy+NXnHrjqiWv7cA8WlOxOZgEYpv4m3OGYPwhnF9B51xsAbp5rdKdQiCWJghrcWxWLuZSBWh4mCj/K8HkXE8ZUcNuSMVGPM6oDU2PuRAfZb2ho7SwsZkVfszNWmm59k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765529229; c=relaxed/simple; bh=O4j1WHeYWmlVfXspPLornML/5pfXlu4tDPMIixs7c1k=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=YFXa2URnePVM0Wpc6oORIx9tEFl5LMMAUOz92zD69meUN9b20PsenM+NaySrLAsgaOii3Wh0puID1pPSzUS/Tol5mzzwED5cScwvLATk9sB5DnNm1k6i4tV0qphSqxO/TD8nmEKRYHDaFvT3a512m0DOBFjJrnLBIiimx6Ody90= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=TeMM++tL; arc=none smtp.client-ip=209.85.221.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="TeMM++tL" Received: by mail-wr1-f52.google.com with SMTP id ffacd0b85a97d-42fb3801f7eso241428f8f.3 for ; Fri, 12 Dec 2025 00:47:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1765529226; x=1766134026; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=vwFLBwyOTuUthLXbUsz0YRPUpQojC489N0xdVPk0niY=; b=TeMM++tLA8hpwY46H1QO7EESvifooEfCaYQH+rpOx8L/FB+ZJs47J2TGTbyt91Dsvj dx29r6JbBlBy1xB8Wv63Hv6+0Pxe3zarY9UHpYgL9BIUcQGeD2vH/NyD7Fm4ul6RgwLn XgWCtO0/81wj9szIPtnB4TF0GBczKL4GILQZiQDrqhoPAGi+mYC0Skzu3n+XcaQ3x4Mo GE7AQXvRi31QlTji5f/sdXV7s6wcytoVZxFmqlTLo7ZFKaEblcqj3U/wVF0R2riIT7Vw cHEYuJvbatcLQYc27r9M/dDHpYHm7AKPEtxanfMbY2fjog4XwncsaahsAer4aGlmAKZr NW6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765529226; x=1766134026; 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; bh=vwFLBwyOTuUthLXbUsz0YRPUpQojC489N0xdVPk0niY=; b=tnuAnfKvqdWq4Hi7eSVKACj9abKkDkjd+3Nt0mlD4Y9w49Hd4oYzJWsodq3AjmUl8J vUmSCX5M88HWSyeg46+sR/Y+aDvXlP0FmerULOqwi5ZjPyguPHIzVY58eOes+STnv8Zh qwFatNI04T7+WsRvPfK5HfISJeGXgr/YuQgWZcsxCAJYaLum8xV8KdlImOc9EmuDKx2O PqeKnUTrnR0SZPSPx8CG+7AFkaSPv0cTQeJ2CjUvbMcdNKi0saNN2dhecJjnsiNH5eeu ETmbnf2jH6XNxJgk30kw5dUuBX2Y7uzlNSvZxYg2eiXeqTA4lOAOATkseLqq+PKF1iWF /DsQ== X-Forwarded-Encrypted: i=1; AJvYcCVYVoWlxymL2IQd9yrD+Bc6Y8Wkuc//WrE25Vb3uqjmiIZRk5pdbf9TmSbI843jQLHOki8bxQBKSHD7U54=@vger.kernel.org X-Gm-Message-State: AOJu0YwGITvMeEgSkSKruWxrQAED/N/7RWa0/Il5YSJ2vrX5ZKBxaOex 2XRmqa01TJ9ae0iym7vl1tW9EL8HvdIN5cRgzbtruWKf8aI8sqDMqmI6 X-Gm-Gg: AY/fxX5woThExHy/KrSrcQeTOwQ9de61exjuz8l7pF0erc+VpZN1mo7Q8kfCIcD94YD ic8s8t3qFMim/DFWiTSf5zEskVo40/8g3mWtR48ZpF4Yzffo3bZPAVQM5+cAR/q5MjxyC+0QW7C 8CxTbgjdRQxfolstnWaPmYUw35bvXwz5rU3JT4TAzKef5dDK3cuzov6nPeClyBe91gW8Tw5laNy /iG/l4sTU4ssJESOy17ewcIa8I9Od70jnvPUWWMkhw4iSo6jUewaaWkZ7CfeAigiRQyn8nYGyBO OMtf1Hr0KUPcZrMJMeNIHpyBl6/ym/vpiGn9lrLVKGwu9OYjBUQ96nu/BKRMFUeYKKxvFDZnU0E GTlPp1N6EToPJuB5VbOyl8FKAPRWmHqobEaIrtRQ/n/JZGC0Gji4Ph1EZFbpXK+Eij7MV+W6QXo K+A7dIVCSZE8Ptj3Vu X-Google-Smtp-Source: AGHT+IGBiLjGhGraX7AWtHZ+w7lR3FUkHC9JwB8Wfe+B+to3J6OlMkVqdEcn4aprm0IQnWmS9b5gaw== X-Received: by 2002:a05:6000:26ca:b0:42c:a4e7:3975 with SMTP id ffacd0b85a97d-42fb48fc26fmr1135644f8f.30.1765529226102; Fri, 12 Dec 2025 00:47:06 -0800 (PST) Received: from eichest-laptop.lan ([2a02:168:af72:0:9f18:aff4:897a:cb50]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-42fa8a09fbesm10456076f8f.0.2025.12.12.00.47.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Dec 2025 00:47:05 -0800 (PST) From: Stefan Eichenberger To: andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, hkallweit1@gmail.com, linux@armlinux.org.uk, geert+renesas@glider.be, ben.dooks@codethink.co.uk Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, francesco.dolcini@toradex.com, rafael.beims@toradex.com, Stefan Eichenberger Subject: [PATCH net-next v1 2/3] dt-bindings: net: micrel: Add keep-preamble-before-sfd Date: Fri, 12 Dec 2025 09:46:17 +0100 Message-ID: <20251212084657.29239-3-eichest@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251212084657.29239-1-eichest@gmail.com> References: <20251212084657.29239-1-eichest@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Stefan Eichenberger Add a property to activate a Micrel PHY feature that keeps the preamble enabled before the SFD (Start Frame Delimiter) is transmitted. This allows to workaround broken Ethernet controllers as found on the NXP i.MX8MP. Specifically, errata ERR050694 that states: ENET_QOS: MAC incorrectly discards the received packets when Preamble Byte does not precede SFD or SMD. The bit which disables this feature is not documented in the datasheet from Micrel, but has been found by NXP and Micrel following this discussion: https://community.nxp.com/t5/i-MX-Processors/iMX8MP-eqos-not-working-for-10base-t/m-p/2151032 It has been tested on Verdin iMX8MP from Toradex by forcing the PHY to 10MBit. Withouth this property set, no packets are received. With this property set, reception works fine. Signed-off-by: Stefan Eichenberger --- Documentation/devicetree/bindings/net/micrel.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Documentation/devicetree/bindings/net/micrel.yaml b/Documentation/devicetree/bindings/net/micrel.yaml index f48e9b9120ca0..6d6136014cd62 100644 --- a/Documentation/devicetree/bindings/net/micrel.yaml +++ b/Documentation/devicetree/bindings/net/micrel.yaml @@ -165,6 +165,19 @@ allOf: supported clocks: - The RMII reference input clock. Used to determine the XI input clock. + - if: + properties: + compatible: + contains: + const: ethernet-phy-id0022.1640 + then: + properties: + micrel,keep-preamble-before-sfd: + type: boolean + description: | + If set, the PHY keeps sending preamble bits before SFD in + 10BASE-T mode. By default, the PHY removes preamble bits + before SFD. - if: properties: compatible: -- 2.51.0