From patchwork Tue Nov 21 15:53:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Niklas_S=C3=B6derlund?= X-Patchwork-Id: 13463322 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ragnatech-se.20230601.gappssmtp.com header.i=@ragnatech-se.20230601.gappssmtp.com header.b="mwZ6NtI8" Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41C2A1A1 for ; Tue, 21 Nov 2023 07:53:42 -0800 (PST) Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-a02d91ab199so72105966b.0 for ; Tue, 21 Nov 2023 07:53:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ragnatech-se.20230601.gappssmtp.com; s=20230601; t=1700582020; x=1701186820; 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=YF5zRX0anlbd7P/lxY+pifF1Q2sI00JLjEQz2BjGPKs=; b=mwZ6NtI846MQFi2IWNrwmunx8+A/lXZ1ZEbPI4GbEJ40W6VqtJxgKrl5HkY5zbCn4I w+WDzaRQCNPMeSaCoKqHIKfURWTZ/2EuhNkFgx1qXwUSrDBOSAjjiu4r0fa7twJts1cP xgjv4LN7abCIQFn6BZ/Pe0kJTgGGLNUFW9XNLaF9hrzWOJgWEcWpyB992OnCJKvbEN5j B8WFcJLY6K7m54QMnOTd3kP9LEQ/lBs0eKg2OGnzSVN/0Tv4w+RAQrtfNug5uoCJHv7x LEc9CPDRlcFSwJLf8THq3pL0ld64F5iB9zIcd+rirOb+pVme7spSrsOs54QiEamiixXL iUlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700582020; x=1701186820; 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=YF5zRX0anlbd7P/lxY+pifF1Q2sI00JLjEQz2BjGPKs=; b=js8Qr8TIIXZ+QmdG/VS/VsUHtkyP4huAsMhYl/h8RB+aKz494ztIcy+7IWT16HWyjw +2sC0wsL/mA2aPBuJVzkXj1ktSIOjrhlRQOjWLaC0cyKxyzWTTZYg8+OsfXrbSuASQQo 2tqmeN9CZ2lyjtBS7WKR8FnXPR7vb432ZT18v36Hy24MZIS++Hh87aJDKjP7jROZpUBX gC1eqhG+tZ06LE942WL6UksiFOzlvzUCLzSVbdcO4AZ9BBpoJ2fJZ4YaI9ZI13GrwBYI BiMVGi7llknAXI1rfKsc+ekKyG6U9MAF8dLii7X7BPZos+3ydMHzqvN4QRms61phawC+ lnnw== X-Gm-Message-State: AOJu0YyDVwvo0btBH5nhV3TO0PatMGtzm3yVjeFmwDBTrlckQOuUyWie Ct4fITYV7LMvqHFas/zIWPq5sqBjgAXyGg2o2aXPMg== X-Google-Smtp-Source: AGHT+IEDNObtDvR0uRy/QNp09TbPkvcmJIi7ltEStu4nk0Z25EsThzHrMknvOLYRhcTyMSDJg/801Q== X-Received: by 2002:a17:907:8b90:b0:9ae:522e:8f78 with SMTP id tb16-20020a1709078b9000b009ae522e8f78mr9454682ejc.74.1700582020433; Tue, 21 Nov 2023 07:53:40 -0800 (PST) Received: from sleipner.berto.se (p4fcc8a96.dip0.t-ipconnect.de. [79.204.138.150]) by smtp.googlemail.com with ESMTPSA id dv8-20020a170906b80800b009fdc15b5304sm2896853ejb.102.2023.11.21.07.53.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 07:53:39 -0800 (PST) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Richard Cochran , netdev@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, =?utf-8?q?Niklas_S=C3=B6derlund?= Subject: [net-next v3 0/5] net: ethernet: renesas: rcar_gen4_ptp: Add V4H support Date: Tue, 21 Nov 2023 16:53:01 +0100 Message-ID: <20231121155306.515446-1-niklas.soderlund+renesas@ragnatech.se> X-Mailer: git-send-email 2.42.1 Precedence: bulk X-Mailing-List: linux-renesas-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Hello, This small series prepares the rcar_gen4_ptp to be useable both on both R-Car S4 and V4H. The only in-tree driver that make use of this is rswtich on S4. A new Ethernet (R-Car Ethernet TSN) driver for V4H is on it's way that also will make use of rcar_gen4_ptp functionality. Patch 1-2 are small improvements to the existing driver. While patch 3-4 adds V4H support. Finally patch 5 turns rcar_gen4_ptp into a separate module to allow the gPTP functionality to be shared between the two users without having to duplicate the code in each. See each patch for changelog. Niklas Söderlund (5): net: ethernet: renesas: rcar_gen4_ptp: Remove incorrect comment net: ethernet: renesas: rcar_gen4_ptp: Fail on unknown register layout net: ethernet: renesas: rcar_gen4_ptp: Prepare for shared register layout net: ethernet: renesas: rcar_gen4_ptp: Get clock increment from clock rate net: ethernet: renesas: rcar_gen4_ptp: Break out to module drivers/net/ethernet/renesas/Kconfig | 9 +++++ drivers/net/ethernet/renesas/Makefile | 5 ++- drivers/net/ethernet/renesas/rcar_gen4_ptp.c | 40 ++++++++++++++++---- drivers/net/ethernet/renesas/rcar_gen4_ptp.h | 9 ++--- drivers/net/ethernet/renesas/rswitch.c | 4 +- 5 files changed, 49 insertions(+), 18 deletions(-)