From nobody Sun Feb 8 17:43:05 2026 Received: from mail-dy1-f174.google.com (mail-dy1-f174.google.com [74.125.82.174]) (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 BDAB52E8B7C for ; Thu, 29 Jan 2026 07:22:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769671323; cv=none; b=VlCvakLf4DrezLfPEoDlEgEtZ237a19ET+vg5R8CIfj8GL/RHvM/9i8rR5bdEzZRTRoQyrQpVpqy6f5uQGBKEeUGwovxFBolLT3KxTQ54y7hiauT19oLsrNs9vt39Vt1crzNBQhnTogpkN0+JQ4s4uYx45TvlnWowQAQ7EBY/xA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769671323; c=relaxed/simple; bh=y1lGC/teIR/FTGRVTgw+bosav+jMP2M9QnBcEXFTaME=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=uKHNmtEIAtyiBD8spHEJbkVtyutYui/n0cUWHKF3vLl3nrmq8fYFxUrBCJ90QM3MPVSNwpoGRWI78h2rOb/WNqkfDGsZ8Cha7FLggzjWFkbriQa8ubjvy7urJQKeKMJh29tsuXggYfTmC+5Tlx0LzpWp99y2tnSgBzSERQ7JsPc= 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=UvSPe5JL; arc=none smtp.client-ip=74.125.82.174 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="UvSPe5JL" Received: by mail-dy1-f174.google.com with SMTP id 5a478bee46e88-2b729f4c154so1309970eec.0 for ; Wed, 28 Jan 2026 23:22:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1769671321; x=1770276121; 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=tJ1+S2Wah0B24B4nb8d1ZRSd0AUn0CCMY72mwuIFWBk=; b=UvSPe5JLD3yRnloliASuh3+F2BWMXiqsK6K8hxL2eQY0a2wmRbkngwpzVMCij0Rxa1 1RNzBINx88rrO/mSIC/bZbo+Xb2MnagZCwttxx6/JNs07fQx0qAQzuIB3iGFcGQ80z+g vwkWjW3AGVQER+LC4q5L0axlx9Q9KqsK4sLjtlWAco0h0tKJyP4qEA2x9PBQIw8O80vB 1JB3iBEcLV3XE2LkAk6bGFNdY5gdlqZ0VLpqMCPxSQ5UmNuFLri0ZncyjxEDK1OCtrqc r0fOa/eouQjamYDTBz/S5k3ttNdZDoQunvLF9OMF81L6y++vmGkmxH13D2+pk6jE/mqw Upaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769671321; x=1770276121; 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=tJ1+S2Wah0B24B4nb8d1ZRSd0AUn0CCMY72mwuIFWBk=; b=ZGjJBqXyWfQ2JoPJ/JX+mHlwmWz1quj7UG42L+v5/hocxyr3Dme6HYSDUHKd7UdX5z iIusxEkGjYJxprEDbsh5s4zwQXr8N0S8G+t3yIp4mhIlF27O3S66APcPDDGpfOyRBdjF Vb9dafJL2SGszbpFUxp5zol06+T2tVY2igV5NU6SNCyOkyPDNGjBiMw5gPAhEEXlgrs1 R4O+AhiaMJPc6PlmErMY+8YNYUUngTDOSWMF4al+hrHdFI9Dq1Ru5NlOYXsz5syYwsZx d90NEAKDmVR92Mumytyu+aaTvVkrjMnsSiXw9UhkRgKasz/IrKD4rv9RuXbe4D11eZZN +N1Q== X-Forwarded-Encrypted: i=1; AJvYcCWHdCx5PaVzx47dNIhp/p49B29+xoUJCeOjd2KSKSHwDVTCSX+TpUpl11/LDy1ZGAogcdmK2YyJ76VbtX8=@vger.kernel.org X-Gm-Message-State: AOJu0YzNPwr+p9MWOBTKFVMff6ig9B1TCpQ8akHtGjOUYex2iUvsADl8 jtaBBKlmmXVtlwAdg929lmHlYOs8lxX54lWzFJEyk4ZlYHAMMxIgCW0e0G/hF5Yn X-Gm-Gg: AZuq6aKNS4A96F0KhEauRnva/egdwlTSickg2Zhoe0jy4g/T7iHOBJSW88R8Gapg65i BDvoq6QAqSSEU/yEoD2brugxy4v2n21MGeI9t8IsPL7TnbAS2LsQqcrcmnHGS7QT3NqmxLEbVaW e21V91P1UCzhH7rc8fupuqujvRqZmCJWSSM2e3ImoY90CzLmyHZHRMnXNhfJ/aaZf0U4HqdNX0U hsTWhzcp6QirE7chWJg/1/9zPKt86dwLBvpmkHyHmBXoKiud9hgEKWGkjZbWN9IumUFk3sAtH4z 6QL6kVjtxVoWg6NNAVzO89AOASOiy8SamUUWEg5xnhmX8yxo37bFSRdkH5XHMLMz3PV6W/fKSJK v4T2YIHIK7wCdfGYT3nGdFRw4t6d8eTXGarfNJPvcYCoNqUkXUBI5VBeqkkT/wa7SJj+jX+PwH7 g+RydZdzdxP714OeyYfeYFWMhrcaP7YSJuRvdDgoKTzVxF7TJsOJ+yH2N+e0KuEu9T8g3tKoTM X-Received: by 2002:a05:6a00:a0d:b0:81f:4c37:7658 with SMTP id d2e1a72fcca58-823692a1a2emr7126239b3a.36.1769665496533; Wed, 28 Jan 2026 21:44:56 -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 d2e1a72fcca58-82379c227c2sm4108364b3a.53.2026.01.28.21.44.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Jan 2026 21:44:56 -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 v10 1/3] dt-bindings: net: nuvoton: Add schema for Nuvoton MA35 family GMAC Date: Thu, 29 Jan 2026 13:44:43 +0800 Message-ID: <20260129054445.416242-2-a0987203069@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260129054445.416242-1-a0987203069@gmail.com> References: <20260129054445.416242-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 | 126 ++++++++++++++++++ .../devicetree/bindings/net/snps,dwmac.yaml | 1 + 2 files changed, 127 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..8eaddfdc937c --- /dev/null +++ b/Documentation/devicetree/bindings/net/nuvoton,ma35d1-dwmac.yaml @@ -0,0 +1,126 @@ +# 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). + +allOf: + - $ref: snps,dwmac.yaml# + +properties: + compatible: + items: + - enum: + - nuvoton,ma35d1-dwmac + + 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 + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + ethernet@40120000 { + compatible =3D "nuvoton,ma35d1-dwmac"; + 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"; + + 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 dd3c72e8363e..10cb5e555750 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