Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp289027lqd; Wed, 24 Apr 2024 02:16:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXMT2F8taILJCAIExedN+9pYObstSpj7hDbSoIJZMqkfeiwWDRZyT3ykSiwH1t6VqNvaD34DUV/tzRXvHs9ie+63pxHT/ToJOV8wuLQpw== X-Google-Smtp-Source: AGHT+IGgYY3b7+UCoCQ4I2AFv2OWad6No3l2GyhJMshaZof59ShPvHH+SPNwxJMXj7BtTGCjFM2d X-Received: by 2002:a17:902:c40d:b0:1e2:bb09:6270 with SMTP id k13-20020a170902c40d00b001e2bb096270mr2408901plk.28.1713950177364; Wed, 24 Apr 2024 02:16:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713950177; cv=pass; d=google.com; s=arc-20160816; b=KatvyGI1JJLNaTHcpRnjjZEaeJkspZnvJ+0JkS1IW/HnLckVOnMg3fpb2wAzbKC1+h DkbW/luW/jvaDKu8U8d2OBdOqUHaXDxod8ZdckHw4A5hImLMDyWg8z+4MV1Iq04628WG 3CXM6ZwqkmmkczfvLrl9xWR5YVWKZhK/ZtTO7KWi6dJoJvwRgPF8/iFhcQKC9aC+XG5F gTtG886ZjHcb1g3z+C5nMlSxfjg/juJe54lEpCIpmmxxOdZk3NuCsp4ayEo3gwqUwdp1 XVEFonydv608y+3aywpBRZ2VqNzYoaVpnR9+4piWy694urD9ZCvaF6LkUp4Bhs34/n6J Rn7w== 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=eXa4EdnQqRxUOEPvkBPgsUUIstZOOeI7Xe83F05iy1I=; fh=iKbzTsM6Akj2X0N29umtxBSsa4Nmw1Zki5pbjnRyyYA=; b=OicdX0Br4Ga/AV3rESMJ2pV/3D6copFDT10yhstnpktqSox81/Yo2WG+L8ItK/m7xV 7M+21TTsJ0HTGLUqaWuWu539Fpp4NpplftvfwDEkQEXjpnoBXcWHjLvnQ3XPxM5jAO0u 0/ueONTx/2GCGBjcwJGBLIIaxLwuseIcTKQfqyGMNJiYDkWxAgBCyMXDjgEg01E3dluE a2StUN3CWW2NaWaY8bChl2vmxVv4AqzcLTfmkgzknZkfJqmNOEARzKuTHvLnAWPV/pTk gNq5ivQJgR9sZnIba7wJuYefYYeBTWOrCTNgRgsu2cJO3kXK0C+1OmRpEKQfkYIBbchM Lb/Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Y0nLf11P; 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-156598-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156598-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id e13-20020a17090301cd00b001dd67c1b4e8si11234917plh.310.2024.04.24.02.16.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 02:16:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-156598-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Y0nLf11P; 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-156598-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156598-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 674A828B2A1 for ; Wed, 24 Apr 2024 09:06:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CCF53158DC1; Wed, 24 Apr 2024 09:05:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="Y0nLf11P" Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) (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 15ED313A406; Wed, 24 Apr 2024 09:05:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.200 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713949551; cv=none; b=tLVzYr6iMK2QSMdr4V5ndUSmcs6YwgQLOK9pcZZ3x+sp+TfyMnxiWZTns/5YpowEoYsngjlf6bMv/fO6jGdu0EF014VAt7m3/LsJ3fN1x5r+lu3XICDl52fKqQse6zJAaDDIC9hmIHQnhsh6e52VpDTxlMzUyJvT3SSqzZPXdDQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713949551; c=relaxed/simple; bh=8ENOqewMW99QWcS2EvbxlHeThnWJBf0dwQB/ui5W9gg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=MzHobD3pYx0O989DQ1M0MWjuGPBpcGp8uWjwHNVvkezVNzPemN2S3mr/TQ7HWT+Wn/bl0WdZNuDRj+ZrLpo3X2X8BtqhfTWqISMTksXRQXjPs2AeC3+w4/zFLhdfKFZ5yBT8jKHTk0mVUsJ5KDWifbVcRBQKkKjE4w3NbmcTAbw= 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=Y0nLf11P; arc=none smtp.client-ip=217.70.183.200 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 71F7120015; Wed, 24 Apr 2024 09:05:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1713949545; 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=eXa4EdnQqRxUOEPvkBPgsUUIstZOOeI7Xe83F05iy1I=; b=Y0nLf11PnZo+TTNfH9m1AI10Yl+Jd72zlVvKBq/8npXtbJ28DAwGHyTISoZZqyZ/wvf52L mFVPXugyr8G2eh8JRo4bg6MstVtCGPWcTqRM+qq2oIIaVIiq66iNx0HdSCOTvnnXDobPx+ 0SJFjkLGcLnq4vMJevgAZUiN3NXnd3NkJ/sN3VQuL36czt2ouj3ew4bVBinFKy2fPEeGCY Q9jP9JMyhDX6zX0n4R+aBxUbu5CY+JB86gO8PP+ydP4PW7Wn5VeGkIfC0ArVGG7qAbpMqB e2xliDLAuAmZ4+zPiwN8v9AnmJgrYqLHB6WzotjNjlPMK+hVhKCRvef86iQbWA== From: Romain Gantois Date: Wed, 24 Apr 2024 11:06:19 +0200 Subject: [PATCH net-next v4 1/5] 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: <20240424-rzn1-gmac1-v4-1-852a5f2ce0c0@bootlin.com> References: <20240424-rzn1-gmac1-v4-0-852a5f2ce0c0@bootlin.com> In-Reply-To: <20240424-rzn1-gmac1-v4-0-852a5f2ce0c0@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?= , Serge Semin 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] Reviewed-by: Rob Herring Reviewed-by: Geert Uytterhoeven 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 0000000000000..d9a8d586e260c --- /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>; + interrupts = , + , + ; + interrupt-names = "macirq", "eth_wake_irq", "eth_lpi"; + clock-names = "stmmaceth"; + clocks = <&sysctrl R9A06G032_HCLK_GMAC0>; + power-domains = <&sysctrl>; + 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