From patchwork Mon Aug 3 05:14:17 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Hilliard X-Patchwork-Id: 2902 Return-Path: X-Original-To: noreply@patchwork.local Delivered-To: noreply@patchwork.local Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mxe881.netcup.net (Postfix) with ESMTPS id 54A2B1C0583 for ; Mon, 3 Aug 2026 07:21:13 +0200 (CEST) Authentication-Results: mxe881; dkim=pass header.d=gmail.com; spf=pass (sender IP is 172.234.253.10) smtp.mailfrom=linux-sunxi+bounces-24919-noreply=patchwork.local@lists.linux.dev smtp.helo=sea.lore.kernel.org Received-SPF: pass (mxe881: domain of lists.linux.dev designates 172.234.253.10 as permitted sender) client-ip=172.234.253.10; envelope-from=linux-sunxi+bounces-24919-noreply=patchwork.local@lists.linux.dev; helo=sea.lore.kernel.org; Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id DBA23309DAF9 for ; Mon, 3 Aug 2026 05:15:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1326C397B1B; Mon, 3 Aug 2026 05:15:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ZX1rcUaU" X-Original-To: linux-sunxi@lists.linux.dev Received: from mail-ot1-f53.google.com (mail-ot1-f53.google.com [209.85.210.53]) (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 62BC6395AC3 for ; Mon, 3 Aug 2026 05:15:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785734138; cv=none; b=IYqY4rU4pHiO/Opa1gJmDQVDm9voW9FUoqWz2Cq3ck9r7Co5FqnGoujqJlgncvkNiZHmzLC7ReoxqTvpIzkvYNZv3hEDn5XIp0fec5JWi2UnLpoMVqixJNrWdWPjDtY1xwInpYnbZjhCHlrs5wN0Fy6HSZr3UrIWASuAmaOQJUU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785734138; c=relaxed/simple; bh=vV8lMZbs024nEM6mXjaIv6nOjnfVCGoiA5FCDI8jrNk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=cJNCkMAb25KwJezoR6atcKZBxOa1ebRzqOwh7NhpJy/8GJbUEy1rUdTy/ZGve3Qj+u/FGdqXzmadqXpqRaQW8r1IZQPysKURPiNe1Rc2uMvYla4DDnmirB22xNDZFC4nbiTsLdHuLQ/6ySlTNauuiLg0bUaYNhR0NNR4556JnVk= 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=ZX1rcUaU; arc=none smtp.client-ip=209.85.210.53 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-f53.google.com with SMTP id 46e09a7af769-7f18c0e03e3so1152273a34.2 for ; Sun, 02 Aug 2026 22:15:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1785734130; x=1786338930; 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=ufELgsZA/AuhdmDVFD2N+JzOSgNytpSBYv7TBEiLCKU=; b=ZX1rcUaUJq5VWQat+cIQ+ZBcFC8dLqzdm2sR0U2Y59uXmocQhaNWRHSZm/HzJuCACh sCYO/r0jcwhktLUiy27eoJJFy7ATqzwSNl3ct/JWJU2e7vINf9OnCpSN7WW92iAdy/0d c/So+aTbwScF7BKrXhE85fx2VljmHgRSGp83XCISpCJ9nmz45xw27b+uTVrVaQTNuiyp 52ieDpD7yMgsQqeJMHEmrZMXCjyCK5ChPAGKZeP5c/tL/sts8IpRbgpMeUx8Jabocuf8 7vzw9mIsWUJJxFEIdZ3nWGAQZLo94ve8yU4kG/KIt9HB3XqMPxoHJEHI8Ku36uB2CVIO KvKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785734130; x=1786338930; 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=ufELgsZA/AuhdmDVFD2N+JzOSgNytpSBYv7TBEiLCKU=; b=Uj3N+PX49oxWTlCpwjGt4ivMSnwuygzo8ZGnaZWHIDcV6CdI+6Y8R9lxqvtlwoK91G 3VsU2JK56FyR6jbrQh3S9cjJnuqgQNGA2r6ismX7d5/0OhPMaAPJCOvYchkMWP+TGiKn v7L1XKwBmDkkHfomQcvpXCfKoS7vvGxr6xsx03pdNYDxvkb+TBkrDM+9vEAekg3XqTSY 7pbupaemjpilox8xnoGVPbpELck+Vt1w37voX5CwZUQ1yM/uMxWuWe5evh1a+CE+p02I 4d9nQOtDaWfcmWPEIZP5zXAdTho4zR3fJ4YDxJTTqcZyJNyLGcIvcI2kjSiztpZef9vV cdSg== X-Forwarded-Encrypted: i=1; AHgh+RrdIbTkzn/o9v9dKjvEsB6lhTDgJSCNIZDMv9RCt864WT248pj+f20E3CASP8T35EXIfJYcBtICCkwlBQ==@lists.linux.dev X-Gm-Message-State: AOJu0YynRfI8uVFZzwzSTIi6CTm8kEj82zoLtrBLJ6gwSKxBjYtHPdHz WROG2BTAj1u2/TPZPrhsnp47E6qu7rFvtws0xVNhv9eArQ6oBB1cK3bK X-Gm-Gg: AR+sD11BugNbDq7KQA8I0o4YXjz5sUPMWCZ7Io1Sp26KLiD0IavosMyRd6AXidBJWWK mtZz54pF76QtGi79YmJuw+CSEBZVHUA0iNeS+kJsnU8zv89UZIAn3rq6tRaPaM99XKtFk/mLn19 SwPLsMdw6+gY9jg3vLZetpvA3Cxpugw+xkM5pj9gMylB5c704z0NLqAkRMtgrSSMafjkC3cbqG6 osTX3okk73y/snQ2rqHPyJDlvTCK3K7eyPao6J/Wy/DJeyXIhFlWIr5rAUVCXnpUYz/6aANRTvA ZGAzm92GD3at4VxoRIhVwbe9n9/3kli0E/MJx+8TaRqFlE0/PlFC98bJtY9jeuYlQ+YotGsR5Ul GZn6pq6UfEnDQyt/SbGYelOra3HhFpcqkBZWUA2xh+4LGCWvPMwJHnDHG82ayCn8XFFXke7c+Rd 3XWxIh50MZweY0XHDUQFZidiFom2e0r46LFmmICkAkkRNFD3ZUW++gaqUt8p0aNkqb5oi57xsJY lUXc5sf6aqIbuFbVf/8voigN20jvg1y+lZU8KDg1/76TvXCmo9Ooj2WhWQPhoQLBp1LhfRjBbvH 9yEdedGsCMQGd5ulKBonb3uLm602YmAL9T8t3iHZ2IyX8yn041g5JDiPY32NDCIFIKGXbtzTdJO e7zYy/mUqY979BB//8GoIpRGlBWFN X-Received: by 2002:a05:6830:81f0:b0:7e9:cad9:4bd0 with SMTP id 46e09a7af769-7f196b1550cmr14686937a34.3.1785734130353; Sun, 02 Aug 2026 22:15:30 -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.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Aug 2026 22:15:29 -0700 (PDT) From: James Hilliard Date: Sun, 02 Aug 2026 23:14:17 -0600 Subject: [PATCH 07/21] dt-bindings: net: x-powers: add AC200 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-7-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.234.253.10: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)[sea.lore.kernel.org:rdns,sea.lore.kernel.org:helo,devicetree.org:url]; 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.234.253.10: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.234.224.0/19, country:SG]; TAGGED_FROM(0.00)[bounces-24919-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: 54A2B1C0583 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 AC200 companion IC contains a Fast Ethernet PHY controlled through the parent AC200 I2C regmap. Describe its control function, including the interface mode and optional SoC SID calibration cell. The vendor sequence adds three to the calibration value modulo 16 before writing the BPS_EFFUSE field. If the SID cell is omitted, the driver can use the AC200's internal copy of the calibration eFuse. The link-PHY driver supplies its Clause 22 address when enabling the control function. Signed-off-by: James Hilliard --- .../bindings/net/x-powers,ac200-ephy-ctl.yaml | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/Documentation/devicetree/bindings/net/x-powers,ac200-ephy-ctl.yaml b/Documentation/devicetree/bindings/net/x-powers,ac200-ephy-ctl.yaml new file mode 100644 index 000000000000..b3337c3aa62a --- /dev/null +++ b/Documentation/devicetree/bindings/net/x-powers,ac200-ephy-ctl.yaml @@ -0,0 +1,46 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/x-powers,ac200-ephy-ctl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: X-Powers AC200 Ethernet PHY control + +maintainers: + - James Hilliard + +description: + The AC200 Ethernet PHY control function configures and powers the Fast + Ethernet PHY in the AC200. Its registers are accessed through the parent + AC200 I2C regmap. + +properties: + compatible: + const: x-powers,ac200-ephy-ctl + + nvmem-cells: + maxItems: 1 + description: + Optional SoC SID cell containing the Ethernet PHY calibration value + written to the AC200 BPS_EFFUSE field after adding 3 modulo 16, as + prescribed by the vendor initialization sequence. If omitted, the + driver reads the AC200's internal copy of the calibration eFuse. + + nvmem-cell-names: + const: calibration + + phy-mode: + enum: + - mii + - rmii + +required: + - compatible + - phy-mode + +dependentRequired: + nvmem-cells: [ nvmem-cell-names ] + nvmem-cell-names: [ nvmem-cells ] + +additionalProperties: false +...