From nobody Thu Apr 2 01:54:03 2026 Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.181]) (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 9A62D38B13E for ; Mon, 23 Mar 2026 10:18:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.181 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774261089; cv=none; b=j42r3EocsY++s1gwUG2IHmQlPFpJOzvDajodm2v0c5UDStAUNzfp5cVxpcdS/nOaaG+oGiQ+uAzwZjoO2G4VhQX1fdjdV4N+aihdVA666WyQA9kv2S2bUFaEC1+nlseGjJyzsBc+4mIgstT5h9p7qQ+gWOtsa3jKfn+EDc1tWFE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774261089; c=relaxed/simple; bh=inaWaAqFrl/RRSGGSiCftox16Qz2GHyEHZxNuyQj1Bw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=CFONmlJgahONxna9Ci8pMfaDoHv0YK/SrlTrwz8OKo/dezsiQXVCnxoDwzPTUdIGAOkerwqAkXxHKDsL9sHAuZtI87hUu+P87J4r8oAnFfL58QRSyu02DdHX2W97abosaMvzuY9OXHn2KMwIk/4w9p5zCyeau0hAr9eH9+/63WE= 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=DKMGs0fF; arc=none smtp.client-ip=209.85.210.181 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="DKMGs0fF" Received: by mail-pf1-f181.google.com with SMTP id d2e1a72fcca58-824c9da9928so4360509b3a.3 for ; Mon, 23 Mar 2026 03:18:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1774261088; x=1774865888; 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=oyXu0gtjiBhx9nuUYM0Mf+9SNK/PonIri6dLaS9aeOY=; b=DKMGs0fFXDTxj0LwCACalOF2w9xVMtJcbttiLmCaCXPgbaEsxum48NmO4XuDIQwdZ6 7gWv8qO61X7w1q+EdYNbHZWZWyTZ2WNApzAwcUtzc7Du5WalB3oexwrTJP6yU/+o7GC/ RN7RHsNPHyQJEfF32fGa8QUQPvm2yaoHjVBRfvvPLO0Tin03TdvWKMWExgXhH82mou6z +6Fd1w32I51iiTAlkB/xJ7IzncfvOn1ApGbB8jA/AavT9TbG4zK8g3llZeeZ8gVGGXjZ EKftQJRyvFs4aNtYZRfXbyEek7BKQRLSxWIZMsXHz0vjnmhSxXCdsrH2qAzjTpimVKv+ CBjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774261088; x=1774865888; 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=oyXu0gtjiBhx9nuUYM0Mf+9SNK/PonIri6dLaS9aeOY=; b=BMBYL4GNeH1eKSB3AOUlytR6pvGGxCPVayTO5yEKg12y855xnnXfc/teJP0DOiC1ES bj7AXt+9kqcGMwMHjAzxcGzp6sWH4Lj8rxhpH69e9OelF/dD+HQuZZy8PiZHjcZkeGnW yRYugG559tUbfQEvN6nx+4c1bIYGzR4mteYncK+iys/cHYtTaRpCeOZENsOTldyvkIUm 860Q5yvyjXWKmyqtJG/LmF/NpV3M+pZrDpIdPnOBaNAOVJgHhIv4VQ9fxk3NHzSIFL6/ 5RLU4vINvUaNraVWUBNkZhTqUO+zSUp07l0Uog9a/HWFb4L/jCrUW9wuvDlyjdBM59Xy wJXA== X-Forwarded-Encrypted: i=1; AJvYcCUuFLdRBty2nkMQrjHC4A7KKP/vKJhnJjAZDGTOp87SkW1ATDfAqi21aOL20JDJv1rahsTfCfTyQ0WHZ7k=@vger.kernel.org X-Gm-Message-State: AOJu0YyK6Rj3Hvy9KzHlnUczA/M3gVtFjlh4puY0P/7f527BSufZcrWY +iJsz4m48e+BM7IVjE9MWy1RYGVLAq8FxVlPLxkeSFhoUGYteyg3U0Tw X-Gm-Gg: ATEYQzxeR1BLS1eN5ljylS6/z7OgWGTIiu8Pkp9Z/VF0dsekUMFtMRkGEiEaGn1i25Y jWb3my9N9aUiPkOlLElnDA2dExDv5V4cRUb8CCoEHKT3zcDvTq6io6dNdkMElkhRTla7s/SyBAb l2u2LjP+x/kTUs+AortzptiMSFW7g59i6I8Ww5xw9wW2xaxJEjCLh7cggpDIrGZUBBkBKLhZR5v OutLHs9pIkxSYMxBhHtVQBuuZuegxj4xxG1zc7q36QCfsO878fU7HolonIWdSlbLeBUvaZ6YMWM oDs3488uen8NiuSt3xEZGnvlDBTf7/ge6T/nHcVvMtdq7fU2+9GNK6leVA+OH1xTahIDuoxpMEC TUTpqGa9JLpSlv3sP1/sBmH6bF5evCAx69FxgAhGoA9UtZX/ybugsw/aIZigxJ5s7fpIAxEYc/Z ZZD48sk/ZDNUGUf73v/g9OrwtUXB1njQe8tA2FrZYtdSJG/LDLazPtQUrYL4n0Y6VMomwco1/cL aSdlHxdlFAskqgZPFHtViQ= X-Received: by 2002:a05:6a00:1c83:b0:829:9f46:280d with SMTP id d2e1a72fcca58-82a8c23fb65mr8571011b3a.1.1774261088009; Mon, 23 Mar 2026 03:18:08 -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 d2e1a72fcca58-82b04220d9asm8630779b3a.60.2026.03.23.03.18.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Mar 2026 03:18:07 -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 v15 1/3] dt-bindings: net: nuvoton: Add schema for Nuvoton MA35 family GMAC Date: Mon, 23 Mar 2026 18:17:54 +0800 Message-ID: <20260323101756.81849-2-a0987203069@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260323101756.81849-1-a0987203069@gmail.com> References: <20260323101756.81849-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 98ebb6276bc6..c25903c74484 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