From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (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 A7EB63B100A for ; Tue, 6 Oct 2026 12:47:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791290867; cv=none; b=LnS31m8ab8d/safPFMlGoH6n94WOZ49J6cawuFo6Wk8tE//TZZDl2JJ/6O4dBCFhK1JBoSpWn6E5+6p9pwhO40IzJBelNZFjiuaGBSSkYe09puhUOj2kM6/OimUGxFWvVR3JgC7gnJD3aRA2bIpAuVPgP/3DiZjMqieL8D6RrV4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791290867; c=relaxed/simple; bh=j6mlx9CPkum7bpd93df0KuA9wXWsuLKzELZc3PzmjK4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Y12kYRkmpoTA085L+zYxVe9oD4j7p0dIxpdrWgjVZj3zCsF+nNY9F7SRPeiNYhkp3SK6NNE9L585mwuS7BdK034Qa+vmCtstqza1gF9v3dhHErqlGRAI9NR3rU3f0lvdgoXj4PCy6kkJ91yPyiqCBSYXGxvOXDAe99/0OZIlbkY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=lex.la; spf=pass smtp.mailfrom=lex.la; dkim=pass (2048-bit key) header.d=lex.la header.i=@lex.la header.b=dBtWmZ0k; arc=none smtp.client-ip=209.85.128.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=lex.la Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lex.la Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lex.la header.i=@lex.la header.b="dBtWmZ0k" Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-4995b0343c1so13195665e9.3 for ; Tue, 06 Oct 2026 05:47:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lex.la; s=google; t=1791290859; x=1791895659; 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:content-type; bh=URnF0WpPNT76iwwx4OUHbknNShXeDW8wlFWgezHCYwk=; b=dBtWmZ0k8CwfKgtLEQbpYwUdconweRIQDnJ+hj2SlCqykC/27iUMZ/xGWduTT7Hpx1 lIvdnTPRsn04NtXKqJC0nVlU3CiJZisPz7RIxtuVoDKHdyyAMS2y6lf5X11zsXbJNzpb fFMDOc7TWbjrHSCE2Eyq5kvgawoi+6S6sdSnqqIbRTBEkaftmh/J17Ca1fQ1JEdrzGE5 AD/palnI4ZUTfoVRcTlKwSRBGjIXy1kar1BjW/eTUIhtnlPKX2z+Mkee5o5/ucI0/M+z RIkNJlKxsRrfrlsUuhvx2nBbjPcz+9/38Uz+EZt8uHUbobDgMSNV3EbESX31+UIaYujh 2B/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791290859; x=1791895659; 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=URnF0WpPNT76iwwx4OUHbknNShXeDW8wlFWgezHCYwk=; b=qJiNpIU7go6n7ld86E2pKohQgXIBlTdpV9+PvmpmkUlIUSkv3iPti50ZcAhgNBLq86 rpmzXSghl9r2Te2En7Ik65lNe31rVtSm53P5xl9vqYRAZ2Iql1GiJDOxFXpfwturtNur ZvCPM8oSFgeoUjcijduafJ7hU/FOKYnpNNblAfaJ+Pg+MSSppl23ltgNtDkuI63JJgtM BiSc13Tb1TwKJ+8paWoPZLQwAZixMcDpyvep6U27L350oOnn6OXIrhCQ92/j7MNjl18M 5gjSdfjT9ZKcHnklZblnAafLK8cJq32gmrtTYSdRre3OZ6HFWoJRMQC4+ilb53Hnl3C8 5fGQ== X-Forwarded-Encrypted: i=1; AKwUvBxjA8htCAxrNJ91abjPWoBq673PHK11MX3lpBKjd6cwEnxQxBiE4E+7ivKfIkiFrfhNh/CPa1Hb2MoFDGw=@vger.kernel.org X-Gm-Message-State: AFuF++mQ+Hl+Ty56pEh89yBCaffyb5zDXVi454jiWmQyl8Lr1nV6Glm4 ZwWDtW9jNF1u+ggaIBTet31KXvKUvK5JIT6rtmCqP+0heE2hmBFBoaa12JP/kCeBzM0= X-Gm-Gg: AYBFou0WagDtWFrl81o+vX+rMD+na3IjIReDnShlPS6r9FeiVSgmSP0WsUxFl7yE3fS ASjkhbFKvXdk6xc3HAdxikQYJH6yAZgDnwS3kk5+qVb/wIZxdc/PrDIkxZlv7dT+qajY12+sHhh /IDaQDOgeBTANaELjfggFXdVEARotdG0S2eVH/01ELTLHe/T5QacAiuBfLDSk+3nFf83jABVnD5 31ihlsS15k5BjFW72FFPxhSh30zHbNTCSP0yA/1OfY6DzR6wDw4vddU/tqLjZ5u6i7NVdyVxInd VBAHL2f1g0MRyWJwMAG4s+ILTk9I4A7gFyvU9iGceyLBWzTOR7IMx1kFxUJPzuEndtrOfTODtjO EKqpGly6pM/HgannQEPEvVT+OgHXAhUZli2Z8eFZZkVy6tmhPI8uXx5Cdvfq22EALCj5AHfDKbu ZTOVWfXVjDmVAeVSLXCKLOShDv49F4H5j7N1Lviilmyds37GAIbA== X-Received: by 2002:a05:600c:4f81:b0:49d:4ef:bf70 with SMTP id 5b1f17b1804b1-4a17b53be50mr23583605e9.10.1791290859097; Tue, 06 Oct 2026 05:47:39 -0700 (PDT) Received: from remote-01 ([84.17.55.224]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48c622b4685sm9722003f8f.41.2026.10.06.05.47.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Oct 2026 05:47:38 -0700 (PDT) From: Aleksei Sviridkin To: Russell King , Andrew Lunn , Heiner Kallweit , Vladimir Oltean , netdev@vger.kernel.org Cc: Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Conor Dooley , Florian Fainelli , "Chester A. Unal" , Daniel Golle , Matthias Brugger , AngeloGioacchino Del Regno , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH net-next v6 1/3] dt-bindings: net: ethernet-phy: add needs-host-firmware Date: Tue, 6 Oct 2026 15:47:29 +0300 Message-ID: <20261006124731.1528963-2-f@lex.la> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261006124731.1528963-1-f@lex.la> References: <20261006124731.1528963-1-f@lex.la> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit A PHY can be one that the host has to load firmware into before it can be driven at all. A controller that connects to such a PHY at setup, before its driver has loaded, gets the generic driver or no PHY at all, and one that connects only once gets no working PHY on that port for the rest of the uptime, even though the PHY works seconds later. The flag declares that. A consumer that sees it keeps the port and connects the PHY once its driver binds. It describes the PHY, so it sits on the PHY node and needs no prefix naming one. firmware-name is not used for this: it names the file to load, and the EN8811H driver keeps its two blob names in code, so it would only be read as a presence flag. The need is not derived from the compatible because the knowledge that an ID needs host firmware lives in the PHY driver, and that driver is a module not yet loaded when the MAC connects, so it has to come from the device tree. Found on a Keenetic KN-1012, where the EN8811H behind lan4 has its driver on the root filesystem and the switch sets its ports up before that is mounted, so lan4 stayed dead for the uptime. Assisted-by: LLM Acked-by: Conor Dooley Signed-off-by: Aleksei Sviridkin --- Changes in v6: none. Documentation/devicetree/bindings/net/ethernet-phy.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/net/ethernet-phy.yaml b/Documentation/devicetree/bindings/net/ethernet-phy.yaml index df50c4c33d76..ab95b9a5d95a 100644 --- a/Documentation/devicetree/bindings/net/ethernet-phy.yaml +++ b/Documentation/devicetree/bindings/net/ethernet-phy.yaml @@ -215,6 +215,12 @@ properties: used. The absence of this property indicates the muxers should be configured so that the external PHY is used. + needs-host-firmware: + $ref: /schemas/types.yaml#/definitions/flag + description: + This PHY runs firmware that the host must load before it can be + driven, and is not usable until then. + resets: maxItems: 1 -- 2.53.0