From patchwork Mon Nov 20 07:00:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 13460833 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E2136C5AE5B for ; Mon, 20 Nov 2023 07:01:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=cYW+mCu5C9o+ltDbbYSm6zMNG9Lg4ynUYI/A02tLYt8=; b=FVNOebAeDSWlRm tB4hVQ+m4TY3C64mM3mUOmivUNtdIhy6aUrhofO+0O8U+FFNQfxF+BIxdt3Qs+wR0oazBo4dwGhg/ r0KGLpMIMGu8hOpm7LftQ5dpZmS5ii5ymRUnILGXJ6awpeinIHgtsf+ysYqPcie9A0f7cy9hNFo0h /1EyKMHfkm5OtsZA8UBVdJ/tnhVl0hK5kHmKJBvFJ4MAFyAHPapefn3qlqVX7V3WfHuMrJl1oT/zc oEiyC+AI8KczHE4CWd3nSrME61WvVdr9YM549UHcUtin31qKK9FCphb+moNTnvbWLng4cs2Z9ds7h IkvNjg8t3j/9/MvgghSQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r4yHG-00BJHZ-19; Mon, 20 Nov 2023 07:01:02 +0000 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r4yHD-00BJGv-39 for linux-arm-kernel@lists.infradead.org; Mon, 20 Nov 2023 07:01:01 +0000 Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-32f78dcf036so3000947f8f.0 for ; Sun, 19 Nov 2023 23:00:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1700463657; x=1701068457; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=KwevGdkeW/EqmdjRRf8uL4/0rWQsUrZxtLsAgN3TSxo=; b=iXOE0umK8SSHiaqq0fI75tDnesa07zjqWh2oj7f+mESsWRcOAohHXfb7FjRlbaipSB aDGqYV61paZU55xilbziOR7Z0otDfRmJAC4B2EUqaPRPLyDUsp/BJXha/4Z0z3bRBe12 y7CM9NBEFq3tQdfCQUbhPYYE3qtjHRH1e76hMLZ4NiYdoqgj921S1DQU1NbgO1B5mXjL IRXYkubu6ZXUwQ/pdEcHuAHp3qeVOajmOxS1NViSWVozw5WuKRY2AD0EVyLCk29OZ6nu YXGL7EZr8erWMdVG5df2Z6+3wvAPDjC/KIdSrrDVUpgYyoHBQGPBQsYT9K/Ah4SUsA0s FoMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700463657; x=1701068457; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=KwevGdkeW/EqmdjRRf8uL4/0rWQsUrZxtLsAgN3TSxo=; b=D/WehaeVYkHPgujl3EE65XlqVZe1/zxrE2ofJXIU6SyuzmlvDAxCcl9H2Fk+5yEeNr eWrzWxwtWHXbJquqWC8Xcmwom5RMpwj7hCVubG0dXLjSaZF5XgD60TAT0448T57UorPv Zf49H3FZ9JufOqqcWoQvIR3jmrEo9JoL4v4PPFqboU70Z27Mv7VU6sBv1wQkF4eTjY7x lMS99YfAqhP0MxTCkSvtj+FNcA4kwCFegXKr4auZ0m8nYcdcJiKkRLR19g8rSK9kLYeJ XlugRj51StckV9DRKFoXukU5JclT7mrBs8ezl/08Bzi2dNL0d8CdZa0O/C1y9EfQrS6r FRLQ== X-Gm-Message-State: AOJu0Yz9dnBoYHG0dYJZhMx21AIt4kjdEexBGH79pkpGTMuoDlnocDR/ uZBGnUZONIwqJcIFYS+EJjlMNw== X-Google-Smtp-Source: AGHT+IHAdVnQoSWtCtHmQxcPOkXYnnh4RinKnklxlmmTnyowZWsyJ8QW2bmmGUpYQcAPA1Di3ZT2ZA== X-Received: by 2002:a5d:5cc2:0:b0:332:c9c2:dd4e with SMTP id cg2-20020a5d5cc2000000b00332c9c2dd4emr639485wrb.31.1700463656622; Sun, 19 Nov 2023 23:00:56 -0800 (PST) Received: from claudiu-X670E-Pro-RS.. ([82.78.167.183]) by smtp.gmail.com with ESMTPSA id p2-20020a5d4582000000b003316d1a3b05sm8777667wrq.78.2023.11.19.23.00.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 23:00:56 -0800 (PST) From: Claudiu X-Google-Original-From: Claudiu To: s.shtylyov@omp.ru, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux@armlinux.org.uk, geert+renesas@glider.be, magnus.damm@gmail.com, mturquette@baylibre.com, sboyd@kernel.org, linus.walleij@linaro.org, p.zabel@pengutronix.de, arnd@arndb.de, m.szyprowski@samsung.com, alexandre.torgue@foss.st.com, afd@ti.com, broonie@kernel.org, alexander.stein@ew.tq-group.com, eugen.hristev@collabora.com, sergei.shtylyov@gmail.com, prabhakar.mahadev-lad.rj@bp.renesas.com, biju.das.jz@bp.renesas.com Cc: linux-renesas-soc@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, claudiu.beznea@tuxon.dev, Claudiu Beznea Subject: [PATCH 00/14] renesas: rzg3s: Add support for Ethernet Date: Mon, 20 Nov 2023 09:00:10 +0200 Message-Id: <20231120070024.4079344-1-claudiu.beznea.uj@bp.renesas.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231119_230100_035091_9640CCD7 X-CRM114-Status: UNSURE ( 8.83 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Claudiu Beznea Hi, Series adds Ethernet support for Renesas RZ/G3S Ethernet. Along with it preparatory cleanups and fixes were included. Patches 1-4 are clock specific. Patches 5-8 are pinctrl specific. Patches 9-13 are device tree specific. Patch 14 updates multi_v7_defconfig with RAVB flag. Thank you, Claudiu Beznea Claudiu Beznea (14): clk: renesas: rzg2l-cpg: Reuse code in rzg2l_cpg_reset() clk: renesas: rzg2l-cpg: Check reset monitor registers clk: renesas: rzg2l-cpg: Add support for MSTOP clk: renesas: r9a08g045-cpg: Add clock and reset support for ETH0 and ETH1 pinctrl: renesas: rzg2l: Move arg in the main function block pinctrl: renesas: rzg2l: Add pin configuration support for pinmux groups pinctrl: renesas: rzg2l: Add support to select power source for Ethernet pins pinctrl: renesas: rzg2l: add output enable support dt-bindings: net: renesas,etheravb: Document RZ/G3S support arm64: renesas: r9a08g045: Add Ethernet nodes arm64: renesas: rzg3s-smarc-som: Invert the logic for SW_SD2_EN macro arm64: dts: renesas: Improve documentation for SW_SD0_DEV_SEL arm64: dts: renesas: rzg3s-smarc-som: Enable Ethernet interfaces arm: multi_v7_defconfig: Enable CONFIG_RAVB .../bindings/net/renesas,etheravb.yaml | 1 + arch/arm/configs/multi_v7_defconfig | 1 + arch/arm64/boot/dts/renesas/r9a08g045.dtsi | 32 ++++ .../boot/dts/renesas/rzg3s-smarc-som.dtsi | 153 +++++++++++++++- drivers/clk/renesas/r9a07g043-cpg.c | 116 ++++++------ drivers/clk/renesas/r9a07g044-cpg.c | 158 ++++++++--------- drivers/clk/renesas/r9a08g045-cpg.c | 64 +++++-- drivers/clk/renesas/r9a09g011-cpg.c | 116 ++++++------ drivers/clk/renesas/rzg2l-cpg.c | 166 +++++++++++++++--- drivers/clk/renesas/rzg2l-cpg.h | 21 ++- drivers/pinctrl/renesas/pinctrl-rzg2l.c | 166 ++++++++++++++++-- 11 files changed, 736 insertions(+), 258 deletions(-)