From patchwork Tue Sep 15 19:03:18 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Hilliard X-Patchwork-Id: 3359 Return-Path: X-Original-To: noreply@patchwork.local Delivered-To: noreply@patchwork.local Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mxe881.netcup.net (Postfix) with ESMTPS id 2C3291C02DB for ; Tue, 15 Sep 2026 21:08:11 +0200 (CEST) Authentication-Results: mxe881; dkim=pass header.d=gmail.com; spf=pass (sender IP is 172.105.105.114) smtp.mailfrom=linux-sunxi+bounces-25955-noreply=patchwork.local@lists.linux.dev smtp.helo=tor.lore.kernel.org Received-SPF: pass (mxe881: domain of lists.linux.dev designates 172.105.105.114 as permitted sender) client-ip=172.105.105.114; envelope-from=linux-sunxi+bounces-25955-noreply=patchwork.local@lists.linux.dev; helo=tor.lore.kernel.org; Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by tor.lore.kernel.org (Postfix) with ESMTP id 37D5734A25 for ; Tue, 15 Sep 2026 19:03:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AF9D04CCDF2; Tue, 15 Sep 2026 19:03:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="doxV3x2S" X-Original-To: linux-sunxi@lists.linux.dev Received: from mail-oa2-f12.google.com (mail-oa2-f12.google.com [74.125.231.76]) (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 042B74CE67C for ; Tue, 15 Sep 2026 19:03:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.231.76 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789499019; cv=none; b=P/KtXoJHFBnD2UGG+05g/pJZzk7u/ZUisPW2NMhjXg8MYnyL2rUfKnBN6SuFdBZJPvYzTMUgUeFMtLBG7ozLBkri+H3+kKLVGKuzWmZpWz4tkmCGhs3FrGB3Bw8buMGGrwI3fz81j+xv3OQKGf3sHx/SsgXbPnyxtSYZWTqQdyk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789499019; c=relaxed/simple; bh=2JIyZIHznyDtQqCAOgu4r0hfKVY221r4s//QaqUnxzc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=rz92AunlnPG81G3aboXRDa4qQxAWvn8idch+5Afh1TP7WIAWkbd9p6Oo/YydnBn60sSF7XXBJSM4tXL8ssQVx3WhsG7w5K+Ebr279JNbLEsgkNuwJIkF69nS71l2yLz/IT4UNMwhvnVw5n9+iJWtODpRnjUAjaN7NTbzJFM6JY8= 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=doxV3x2S; arc=none smtp.client-ip=74.125.231.76 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-oa2-f12.google.com with SMTP id 586e51a60fabf-466ccdd77e3so100609fac.2 for ; Tue, 15 Sep 2026 12:03:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1789499017; x=1790103817; 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=JW8jFyLPHvei3ZpNWECcPkSmFiI6d1/AJVTjb5PqVkk=; b=doxV3x2SkfKce5FQThS7sCAUo2hVnaefDfQICu+KF/jEMCJGIdgk5sMG+wKm0kYenL j7BM7GtcXREap1FIrjxMoX++92b94bx1Y0cApbceb+slvkWNL+t+HrA75RTvueQeUQte DGvokyI7LI/TmpitIVQ3aEdjaavduAWqXxPAJ4wB9C1pxEY9ycet+9qzthawHQ6uvQg/ UmNKqR3XVdiXz3mw9gpdThovN3VnOba4x+wrXWyA9VGu8qj9/dOg1nirMcWIAaxZFjIp 97fmcv41HAkyySX7CIjclfxbCTNR5xbj4JVhNN4rsPsJqpofpeOKkTvDEVFFhqaNaPMG O4Jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1789499017; x=1790103817; 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=JW8jFyLPHvei3ZpNWECcPkSmFiI6d1/AJVTjb5PqVkk=; b=ZMwuShFRvzfAf/yXLxM2L+6emOzNqWyhF1dCPbVN1CHY5Wtz980CGissE+yUhwEuwg /7Q82UT335w7VtHbMu959phzcmEkOSxlD8PDgoLJMI9dqEJy7p9fJRqugd5d7ukzW/ZT u1NFIl5DiQpvWL7o/O1M0K30RKvs9VjgMeLQMR86VspaR20URGfOPyMLF9bihwvx3CVo 9J7mu0HA0+9IGgc0OdTzKCUXAPX5dB4K4nXFZrZOfld29J3Vat3g1xRK6JfWNPkbnWo+ PSUZqC+o4QHzzHsB9OBQKdqe4u9LW+GXbzVrrRyWKvGnWteZVRcPN/ll9BSOeDy6rnzl AKHw== X-Forwarded-Encrypted: i=1; AKwUvBzZUGWvFkDN6zo43iyBroF/NQ8La9a/DmcfHhbmqXBOpWkkHYcqeFEPGV1lBobB1SDQaX+aZwGxxq15BA==@lists.linux.dev X-Gm-Message-State: AFuF++nVmDKROYhYLpJwxuMLFkiCY804dfAicn9WTU2veEl8B/kg4mUk RytMkU84vF5SpHUoyFXiSQ5I5obwAvooQtPC3eNJ3J2krL3XmVt5XhVI X-Gm-Gg: AYBFou0wO+UQfGBZViLCvi9vD8KkNs7dnYvGEFquMebxLF2BI7gdoWruHs6wDOXE3ye 7KKBRoTTwu3e6lJiHMDIR8ajYhaPM/1qnSrRzBwaei9U8x2bl3K/qYOfwiDnmdY966ZUe2V4fTl nIoncZEmHRUWlH0PJWX0GJJhg91axJ65h/+ucga3hLiU64LVq+JBP6M/uBrmlgkdLMfFvCVLhSH jL0po8BAdqnFIrZbY/37nmralk11V0RL91irQvNufyNeCkflyd3UVDu/zQn52Z5/03mCmzAK9Ks sY/+DL+GOZ+1Kp3SS8c8AXSifa3DjtiF2ltIoJhR9kk+VhMl6sFkIryy8KzSf2yIMrxi2UjlshO ZbyhuSBJpOWceiKE1+nRi+FV7NNNogBJPMbGXRPps76HEOOK1Hd7oXfdedo/W1LfXVqIQ+xQQAt CCxulFO1kyFSJBCumg3XMQltkqh+vMWzyoxm66hS5A7Tg6gdPfq0/yySACLE1wQJ7U+fVbMkT8K +XvFn82i9FuDsuNW/9aBfM1s+7GjuY5UkPEN8nwQd/LQGy2DlZPFF9KlgHS0z2YmTIXlDA4jMrP ECeVi/WkxdIqYZdWY5T8VVVb/6Fxe1fYCCw02NagQZanRVj4DTP4OUlCfr2rCQhmx5ZLiM9nkbu VgrIDNAObbkAtJrG3jrPAcNI= X-Received: by 2002:a05:6870:e305:b0:475:a112:1279 with SMTP id 586e51a60fabf-481fa3a2804mr6618423fac.38.1789499016683; Tue, 15 Sep 2026 12:03:36 -0700 (PDT) Received: from [127.0.1.1] (174-29-1-49.hlrn.qwest.net. [174.29.1.49]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-4842546a51bsm836569fac.0.2026.09.15.12.03.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Sep 2026 12:03:35 -0700 (PDT) From: James Hilliard Date: Tue, 15 Sep 2026 13:03:18 -0600 Subject: [PATCH net-next 1/2] dt-bindings: net: allwinner: add H616 EMAC1 Precedence: bulk X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20260915-submit-h616-emac1-v1-v1-1-195de0bb1f8a@gmail.com> References: <20260915-submit-h616-emac1-v1-v1-0-195de0bb1f8a@gmail.com> In-Reply-To: <20260915-submit-h616-emac1-v1-v1-0-195de0bb1f8a@gmail.com> To: Richard Genoud , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Alexandre Torgue , Giuseppe Cavallaro , Jose Abreu , Maxime Chevallier , Maxime Coquelin Cc: Maxime Ripard , 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, 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.105.105.114: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)[]; PRECEDENCE_BULK(0.00)[]; ARC_ALLOW(0.00)[subspace.kernel.org:s=arc-20240116:i=1]; TAGGED_RCPT(0.00)[netdev,dt]; RCVD_VIA_SMTP_AUTH(0.00)[]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[tor.lore.kernel.org:rdns,tor.lore.kernel.org:helo,bootlin.com:email]; RCPT_COUNT_TWELVE(0.00)[25]; FORGED_SENDER_MAILLIST(0.00)[]; FREEMAIL_CC(0.00)[kernel.org,vger.kernel.org,lists.infradead.org,lists.linux.dev,st-md-mailman.stormreply.com,gmail.com]; FROM_HAS_DN(0.00)[]; RCVD_COUNT_FIVE(0.00)[6]; ASN(0.00)[asn:63949, ipnet:172.105.96.0/20, country:SG]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(0.00)[+ip4:172.105.105.114]; TO_DN_SOME(0.00)[]; RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[100.90.174.1:received,74.125.231.76:received]; FROM_NEQ_ENVFROM(0.00)[jameshilliard1@gmail.com,linux-sunxi@lists.linux.dev]; FREEMAIL_TO(0.00)[bootlin.com,lunn.ch,davemloft.net,google.com,kernel.org,redhat.com,gmail.com,sholland.org,foss.st.com,st.com,synopsys.com]; MIME_TRACE(0.00)[0:+]; TAGGED_FROM(0.00)[bounces-25955-noreply=patchwork.local]; RECEIVED_SPAMHAUS_PBL(0.00)[174.29.1.49:received]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[172.105.105.114:from] X-Rspamd-Queue-Id: 2C3291C02DB 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 H616 secondary EMAC uses a separate system-control clock register and supports only RMII at 10/100 Mbps. Add its distinct compatible without an older fallback, since using the primary EMAC clock register would not work. Constrain the PHY interface mode to RMII, matching the hardware. The EMAC1 clock register also retains the three-bit TX and five-bit RX delay chains, so allow the existing Allwinner delay properties for this compatible. Signed-off-by: Richard Genoud Signed-off-by: James Hilliard --- .../bindings/net/allwinner,sun8i-a83t-emac.yaml | 18 ++++++++++++++++-- Documentation/devicetree/bindings/net/snps,dwmac.yaml | 2 ++ 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/net/allwinner,sun8i-a83t-emac.yaml b/Documentation/devicetree/bindings/net/allwinner,sun8i-a83t-emac.yaml index 323a669fa982..34def84e6c21 100644 --- a/Documentation/devicetree/bindings/net/allwinner,sun8i-a83t-emac.yaml +++ b/Documentation/devicetree/bindings/net/allwinner,sun8i-a83t-emac.yaml @@ -21,6 +21,7 @@ select: - allwinner,sun8i-r40-gmac - allwinner,sun8i-v3s-emac - allwinner,sun50i-a64-emac + - allwinner,sun50i-h616-emac1 - allwinner,sun55i-a523-gmac200 required: - compatible @@ -33,6 +34,7 @@ properties: - const: allwinner,sun8i-r40-gmac - const: allwinner,sun8i-v3s-emac - const: allwinner,sun50i-a64-emac + - const: allwinner,sun50i-h616-emac1 - items: - enum: - allwinner,sun20i-d1-emac @@ -91,6 +93,17 @@ required: allOf: - $ref: snps,dwmac.yaml# + - if: + properties: + compatible: + contains: + const: allwinner,sun50i-h616-emac1 + + then: + properties: + phy-mode: + const: rmii + - if: properties: compatible: @@ -100,6 +113,7 @@ allOf: - allwinner,sun8i-h3-emac - allwinner,sun8i-v3s-emac - allwinner,sun50i-a64-emac + - allwinner,sun50i-h616-emac1 then: properties: @@ -109,7 +123,7 @@ allOf: maximum: 700 multipleOf: 100 description: - External RGMII PHY TX clock delay chain value in ps. + PHY interface TX clock delay chain value in ps. allwinner,rx-delay-ps: default: 0 @@ -117,7 +131,7 @@ allOf: maximum: 3100 multipleOf: 100 description: - External RGMII PHY TX clock delay chain value in ps. + PHY interface RX clock delay chain value in ps. - if: properties: diff --git a/Documentation/devicetree/bindings/net/snps,dwmac.yaml b/Documentation/devicetree/bindings/net/snps,dwmac.yaml index 2ed4564ae99d..b20149c3e850 100644 --- a/Documentation/devicetree/bindings/net/snps,dwmac.yaml +++ b/Documentation/devicetree/bindings/net/snps,dwmac.yaml @@ -57,6 +57,7 @@ properties: - allwinner,sun8i-r40-gmac - allwinner,sun8i-v3s-emac - allwinner,sun50i-a64-emac + - allwinner,sun50i-h616-emac1 - amlogic,meson6-dwmac - amlogic,meson8b-dwmac - amlogic,meson8m2-dwmac @@ -623,6 +624,7 @@ allOf: - allwinner,sun8i-r40-gmac - allwinner,sun8i-v3s-emac - allwinner,sun50i-a64-emac + - allwinner,sun50i-h616-emac1 - loongson,ls2k-dwmac - loongson,ls7a-dwmac - ingenic,jz4775-mac