From patchwork Mon Jul 26 19:46:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerhard Engleder X-Patchwork-Id: 486973 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9E7E5C4338F for ; Mon, 26 Jul 2021 19:46:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8605160F6E for ; Mon, 26 Jul 2021 19:46:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230488AbhGZTG2 (ORCPT ); Mon, 26 Jul 2021 15:06:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232354AbhGZTG2 (ORCPT ); Mon, 26 Jul 2021 15:06:28 -0400 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39280C061760 for ; Mon, 26 Jul 2021 12:46:56 -0700 (PDT) Received: by mail-wm1-x333.google.com with SMTP id z8-20020a1c4c080000b029022d4c6cfc37so195655wmf.5 for ; Mon, 26 Jul 2021 12:46:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=engleder-embedded-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=hxBs7tGPOu4jS0DaT4/JHFTY8Pd3KfeHgNoTwaqIVmg=; b=TgPiaaRdQRHTBlCjEtLL540H4rVutAjMjN2gWOtU749qWj7BH0kATZz/3WMlfr5QAN sGlgGwl797xOotYFQPpqwDQ8NjySTqX/AnQ7N/k0z//Ex//dp/BuzfEJDYlrnU+L5Ks1 lZ53TPkCGHRvHFOVpGbYnOCdvoO7Mi//AAT/4qxTzp9+ioVHxXsHcbGe3lRa+thA1Fvl ifopGPYt47gKr61F/L/X8rpYf6LMRJmEBnRkbPXnsujOuXGzsuIcbXNQ2NOV3uIgMi/z lh0z/o5U35j2M2Gqx0S9XJ0fp8yIFSENgwBpZs/YBOWu0We3gsfKV2Ier0NYsZkWfHxR rV/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=hxBs7tGPOu4jS0DaT4/JHFTY8Pd3KfeHgNoTwaqIVmg=; b=kmmSr5kzJtKlzNJzpNSZMut7NTn7TykvgxdNTtFdgvvBYvysybt0gSG+gSUqfzlL0x VLjs8Kmt+6M97MrAhBWgAoxbrjS1aiEnNhEoY7PmKcvqybWZx/hAVQie4hZftK1WcDXs q8cs0nwIuIwcXEyEN8AxH9ILEr0AYpEDiYPhCR5UvdfaiCj/aAh4zs4eEKUkGnK5CphM doNXir2LePKXvKAqQcZz+OzkzNIWncBvgMmO99dHLYMt+AgGl1GdlQ16Sku5pcQKuF4C mGtujeFB8qj6swD9b79Ib/twe89JI33YeUYzuApUe+Y13Cm6NnzwHcK+yB+FBNf9GP3p bq2g== X-Gm-Message-State: AOAM531clw4nNgeqPv8dIzio7o9c/RoOPeDX3yL4tqlh7/RbjpJTAcpL 41SwN0KcbiBTQMDdMPx9vCFfSw== X-Google-Smtp-Source: ABdhPJzbSgkgYyR+WNF5viSgtAXOYDd6+9SM0yNiMCMne4DreZxfyk8+wJGMl+AhhTlQ0nNtPrXczQ== X-Received: by 2002:a7b:c045:: with SMTP id u5mr530193wmc.158.1627328814910; Mon, 26 Jul 2021 12:46:54 -0700 (PDT) Received: from hornet.engleder.at (dynamic-2f5ziwnqeg6t9oqqip-pd01.res.v6.highway.a1.net. [2001:871:23d:d66a:6e3b:e5ff:fe2c:34c1]) by smtp.gmail.com with ESMTPSA id r4sm741528wre.84.2021.07.26.12.46.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Jul 2021 12:46:54 -0700 (PDT) From: Gerhard Engleder To: davem@davemloft.net, kuba@kernel.org, robh+dt@kernel.org, michal.simek@xilinx.com Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, Gerhard Engleder Subject: [PATCH net-next 5/5] arm64: dts: zynqmp: Add ZCU104 based TSN endpoint Date: Mon, 26 Jul 2021 21:46:03 +0200 Message-Id: <20210726194603.14671-6-gerhard@engleder-embedded.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210726194603.14671-1-gerhard@engleder-embedded.com> References: <20210726194603.14671-1-gerhard@engleder-embedded.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Combination of Xilinx ZCU104 with Avnet AES-FMC-NETW1-G and TSN endpoint Ethernet MAC implemented in FPGA. Signed-off-by: Gerhard Engleder --- arch/arm64/boot/dts/xilinx/Makefile | 1 + arch/arm64/boot/dts/xilinx/zynqmp-tsnep.dts | 50 +++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 arch/arm64/boot/dts/xilinx/zynqmp-tsnep.dts diff --git a/arch/arm64/boot/dts/xilinx/Makefile b/arch/arm64/boot/dts/xilinx/Makefile index 11fb4fd3ebd4..d0f94ba8ebac 100644 --- a/arch/arm64/boot/dts/xilinx/Makefile +++ b/arch/arm64/boot/dts/xilinx/Makefile @@ -1,5 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 dtb-$(CONFIG_ARCH_ZYNQMP) += avnet-ultra96-rev1.dtb +dtb-$(CONFIG_ARCH_ZYNQMP) += zynqmp-tsnep.dtb dtb-$(CONFIG_ARCH_ZYNQMP) += zynqmp-zc1232-revA.dtb dtb-$(CONFIG_ARCH_ZYNQMP) += zynqmp-zc1254-revA.dtb dtb-$(CONFIG_ARCH_ZYNQMP) += zynqmp-zc1275-revA.dtb diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-tsnep.dts b/arch/arm64/boot/dts/xilinx/zynqmp-tsnep.dts new file mode 100644 index 000000000000..19e78b483f44 --- /dev/null +++ b/arch/arm64/boot/dts/xilinx/zynqmp-tsnep.dts @@ -0,0 +1,50 @@ +// SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) +/* + * TSN endpoint on Xilinx ZCU104 with Avnet AES-FMC-NETW1-G + * + * Copyright (C) 2021 Gerhard Engleder + */ + +/dts-v1/; + +#include "zynqmp-zcu104-revC.dts" + +/ { + model = "TSN endpoint"; + compatible = "engleder,zynqmp-tsnep", "xlnx,zynqmp-zcu104-revC", + "xlnx,zynqmp-zcu104", "xlnx,zynqmp"; + + amba: axi { + tnsep0: ethernet@a0000000 { + compatible = "engleder,tsnep"; + reg = <0x0 0xa0000000 0x0 0x10000>; + interrupts = <0 89 1>; + interrupt-parent = <&gic>; + local-mac-address = [00 00 00 00 00 00]; + phy-mode = "rgmii"; + phy-handle = <&phy1>; + #address-cells = <1>; + #size-cells = <0>; + phy1: ethernet-phy@1 { + reg = <1>; + rxc-skew-ps = <1080>; + }; + }; + + tsnep1: ethernet@a0010000 { + compatible = "engleder,tsnep"; + reg = <0x0 0xa0010000 0x0 0x10000>; + interrupts = <0 90 1>; + interrupt-parent = <&gic>; + local-mac-address = [00 00 00 00 00 00]; + phy-mode = "rgmii"; + phy-handle = <&phy2>; + #address-cells = <1>; + #size-cells = <0>; + phy2: ethernet-phy@1 { + reg = <1>; + rxc-skew-ps = <1080>; + }; + }; + }; +};