From patchwork Mon Nov 7 20:55:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Renze Nicolai X-Patchwork-Id: 622390 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 97846C4332F for ; Mon, 7 Nov 2022 20:50:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233013AbiKGUuP (ORCPT ); Mon, 7 Nov 2022 15:50:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232991AbiKGUuO (ORCPT ); Mon, 7 Nov 2022 15:50:14 -0500 Received: from mail.rnplus.nl (mail.rnplus.nl [178.251.25.70]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7DF81E3D5 for ; Mon, 7 Nov 2022 12:50:11 -0800 (PST) Received: from localhost (unknown [127.0.0.1]) by mail.rnplus.nl (Postfix) with ESMTP id AFCE1378521 for ; Mon, 7 Nov 2022 20:55:07 +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 hzurJuAVWkAa for ; Mon, 7 Nov 2022 21:55:04 +0100 (CET) Received: from mail.rnplus.nl (mail.rnplus.nl [178.251.25.70]) by mail.rnplus.nl (Postfix) with ESMTPSA id 19466377FDD; Mon, 7 Nov 2022 21:55:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rnplus.nl; s=dkim; t=1667854504; bh=j6/hl1Q/eLB5dfplzUEE3Y3Xcn8JgcBaeo5qHF07U1c=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=Sx6Ui834KnjajDINNMaoFkChSB9FS8NXlnkEeBY5rzPxCfrDtDn5EFVA3ubH/3b7e oq6cl58fNCblM17SfHJDJxA03nrHfs3iwPBErDgl3OLaX5rkRXcqI4zmaOK1nWMH+d Vp4BzvS8AGqFVec4tMIHmQfOIKnPjeB7oStdY8ZY= MIME-Version: 1.0 Date: Mon, 07 Nov 2022 21:55:04 +0100 From: Renze Nicolai To: Krzysztof Kozlowski Cc: linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland Subject: [PATCH v2] arm64: allwinner: a64: add device tree for SoPine with clusterboard In-Reply-To: <334c5f69-2f25-aeb1-b87f-500cf2a6c205@linaro.org> References: <334c5f69-2f25-aeb1-b87f-500cf2a6c205@linaro.org> User-Agent: RN+ Webmail Message-ID: X-Sender: renze@rnplus.nl Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Hello Krzysztof, Thank you for your feedback! I've fixed the indentation and I've added the compatible and model elements. Greetings, Renze Nicolai 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 + .../allwinner/sun50i-a64-sopine-clusterboard.dts | 16 ++++++++++++++++ 2 files changed, 17 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..f75325d43d76 --- /dev/null +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-clusterboard.dts @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +// Copyright (c) 2022 Renze Nicolai + +/dts-v1/; + +#include "sun50i-a64-sopine-baseboard.dts" + +/ { + model = "SoPine with clusterboard"; + compatible = "pine64,sopine-clusterboard", "pine64,sopine", + "allwinner,sun50i-a64"; +}; + +&emac { + allwinner,tx-delay-ps = <500>; +};