From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) (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 54021277CAF for ; Mon, 19 Jan 2026 07:33:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768808032; cv=none; b=U2TW7OWsXfVyV6e1z9YXj5v2mDIavo1GEA9kzd36nu9ox23pyrqEyP+Cqtm3GCcDNOXrwxcRRwhkSOreyv4LTXAyiQFIH1HFW7znEo0OwsvESCdbAjDNax5faR2ZJETJitfZYbzgd/jgOlRYy5vS2KsG7COXEb+tAUCTb1/0Izs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768808032; c=relaxed/simple; bh=dxe+kkl6kRBm6RF2B2BIqg7F0WaqPYrdjOp1KOB6wYA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YuwMyv83hHgcAtRkgEoxsDjTnhNk5YZuskj9YZrfXkQGJjWKQrDOiaWGdpJC1gvIDZ/5LFXQRlkGp1JSkqRszNt1qBXN/ARqLS8rgp6h8t8jMn6L6SvfHLdgI7Y/REkjPjXh/HHusJGU447I6RcdG3MTB0gy5L4AgNRjGdjZs/w= 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=ZMlr10Ah; arc=none smtp.client-ip=209.85.214.171 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="ZMlr10Ah" Received: by mail-pl1-f171.google.com with SMTP id d9443c01a7336-2a0bae9aca3so26639925ad.3 for ; Sun, 18 Jan 2026 23:33:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1768808030; x=1769412830; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=T+Mp2cAzIjQk/XVhc3r0i+qdUMWj/sYGX5LNPwYnZpE=; b=ZMlr10AhlMtldtnjsFI0qGsbBct/LrRJYTNG7rDb1V6sfon0x34/TY6M5oh4rSmWNp yw8Yknej13u/genLkYRu4TySBWnBUHq/sIae48MPgT0sN7KSXnWJl5mqy+Z/KivNWdkn Cv9n8T4hDJnwMsUr5WS85QgfKEQf7thH2oTNvR6CBfZyN7mn4jBHQiYq3YFw0qwj6E7Y U44fAH8Q0pUNtKP0DqLWjTt1tE28t5IVlMLwboDrLTMjB6932WJFWlCTmKok4cRiDswj seRhYMoxNhoRym/4bcl6aKyjpWE8KqfWcP2hAE0nymbdb3ewuqxdZ1fnQ2Gu/6YorQN+ DY3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768808030; x=1769412830; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=T+Mp2cAzIjQk/XVhc3r0i+qdUMWj/sYGX5LNPwYnZpE=; b=LfIQ23Obd8Klb2CWgkGkJkwjlaQfaUtoNNshVyIp8S3T9/1oU9GzkMzXZa77C4VvY3 ySeg4lzVVadJUrgkyv2DuIQFRL+FlSyUnNfuaG5yw9G6w8xsRxCOuMr91DkuARlDPhCM K78fvqETOFAqKuowFw65/OXeh+RFahv50PNWOIFQfshnqKtFooQ2HnjGfZlYc/InOpoW To0fAqJ2pWZXjqgIJXqLS7rZtpvkg48z7sibgDChubq24qn8uthNaB5itjNmYzbukKDH Gz1/LBNCMVg5fR2sVsH1kfydrIccOHnrKtecKflh8DdxedhRhhfDabzxtclsDI6dVL+L V6tw== X-Forwarded-Encrypted: i=1; AJvYcCVPlwPx2js5z/h7Ipm88hpTFFJ0nPa4H6EmwInjCxEWyAtpK7e8TAlucRPiSKh8bRJJqyYqAbYg90lN9sk=@vger.kernel.org X-Gm-Message-State: AOJu0Yw0mqgULXqjdvGGGzx05g96/c43b7HcKkGwYjPl40PW8RQ9sTUj cSadVPdnVKATY0vK1XEZtWorEVsYCbQ8RgScMKeJ8uAKEWBjpIgbL58I X-Gm-Gg: AZuq6aJsk9JmEdemqiPigt8dLgQjOzNMSOyXWiPT/2gcuL5H7eBou7oXaGP7+JocNDD KpcYTAKqPVg4WBFVihvKHPjxBNanAnEia7ywAsTOJWdKxJ3sqvs4QbrzwqFcNjEBOmjJn+0yZdr C0VXjQdtSyY4OE9pj0ZkVLJ8R2y5GR5R9D/xQxKVYZyxi4LgaV1NFJrWfkKxI1DAat5MXZRhoD2 XtkvMRY2+LDn+MvwsIwg/y3L1DTssQ6JMs9at4/ud8tjOFuhmOd7RHSTPwUrc5ZD0vMeZ1WKXK9 6I4enhSr/J8JqibE1apGkgLanO3NdfxJ1hIgX05b2Yo/g1TaHWBplnjbrK5SZeMzNYbhUwXX1pK wD3HmkKzYWrEUWRYOMGxHldNwj23dwlgFgJf+dBX3QpmIIHjpkPiNXa6IGF5i1yqFo7o8NqrFYc ok8kNslknXBCizRIk/W3MwB7P8MblFTnp5s0TWJfZGw7LteW7Xrd+FbbPm81wsZETHmzEN1YuM X-Received: by 2002:a17:903:350c:b0:29e:9c82:a918 with SMTP id d9443c01a7336-2a717535134mr90244535ad.22.1768808029614; Sun, 18 Jan 2026 23:33:49 -0800 (PST) Received: from localhost.localdomain (60-250-196-139.hinet-ip.hinet.net. [60.250.196.139]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2a71941e3cdsm84863325ad.100.2026.01.18.23.33.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Jan 2026 23:33:49 -0800 (PST) From: Joey Lu 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, mcoquelin.stm32@gmail.com, richardcochran@gmail.com Cc: alexandre.torgue@foss.st.com, joabreu@synopsys.com, ychuang3@nuvoton.com, schung@nuvoton.com, yclu4@nuvoton.com, peppe.cavallaro@st.com, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org, linux-stm32@st-md-mailman.stormreply.com, Joey Lu Subject: [PATCH net-next v8 0/3] Add support for Nuvoton MA35D1 GMAC Date: Mon, 19 Jan 2026 15:33:38 +0800 Message-ID: <20260119073342.3132502-1-a0987203069@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This patch series is submitted to add GMAC support for Nuvoton MA35D1 SoC platform. This work involves implementing a GMAC driver glue layer based on Synopsys DWMAC driver framework to leverage MA35D1's dual GMAC interface capabilities. Overview: 1. Added a GMAC driver glue layer for MA35D1 SoC, providing support for the platform's two GMAC interfaces. 2. Added device tree settings, with specific configurations for our development boards: a. SOM board: Configured for two RGMII interfaces. b. IoT board: Configured with one RGMII and one RMII interface. 3. Added dt-bindings for the GMAC interfaces. v8: Changes since v7: - Rebased onto the latest net-next. - Removed unused symbol. - stmmac parent driver now reads hardware features directly to support Wake-on-LAN via magic packet, so PMT-related overrides in this driver have been removed. - Update dwmac-nuvoton driver: - Update the license to GPL. - Improve the description in Kconfig. v7: - Update dwmac-nuvoton driver - Update probe function to use stmmac_pltfr_probe instead. v6: - Update dwmac-nuvoton driver - Use NVT as the previx for all functions, structs, and defines. - Remove unnecessary comments. v5: - Update yaml - Remove the properties already defined in snps dwmac. - Update dwmac-nuvoton driver - Add a comment to explain the override of PMT flag. v4: - Update yaml - Remove unnecessary property 'select'. - Remove unnecessary compatible entries and fix items. - Specify number of entries for 'reg'. - Remove already defined property 'phy-handle'. - Update example. - Modify the property internal path delay to match the driver. - Update dtsi - Move 'status' to be the last property. - Update dwmac-nuvoton driver - Use remove instead of remove_new. - Use dev_err_probe instead. v3: - Update yaml - Fix for dt_binding_check warnings & errors. - Add compatible in snps dwmac. - Update dtsi - Update dtsi to follow examples in yaml. - Update dwmac-nuvoton driver - Fix for auto build test warnings. - Invalid path delay arguments will be returned. v2: - Update yaml - Rename file to align with the compatible property. - Add an argument to syscon to replace mac-id, with corresponding descriptions. - Use tx-internal-delay-ps and rx-internal-delay-ps properties for configurable path delay with corresponding descriptions, allowing selection between GMAC internal and PHY. - Add all supported phy-mode options. - Remove unused properties. - Update dtsi - Modify syscon configuration to include an argument for GMAC interface selection. - Update dwmac-nuvoton driver - Remove redundant device information print statements. - Remove non-global parameters. - Retrieve GMAC interface selection from the syscon argument. - Parse Tx and Rx path delays by correct properties. - Update configurations to support Wake-on-LAN. yclu4 (3): dt-bindings: net: nuvoton: Add schema for Nuvoton MA35 family GMAC arm64: dts: nuvoton: Add Ethernet nodes net: stmmac: dwmac-nuvoton: Add dwmac glue for Nuvoton MA35 family .../bindings/net/nuvoton,ma35d1-dwmac.yaml | 126 +++++++++++++ .../devicetree/bindings/net/snps,dwmac.yaml | 1 + .../boot/dts/nuvoton/ma35d1-iot-512m.dts | 12 ++ .../boot/dts/nuvoton/ma35d1-som-256m.dts | 10 + arch/arm64/boot/dts/nuvoton/ma35d1.dtsi | 54 ++++++ drivers/net/ethernet/stmicro/stmmac/Kconfig | 12 ++ drivers/net/ethernet/stmicro/stmmac/Makefile | 1 + .../ethernet/stmicro/stmmac/dwmac-nuvoton.c | 174 ++++++++++++++++++ 8 files changed, 390 insertions(+) create mode 100755 Documentation/devicetree/bindings/net/nuvoton,ma35d1-dwmac.yaml mode change 100644 => 100755 arch/arm64/boot/dts/nuvoton/ma35d1-iot-512m.dts mode change 100644 => 100755 arch/arm64/boot/dts/nuvoton/ma35d1-som-256m.dts mode change 100644 => 100755 arch/arm64/boot/dts/nuvoton/ma35d1.dtsi create mode 100755 drivers/net/ethernet/stmicro/stmmac/dwmac-nuvoton.c -- 2.43.0