Received: by 2002:ab2:6486:0:b0:1ef:eae8:a797 with SMTP id de6csp64578lqb; Fri, 15 Mar 2024 15:28:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW/cwEKBKarpyETKhdPtEq3WZN3y6ivKk/8kAigIokxeLs1wWYdBnzWnTos7Jlr/3teVlBi1Agd2HoZ2KH4cjTXub35YEOxc8FV7bEMjw== X-Google-Smtp-Source: AGHT+IEFFx14sEoBdL8OsxE2cQH4PeyYbnn/HVXaivnwMAKFn5z69NUC5RcI/9U/PZmZqV7rDA/n X-Received: by 2002:a17:906:c7d3:b0:a46:40fe:b30f with SMTP id dc19-20020a170906c7d300b00a4640feb30fmr3830007ejb.31.1710541723854; Fri, 15 Mar 2024 15:28:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710541723; cv=pass; d=google.com; s=arc-20160816; b=UEpNpRBUk8y29/NgoNXGybORq7M0VYaN6F/qx4THbqoe5Kmoekx5jgS1+CHfAQHaXQ Fb58gH9pBqclGFjbZPvBy3mBJWwZy4HMR72iQylAEqEV0ipeKxIbPzUpJD2mCztbsjaI JjpOSsFiZd2a9jEazY1gt5Mp8uQHZWRwyQVzzfYL9JEoH4GJUIYJv1+YIvCL8kK4gHb7 b19PkJ+Fek0eVFsk8dZR0RgRaJDFvSNCuL28qcyPxFJJVNL61jGyaLoOF1BfybnqXgx0 cVF7jkqY9cCVnsGFDTknVCGvC3MYDZpi73l2cuERkhvx1XHqkpoxGWlVUS8T7eAvJjxf uYZA== 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:dkim-signature; bh=VKMrVBH/fNSeezyhVeqSE7P3QRxBY9UAa0c3DLVNqYA=; fh=Q8N0KCc+KbPhffKpSTOXFxF4v7YlSMYQrb+R8h0E9qM=; b=pRoNasWpkfRVHN0/wS5AWG0EYWqcqVvw+8GeRkvucRIv12NZ4wkztr0Pan+V2TiDpM pWwlG4jJUml6QTQMKlBUYYtt47XKPMwZCUa7iTx7Jak/GBxq64+zXycHS1srt+0TDEUc HyjUxDZ67WAY3b4x+O0jQBgzPmqalaIj4o5Um02EoWP86IP9NRtb65pFzQ8QXBSVjJs3 Yq7Kj8lGOeHYGqeCAlYzmQREjyZSUSPOqgZn+iCrK7INGuuQkfOFiXrvgL+51YJ88WSL q6nenc24uu/dkotqCpKTwZb7d1anCf9AJg+3gqxlcrfR8D8aj421SshneCLV16U7yXK6 zlig==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=UW76ZLRK; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-104959-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104959-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id rv15-20020a17090710cf00b00a466e738516si2034771ejb.802.2024.03.15.15.28.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Mar 2024 15:28:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-104959-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=UW76ZLRK; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-104959-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104959-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 6D0CB1F2394D for ; Fri, 15 Mar 2024 22:28:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BCB825786D; Fri, 15 Mar 2024 22:28:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="UW76ZLRK" Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9037154F84; Fri, 15 Mar 2024 22:28:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710541714; cv=none; b=pGhqENxicpodVh4jvW6umfYdRgxEB1g3k7PhIkFwfAtdzIMgv8QUGGaDjXh/GKNt7Og0PjaJH/A5TejH+srd8g4+Kds7moFyVTGnXxxlfaJs8fwYfCNbiRVJBDz4OhVdvxdqoehNfiQT6JqD8lgKwCvNHb+ZzNqTDztEmgQrWRA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710541714; c=relaxed/simple; bh=zsuC/t+XdTuI/DjTEsIPVcUIbRmD9P+ZPy8rJ5VJJMg=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=ZwedTSKHFIN4rNmpc1j3q9TCAdGf/4PwJU+FxVSNQaXKYoiH+DFy+0jsRLi+rvyooYs81hjyGQrAAWx+/Cuw639YZ5pM0XuKRSlX8geZjnJLk0fc1wRYFKe7rCJGyrMPB82SXHRn21EoPHROp4v58CgpviebhpB4so67pnISlvU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=UW76ZLRK; arc=none smtp.client-ip=209.85.208.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f43.google.com with SMTP id 4fb4d7f45d1cf-5688eaf1165so3907151a12.1; Fri, 15 Mar 2024 15:28:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710541709; x=1711146509; 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=VKMrVBH/fNSeezyhVeqSE7P3QRxBY9UAa0c3DLVNqYA=; b=UW76ZLRKNL7o/We0EqD4hyFsLnDpLI48gmx5e0+OpeO182dfVJo/0vkeCGFVaHZkgk f63klHAGXagZ6WEUUeMJZ9zQCY7CwotQ61wr8Tn3EONRIwtdGdJrSZdywnLFhLPLCwnb YxphRPfH7g/8dT0k8U4AeaCiRzrptL16N9xRKQS2Xw0GYV5EqyEGh+AukH9DoZdcBPJP V7Rn/EnAv4dAJ0qd6NYJzhB8K5sS25+Adt1vePYsmjmPWUAGNxjm9wcVBEU1TgqSQ2ES 9Pqx9nJYsDjC+NW+PTKDKvuSt6GEssvXVVY88u+VHR8eXDugZ32gkr2hPzQ83IdKWsTr Rbhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710541709; x=1711146509; 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=VKMrVBH/fNSeezyhVeqSE7P3QRxBY9UAa0c3DLVNqYA=; b=Pv5gPvCiDj5LeOr6w4EzUdigptXSJLr3wxmvMN9FkZUHYNFc4vJn6N4eaiofYIzqxZ NmYAxILzbNrZibBKZHEI7jhIADRQPYbWFjD/wx9dA170P7pmYBG4TvOcWRcu+qKc3Cqu QqfJ0z4WWDVDMrD0BeGIBsVT7f+Xy9WcZsPM6Ie4Yeeoh27KGwX2EMh/y5ZDAHQah8L9 aNwtOs2r6X73Ni9oKAoOdbUETx4pNeZkkiJAZFpyP+hGyLb5RhOl1Grd9DhgB2N27zMf Js3z0+0FLTdDGesOtchoNpKvTFRG+Wcy82SjZFmGk0v1XXdg9vjfGm19m4V69sfHRvsX KBJA== X-Forwarded-Encrypted: i=1; AJvYcCWWFvyQIYug/yLY/xkBv0zQ/Qkjw8QhcE6D//Utp2uSeloAXI/AaQp7Ery/MTGh7DrhInMi+EOQ8ehWjQFcbdEKLulOPQvXXoiY0p0oNAfRzZ68ypGfAHBdIAtRBiE8N6RyH8PhKKbBE1J+RFi7I/VGh7mOLYFPSN1CD1d7fmEcbCJzpIv80YA6zmLL8HsFiLfv8HMdGF0MudU1Dw== X-Gm-Message-State: AOJu0YytRePbdtRLH2eif01A5PkpMfov+NHKrd2Ygg+tZ5ay+Qw6jADO 7yy1S0QHAMWIgboxLWL0Pq9/MCjm/h+J2qmDa5B2tYh2MNlgpd/S X-Received: by 2002:aa7:d792:0:b0:568:231e:31dd with SMTP id s18-20020aa7d792000000b00568231e31ddmr4054551edq.30.1710541708964; Fri, 15 Mar 2024 15:28:28 -0700 (PDT) Received: from bhlegrsu.conti.de ([2a02:908:2525:6ea0::f845]) by smtp.googlemail.com with ESMTPSA id el9-20020a056402360900b005684173e413sm2039833edb.72.2024.03.15.15.28.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Mar 2024 15:28:27 -0700 (PDT) From: Wadim Mueller To: Cc: Wadim Mueller , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Chester Lin , =?UTF-8?q?Andreas=20F=C3=A4rber?= , Matthias Brugger , NXP S32 Linux Team , Alexandre Torgue , Jose Abreu , Maxime Coquelin , Michael Turquette , Stephen Boyd , Richard Cochran , Simon Horman , Andrew Halaney , Bartosz Golaszewski , Shenwei Wang , Johannes Zink , "Russell King (Oracle)" , Swee Leong Ching , Giuseppe Cavallaro , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, linux-clk@vger.kernel.org Subject: [PATCH 0/3] NXP S32G3 SoC initial bring-up Date: Fri, 15 Mar 2024 23:27:46 +0100 Message-Id: <20240315222754.22366-1-wafgo01@gmail.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This series brings up initial support for the NXP S32G3 SoC (8 x cortex-a53), used on the S32G-VNP-RDB3 board [1]. The following features are supported in this initial port: Devicetree for the S32G-VNP-RDB3 UART (fsl-linflexuart) with earlycon support SDHC: fsl-imx-esdhc (SD/eMMC) Ethernet: synopsys gmac/stmac. This is based on a patch series provided by Chester Lin in [2] [1] https://www.nxp.com/design/design-center/designs/s32g3-vehicle-networking-reference-design:S32G-VNP-RDB3 [2] https://patchwork.kernel.org/project/netdevbpf/patch/20221031101052.14956-6-clin@suse.com/#25068228 Wadim Mueller (3): arm64: dts: S32G3: Introduce device trees for S32G-VNP-RDB3 net: stmmac: Add NXP S32 SoC family support dt-bindings: net: add schema for NXP S32 dwmac glue driver .../bindings/net/nxp,s32-dwmac.yaml | 130 +++++++ .../devicetree/bindings/net/snps,dwmac.yaml | 5 +- arch/arm64/boot/dts/freescale/Makefile | 1 + arch/arm64/boot/dts/freescale/s32g3.dtsi | 352 ++++++++++++++++++ .../boot/dts/freescale/s32g399a-rdb3.dts | 57 +++ drivers/net/ethernet/stmicro/stmmac/Kconfig | 12 + drivers/net/ethernet/stmicro/stmmac/Makefile | 1 + drivers/net/ethernet/stmicro/stmmac/common.h | 3 + .../net/ethernet/stmicro/stmmac/dwmac-s32.c | 313 ++++++++++++++++ .../net/ethernet/stmicro/stmmac/dwmac4_dma.c | 9 + .../net/ethernet/stmicro/stmmac/dwmac4_dma.h | 3 + drivers/net/ethernet/stmicro/stmmac/hwif.h | 5 + .../net/ethernet/stmicro/stmmac/stmmac_main.c | 7 + .../dt-bindings/clock/nxp,s32-scmi-clock.h | 158 ++++++++ include/linux/stmmac.h | 9 + 15 files changed, 1063 insertions(+), 2 deletions(-) create mode 100644 Documentation/devicetree/bindings/net/nxp,s32-dwmac.yaml create mode 100644 arch/arm64/boot/dts/freescale/s32g3.dtsi create mode 100644 arch/arm64/boot/dts/freescale/s32g399a-rdb3.dts create mode 100644 drivers/net/ethernet/stmicro/stmmac/dwmac-s32.c create mode 100644 include/dt-bindings/clock/nxp,s32-scmi-clock.h -- 2.25.1