Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2034833lqz; Tue, 2 Apr 2024 05:38:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUrwbU8fcRon6WW1JwdSMZq1mJFlw0bgk2I1vZ50wo7t02kvRx5smR5w4v8ryMJnBaAPYBblNQF8iNHiOQ8fp9TF4W/GDagNhcMbkqHnA== X-Google-Smtp-Source: AGHT+IHbGAkiv2uEC+1W0ft4wT14XRjv+b6r8sLwziRlRIcHfBR//5A/jy3Kuh9Rh/vSb3vlFHu/ X-Received: by 2002:a05:620a:4cd:b0:78a:5a5c:4c0 with SMTP id 13-20020a05620a04cd00b0078a5a5c04c0mr17738713qks.22.1712061487558; Tue, 02 Apr 2024 05:38:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712061487; cv=pass; d=google.com; s=arc-20160816; b=xv7yj+ugf1GKWY/OxV0ghKYvd5n3RiT5X4oBaFs8D2ESVGjFOwb1zKueWp6f6rqMph gIBW+6UsKIxTLd5qjBncQVjPK5ksGamuwlyAUMU0hHFKYcM3kdCyf5BwKfUtTVicz1ix qMM0dQ4rOU/RYiNHRg8Cjjij46OIXELhqxRE4hA0FQxsfVeolglC0sbNAJAt4a8BSr3b PYHSOzLYbVphYoXL0V1bZW975r4wopzYPcCGqWCALxgcS9vOva+yjTTViZpKdLNeeJWU xKsDozQ2kM/hJtABKM3fujGExjnntaMAvHY/5yAGxY3XxLlFRxwgvZ+zJ8vddSbWdjbx IIog== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=yjnkMvjoSKQM99Rq/QD1RS/YQciw7dznZZawKPOEQ6k=; fh=GkQQq2lGYFltmHLh2anSTwfoM75mpOR2vHRqGZbnsXw=; b=L29RvlvzaubL99cVL3PaV98ReGIzklFQPukC03vUwzIO8oaWaqrt6GXatYz+Yd3dWL UTwxS+/jw5Q2piBZ4Q4zEzWdsWtWLroMGZMjfzKG16O4HxHbTaPUO6c0k5chf8oLBQKG lUvVoKxo9VVtZBFiw3M95IySeaycYwzb4/x9VW+BDCEu7S1MXnEUaduC2d/dlCP5bAlf nTPftqGbawVW2atEZygtc7X2RReiW29G4ZcBmdxkqs8iNHhZm74SMDPZB5JWn5iZstgV 4gXdDzRImPxux4qyCQNfJS+FmAmxTLC0gxmel/I0q2Ae5FvW04GOBg52L67Vp/Hl02Mi HcFg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=cWL8yP95; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-127950-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127950-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id w18-20020a05620a149200b007885be79107si11536359qkj.390.2024.04.02.05.38.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 05:38:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-127950-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=cWL8yP95; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-127950-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127950-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 9A5DB1C23592 for ; Tue, 2 Apr 2024 12:37:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0B4D2823DD; Tue, 2 Apr 2024 12:36:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="cWL8yP95" Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 686DC7A15D; Tue, 2 Apr 2024 12:36:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.199 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712061404; cv=none; b=FaaU17W/Y69xyaIsDI6za9GpxO8WebLJJipXHqbkyHbOFZ/7xgtu/4U8bagbbgEcsYsUvUcPiIusMs/19x66rVe7mUJ/H0A6vCybL8TbLHHlhfJrQ+IsynWikq56xZK4c6Z9fUMtQLGCTfZXUwJwArYF+dONllgu76InHKweDTo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712061404; c=relaxed/simple; bh=FVkMdCniS3BTtD7oRAnww+Bl/gOvrHmNVzYCjDIJFKw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=o22XzdI6T+nYXfV4+xqjJUloIZukbZFmk4BULlcg6Njz0h3W9r20A8P3Bvra2CWILThbG9GCtWI2PeCVoqR/Ur4MZt22kdQFUKDbrcUrtkBj/APlz8tQsZBN1fD+CKUJGcxYR2TP4VjMl5hT2EWeqt0eP+mzP88+HpL0V4GrsbQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=cWL8yP95; arc=none smtp.client-ip=217.70.183.199 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 49495FF80D; Tue, 2 Apr 2024 12:36:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1712061394; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yjnkMvjoSKQM99Rq/QD1RS/YQciw7dznZZawKPOEQ6k=; b=cWL8yP95jqUKwoyOm+ruKIKEPlITLTJ1yaoBdMOPGcqtPTmkYms8WIAw+1iNicP05Nbfc6 Zdt9nF/ngly5cICWwmPPeDO9/FkqaAiOGJmTSNnqHXggKGcYF2732p2YrJqgmM1jFTymac hNLZFtGIftfLFg+puyHnZpmlOYaDCDkUV+eUhHKfi7e7RuEf3VLyLZ3Ph1v9VvJb4xVuq0 9JTHIckghor5WPk+QP42jsekuznfHitxImYWgAjDTQpEOAs1Jhbwn7H9srf3vt1AK8+vxx +7W6UKV8MI/k180ezK9uB+u9njsh2ayc5U3IWGciKHXHSCpRYG+v8KV6aHoDQA== From: Romain Gantois Date: Tue, 02 Apr 2024 14:37:00 +0200 Subject: [PATCH net-next 1/3] dt-bindings: net: renesas,rzn1-gmac: Document RZ/N1 GMAC support Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20240402-rzn1-gmac1-v1-1-5be2b2894d8c@bootlin.com> References: <20240402-rzn1-gmac1-v1-0-5be2b2894d8c@bootlin.com> In-Reply-To: <20240402-rzn1-gmac1-v1-0-5be2b2894d8c@bootlin.com> To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven , Magnus Damm , Alexandre Torgue , Jose Abreu , Maxime Coquelin , Russell King , =?utf-8?q?Cl=C3=A9ment_L=C3=A9ger?= Cc: Thomas Petazzoni , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, Romain Gantois X-Mailer: b4 0.13.0 X-GND-Sasl: romain.gantois@bootlin.com From: Clément Léger The RZ/N1 series of MPUs feature up to two Gigabit Ethernet controllers. These controllers are based on Synopsys IPs. They can be connected to RZ/N1 RGMII/RMII converters. Add a binding that describes these GMAC devices. Signed-off-by: "Clément Léger" [rgantois: commit log] Signed-off-by: Romain Gantois --- .../devicetree/bindings/net/renesas,rzn1-gmac.yaml | 66 ++++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/Documentation/devicetree/bindings/net/renesas,rzn1-gmac.yaml b/Documentation/devicetree/bindings/net/renesas,rzn1-gmac.yaml new file mode 100644 index 000000000000..c6f61fb1e5b0 --- /dev/null +++ b/Documentation/devicetree/bindings/net/renesas,rzn1-gmac.yaml @@ -0,0 +1,66 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/renesas,rzn1-gmac.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Renesas GMAC + +maintainers: + - Romain Gantois + +select: + properties: + compatible: + contains: + enum: + - renesas,r9a06g032-gmac + - renesas,rzn1-gmac + required: + - compatible + +allOf: + - $ref: snps,dwmac.yaml# + +properties: + compatible: + items: + - enum: + - renesas,r9a06g032-gmac + - const: renesas,rzn1-gmac + - const: snps,dwmac + + pcs-handle: + description: + phandle pointing to a PCS sub-node compatible with + renesas,rzn1-miic.yaml# + +required: + - compatible + +unevaluatedProperties: false + +examples: + - | + #include + #include + + ethernet@44000000 { + compatible = "renesas,r9a06g032-gmac", "renesas,rzn1-gmac", "snps,dwmac"; + reg = <0x44000000 0x2000>; + interrupt-parent = <&gic>; + interrupts = , + , + ; + interrupt-names = "macirq", "eth_wake_irq", "eth_lpi"; + clock-names = "stmmaceth"; + clocks = <&sysctrl R9A06G032_HCLK_GMAC0>; + snps,multicast-filter-bins = <256>; + snps,perfect-filter-entries = <128>; + tx-fifo-depth = <2048>; + rx-fifo-depth = <4096>; + pcs-handle = <&mii_conv1>; + phy-mode = "mii"; + }; + +... -- 2.44.0