Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp279825lqp; Tue, 11 Jun 2024 04:34:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUmcHaWaI9gD9ZDG4NsrluEM1nqog6AK0brmX4vnpTBv5FukKLyGKtA3EV7iGW76ENRjkZ0ujo+0U2BTOIwTgK7R/LyXJAagOP18J6prA== X-Google-Smtp-Source: AGHT+IGqHgeU3Ap0ySLnEqJSN4ixdPu2ckudykwRZ3eBhxJzfQYQYG/MtbOR7wvkMxM6OglsVhfe X-Received: by 2002:a17:902:f549:b0:1f7:37c6:859f with SMTP id d9443c01a7336-1f737c6883fmr7220095ad.66.1718105643904; Tue, 11 Jun 2024 04:34:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718105643; cv=pass; d=google.com; s=arc-20160816; b=E4W5EBRuGew86IzA1kQLqcx/aC8009WkzEwjTS1Epmwk/A/AK8uIYSvAPueDiDdrG4 /HeG2Xe08EDrMQmYXaaUt5liW3yoof1Q11jlYScdxJW87XnSNMQzEkmemeFVtf9+Z4G2 Wf2KZdgYmVJWA3PpxTgazAR8ZmCXMjuPHSwKQ8LdzImivK0ljxeam6FpGzbjHB2r9Rvm 7jYlppT9IeYcLx1+IuelvJm/G+2WEntnDbA4QcpwfAJ33d35Wlht4Saupf0fW8OlXNA5 XvEG3kWKMdAHm1YFbdbNspL1B6CUh8gqzGiqJAJZV23HmRMJ1+KfXP2UoTlHKFjtFbfu EJIQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=Lfq1O2J7muVdX0vm06Lit5SI01OBvyt1QTiEGYm0dCY=; fh=euLdGf6/mbn+BTdRQixZpDYPaLYVhM5osBbradXTqRU=; b=diO13C0yZu7PnFivSJ3bEhzhzuGQuCZEc32ltD4OVoHBzTlvvv6yji7uNMPU916XqJ sxZndfKHiDPzedgZ1ERxeKa1VmxSAVVo30WcMhn2pwoKST3uRd0k45LuqtBqfvZALfU3 5b+35xt41HwrkV1NScRdt4gvmnUNkjNade3xn9reCXqgob+xFbldsYySFYLWzSm0iHkR MrnVKqtwpaZme8Shx+voA3GhU9ritCYe1LizccbpLKmwj9xczJK9qCIFZwiU82HVVsDZ j5h6w/TJ2vkyQXij5Q/wePSj01R5SXljgMg1noeF7D+vs87H+zxe/22huxCDCVnO+E8A HQ9g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=bp.renesas.com dmarc=pass fromdomain=bp.renesas.com); spf=pass (google.com: domain of linux-kernel+bounces-209749-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209749-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f6e0031e35si49568695ad.327.2024.06.11.04.34.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 04:34:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-209749-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=bp.renesas.com dmarc=pass fromdomain=bp.renesas.com); spf=pass (google.com: domain of linux-kernel+bounces-209749-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209749-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.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 0FE7D282E2A for ; Tue, 11 Jun 2024 11:33:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 74E5117B510; Tue, 11 Jun 2024 11:32:53 +0000 (UTC) Received: from relmlie6.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2DCCE17B41D; Tue, 11 Jun 2024 11:32:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.160.252.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718105573; cv=none; b=NXwGuvnPPL10OLfkbgmuW/k5KK1HhWxItQTbgy5EsiBEFom1AoHXsk0Mfap2wU+NB/brsZ1cgbPt6o2c+9qT7tmpp4UtIx9mgfNOvY5mioHdmsVzpbact1769mLlbEUw6ZPJEAVPAj5K5MzbG5+VsMqSwp1lfpagVX2gsmRwkBk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718105573; c=relaxed/simple; bh=fv2vFQ9zsD9csPzAwCP8Af0+dR8nurRiUYyvu5jh/io=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=qceyF3AZs7U9FV+j231n8Qg+wWfRMF1JfZxejqkhcshUT7Ihf8C4WtXRQdvJgQVHNd2pR+M9U/I3QcnXk2CHCjjOpXKFwQwQYWdJ5nONUftfZ12jOqzxn7NAjxUzTWavQqe/uSyWHgS0WpsiUoE/G3nxz5C30ThH8wIRg+3bE7o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=bp.renesas.com; spf=pass smtp.mailfrom=bp.renesas.com; arc=none smtp.client-ip=210.160.252.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=bp.renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bp.renesas.com X-IronPort-AV: E=Sophos;i="6.08,229,1712588400"; d="scan'208";a="211449611" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie6.idc.renesas.com with ESMTP; 11 Jun 2024 20:32:49 +0900 Received: from renesas-deb12.mshome.net (unknown [10.226.92.82]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id DEF774008C4F; Tue, 11 Jun 2024 20:32:44 +0900 (JST) From: Paul Barker To: Geert Uytterhoeven , Magnus Damm , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Linus Walleij , Lad Prabhakar Cc: Paul Barker , linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/9] Configure GbEth for RGMII on RZ/G2L family Date: Tue, 11 Jun 2024 12:31:54 +0100 Message-Id: <20240611113204.3004-1-paul.barker.ct@bp.renesas.com> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit For devices in the RZ/G2L family, we have so far relied on U-Boot correctly configuring the Ethernet interfaces in RGMII mode with PVDD=1.8V before the kernel is booted. Instead, the required configuration should be described in the device tree and activated within the pinctrl driver. Changes v1-v2: * Rebased on next-20240611. * Changed the approach taken in the pinctrl patches to be compatible with changes made by Prabhakar for RZ/V2H support. I haven't picked up Reviewed-by tags on these patches as they've changed a lot. * Clarified that patch 6/9 also affects RZ/Five. * No major changes to the dts patches so I've picked up Geert's Reviewed-by tags for these. Paul Barker (9): pinctrl: renesas: rzg2l: Clarify OEN read/write support pinctrl: renesas: rzg2l: Clean up and refactor OEN read/write functions pinctrl: renesas: rzg2l: Support output enable on RZ/G2L arm64: dts: renesas: rzg2l: Enable Ethernet TXC output arm64: dts: renesas: rzg2lc: Enable Ethernet TXC output arm64: dts: renesas: rzg2ul: Enable Ethernet TXC output arm64: dts: renesas: rzg2l: Set Ethernet PVDD to 1.8V arm64: dts: renesas: rzg2lc: Set Ethernet PVDD to 1.8V arm64: dts: renesas: rzg2ul: Set Ethernet PVDD to 1.8V .../boot/dts/renesas/rzg2l-smarc-som.dtsi | 86 ++++++---- .../boot/dts/renesas/rzg2lc-smarc-som.dtsi | 43 +++-- .../boot/dts/renesas/rzg2ul-smarc-som.dtsi | 86 ++++++---- drivers/pinctrl/renesas/pinctrl-rzg2l.c | 150 ++++++++++++------ 4 files changed, 235 insertions(+), 130 deletions(-) -- 2.39.2