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 X-Patchwork-Id: 13460817 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="Ql+mDJju" Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9B64186 for ; Sun, 19 Nov 2023 23:00:58 -0800 (PST) Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-32fb190bf9bso2983999f8f.1 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=vger.kernel.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=Ql+mDJjuFXalBHoH07uDQji+lUn7Ntuo8d2tfEotw3hwHrpsgtmnlyFN8j8vE/C2yV 165cy9H1cJ7UtrYxg7VQ+U15neIBWwXYx3GGzG6NYd7z5uY75ukmY6K1EnKxMNHHZ5wi 3yrcMi+cX+ZkVxIhAuRyqfti6PJjpqgQfpSmmHn7iBaf9L8Uve5VuLX7Q3dd8UBtgVrc dpTBg0ScnEUS1BxwsbUMI9LeSkIKC4AQ0xxKtuIrTgCzTE/VQ8rttuaLwDIgzzK6pS57 l4d5kmkhsjjLfDeaJ4xwjgaulManPRmZJX0Yy2JdCv/Ebal/BgbyIo/nPH5wOmDNDZGs ldOg== 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=bomKvFs/rVCdy5PHBJXVv4epm3uP3jdV4LhRLuiUY1sepJdajv5nZCqx1A30lVhE5M z8fI6H6ajmb9ON7t/S0q60E6kmOiMf2oZWISz4CAHs0Tbz7KE4Yt0jwq3XTVGTOAnFnn XdZ6NxzT/+NLv/RwDr31LKbJcnBzpcmhlPEP/W9x7+Muqpr1OXkJ1ttysHBemHi1uV9X W/wD9T3gitEOp93/esFko5oyue8m3mn2JAZbDL3qKA6k8c3cMmHA1ExapTCejdnnxlDF EpMj5MPfK3XVmRretMq8y6OtOqK2ndCN9Ye0mVNjTyspt7uWX+JWU1oyzFwyV7pF/dAI zT/g== X-Gm-Message-State: AOJu0YyCEc3WITutDBZsIUYo1I4oEzzBmv5CpsahootIX6n1eovzlusF 1X98OUBVSZfplhd2z2nPxxijfQ== 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 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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(-)