From nobody Tue Apr 7 06:32:12 2026 Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.47]) (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 BCCC3330B07 for ; Mon, 16 Mar 2026 05:54:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773640482; cv=none; b=LCZr2jJFcAvCEyEPE9L81qk3vOGNu0HjKDLbUsrZlUC+zO5WeUQvyaa8QpVbGl8EWuqXWWKj+mse3d+MvP4UQ1zlRmvbqvEEG7iYKwFRzvNPTm1jrNBbfHo1C8pKjzbJ6FbCb2g+y1X2v0pSbjX/uHgBKGHZJAGQj1p1a9QGz6I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773640482; c=relaxed/simple; bh=HsJG0cTqBqXxdxsuFEFyQoLuHjyU0j2+5WpnEvdx+PQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=IT7P3OWQPWswCfUufjdgTCVIG83KWylG41SLkNgqtRgHKFUYhuEqr7JUpnfeh1Xg27H6iplb1hwD9n0aor1GADG/7rPgz9I5X+m12tmC5V1QtQKldstzRe8U3uj30VSuHkFqdpQnLj1pMofiqZe7A7Hk9nHmOCYd+rc23058Sno= 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=NEk9YBWO; arc=none smtp.client-ip=209.85.216.47 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="NEk9YBWO" Received: by mail-pj1-f47.google.com with SMTP id 98e67ed59e1d1-354bc7c2c46so2354251a91.0 for ; Sun, 15 Mar 2026 22:54:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1773640479; x=1774245279; 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; bh=GEh3nHbL/FUSvLsKsp4r0rwLAFQj7UgdMNRgMCRNe3Q=; b=NEk9YBWO1ixHe78MsUNJcbNaFNQ6lYk2yxPRe8iMzW1LgdYIKGKWJsN3OvQ/CzJa1O frJdjRCrKVV4kL7rN5is4GhL3Vg00aXTpJl4/lwE1dXQpu1dIcaf2VJG+EbeXZ1MvBxh 7hPFSOHx3Vi1vFjXqL9hoW+3zH2EBIYI0QBhMrSt0wTDXL7I++PMoD3Lwni+ZDniHy+t otRTvgTQFgMA8wClc954A+uDWrcdqAX6aZUrRDs0Y3TrRadn5q5xaa2n5e8CIceHX29h sveGhrmTOxIWEoErKq4N8zYxmicx69XlbG6codYXQetn9tSMQ4NKlYeYYnMN+G5g2zYt nJLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773640479; x=1774245279; 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; bh=GEh3nHbL/FUSvLsKsp4r0rwLAFQj7UgdMNRgMCRNe3Q=; b=UwPEGZ+3ubAX7H1gDu5JBiHW/PO+8HkHVu9LXB0YcNybHZRSuW8NyXfPoXyl3cF6gA LTyAb1GPC86nM2zHcef3AN52rdVETY8vxKjno4Wt5+jK8XNv3vez5YQA9mZEuTTskJjw PQrb6ZLD+KlarwqnPSRkm51ikNdSyyDYp4ibkD4gGE/LteXKTw4cHlRaWE4eXs/r+G1m eLqlBAUx4GFG9olBTu3QrigES1klhzIS/2dmnjSj4sOMILPYY1LAAMoTlTTOeV3gDFwv rCvxGmc1/G5jmNL+PucBEyIt1qNovV2P0OT6eIYMdlfSUwtzDbhgqHvZywd5/OcPVgwf pOnQ== X-Forwarded-Encrypted: i=1; AJvYcCWwWy7Ie5D4CBn6UAPDrh6VeUrF00HoJ+AV7kELLSAtoKjccsXHNRb1iSMSuCOJ0iyXsAwZPNC5RPAlf50=@vger.kernel.org X-Gm-Message-State: AOJu0YzE6oACr5cxgFKEGgNSp67y3vl/ndEFQnf56SnZgs8AMjBUTvyE 59B2MKyQo3PMSCBMkkAmrhna6ia4l8AtZfqgZxHOaJeZSljy0SkVgpMe X-Gm-Gg: ATEYQzyAIzDpxDYy0Z7RRQGIAT5SyMJtqc50nr3S51pTaIyIAYdXC6nV5FnIxggDBvP lU+WBS+NihozAcmCkOOj85rDdOUS3eAm6+2cbRP2ZBsGjsGGd/gKwvYjG6LZz0TjTFKOziidM9t W6q5DR2i2sJ1tZaiQIqBB7X/wemB6aW78ENy+0/OPFWTp6hARQBne8MVK/1ERIHmakDVygGaTFR Qw4J+gadXKaltiCUuJLkTguuHWDAEXK8dQ0idgY5J2ewfsIxyV6nNiwFmNwJpqpX/bjvdRBFnCW 7LWw96ejY2zC03kWXkdYiInoNmkV8nHEDC6YVf9/m53yoKqN3ZrKE/mklyyEl47c+uqnUEbq7W2 AGSfyojByeNNHa5bVcSWnEQFNObFS2surwSiVh8O0KxyV4SEBI73WZcEg8XjFjVc1saem/DG3rs nTh5UvwhtxeWno0HDRL6ChbLV/L6j26jhrphNnONZFp3WfSse7ZpbnW1xXRJ4lYF7bnQCU6aBfI TuoPADzA2eA X-Received: by 2002:a17:90b:4a47:b0:359:83d3:27d3 with SMTP id 98e67ed59e1d1-35a21f007ccmr10901351a91.2.1773640479016; Sun, 15 Mar 2026 22:54:39 -0700 (PDT) Received: from localhost.localdomain (60-250-196-139.hinet-ip.hinet.net. [60.250.196.139]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-35b9db7dfe6sm2166285a91.8.2026.03.15.22.54.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Mar 2026 22:54:38 -0700 (PDT) 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 v14 1/3] dt-bindings: net: nuvoton: Add schema for Nuvoton MA35 family GMAC Date: Mon, 16 Mar 2026 13:54:25 +0800 Message-ID: <20260316055427.1310569-2-a0987203069@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260316055427.1310569-1-a0987203069@gmail.com> References: <20260316055427.1310569-1-a0987203069@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Create initial schema for Nuvoton MA35 family Gigabit MAC. Reviewed-by: Rob Herring (Arm) Signed-off-by: Joey Lu --- .../bindings/net/nuvoton,ma35d1-dwmac.yaml | 140 ++++++++++++++++++ .../devicetree/bindings/net/snps,dwmac.yaml | 1 + 2 files changed, 141 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/nuvoton,ma35d1-dw= mac.yaml diff --git a/Documentation/devicetree/bindings/net/nuvoton,ma35d1-dwmac.yam= l b/Documentation/devicetree/bindings/net/nuvoton,ma35d1-dwmac.yaml new file mode 100644 index 000000000000..ab18702e53f9 --- /dev/null +++ b/Documentation/devicetree/bindings/net/nuvoton,ma35d1-dwmac.yaml @@ -0,0 +1,140 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/nuvoton,ma35d1-dwmac.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Nuvoton DWMAC glue layer controller + +maintainers: + - Joey Lu + +description: + Nuvoton 10/100/1000Mbps Gigabit Ethernet MAC Controller is based on + Synopsys DesignWare MAC (version 3.73a). + +select: + properties: + compatible: + contains: + enum: + - nuvoton,ma35d1-dwmac + required: + - compatible + +allOf: + - $ref: snps,dwmac.yaml# + +properties: + compatible: + items: + - const: nuvoton,ma35d1-dwmac + - const: snps,dwmac-3.70a + + reg: + maxItems: 1 + description: + Register range should be one of the GMAC interface. + + interrupts: + maxItems: 1 + + clocks: + items: + - description: MAC clock + - description: PTP clock + + clock-names: + items: + - const: stmmaceth + - const: ptp_ref + + nuvoton,sys: + $ref: /schemas/types.yaml#/definitions/phandle-array + items: + - items: + - description: phandle to access syscon registers. + - description: GMAC interface ID. + enum: + - 0 + - 1 + description: + A phandle to the syscon with one argument that configures system reg= isters + for MA35D1's two GMACs. The argument specifies the GMAC interface ID. + + resets: + maxItems: 1 + + reset-names: + items: + - const: stmmaceth + + phy-mode: + enum: + - rmii + - rgmii + - rgmii-id + - rgmii-txid + - rgmii-rxid + + tx-internal-delay-ps: + default: 0 + minimum: 0 + maximum: 2000 + description: + RGMII TX path delay used only when PHY operates in RGMII mode with + internal delay (phy-mode is 'rgmii-id' or 'rgmii-txid') in pico-seco= nds. + Allowed values are from 0 to 2000. + + rx-internal-delay-ps: + default: 0 + minimum: 0 + maximum: 2000 + description: + RGMII RX path delay used only when PHY operates in RGMII mode with + internal delay (phy-mode is 'rgmii-id' or 'rgmii-rxid') in pico-seco= nds. + Allowed values are from 0 to 2000. + +required: + - clocks + - clock-names + - nuvoton,sys + - resets + - reset-names + - phy-mode + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + ethernet@40120000 { + compatible =3D "nuvoton,ma35d1-dwmac", "snps,dwmac-3.70a"; + reg =3D <0x40120000 0x10000>; + interrupts =3D ; + interrupt-names =3D "macirq"; + clocks =3D <&clk EMAC0_GATE>, <&clk EPLL_DIV8>; + clock-names =3D "stmmaceth", "ptp_ref"; + + nuvoton,sys =3D <&sys 0>; + resets =3D <&sys MA35D1_RESET_GMAC0>; + reset-names =3D "stmmaceth"; + snps,multicast-filter-bins =3D <0>; + snps,perfect-filter-entries =3D <8>; + rx-fifo-depth =3D <4096>; + tx-fifo-depth =3D <2048>; + + phy-mode =3D "rgmii-id"; + phy-handle =3D <ð_phy0>; + mdio { + compatible =3D "snps,dwmac-mdio"; + #address-cells =3D <1>; + #size-cells =3D <0>; + + eth_phy0: ethernet-phy@0 { + reg =3D <0>; + }; + }; + }; diff --git a/Documentation/devicetree/bindings/net/snps,dwmac.yaml b/Docume= ntation/devicetree/bindings/net/snps,dwmac.yaml index 38bc34dc4f09..de04cbbab0c6 100644 --- a/Documentation/devicetree/bindings/net/snps,dwmac.yaml +++ b/Documentation/devicetree/bindings/net/snps,dwmac.yaml @@ -69,6 +69,7 @@ properties: - ingenic,x2000-mac - loongson,ls2k-dwmac - loongson,ls7a-dwmac + - nuvoton,ma35d1-dwmac - nxp,s32g2-dwmac - qcom,qcs404-ethqos - qcom,sa8775p-ethqos --=20 2.43.0