From patchwork Mon Aug 3 05:14:21 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Hilliard X-Patchwork-Id: 2894 Return-Path: X-Original-To: noreply@patchwork.local Delivered-To: noreply@patchwork.local Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mxe881.netcup.net (Postfix) with ESMTPS id B97E81C0583 for ; Mon, 3 Aug 2026 07:16:43 +0200 (CEST) Authentication-Results: mxe881; dkim=pass header.d=gmail.com; spf=pass (sender IP is 172.232.135.74) smtp.mailfrom=linux-sunxi+bounces-24922-noreply=patchwork.local@lists.linux.dev smtp.helo=sto.lore.kernel.org Received-SPF: pass (mxe881: domain of lists.linux.dev designates 172.232.135.74 as permitted sender) client-ip=172.232.135.74; envelope-from=linux-sunxi+bounces-24922-noreply=patchwork.local@lists.linux.dev; helo=sto.lore.kernel.org; Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sto.lore.kernel.org (Postfix) with ESMTP id 575723015C0D for ; Mon, 3 Aug 2026 05:16:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9C8D53845D5; Mon, 3 Aug 2026 05:15:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="iTkhOC5R" X-Original-To: linux-sunxi@lists.linux.dev Received: from mail-ot1-f51.google.com (mail-ot1-f51.google.com [209.85.210.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 08ED439792B for ; Mon, 3 Aug 2026 05:15:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785734141; cv=none; b=ofC1bpk3bHW9y1E7rG850QHtBXruooBoVoqBuzghBPxI7EBuqmgMG9OzUIlbu7nkhak1gibJ5KtqlzzsyWyL/VrWrRsLMbd+G7FtND6WvKb3cav0MXGRn02MySX3WnNRY4bry7OyNyjh6ehg+Jq+LflF2aSDMX0we3llndUpIus= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785734141; c=relaxed/simple; bh=2SOkuuUqffJAqXcEW7ZDhEaFHvF0SZKllJC1Nh5E8zo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ZCuBFz81O8rq70+PNDz166aR5hHJxFH+4lvPy5Vw3zfftFw7R/s7zyLKRSSYczzuv+4+oOLvQrICXJw5ZLaFUf0mwYda3b0foPgoVYF08tbailHCB6Hn49SQUoTSHlOfEWLueEwixsa1zo5KmZ6lzNo7V336f0Hi2YWMjpubZ54= 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=iTkhOC5R; arc=none smtp.client-ip=209.85.210.51 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 Received: by mail-ot1-f51.google.com with SMTP id 46e09a7af769-7ee37dc91f5so1801398a34.3 for ; Sun, 02 Aug 2026 22:15:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1785734138; x=1786338938; darn=lists.linux.dev; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=GTwjTV5MzEj5mt/lgWMCGvinpE29xZysk84NZ5krcS8=; b=iTkhOC5RzevZ2n3mto9+6mPC8FDrCc9ucrWkW0FRCOWf62RY4+lOXHVvWkKtFGcIIC /9YpLXdkLAZajpwjPFxNbhZBngTnMNQzTB5/ndgQjxRPpAQGi/VnQ+N/7Dh9d+jlZca6 OwiuH1HHpOOzA3zivFI6p+PXd+PqowndRiY2KVO6aNrfqWcU0aFtAlfpj15ff6//yLHC TMDnQm9fZxvBshXFCVB1sDSDUFHbmkYAhrsU969pthJhxx1h3jAvXWZlQ+vQwYoD4w57 kWypzlp54TJLKTlfMGbmsaixlwZVnOIjen/4vqt/Vr6fKtJUh1fI2RhWrrDsMNj5LKzw RWzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785734138; x=1786338938; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=GTwjTV5MzEj5mt/lgWMCGvinpE29xZysk84NZ5krcS8=; b=HEbFLsQSusl/p3yrU1+N+qPO6E8ll6rDDYBb42ds0DT+OMuMXgNrwOe/rhOAbV/Eoh YTUV9gsC1LUIlCHi0N7qxz2COxoOpeeyMt81J/cFOo7WiS6N6kDN9Y1we9skLUv1j1Qa 05bDQGu5+lB7kce2U1SxWh/bBB5u1F17swnR/j5b7Z62sM1WdGB0lICJuFZeUoFN0HJd RrnzFn0EBjE6IEa8UxiCy48NFFlb7ZlxEu2sTadKCuSQqMVBz54+BMYNGVaSxvDv1dEA EJT3EMEC/Rc+LJVUEnMX58E3ZUTYbibH8XmmWS0XuXuLeyOnJj+5KxK0bQHE/NHjcnKq qpvw== X-Forwarded-Encrypted: i=1; AHgh+RrUT0CKgNdqYzgXgRHEVaYlFvvH39Xx/07SkB7ZTVE7RjezlmFggX7zqfWCRYAPnB+od7BcdJBUN9GZwg==@lists.linux.dev X-Gm-Message-State: AOJu0YzmdDCN3eiZHa7JuPAITYJGcacdw5hJdCp9KrOpC9O9+ETaLvEc qVpkKIx/QG8WdnEA6h1eUp4fgTjqvefPa8wXDUi3mg4naWSsH1ouJoPD X-Gm-Gg: AR+sD10IfzRTW6jfL/zMBjSrw8pB1aqnRMFIEJvMvN4zzPmGcMXkUAos/WG0vKljP6v ue9VeKIt33hQsn04Z6bP1yw6xjSj5OQudQagPmCQ8JEAnKYClkOUYNw5J9T986I41gRY8mca7zM EOPqXYpUUhp7mFQ1VQw/AOyp8mQg91izCo8i/4Y4IlZpqNg4Gq6xsUdOtWEsQSTRNgbhW7d7M+T Z0uV1Mr2J0ia1aB3F4bWCFoaNLgq7QfGdsRdhqY+MHyvrStX+PPuIyngIXKK+d2tEmrYQPczSbv vijflMhwluXkvaidpyUrXMOSVqg3ocibQXMHE3FR+S+ljANj9V4QiVsoPVicdmj7xE2nDHBSC59 QdkqlKt/1bfQatsgNw/kgucWHzBkmHrXH9sYJ5bBPf6u7zmCBYSUKjp3pnM06BSu1F3+IK16y87 14yuC9Xqu8wlLRE9XTmQIvq/PGXszIe/3t5q0yK7ynHJS6jAgq8cCscl7K0QVrxqMXLmvc8Cp7w W/Iff0zs8alOqXHJpo0XkKe2UkBPeX1LMrDY8T9ugfaozLxlT+vhPRZgvynPRNNdqvxzzF6x2+P njxsE/6BDD2O5z4pT+xnGxMio6jS13Gp8kDAocP8nP1tvCyGHAMb5Y0yTMxffhGnpiDaUw0yZA1 lNE8S1c0jkFWMVG6/ X-Received: by 2002:a05:6830:4489:b0:7e9:cddb:142a with SMTP id 46e09a7af769-7f196bd63a9mr15354948a34.7.1785734137863; Sun, 02 Aug 2026 22:15:37 -0700 (PDT) Received: from [127.0.1.1] (184-96-154-59.hlrn.qwest.net. [184.96.154.59]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-7f18f07a5e3sm6787108a34.15.2026.08.02.22.15.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Aug 2026 22:15:37 -0700 (PDT) From: James Hilliard Date: Sun, 02 Aug 2026 23:14:21 -0600 Subject: [PATCH 11/21] dt-bindings: net: x-powers: add AC300 EPHY control Precedence: bulk X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20260802-submit-acx00-of-dynamic-v1-v1-11-0a53cd9e21cc@gmail.com> References: <20260802-submit-acx00-of-dynamic-v1-v1-0-0a53cd9e21cc@gmail.com> In-Reply-To: <20260802-submit-acx00-of-dynamic-v1-v1-0-0a53cd9e21cc@gmail.com> To: Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Andre Przywara , Richard Genoud , Maxime Ripard , Alexandre Torgue , Giuseppe Cavallaro , Jose Abreu , Maxime Chevallier , Maxime Coquelin , Andrew Lunn , Heiner Kallweit , Russell King , Saravana Kannan , Lee Jones , Heiko Stuebner Cc: 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, mfd@lists.linux.dev, linux-rockchip@lists.infradead.org, James Hilliard X-Mailer: b4 0.15.2 X-Rspamd-Server: rspamd-worker-8404 X-Spamd-Result: default: False [-1.16 / 15.00]; BAYES_HAM(-5.50)[100.00%]; RBL_SENDERSCORE(2.00)[172.232.135.74:from]; SUSPICIOUS_RECIPS(1.50)[]; DMARC_POLICY_SOFTFAIL(1.00)[gmail.com : SPF not aligned (relaxed), No valid DKIM,none]; MAILLIST(-0.15)[generic]; BAD_REP_POLICIES(0.10)[]; MIME_GOOD(-0.10)[text/plain]; HAS_LIST_UNSUB(-0.01)[]; TAGGED_RCPT(0.00)[netdev,dt]; PRECEDENCE_BULK(0.00)[]; RCPT_COUNT_TWELVE(0.00)[34]; TO_DN_SOME(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[devicetree.org:url,sto.lore.kernel.org:rdns,sto.lore.kernel.org:helo,0.0.0.10:email]; FORGED_SENDER_MAILLIST(0.00)[]; FREEMAIL_CC(0.00)[vger.kernel.org,lists.infradead.org,lists.linux.dev,st-md-mailman.stormreply.com,gmail.com]; FREEMAIL_FROM(0.00)[gmail.com]; ARC_ALLOW(0.00)[subspace.kernel.org:s=arc-20240116:i=1]; R_SPF_ALLOW(0.00)[+ip4:172.232.135.74:c]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; FREEMAIL_TO(0.00)[lunn.ch,davemloft.net,google.com,kernel.org,redhat.com,gmail.com,sholland.org,arm.com,bootlin.com,foss.st.com,st.com,synopsys.com,armlinux.org.uk,sntech.de]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:63949, ipnet:172.232.128.0/19, country:SG]; TAGGED_FROM(0.00)[bounces-24922-noreply=patchwork.local]; RCVD_COUNT_FIVE(0.00)[6]; FROM_NEQ_ENVFROM(0.00)[jameshilliard1@gmail.com,linux-sunxi@lists.linux.dev]; RCVD_VIA_SMTP_AUTH(0.00)[] X-Rspamd-Queue-Id: B97E81C0583 X-MORS-Enabled: yes X-MORS-DOMAIN: patchwork.local X-MORS-HOSTING: hosting172546 X-MORS-USER: hosting172546 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= The AC300 companion IC exposes the Fast Ethernet PHY control registers through a separate non-PHY Clause 22 address. The manual defines the control address as the link-PHY address plus 16, giving address ranges of 16-23 and 0-7 respectively. Describe the control endpoint, its required VCC1 supply, its 24, 25 or 27 MHz input clock, interface mode and calibration cell. Signed-off-by: James Hilliard --- .../bindings/net/x-powers,ac300-ephy-ctl.yaml | 77 ++++++++++++++++++++++ 1 file changed, 77 insertions(+) diff --git a/Documentation/devicetree/bindings/net/x-powers,ac300-ephy-ctl.yaml b/Documentation/devicetree/bindings/net/x-powers,ac300-ephy-ctl.yaml new file mode 100644 index 000000000000..a6634fcfafd4 --- /dev/null +++ b/Documentation/devicetree/bindings/net/x-powers,ac300-ephy-ctl.yaml @@ -0,0 +1,77 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/x-powers,ac300-ephy-ctl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: X-Powers AC300 Ethernet PHY control interface + +maintainers: + - James Hilliard + +description: + The AC300 Fast Ethernet PHY has a separate control interface accessed as a + non-PHY Clause 22 device. Its address is 16 plus the address of the link PHY. + +properties: + compatible: + const: x-powers,ac300-ephy-ctl + + reg: + minimum: 16 + maximum: 23 + + clocks: + maxItems: 1 + description: + AC300 input clock. Its configured rate must be 24, 25, or 27 MHz and + determines the corresponding EPHY_CLK_SEL value. + + vcc1-supply: + description: + 3.3 V supply for the AC300 I/O, bandgap, Ethernet PHY analog front end, + and internal digital LDO + + nvmem-cells: + maxItems: 1 + description: + SoC SID cell containing the Ethernet PHY calibration value written to + the AC300 BGS_EFFUSE field after adding 3 modulo 16, as prescribed by + the vendor initialization sequence. + + nvmem-cell-names: + const: calibration + + phy-mode: + enum: + - mii + - rmii + +required: + - compatible + - reg + - clocks + - vcc1-supply + - nvmem-cells + - nvmem-cell-names + - phy-mode + +additionalProperties: false + +examples: + - | + mdio { + #address-cells = <1>; + #size-cells = <0>; + + ethernet-phy-control@10 { + compatible = "x-powers,ac300-ephy-ctl"; + reg = <0x10>; + clocks = <&pwm 5>; + vcc1-supply = <®_3v3>; + nvmem-cells = <&ephy_calibration>; + nvmem-cell-names = "calibration"; + phy-mode = "rmii"; + }; + }; +...