From patchwork Sun Nov 6 21:40:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Renze Nicolai X-Patchwork-Id: 13033611 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1AA2AC4332F for ; Sun, 6 Nov 2022 21:37:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-ID:Subject:Cc:To:From:Date:MIME-Version: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=SAPpGUBco/2eBFLh3jSNNAlAXsYW7SBd6KMKHU0zoEw=; b=WF+OzXS70V3zejc8VuYytL0tAm HlTo0O70BHOvcVkixUR5CuJ66ce8cioT5G7Dzl7xSSSc6rytAfw+pf1r4Dtn05xx0p0lZ6dZvYwAt UcNoCwSwnWVzKwa93KWpCniuxGAib0hNgkTT1E1GBP+5XMkG/WPPDGQv6IGP+oPnydhqEnxo7KkFj 1EFQZXOW9ZeakURGv3WSqZ7OnLYfMz7k8klPAk1sEa33o/ocQY2jVzLxTBF1q1Z23C/TP5zJ7Uhxa uhSZakrxspK/rD2v7qiOiIiL+I50Y/U38j1yzhdCJRaBR0hgZDhuhpar4D6jvbMOoZMUrsOqd9BHs xuKvUSkw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ornJ0-009tFg-48; Sun, 06 Nov 2022 21:35:50 +0000 Received: from mail.rnplus.nl ([178.251.25.70]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ornIw-009tDy-Ph for linux-arm-kernel@lists.infradead.org; Sun, 06 Nov 2022 21:35:48 +0000 Received: from localhost (unknown [127.0.0.1]) by mail.rnplus.nl (Postfix) with ESMTP id A2D19378511 for ; Sun, 6 Nov 2022 21:40:34 +0000 (UTC) X-Virus-Scanned: amavisd-new at rnplus.nl Received: from mail.rnplus.nl ([127.0.0.1]) by localhost (mail.rnplus.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jR32TXsvc02k for ; Sun, 6 Nov 2022 22:40:32 +0100 (CET) Received: from mail.rnplus.nl (mail.rnplus.nl [178.251.25.70]) by mail.rnplus.nl (Postfix) with ESMTPSA id C89BE377D7B; Sun, 6 Nov 2022 22:40:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rnplus.nl; s=dkim; t=1667770831; bh=dposmZziBXGFSWdzBvqK+nAEyqiV2Mu12CTImtW/j7w=; h=Date:From:To:Cc:Subject; b=Po4Xek5z4pauwchoKhdq1zRYHYTObF6PXHPFDlG+aoondykkaZv1N3lifChu4I3aL jLKiavQvcb+aDx8fR+ByeZsIMoq+EP/2ilsafVjJIOtWX32DpxZIoSNM1obj7pclxo p4yvqN2Zt8B7R57yLkuGSBiNtXoUuVyASEGFjYhc= MIME-Version: 1.0 Date: Sun, 06 Nov 2022 22:40:30 +0100 From: renze@rnplus.nl To: linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Cc: Rob Herring , Krzysztof Kozlowski , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland Subject: [PATCH] arm64: allwinner: a64: add device tree for SoPine with clusterboard User-Agent: RN+ Webmail Message-ID: X-Sender: renze@rnplus.nl X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221106_133547_357034_B5C7E35A X-CRM114-Status: GOOD ( 12.57 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The Pine64 clusterboard needs a to have the tx delay changed to 500ps for ethernet to work. This solution was described by multiple people on the Pine64 forum years ago and nobody has submitted it. Add a device tree for SoPine with the clusterboard. Signed-off-by: Renze Nicolai --- arch/arm64/boot/dts/allwinner/Makefile | 1 + .../dts/allwinner/sun50i-a64-sopine-clusterboard.dts | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-clusterboard.dts diff --git a/arch/arm64/boot/dts/allwinner/Makefile b/arch/arm64/boot/dts/allwinner/Makefile index 6a96494a2e0a..15b011d1aaea 100644 --- a/arch/arm64/boot/dts/allwinner/Makefile +++ b/arch/arm64/boot/dts/allwinner/Makefile @@ -15,6 +15,7 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-pinephone-1.2.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-pinetab.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-pinetab-early-adopter.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-sopine-baseboard.dtb +dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-sopine-clusterboard.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-teres-i.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a100-allwinner-perf1.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-bananapi-m2-plus.dtb diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-clusterboard.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-clusterboard.dts new file mode 100644 index 000000000000..6f8020a22670 --- /dev/null +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-clusterboard.dts @@ -0,0 +1,10 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +// Copyright (c) 2022 Renze Nicolai + +/dts-v1/; + +#include "sun50i-a64-sopine-baseboard.dts" + +&emac { + allwinner,tx-delay-ps = <500>; +};