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: 16198 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1687423wru; Sun, 6 Nov 2022 13:46:16 -0800 (PST) X-Google-Smtp-Source: AMsMyM4ZPTc3wt2YoTTgflI8StW7X1c9fGsSl2ccpXPTFxDkmeuJG4y5uIYGJuZZ48lkmi8zCOYy X-Received: by 2002:a05:6402:1454:b0:461:9b5c:2fbc with SMTP id d20-20020a056402145400b004619b5c2fbcmr46080148edx.276.1667771176348; Sun, 06 Nov 2022 13:46:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667771176; cv=none; d=google.com; s=arc-20160816; b=AbpsXTNkGdpsHrkhyowYsnSIRnxtB61xcKLvrhz1og1Mw++DxbyJu7P24hHXM05Ni5 N3faVLbFNfCX2EIX2zCav94rUrcr6gHmQ+UUKTQMNuoOYQg9UAlBO/eL/WHPG8+jSoug ywga1rlMjMA1aMrFoHzouDAzTg6Fp37voneRNesXlyBUJHXyZAHPstNVWUaFhcKDoTm7 dhcXSo5YCJxmPJ59dZjHT1PzwhAk56eQU4HprNbBdXHh6+1mFiYZwFfsDtDLUbZ9pHzU KhUSUnfsEn+mre6v9gduzKTm7tlcM863C+qMFu8rtOg8WNF+5YrDJgtW67dJxOrmQQfT A1LA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :subject:cc:to:from:date:mime-version:dkim-signature; bh=GlEoLGgHc1aTl/Yt3FBCUDHoKO2X+yJknx/yfROnwfM=; b=h/owtIt3MYvDrmOFJ9jMvBCYuJ0PMRS6px36hLr7M0JLVbazXNuplkjw7O7+ZmsK0c X/iHZp4dTt85AWzCgNjlbrXHTl7OrLeKoBnAUEvniwkZVE5OeUJkAPLrIzNaUcFXpEEI UYho589vlZ1WND87706BbzsxZgl6RENg5xC7YKEWz4XXZtZqfeTLKF2oERUpzlY8s+Oi LG+sRqxtBZsPBoAsUQXaey8ldcL9Eb+4a/DYSaFpc/Gefmjm9a+sgjNSsmySBYL2bMTR YfdW3L8lWp7WGuPzSfIVbVK0LTtyXfZyDNVa5UfA8mJb9SXGtKxevPgNTjOPgJOA/BIJ s+1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@rnplus.nl header.s=dkim header.b=Po4Xek5z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=rnplus.nl Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dr16-20020a170907721000b0078e1a6fbe12si7841964ejc.16.2022.11.06.13.45.52; Sun, 06 Nov 2022 13:46:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@rnplus.nl header.s=dkim header.b=Po4Xek5z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=rnplus.nl Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230136AbiKFVmY (ORCPT + 99 others); Sun, 6 Nov 2022 16:42:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230003AbiKFVmX (ORCPT ); Sun, 6 Nov 2022 16:42:23 -0500 X-Greylist: delayed 400 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sun, 06 Nov 2022 13:42:19 PST Received: from mail.rnplus.nl (mail.rnplus.nl [178.251.25.70]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A292BC35 for ; Sun, 6 Nov 2022 13:42:18 -0800 (PST) Received: from localhost (unknown [127.0.0.1]) by mail.rnplus.nl (Postfix) with ESMTP id D1194378512 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 wnTg8K98V6Em for ; Sun, 6 Nov 2022 22:40:34 +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-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748784828765005415?= X-GMAIL-MSGID: =?utf-8?q?1748784828765005415?= 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>; +};