From mboxrd@z Thu Jan 1 00:00:00 1970 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=-9.6 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,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 BA3F4C3A59B for ; Fri, 16 Aug 2019 00:45:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8D17D2086C for ; Fri, 16 Aug 2019 00:45:17 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gIXxVEB1" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726477AbfHPApQ (ORCPT ); Thu, 15 Aug 2019 20:45:16 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:54910 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726414AbfHPApO (ORCPT ); Thu, 15 Aug 2019 20:45:14 -0400 Received: by mail-wm1-f66.google.com with SMTP id p74so2700168wme.4; Thu, 15 Aug 2019 17:45:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=SHwMVZf7nnhZ7srHZdoBKuigZ9THCKn0JvEgWlDyC5w=; b=gIXxVEB1SXZ42dG9/uCZEDsvm7VU5YyVftLmjsYuJVTtcs/ww5GTNNTrrkeDH5KHkp th4uXAVfEFDvDWhJ+Z28jRMengS8p6oxK62PHAovodql1w/5o0aajkt09FiwxalWXKb3 mkKJxLrQBhFTfr+Gh0hM74iA0nM602qxbPsuorU7H1UpGJ2ICx9OhrY9VAAaXKJLEKCf 6YaCqy5SOq3zCvFFmcbqIKD52QVHX4knZqJ8CFHQre4xyzsspJPOdGfzfm4CB7MFwGRw kq4Woey8lLdxoiTo6iU3eqYiZj02U7v/xepPvF5x3MZAl1fK63CJAwo7SQ9jBZVC69dh Medw== 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; bh=SHwMVZf7nnhZ7srHZdoBKuigZ9THCKn0JvEgWlDyC5w=; b=paqoo+e3LQZn2byGmsWsRt4ajQaOp//0FmKAdFxOh3GgvCcW0jP3hCxvcecahG0CeK akT9nHW/oFf66RpsrBzXha6QN50mhGzOejxDuQ3D+gAnExwe4kujNeOCrI6ERx1V511J MoMiNV7tTc1sOeD6UnsBnI9kiXRhQ8rwENBbxD4LlRh4T2GJKg0QeY/B180JCs+P6jLJ AgYbQESCggJz8/FpGCn5hPXs9EXslEMA8mlsHnDy1rOhIK/4FDMVEeHTjeHmDkU1HyUh xqI0uKOsoSsOrZNrPSOQiD7+E8si/McZvUCv885Dy/ZhkcakR973Vnv+aQdIIdxn/l/R wuPg== X-Gm-Message-State: APjAAAUYUkRVyhX2DbGLM+DhsVqrwhUdcy3fya8qAKrwPakt1Tmly4kY ag3/mgpOsnvs/OFz8/XakTg= X-Google-Smtp-Source: APXvYqwcQlBf96018l21ogc6HgqjWYc+Tj4Ut68GuDzrs5J/DF7aX5WDIEBaVUHh24ehNyM43iQ33A== X-Received: by 2002:a1c:a481:: with SMTP id n123mr4348381wme.123.1565916312411; Thu, 15 Aug 2019 17:45:12 -0700 (PDT) Received: from localhost.localdomain ([188.25.91.80]) by smtp.gmail.com with ESMTPSA id k124sm6451204wmk.47.2019.08.15.17.45.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Aug 2019 17:45:12 -0700 (PDT) From: Vladimir Oltean To: h.feurstein@gmail.com, mlichvar@redhat.com, richardcochran@gmail.com, andrew@lunn.ch, f.fainelli@gmail.com, broonie@kernel.org Cc: linux-spi@vger.kernel.org, netdev@vger.kernel.org, Vladimir Oltean Subject: [RFC PATCH net-next 10/11] ARM: dts: ls1021a-tsn: Use the DSPI controller in poll mode Date: Fri, 16 Aug 2019 03:44:48 +0300 Message-Id: <20190816004449.10100-11-olteanv@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190816004449.10100-1-olteanv@gmail.com> References: <20190816004449.10100-1-olteanv@gmail.com> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Connected to the LS1021A DSPI is the SJA1105 DSA switch. This constitutes 4 of the 6 Ethernet ports on this board. When using the board as a PTP switch and bridging all 6 ports under one single L2 entity, it is good to also have the PTP clocks of the switch and of the standalone Ethernet ports in sync. This cannot be done with hardware timestamping, and is where phc2sys comes into play. Using poll mode for SPI access helps ensure that all transfers take a deterministic time to complete, which is an important requirement for a TSN switch. Signed-off-by: Vladimir Oltean --- arch/arm/boot/dts/ls1021a-tsn.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/ls1021a-tsn.dts b/arch/arm/boot/dts/ls1021a-tsn.dts index 6cec454c484c..3b35e6b5977f 100644 --- a/arch/arm/boot/dts/ls1021a-tsn.dts +++ b/arch/arm/boot/dts/ls1021a-tsn.dts @@ -37,6 +37,7 @@ bus-num = <0>; /* EXP1_GPIO6 is GPIO4_18 */ debug-gpios = <&gpio3 18 GPIO_ACTIVE_HIGH>; + /delete-property/ interrupts; status = "okay"; /* ADG704BRMZ 1:4 SPI mux/demux */ -- 2.17.1