From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796108429; b=QfeuH1ZuixeHmE0/AoVVUxO366niBqUnxRJikq1UEIGQnrQ1teOO3ZA2jg1nY7JnnjSJ AUv+zCdnfMp23FmSOZuhHrfsfljL7xmkKSzbRTEVuC43zWr1QYByDmKRTR+pcCGhOw5vG yHg9YMTT6g8fkYGzKBSSLMbxD74sp0pjAHw+mE72koOZoiHLSI8nebwUGzuCK0nhz0g5V SKGLp9KaNCWBtPf02+ko6kCS6fSBTCBgAI1fjh/A+fdmIYu9GqB7knfud8pxmwIRnZOfG sP2zPSkbYLnHewQdHuRP4S/Ie8CEWvXzwQl9ghPLunUGI+BsCusj29YGjAih19oItnA== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796108429; h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=ArazswV+VHdeM/NQtkHG9leZFPeYUJN2lZDgzSqZYYE=; b=m3OjrZO6IOQHqslB7zbkQNYMUoMVuTEoX1sXMfHYwuECWvF3oR1MBZqfPtH34Jd8LKQo aS0g0/MQxdA08/EHwnbSdrJcceARYoK4UZ/oELroAheW4lUzuSn3uT3jwf3D2rM2VQTdX LFbh1Z0c7OOWgFBbmz1bMo69SZ3cegTHcGeIFnMayi8e/x+asSrN5yb3vrmwCeO8XDGZB IjYBlQ7SIHmixVnaG5aogTFLX0X6s1q7yxl9IDXK0eFHamKYKOnpJzyBFID3ULIp/Vu75 x5R9HwkHruEcJC38PZYV8Ie54HzQXvWjaRE55tHnl9tGI7gnttlJ6VbZtz9kNI8hhrg== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=GUpEwavj; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 94D0D606A68C; Tue, 1 Dec 2026 07:00:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=GUpEwavj Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1796108429; b=avRCHhrKegqFTkF9ppu59QbfbNzPQCkZHLm86fo2Qmgzuh+acIEmhw6h1UCRFqM718Pz iw3Wmtqx1Uo3uiMPLrJXkno4ed7V6wLID7KWJufFYen7V1fPruk/x4gCAVlnNh+6M3wxF h17Kns1Y2noQLOcwshQ9TkgHG5PRC9xMOE8ODaQ0hE8xE/1/NehwZQJ49JSk2dCXDo4Ev ngcopf5FlUWk1JGDP4r4UnYkhXoZzUJ4kZv7zVGJnanZtHs1KRlC1wyBUJaVD2PYfmyGn z7S7zW7Caa/dgo9brlFnvdu2yT1iG1XTW72U3IDmoZBuDp6wnDnkan2oMcIoUlqswxg== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1796108429; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=ArazswV+VHdeM/NQtkHG9leZFPeYUJN2lZDgzSqZYYE=; b=irPKOL2jLwUpBZBpM3f7uzF2iOXhly/JacQ5JrYk8uIoVKfEmgiEM93un1TZ5y1nKx43 WmgZ0fj6CMQIXSQlHu+LhIlAt5hV74K9FbwsLjPq/fiDIqTaNnK27IeWIA0nMRrSl08am VeDxazwR/KSiJa/9F9+kn1td26oXRuN0wd68zqyOQklknu2hyICP5pvMsZyrNv68aCNxt ZPIxbS48JTSjxF87l6I8cFtHdg2ImL9ELiVlI0GQZLmRfKLoUcriirYQwHJGrJomYMteb aPvU+uo2wzDMGtQLhXnWWTCjVnV3vcrp3KbmAT92xnnTSyeNENEltHMAA5uwVYYRjXQ== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id 5575D1F00897; Tue, 1 Dec 2026 07:00:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796108429; bh=ArazswV+VHdeM/NQtkHG9leZFPeYUJN2lZDgzSqZYYE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=GUpEwavjsqJLzX4vWVQXGdrHSGxrwyLEUB/cyxj2F/QWlHB6ujFTP/t1YlAmllJEz Rrasb5cXAzDOVdyJA/x/AiZtjTqRiKpglosR2g+4BwxOz7ujyM0/VCfrK6CPYzaMUu bxrXDEMe7/emB1w5H3GOJQE2QW2f8NDRKxFX9ArgAvbdTEjKt+Y+wUNFd17HO3FItF 7TmwVGbj3+x+OxfcDtIhMNZukOv/hPMevO7UHVVcSWCtkEadGbu+WPcv9pg4SO3rRN 1Y0j33qiGjdq3ceTvxn3KtaRpPjO0sNRcejTPl/avqi91OAS6bQQeSksxFUTQTDVa+ Fg3qFK1VAPldQ== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id D865F4EC21; Tue, 1 Dec 2026 07:00:27 +0000 (UTC) From: Joseph Telaak via B4 Relay Date: Tue, 01 Dec 2026 02:00:26 -0500 Subject: [PATCH net-next v2 2/3] dt-bindings: net: Add Siflower SF19A2890 GMAC X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Message-Id: <20261201-sf19a2890-gmac-v2-2-8d2c513db496@telaak.dev> References: <20261201-sf19a2890-gmac-v2-0-8d2c513db496@telaak.dev> In-Reply-To: <20261201-sf19a2890-gmac-v2-0-8d2c513db496@telaak.dev> To: Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Richard Cochran , Alexandre Torgue , Jose Abreu , Maxime Chevallier , Maxime Coquelin Cc: Chuanhong Guo , Russell King , linux-mips@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Joseph Telaak X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1796108426; l=5552; i=joseph@telaak.dev; s=20261104; h=from:subject:message-id; bh=Y4tDZmeP9+kIiKEtr2ki+fGAL4Vjg0LyLZt/UFjolQg=; b=LqggZ8BbzwL4zfBON3AdTF5rJYTlImwnzHpo0wivZnhQZYfVpF6OFZxlH463LpyibPKH+LYh5 Ay48v165+qvARwCj9q8S/gU9B5MJWQexqFYRYXpLZVW7jkeFbRLBnN4 X-Developer-Key: i=joseph@telaak.dev; a=ed25519; pk=oQI+UfddlZ0wK2ac4WKOGNjUl1ZEN8j9ZVFSqEDoNP0= X-Endpoint-Received: by B4 Relay for joseph@telaak.dev/20261104 with auth_id=1404 X-Original-From: Joseph Telaak Reply-To: joseph@telaak.dev Content-Transfer-Encoding: 7bit From: Joseph Telaak The Siflower SF19A2890 has a DesignWare GMAC 3.73a whose interface type and RGMII clock delays are set in a configuration block of its own, next to its clock and reset manager. It takes a fourth clock, the RGMII transmit reference. The delay lines are calibrated per unit at the factory, and the result is stored in flash in the lines' own steps, so the delays come from an nvmem cell, rgmii-delay. The delay of the TX line at its lowest setting is not known, so rx-internal-delay-ps and tx-internal-delay-ps are not accepted: a value in picoseconds could not be honored. Signed-off-by: Joseph Telaak --- .../bindings/net/siflower,sf19a2890-gmac.yaml | 119 +++++++++++++++++++++ .../devicetree/bindings/net/snps,dwmac.yaml | 1 + MAINTAINERS | 6 ++ 3 files changed, 126 insertions(+) diff --git a/Documentation/devicetree/bindings/net/siflower,sf19a2890-gmac.yaml b/Documentation/devicetree/bindings/net/siflower,sf19a2890-gmac.yaml new file mode 100644 index 000000000000..f42276c25d2c --- /dev/null +++ b/Documentation/devicetree/bindings/net/siflower,sf19a2890-gmac.yaml @@ -0,0 +1,119 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/siflower,sf19a2890-gmac.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Siflower SF19A2890 GMAC + +maintainers: + - Joseph Telaak + +description: + The Siflower SF19A2890 has a Synopsys DesignWare GMAC 3.73a. Its + interface type and RGMII clock delays are set in a configuration block + of its own. The delay lines are calibrated per unit at the factory, and + the MAC adds the delays only where that calibration is given. + +select: + properties: + compatible: + contains: + const: siflower,sf19a2890-gmac + required: + - compatible + +properties: + compatible: + items: + - const: siflower,sf19a2890-gmac + - const: snps,dwmac + + reg: + items: + - description: MAC registers + - description: Interface configuration registers + + interrupts: + maxItems: 3 + + interrupt-names: + items: + - const: macirq + - const: eth_wake_irq + - const: eth_lpi + + clocks: + items: + - description: GMAC main clock + - description: Peripheral registers interface clock + - description: PTP reference clock + - description: RGMII transmit reference clock + + clock-names: + items: + - const: stmmaceth + - const: pclk + - const: ptp_ref + - const: byp_ref + + nvmem-cells: + minItems: 1 + maxItems: 2 + + nvmem-cell-names: + minItems: 1 + items: + - const: mac-address + - const: rgmii-delay + description: + rgmii-delay is the factory calibration of the RGMII clock delay + lines, four ASCII hexadecimal digits giving the TX setting and then + the RX setting, in the lines' own steps. + + # The delay of the TX delay line at its lowest setting is not known, so + # the delays cannot be given in picoseconds. + rx-internal-delay-ps: false + tx-internal-delay-ps: false + +required: + - compatible + - reg + - interrupts + - interrupt-names + - clocks + - clock-names + - resets + - reset-names + +allOf: + - $ref: snps,dwmac.yaml# + +unevaluatedProperties: false + +examples: + - | + #include + #include + + ethernet@10800000 { + compatible = "siflower,sf19a2890-gmac", "snps,dwmac"; + reg = <0x10800000 0x200000>, <0x19e04440 0x10>; + interrupt-parent = <&gic>; + interrupts = , + , + ; + interrupt-names = "macirq", "eth_wake_irq", "eth_lpi"; + clocks = <&gmac_crm 0>, <&gmac_crm 1>, <&gmac_crm 3>, <&gmac_crm 2>; + clock-names = "stmmaceth", "pclk", "ptp_ref", "byp_ref"; + resets = <&gmac_crm 0>; + reset-names = "stmmaceth"; + phy-mode = "rgmii-id"; + nvmem-cells = <&macaddr>, <&rgmii_delay>; + nvmem-cell-names = "mac-address", "rgmii-delay"; + + fixed-link { + speed = <1000>; + full-duplex; + }; + }; diff --git a/Documentation/devicetree/bindings/net/snps,dwmac.yaml b/Documentation/devicetree/bindings/net/snps,dwmac.yaml index 69d88a9b1925..225aa597a012 100644 --- a/Documentation/devicetree/bindings/net/snps,dwmac.yaml +++ b/Documentation/devicetree/bindings/net/snps,dwmac.yaml @@ -99,6 +99,7 @@ properties: - rockchip,rk3588-gmac - rockchip,rv1108-gmac - rockchip,rv1126-gmac + - siflower,sf19a2890-gmac - snps,dwmac - snps,dwmac-3.40a - snps,dwmac-3.50a diff --git a/MAINTAINERS b/MAINTAINERS index 9336fa93ce38..c279b28bce86 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -25820,6 +25820,12 @@ N: sifive K: fu[57]40 K: [^@]sifive +SIFLOWER SF19A2890 DWMAC GLUE LAYER +M: Joseph Telaak +L: netdev@vger.kernel.org +S: Maintained +F: Documentation/devicetree/bindings/net/siflower,sf19a2890-gmac.yaml + SILEAD TOUCHSCREEN DRIVER M: Hans de Goede L: linux-input@vger.kernel.org -- Git-155)