From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) (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 A1CB51EDA0F for ; Tue, 10 Feb 2026 05:22:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770700964; cv=none; b=GM2MqihFF9N1PeoOnsvWYFMVTN5y1eJ2jI2v7vsCoPOVytRN1z5gqakqVGfqTrSWrXhJA+aJx5CMjVwy3Vxn3yZVhX0Laefg9msI7h/zUcAeVLk1BED5dg9t5WGBc4S4up3dwaiJG9L0f5PQY+3UEI8noBEO7xRYxjMHuo2PZh0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770700964; c=relaxed/simple; bh=CSMntLTx2ltk7OMcE8arsgHtuAaKhsReTtbKGVNP/nE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=RTw3LPw/iYaA/avh+rXUQxKb20WQS4BaE3vEIzGwzlo6j18Lujiq1q5pQFTXd6MWNNIlbjZvI6pbprt4BsHU54w3+43q2+PBpw7xai3vOj7dCrthEjNIrDjnhz3WP+mS7eliRVGlUSK42IOvcdY1Hlnmn/DiglXM8tLAsSYKW+E= 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=TTuftDtD; arc=none smtp.client-ip=209.85.216.51 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="TTuftDtD" Received: by mail-pj1-f51.google.com with SMTP id 98e67ed59e1d1-3530715386cso3004355a91.2 for ; Mon, 09 Feb 2026 21:22:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1770700962; x=1771305762; 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=3d/cFKA/vHONwGYm1eYXKmqTtAs5FXpy1bdrgoO/Zug=; b=TTuftDtDjTezeQqCINqT0AFpNJX7JwK0mdGQBJhOY/9b8OEff4fO2Fq3+BrsuDsjK3 fVW6rooWmD0K/SWJG/+JZfnA9kJKjpnmmWSp1a+BN3YlaCtJV/mAloPRZnpKggPMWHVC NMnWQUFkNUiwHDwpcBeLA9P32w+NBomD9I5tFoDb9Gs+WDSoiROhe7/fPQZBdAb58xb3 ih35Um1fja/X9Fqg7AtBzXjnC8Vr6kTEQfkYANQAX7EpGcJsE0a9T587S17HT+tO7jub cn++cGbY9XBe1fedSGhgb8XbIjh2rFqLsmtE8hgdzyUjEpOn2qacJnTjyssRpKkSoRqC q8ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770700962; x=1771305762; 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=3d/cFKA/vHONwGYm1eYXKmqTtAs5FXpy1bdrgoO/Zug=; b=VbSp/Tx/LcRclSAGQ8d3YgnhQdn90qssHeT5TtY3IeKap+KSWRrGqycbbHeDd8mrst NY7BTfJpwFmYJOU61PXVgur7DlSDmPF+Ma7qzaHnULKvzbXstrrzglXsjVM9bMJocpR+ Ca9EScUvSd1Uo48lJPeQ5sTE4HarR6Bmbg07PuEVQfa+5cZAhs9g1ttgr6A+Ddskp9Fk TFyV/Ren85Pb0dg+WEgEgaSc+/UTY7hC8PUfa50Ve1itE30p6LamTzoOs+4gMQqDSLWX regnEB8MvwZr6uzM563xnDfg4rEFsOer0i4B+IjChXj+ZejePe2m7QMhi2bpjDx/JN9C Bo8A== X-Forwarded-Encrypted: i=1; AJvYcCUhdkSKAW3EZJ8LmY4QLXLOwHALl39/ihDg179/2COdwYGvo6ZW1TeeFw0tsi5Ivrg8+7MYRQ8=@vger.kernel.org X-Gm-Message-State: AOJu0Yx0s8I4U16eaEVs+hcHTUpDAFIkEX8lgqutwpKbDxwzeIJ5iBX2 IQ6ViieUnVPx0DC/dyHxm+4Peq91iK97taSWkv7RpK59LSbNn/Z7qT8y X-Gm-Gg: AZuq6aKoI2cVudDVdwOTtbKSyoilKB3FVRe448XQ/WDxJJXiTZgCd/LP1dlgMbOUQdL 7ht/0q3j35veETSodGMgWXrdsR6riIsNWRa9KF5jjyyeyjHocWjD/8kcui+R1yMYWqAccENdT4B PthmJzoK/tNOGJyLVNnVciETiupEtiKIPFm1MzNT9RXc0VUw/ycIFrWzHDtQx4N20j1cM6evAz0 bJu+wWgSjop+rghmmsEsPVyC79ZiX5gByUffJ1twGItd1/xdIuquRNr9+5KSrZqF15pqIiYKo05 oH6kINMg/7rQEe2dH7m1KtaZCtSIrJWKZaN2AzuMnwPt0kIwJQ03gSojHEF9b0y7fo3dMTmphLW C6wTr855hcFqHJ299dB5nonS37s6mncD0q3APEJmmJ9oP/xfcjmr7SfudYmw9CRqnbq48lcULY7 ghoDL/nIaa84Wjld3YschE6aoY0GdrGVAxLnfWQ8VfelTp0btX3dxBApCPojtfNnupWzXMqy+vL H97tRbqVSEb X-Received: by 2002:a17:903:15c8:b0:2aa:e21e:bfc0 with SMTP id d9443c01a7336-2aae21ec7e4mr68077905ad.47.1770700961945; Mon, 09 Feb 2026 21:22:41 -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-2a951ca59f4sm122114275ad.43.2026.02.09.21.22.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Feb 2026 21:22:41 -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 v12 1/3] dt-bindings: net: nuvoton: Add schema for Nuvoton MA35 family GMAC Date: Tue, 10 Feb 2026 13:22:24 +0800 Message-ID: <20260210052226.3005666-2-a0987203069@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260210052226.3005666-1-a0987203069@gmail.com> References: <20260210052226.3005666-1-a0987203069@gmail.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 | 133 ++++++++++++++++++ .../devicetree/bindings/net/snps,dwmac.yaml | 1 + 2 files changed, 134 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/nuvoton,ma35d1-dwmac.yaml diff --git a/Documentation/devicetree/bindings/net/nuvoton,ma35d1-dwmac.yaml b/Documentation/devicetree/bindings/net/nuvoton,ma35d1-dwmac.yaml new file mode 100644 index 000000000000..4d9e06f2dc26 --- /dev/null +++ b/Documentation/devicetree/bindings/net/nuvoton,ma35d1-dwmac.yaml @@ -0,0 +1,133 @@ +# 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 + - enum: + - 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 registers + 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-seconds. + 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-seconds. + 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 = "nuvoton,ma35d1-dwmac", "snps,dwmac-3.70a"; + reg = <0x40120000 0x10000>; + interrupts = ; + interrupt-names = "macirq"; + clocks = <&clk EMAC0_GATE>, <&clk EPLL_DIV8>; + clock-names = "stmmaceth", "ptp_ref"; + + nuvoton,sys = <&sys 0>; + resets = <&sys MA35D1_RESET_GMAC0>; + reset-names = "stmmaceth"; + snps,multicast-filter-bins = <0>; + snps,perfect-filter-entries = <8>; + rx-fifo-depth = <4096>; + tx-fifo-depth = <2048>; + + phy-mode = "rgmii-id"; + phy-handle = <ð_phy0>; + mdio { + compatible = "snps,dwmac-mdio"; + #address-cells = <1>; + #size-cells = <0>; + + eth_phy0: ethernet-phy@0 { + reg = <0>; + }; + }; + }; diff --git a/Documentation/devicetree/bindings/net/snps,dwmac.yaml b/Documentation/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 -- 2.43.0